/* Homepage Modern Styles - Hedef Tasarıma Göre */

:root {
    /* Corporate palette (Jan 2026) */
    --cu-blue: #0B5ED7;
    --cu-blue-dark: #084298;
    --cu-navy: #1F2D3D;
    --cu-navy-2: #243447;
    --cu-white: #FFFFFF;

    /* Surfaces */
    --bg-0: #F4F6F9;
    --bg-1: #EEF1F5;
    --card-bg: #FFFFFF;
    --divider: #E2E6EA;

    /* Text */
    --text: #212529;
    --text-2: #6C757D;
    --text-3: #8A9199;

    /* CTA / accent */
    --cu-red: #DC3545;
    --cu-red-hover: #B02A37;
    --cu-red-press: #8B1E28;

    /* Standard UI status colors */
    --ui-success: #198754;
    --ui-warning: #FFC107;
    --ui-info: #0DCAF0;
    --ui-danger: #DC3545;

    /* Shadows */
    --shadow-soft: rgba(0, 0, 0, 0.08);
    --shadow-mid: rgba(0, 0, 0, 0.15);

    /* Slider overlay */
    --overlay-strong: rgba(0, 0, 0, 0.55);
    --overlay-soft: rgba(0, 0, 0, 0.15);

    --cu-red-rgb: 220, 53, 69;
    --cu-blue-rgb: 11, 94, 215;
    --cu-navy-rgb: 31, 45, 61;

    /* Header/base tones (used for subtle section separators) */
    --header-base-1: #1F2D3D;
    --header-base-2: #243447;
    --header-base-1-rgb: 31, 45, 61;
    --header-base-2-rgb: 36, 52, 71;

    /* Shared site chrome color (topbar/header/footer) */
    --site-chrome-bg: #243447;
    --site-chrome-fg: rgba(255, 255, 255, 0.92);

    /* Header layers (requested: topbar slightly lighter) */
    --topbar-bg: #2B3A4A;
    --header-bg: #243447;
    --nav-bg: #1F2D3D;
    --footer-bg: #243447;
}

/* Top navigation: subtle corporate gradient + smooth transitions */
/* Topbar blends into header gradient */
/* Topbar blends into header gradient */
/* Tüm üst alanlar tek renk siyah */
.public-topbar {
    background: #181C23;
    position: relative;
    z-index: 3;
}
}
/* Unified header gradient: from topbar to nav, dark to light */
/* Unified, soft gradient for topbar, header, and nav */
/* Header tek renk siyah */
.public-header {
    background: #181C23;
    border-bottom: none;
    position: relative;
    z-index: 2;
    box-shadow: none;
}
}

.public-footer {
    background: var(--footer-bg);
}

/* Header readability on dark chrome */
.public-header .scu-brand-text {
    color: #ffffff;
}

.public-header .header-action {
    color: var(--site-chrome-fg);
}

.public-header .header-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.public-header .header-action__icon {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.public-header .header-search-form .input-group {
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.public-header .header-search-form .input-group:focus-within {
    border-color: rgba(var(--cu-blue-rgb), 0.40);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.public-header .header-search-form .form-control {
    background: #ffffff;
    border: 0 !important;
    color: var(--text);
}

.public-header .header-search-form .form-control::placeholder {
    color: rgba(33, 37, 41, 0.55);
}

.public-header .header-search-form .form-control:focus {
    box-shadow: none;
}

.public-header .header-search-form .btn {
    background: #ffffff;
    border: 0 !important;
    color: rgba(255, 255, 255, 0.92);
    color: var(--cu-navy);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.public-header .header-search-form .btn:hover {
    background: rgba(var(--cu-blue-rgb), 0.10);
    color: var(--cu-blue);
    transform: translateY(-1px);
}

.public-topbar .topbar-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.public-topbar .topbar-link:hover,
.public-topbar .topbar-link:focus {
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Remove nav background, let header gradient show */
/* Menü de tek renk siyah */
.public-main-nav {
    position: relative;
    background: #181C23;
}

/* Smooth transition from dark nav to light content */
.public-main-nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 42px;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(var(--header-base-1-rgb), 0.28) 0%,
        rgba(var(--header-base-1-rgb), 0.12) 40%,
        rgba(255, 255, 255, 0) 100%
    );
    filter: blur(2px);
}

.public-main-nav__list {
    position: relative;
}

.public-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none !important;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.public-nav-link:hover,
.public-nav-link:focus {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff !important;
    transform: translateY(-1px);
}

@font-face {
    font-family: 'enriqueta';
    src: url('../fonts/enriqueta/Enriqueta-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'enriqueta';
    src: url('../fonts/enriqueta/Enriqueta-SemiBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

/* Public layout header brand text (logo yanında) */
.scu-brand-text {
        font-family: 'enriqueta', 'Poppins', serif;
        font-size: 18px;
        font-weight: 700;
    color: var(--cu-navy);
        text-transform: uppercase;
}

/* Header - Categories dropdown (görseldeki gibi) */
.public-categories-dropdown .categories-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(44, 62, 80, 0.16);
    background: #fff;
    color: var(--cu-navy);
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
}

/* Header right actions (Cart / Wishlist / Account) */
.header-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Header search + actions: prevent overflow */
.header-search-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.header-search-form {
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 360px;
}

@media (max-width: 1199px) {
    .header-search-form {
        max-width: 320px;
    }
}

@media (max-width: 575px) {
    .header-search-form {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.header-action:hover {
    text-decoration: none;
    background: rgba(var(--cu-blue-rgb), 0.08);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31, 41, 55, 0.08);
    color: var(--cu-navy);
}

.header-action__icon {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--cu-navy-rgb), 0.06);
    color: var(--cu-navy);
    font-size: 18px;
}

.header-action__label {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.header-action__badge {
    position: absolute;
    top: 4px;
    left: 26px;
    background: var(--ui-success);
    color: #fff;
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 11px;
    line-height: 1.4;
    border: 2px solid #fff;
}

@media (max-width: 991px) {
    .header-action {
        padding: 8px;
    }
    .header-action__label {
        display: none;
    }
}

/* Nav bar variant (Anasayfa yanında) */
.public-categories-dropdown.public-categories-dropdown--nav .categories-toggle {
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}

.public-categories-dropdown.public-categories-dropdown--nav .categories-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(25, 135, 84, 0.16);
    color: var(--ui-success);
}

.public-categories-dropdown .categories-toggle:focus {
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
}

.public-categories-dropdown .categories-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--cu-blue-rgb), 0.14);
    color: var(--cu-blue);
}

.public-categories-dropdown .categories-caret {
    font-size: 12px;
    opacity: 0.75;
}

.public-categories-dropdown .categories-menu {
    min-width: 280px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(44, 62, 80, 0.12);
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.14);
}

.public-categories-dropdown .categories-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--cu-navy);
    background: linear-gradient(135deg, rgba(var(--cu-blue-rgb), 0.14), rgba(var(--cu-red-rgb), 0.10));
    border-bottom: 1px solid rgba(44, 62, 80, 0.10);
}

.public-categories-dropdown .categories-menu-header__icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(44, 62, 80, 0.10);
}

.public-categories-dropdown .categories-menu-list {
    padding: 8px;
    background: #fff;
}

.public-categories-dropdown .categories-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--cu-navy);
}

.public-categories-dropdown .categories-item .cat-icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--cu-navy-rgb), 0.06);
    color: var(--cu-navy);
}

.public-categories-dropdown .categories-item:hover,
.public-categories-dropdown .categories-item:focus {
    background: rgba(var(--cu-blue-rgb), 0.08);
    color: var(--cu-navy);
}

.public-categories-dropdown .categories-item:hover .cat-icon,
.public-categories-dropdown .categories-item:focus .cat-icon {
    background: linear-gradient(135deg, rgba(var(--cu-red-rgb), 0.18), rgba(var(--cu-blue-rgb), 0.16));
    border: 1px solid rgba(44, 62, 80, 0.08);
}

/* Hero Slider - PowerPoint Efektli Geçişler */
.hero-slider {
    position: relative;
    margin-bottom: 0;
}

.hero-slider .carousel-item {
    height: 500px;
    position: relative;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Carousel Fade Effect - PowerPoint Tarzı */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
    opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-prev {
    transform: translateX(0);
    transform: translate3d(0, 0, 0);
}

/* Slider Content Overlay */
.hero-slider .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-slider .slider-content {
    text-align: center;
    color: white;
    max-width: 800px;
}

.hero-slider .slider-subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-slider .slider-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slider .slider-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Slider Controls */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-slider .carousel-control-prev {
    left: 30px;
}

.hero-slider .carousel-control-next {
    right: 30px;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Slider Indicators */
.hero-slider .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.hero-slider .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.hero-slider .carousel-indicators li.active {
    width: 40px;
    border-radius: 6px;
    background-color: #fff;
}

/* Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.delay-1s {
    animation-delay: 0.3s;
}

.delay-2s {
    animation-delay: 0.6s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInDown {
    animation-name: fadeInDown;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* Responsive Slider */
@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 350px;
    }
    
    .hero-slider .slider-title {
        font-size: 2rem;
    }
    
    .hero-slider .slider-description {
        font-size: 1rem;
    }
    
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider .carousel-control-prev {
        left: 15px;
    }
    
    .hero-slider .carousel-control-next {
        right: 15px;
    }
}

/* Section Title */
.section-title {
    font-family: 'enriqueta', 'Poppins', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--cu-navy);
    position: relative;
    padding-bottom: 10px;
}

/* Home page section headings: keep compact even if layout has global overrides */
.section-title.section-title--home {
    font-size: 1.15rem;
    line-height: 1.2;
}

/* Subtle corporate accent underline for home section headings */
.section-title.section-title--home {
    position: relative;
    padding-bottom: 8px;
}
.section-title.section-title--home::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 8px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cu-red), var(--cu-blue));
}

.section-title--light {
    color: #ffffff;
}

/* Book Tabs - Hedef tasarımdaki yeşilimsi vurgu */
.book-tabs {
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

.book-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    background: transparent;
    border-radius: 8px 8px 0 0;
}

.book-tabs .nav-link:hover {
    color: var(--cu-red);
    border-bottom-color: var(--cu-red);
    background: rgba(220, 53, 69, 0.06);
}

.book-tabs .nav-link.active {
    color: #ffffff;
    border-bottom-color: var(--cu-red);
    background: linear-gradient(135deg, var(--cu-red) 0%, #c82333 100%);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}

/* Latest Announcements (Güncel Duyurular) */
.latest-announcements {
    background: linear-gradient(180deg, var(--cu-white) 0%, var(--bg-0) 45%, var(--bg-1) 100%);
    border-top: 1px solid rgba(44, 62, 80, 0.08);
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    position: relative;
}

/* Section separation (based on header tone, very subtle) */
.latest-announcements,
.all-books,
.home-category-section {
    box-shadow:
        inset 0 1px 0 rgba(var(--header-base-1-rgb), 0.06),
        inset 0 -1px 0 rgba(var(--header-base-1-rgb), 0.05);
}

.latest-announcements::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1200px 260px at 10% 0%, rgba(var(--cu-blue-rgb), 0.08), transparent 60%),
                radial-gradient(900px 240px at 90% 100%, rgba(var(--cu-red-rgb), 0.07), transparent 60%);
}

/* Soft fade between sections (subtle, no waves) */
.latest-announcements::after,
.all-books::after,
.home-category-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 68px;
    pointer-events: none;
    background:
        /* bottom fade (tinted by header base color, extremely light) */
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(var(--header-base-1-rgb), 0.05)),
        /* subtle separator line */
        linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(var(--header-base-1-rgb), 0.14), rgba(255, 255, 255, 0));
    background-size: 100% 100%, 100% 1px;
    background-position: 0 0, 0 calc(100% - 1px);
    background-repeat: no-repeat;
}

.latest-announcements > .container {
    position: relative;
    z-index: 1;
}

.announcement-card {
    display: block;
    width: 100%;
    height: 100%;
    padding: 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #eef1f4;
    box-shadow: 0 6px 18px rgba(31, 41, 55, 0.06);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

/* Latest announcements: slightly larger cards */
.latest-announcements .announcement-card {
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
    position: relative;
    overflow: hidden;
    --announce-accent-rgb: var(--cu-blue-rgb);
}

/* Per-card accent (helps cards feel distinct) */
.latest-announcements .announcement-card::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(var(--announce-accent-rgb), 0.95),
        rgba(var(--announce-accent-rgb), 0.20)
    );
    opacity: 0.85;
    pointer-events: none;
}

.latest-announcements .announcement-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.0), rgba(var(--cu-blue-rgb), 0.04));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.latest-announcements .announcement-card:hover::before {
    opacity: 1;
}

.announcement-card:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.14);
    border-color: rgba(220, 53, 69, 0.22);
    background: rgba(244, 246, 249, 0.95);
}

/* All Books section: light corporate gradient without layout changes */
.all-books {
    background: linear-gradient(180deg, rgba(var(--cu-blue-rgb), 0.04) 0%, rgba(255, 255, 255, 0) 65%);
    position: relative;
}

/* Category sections: subtle corporate gradients (per-section via CSS vars) */
.home-category-section {
    --home-accent-1-rgb: var(--cu-blue-rgb);
    --home-accent-2-rgb: var(--cu-red-rgb);
    background: linear-gradient(135deg,
        rgba(var(--home-accent-1-rgb), 0.05),
        rgba(var(--home-accent-2-rgb), 0.04)
    );
    position: relative;
}

.home-category-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 220px at 15% 0%, rgba(var(--home-accent-1-rgb), 0.10), transparent 60%),
        radial-gradient(800px 200px at 85% 100%, rgba(var(--home-accent-2-rgb), 0.10), transparent 60%);
    opacity: 0.85;
}

.home-category-section > .container {
    position: relative;
    z-index: 1;
}

/* Buttons in header rows (e.g., "Tümünü Görüntüle") */
.latest-announcements .btn-outline-secondary,
.all-books .btn-outline-secondary {
    border-color: rgba(44, 62, 80, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.latest-announcements .btn-outline-secondary:hover,
.all-books .btn-outline-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(220, 53, 69, 0.35);
    box-shadow: 0 10px 18px rgba(31, 41, 55, 0.08);
}

/* Carousel nav/dots: add subtle corporate tint */
.books-carousel .books-nav {
    background: linear-gradient(135deg, rgba(var(--cu-red-rgb), 0.10), rgba(var(--cu-blue-rgb), 0.10));
    border: 1px solid rgba(44, 62, 80, 0.12);
}
.books-carousel .owl-dot.active span {
    background: linear-gradient(90deg, var(--cu-red), var(--cu-blue));
}

/* Cards: modern hover effect with lift and shadow */
.product-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.35s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--cu-red-rgb), 0.25);
    box-shadow: 0 20px 40px rgba(31, 41, 55, 0.18), 
                0 8px 16px rgba(220, 53, 69, 0.08);
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-card .product-image img {
    transition: transform 0.4s ease;
}

.announcement-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.announcement-card__badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.38rem 0.55rem;
}

/* Category accents: reduce "same look" effect */
.announcement-card--kampanya {
    border-color: rgba(220, 53, 69, 0.18);
    --announce-accent-rgb: var(--cu-red-rgb);
}
.announcement-card--kampanya .announcement-card__badge {
    background: linear-gradient(135deg, var(--cu-red), var(--cu-red-hover));
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.announcement-card--duyuru {
    border-color: rgba(108, 117, 125, 0.18);
    --announce-accent-rgb: 108, 117, 125;
}
.announcement-card--duyuru .announcement-card__badge {
    background: rgba(108, 117, 125, 0.12);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.22);
}

.announcement-card--haber {
    border-color: rgba(var(--cu-blue-rgb), 0.18);
    --announce-accent-rgb: var(--cu-blue-rgb);
}
.announcement-card--haber .announcement-card__badge {
    background: rgba(var(--cu-blue-rgb), 0.12);
    color: var(--cu-blue-dark);
    border: 1px solid rgba(var(--cu-blue-rgb), 0.22);
}

.announcement-card--etkinlik {
    border-color: rgba(23, 162, 184, 0.18);
    --announce-accent-rgb: 13, 202, 240;
}
.announcement-card--etkinlik .announcement-card__badge {
    background: rgba(13, 202, 240, 0.14);
    color: #087990;
    border: 1px solid rgba(13, 202, 240, 0.26);
}

.announcement-card__date {
    font-size: 0.72rem;
    color: rgba(107, 114, 128, 0.75);
    white-space: nowrap;
}

.announcement-card__title {
    color: #111827;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    margin-bottom: 8px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-card__text {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.45;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* All Books Carousel (Screenshot Match) */
.books-carousel .owl-stage {
    display: flex;
}

.books-carousel .owl-item {
    display: flex;
    height: 100%;
}

.books-carousel-item {
    width: 100%;
    display: flex;
}

.books-carousel .product-card {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(31, 41, 55, 0.08);
    border: 1px solid #eef1f4;
}

.books-carousel .product-image {
    height: 340px;
    padding: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.books-carousel .product-image img {
    width: auto !important;
    height: auto !important;
    max-width: 96% !important;
    max-height: 96% !important;
    object-fit: contain !important;
}

/* Tablet */
@media (max-width: 991px) {
    .books-carousel .product-image {
        height: 320px;
        padding: 8px;
    }
}

/* Mobil */
@media (max-width: 767px) {
    .books-carousel .product-image {
        height: 340px;
        padding: 10px;
    }
}

/* Küçük mobil */
@media (max-width: 576px) {
    .books-carousel .product-image {
        height: 380px;
        padding: 12px;
    }
}

/* Çok küçük mobil */
@media (max-width: 400px) {
    .books-carousel .product-image {
        height: 450px;
        padding: 10px;
    }
}

@media (max-width: 360px) {
    .books-carousel .product-image {
        height: 420px;
        padding: 10px;
    }
}

.books-carousel .product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    position: relative;
}

.books-carousel .product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.books-carousel .product-title a:hover {
    color: var(--cu-red);
}

.books-carousel .product-author {
    font-size: 0.7rem;
    color: #718096;
    margin: 0 0 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 0.9rem;
    line-height: 1.2;
}

.books-carousel .product-author i {
    color: #667eea;
    font-size: 0.65rem;
}

.books-carousel .product-info {
    display: flex;
    flex-direction: column;
    height: 150px;
    padding: 0 14px 12px !important;
}

.books-carousel .product-price-row {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef1f5;
}

/* Fiyat tipografisi - daha kalın ve büyük */
.books-carousel .current-price {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #b8860b;
}

.books-carousel .old-price {
    font-size: 0.85rem;
    color: #9ca3af;
}

.books-carousel .product-price .text-success {
    color: #b8860b !important;
}

.books-carousel .product-price .text-dark {
    color: #b8860b !important;
}

.books-carousel .owl-nav {
    position: absolute;
    top: 45%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.books-carousel .owl-nav button {
    pointer-events: auto;
    border: none;
    background: transparent;
}

.books-carousel .books-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--cu-navy);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    border: 2px solid rgba(220, 53, 69, 0.15);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.books-carousel .books-nav:hover {
    background: var(--cu-red);
    color: #ffffff;
    border-color: var(--cu-red);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.35);
}

.books-carousel .owl-dots {
    margin-top: 18px;
    text-align: right;
    padding-right: 6px;
}

.books-carousel .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 4px;
    background: #e2e8f0;
    display: inline-block;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.books-carousel .owl-dot.active span {
    width: 28px;
    background: linear-gradient(90deg, var(--cu-red), #c82333);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.35);
}

/* Campaign Products - Dark Section (Screenshot Match) */
.campaign-products {
    background: radial-gradient(900px 380px at 15% 15%, rgba(40, 167, 69, 0.18), transparent 55%),
                linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

.campaign-carousel .owl-stage {
    display: flex;
}

.campaign-carousel .owl-item {
    display: flex;
    height: 100%;
}

.campaign-carousel-item {
    width: 100%;
    display: flex;
}

.campaign-carousel .owl-nav {
    position: absolute;
    top: 44%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.campaign-carousel .owl-nav button {
    pointer-events: auto;
    border: none;
    background: transparent;
}

.campaign-carousel .campaign-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
}

.campaign-carousel .owl-dots {
    margin-top: 18px;
    text-align: right;
    padding-right: 6px;
}

.campaign-carousel .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 4px;
    background: rgba(255, 255, 255, 0.28);
    display: inline-block;
    border-radius: 999px;
}

.campaign-carousel .owl-dot.active span {
    width: 22px;
    background: #34d399;
}

.campaign-products .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
}

.campaign-products .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.65);
}

.campaign-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    min-height: 118px;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.campaign-card:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.16);
}

.campaign-card__media {
    position: relative;
    flex: 0 0 86px;
    width: 86px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.campaign-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--cu-red);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(var(--cu-red-rgb), 0.25);
}

.campaign-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    flex: 1;
}

.campaign-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    color: #f9fafb;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.campaign-card__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 8px;
}

.campaign-card__old {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.campaign-card__current {
    color: var(--ui-success);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-card .product-image {
    position: relative;
    padding: 8px;
    background: #ffffff;
    text-align: center;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .product-image img {
    width: auto !important;
    height: auto !important;
    max-width: 96% !important;
    max-height: 96% !important;
    object-fit: contain !important;
}

/* Kırmızı İndirim Badge - Hedef tasarım gibi */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--cu-red);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 0.9rem;
    line-height: 1.3;
    min-height: 40px;
    max-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.2rem;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #28a745;
}

.product-price {
    margin-top: 10px;
}

.old-price {
    font-size: 0.85rem;
    margin-right: 8px;
}

.current-price {
    font-size: 1.1rem;
    color: #b8860b;
}

/* 5 Column Grid - Hedef tasarımda 5 sütun görünüyor */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Responsive */
@media (max-width: 1199px) {
    /* Geniş tabletler için iyileştirmeler */
    .hero-slider .carousel-item {
        height: 420px;
    }
    .hero-slider .carousel-item img {
        height: 420px;
    }
    .hero-slider .slider-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 991px) {
    /* Tablet görünüm */
    .product-card .product-image {
        height: 380px;
        padding: 8px;
    }
    
    .book-tabs .nav-link {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .campaign-card {
        min-height: 110px;
        padding: 12px;
    }
    .campaign-card__media {
        flex-basis: 78px;
        width: 78px;
    }
    
    /* Hero slider tablet */
    .hero-slider .carousel-item {
        height: 380px;
    }
    .hero-slider .carousel-item img {
        height: 380px;
    }
    .hero-slider .slider-title {
        font-size: 2rem;
    }
    .hero-slider .slider-description {
        font-size: 1.1rem;
    }
    
    /* Section padding küçült */
    .latest-announcements,
    .all-books,
    .home-category-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (max-width: 767px) {
    /* Mobil görünüm */
    .product-card .product-image {
        height: 380px;
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.1rem;
    }

    .section-title.section-title--home {
        font-size: 0.95rem;
    }

    .section-title.section-title--home::after {
        width: 40px;
        margin-top: 5px;
        height: 2px;
    }
    
    .book-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .book-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .book-tabs .nav-link {
        font-size: 0.8rem;
        padding: 8px 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .books-carousel .product-image {
        height: 210px;
    }

    .campaign-products .d-flex {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start !important;
    }
    .campaign-products .btn-outline-light {
        width: 100%;
        text-align: center;
    }
    
    /* Hero slider mobil */
    .hero-slider .carousel-item {
        height: 320px;
    }
    .hero-slider .carousel-item img {
        height: 320px;
    }
    .hero-slider .slider-title {
        font-size: 1.6rem;
        padding: 0 15px;
    }
    .hero-slider .slider-description {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    .hero-slider .slider-subtitle {
        font-size: 0.85rem;
    }
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    /* Duyuru kartları mobilde tam genişlik */
    .announcement-card {
        margin-bottom: 15px;
    }
    
    .announcement-card__title {
        font-size: 0.95rem;
    }
    
    .announcement-card__text {
        font-size: 0.82rem;
    }
    
    /* Section başlıkları ve içerik */
    .latest-announcements .d-flex,
    .all-books .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .view-all-link {
        font-size: 0.85rem;
    }
    
    /* Section padding küçült */
    .latest-announcements,
    .all-books,
    .home-category-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Campaign cards mobil */
    .campaign-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .campaign-card__media {
        width: 100%;
        flex-basis: auto;
        height: 180px;
    }
    
    /* Product title mobilde daha küçük */
    .product-title {
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    .product-price .current-price {
        font-size: 1rem;
    }
    
    .product-price .old-price {
        font-size: 0.8rem;
    }
}

@media (max-width: 575px) {
    /* Küçük mobil cihazlar */
    .hero-slider .carousel-item {
        height: 280px;
    }
    .hero-slider .carousel-item img {
        height: 280px;
    }
    .hero-slider .slider-title {
        font-size: 1.35rem;
        padding: 0 10px;
    }
    .hero-slider .slider-description {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 36px;
        height: 36px;
    }
    .hero-slider .carousel-control-prev {
        left: 10px;
    }
    .hero-slider .carousel-control-next {
        right: 10px;
    }
    
    /* Duyuru kartları daha kompakt */
    .latest-announcements .announcement-card {
        padding: 14px;
    }
    
    .announcement-card__badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.45rem;
    }
    
    .announcement-card__date {
        font-size: 0.68rem;
    }
    
    .announcement-card__title {
        font-size: 0.9rem;
    }
    
    .announcement-card__text {
        font-size: 0.78rem;
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }
    
    /* Section padding daha da küçült */
    .latest-announcements,
    .all-books,
    .home-category-section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 1rem !important;
    }
    
    .section-title.section-title--home {
        font-size: 0.9rem;
    }
    
    /* Carousel controls daha küçük */
    .books-carousel .books-nav {
        width: 30px;
        height: 30px;
    }
    
    .books-carousel .owl-nav button {
        margin: 0 -5px;
    }
    
    /* Book tabs scroll hint */
    .book-tabs {
        position: relative;
    }
    
    .book-tabs::after {
        content: '→';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(90deg, transparent, white 20%);
        padding: 10px 15px 10px 30px;
        pointer-events: none;
        font-size: 1.2rem;
        color: #6c757d;
    }
}

@media (max-width: 400px) {
    /* Çok küçük ekranlar */
    .hero-slider .carousel-item {
        height: 240px;
    }
    .hero-slider .carousel-item img {
        height: 240px;
    }
    .hero-slider .slider-title {
        font-size: 1.2rem;
    }
    .hero-slider .slider-description {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 0.95rem;
    }
    
    .section-title.section-title--home {
        font-size: 0.85rem;
    }
    
    .latest-announcements,
    .all-books,
    .home-category-section {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }
}

/* Home carousel cover images: force responsive contain on mobile/desktop.
   This intentionally overrides any global `.product-card .product-image` rules
   (e.g. `padding-top` aspect-ratio hacks, `object-fit: cover`, absolute img). */
.books-carousel .product-card .product-image {
    position: relative;
    padding-top: 0 !important;
    height: 340px;
    padding: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.books-carousel .product-card .product-image img {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 96% !important;
    max-height: 96% !important;
    object-fit: contain !important;
    object-position: center;
    transform: none !important;
    transition: transform 0.4s ease;
}

.books-carousel .product-card:hover .product-image img {
    transform: scale(1.03) !important;
}

/* Tablet için */
@media (max-width: 991px) {
    .books-carousel .product-card .product-image {
        height: 320px;
        padding: 8px;
    }
}

/* Mobil için */
@media (max-width: 767px) {
    .books-carousel .product-card .product-image {
        height: 340px;
        padding: 10px;
    }
}

/* Küçük mobil için */
@media (max-width: 576px) {
    .books-carousel .product-card .product-image {
        height: 380px;
        padding: 12px;
    }
}

/* Çok küçük mobil için */
@media (max-width: 400px) {
    .books-carousel .product-card .product-image {
        height: 360px;
        padding: 10px;
    }
}

@media (max-width: 360px) {
    .books-carousel .product-card .product-image {
        height: 340px;
        padding: 10px;
    }
}

/* =================================================
   Yayın Listeleme Sayfası - Mobil Responsive
   ================================================= */
.products-grid .product-card .product-image {
    height: 340px;
    padding: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.products-grid .product-card .product-image img {
    max-width: 96% !important;
    max-height: 96% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.4s ease;
}

.products-grid .product-card:hover .product-image img {
    transform: scale(1.03);
}

/* Sepete Ekle Geri Bildirimi - Yeşil Tik Animasyonu */
@keyframes cartSuccessPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes cartSuccessFade {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

.cart-success-tick {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    z-index: 100;
    animation: cartSuccessPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
               cartSuccessFade 2.5s ease-in-out forwards;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
}

.cart-success-tick i {
    animation: none;
}

@media (max-width: 991px) {
    .products-grid .product-card .product-image {
        height: 420px;
        padding: 8px;
    }
}

@media (max-width: 767px) {
    .products-grid .product-card .product-image {
        height: 420px;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .products-grid .product-card .product-image {
        height: 480px;
        padding: 12px;
    }
}

@media (max-width: 400px) {
    .products-grid .product-card .product-image {
        height: 450px;
        padding: 10px;
    }
}

@media (max-width: 360px) {
    .products-grid .product-card .product-image {
        height: 420px;
        padding: 10px;
    }
}
