/* ================================================================
   Aydınoğlu Un — Ana Stil Dosyası
   Renk Paleti: #C8973A (gold/primary) | #2B2416 (dark) | #FAFAF7 (bg)
   ================================================================ */

/* --- Root Variables --- */
:root {
    --primary:      #EF1C23;
    --primary-dark: #C8151B;
    --dark:         #2B2416;
    --body-bg:      #FAFAF7;
    --secondary-bg: #F3EFE6;
    --body-color:   #4A3F30;
    --muted:        #8A7B6A;
}

/* --- Base --- */
body {
    background-color: var(--body-bg);
    color: var(--body-color);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, .display-4 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
}

a { color: var(--primary); transition: color .2s; }
a:hover { color: var(--primary-dark); text-decoration: none; }

/* --- Bootstrap Overrides --- */
.text-primary  { color: var(--primary) !important; }
.bg-primary    { background-color: var(--primary) !important; }
.border-primary{ border-color: var(--primary) !important; }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: .5px;
    transition: background-color .2s, border-color .2s;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 0;
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-square {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Topbar --- */
.topbar {
    background-color: #B5101A;
    font-size: 13px;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--dark); }
.topbar .text-muted { color: rgba(255,255,255,.6) !important; }
.topbar .text-primary { color: #fff !important; }

/* --- Navbar --- */
.navbar-dark .navbar-nav .nav-link {
    color: #ccc;
    padding: 28px 15px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .3px;
    transition: color .2s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}
.navbar-dark .dropdown-menu {
    background: #fff;
    border: none;
    border-top: 3px solid var(--primary);
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.navbar-dark .dropdown-item {
    color: var(--body-color);
    padding: 10px 20px;
    font-size: 14px;
    transition: background .15s;
}
.navbar-dark .dropdown-item:hover {
    background-color: var(--secondary-bg);
    color: var(--primary);
}

/* --- Page Header --- */
.page-header {
    background: #B5101A;
    z-index: 1;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}
.page-header-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #B5101A 0%, #7A0A10 100%);
    opacity: .95;
    z-index: -1;
}
.page-header .breadcrumb-item a { text-decoration: none; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: #888; }

/* --- Section Title / Wheat Divider --- */
.section-title {
    margin-bottom: 10px;
}
.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.wheat-divider {
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
}
.text-center .wheat-divider {
    justify-content: center;
}

/* --- Feature Box --- */
.feature-box {
    transition: box-shadow .2s, border-color .2s;
    border-radius: 0;
}
.feature-box:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 4px 16px rgba(239,28,35,.15);
}

/* --- Product Card --- */
.product-item {
    border-radius: 6px;
    transition: box-shadow .2s, transform .2s;
    overflow: hidden;
    max-width: 210px;
    margin: 0 auto 1rem;
}
.product-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    transform: translateY(-3px);
}
.product-img { overflow: hidden; }
.product-img img { transition: transform .4s; }
.product-item:hover .product-img img { transform: scale(1.05); }
.product-info {
    background: #fff;
    border-top: 3px solid #EF1C23;
}

/* --- Secondary Background --- */
.bg-secondary-custom { background-color: var(--secondary-bg); }

/* --- Counter Section --- */
.counter { transition: all .1s; }

/* --- Footer --- */
.btn-secondary.btn-square {
    background: rgba(255,255,255,.1);
    border: none;
    color: #ccc;
    border-radius: 50%;
    transition: background .2s;
}
.btn-secondary.btn-square:hover {
    background: var(--primary);
    color: #fff;
}

/* --- Page Content (Summernote output) --- */
.page-content h1, .page-content h2,
.page-content h3, .page-content h4 {
    color: var(--dark);
    margin-top: 1.5rem;
}
.page-content img { max-width: 100%; height: auto; }
.page-content table { width: 100%; }

/* --- Hero Carousel --- */
.hero-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(239,28,35,.8) !important;
    color: #fff !important;
    width: 44px;
    height: 44px;
    border-radius: 0 !important;
    font-size: 18px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-carousel .owl-prev { left: 15px; }
.hero-carousel .owl-next { right: 15px; }
.hero-carousel .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.hero-carousel .owl-dot span {
    background: rgba(255,255,255,.5) !important;
    width: 10px;
    height: 10px;
}
.hero-carousel .owl-dot.active span {
    background: var(--primary) !important;
}

/* --- Card borders for admin-like cards --- */
.card { border-radius: 0; }
.card-header { font-weight: 600; }

/* --- Gallery --- */
.gallery-item { overflow: hidden; border-radius: 4px; }
.gallery-item img { transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }

/* --- Navbar Light Theme --- */
.navbar-light-theme {
    background-color: #D4C9BC !important;
    border-bottom: 1px solid #D4C9BC !important;
}
.navbar-light-theme .navbar-dark .navbar-nav .nav-link { color: var(--dark); }
.navbar-light-theme .navbar-dark .navbar-nav .nav-link:hover,
.navbar-light-theme .navbar-dark .navbar-nav .nav-link.active { color: var(--primary); }
.navbar-light-theme .navbar-dark .navbar-toggler { border-color: rgba(43,36,22,.4); }
.navbar-light-theme .navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2843%2C36%2C22%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Footer Light Theme --- */
.footer-light-theme {
    background-color: #D4C9BC !important;
    border-top: 1px solid #D4C9BC;
}
.footer-light-theme .text-secondary { color: var(--body-color) !important; }
.footer-light-theme a.text-secondary { color: var(--muted) !important; }
.footer-light-theme a.text-secondary:hover { color: var(--primary) !important; }
.footer-light-theme .border-secondary { border-color: #D4C9BC !important; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .sidebar { width: 100%; position: relative; }
    .main-content { margin-left: 0; }
    .navbar-dark .navbar-nav .nav-link { padding: 10px 0; }
}
