:root {
    /* Premium Color Palette */
    --primary-color: #1a1a1a;
    /* Deep Black/Grey */
    --secondary-color: #f4f4f4;
    /* Light Grey Background */
    --accent-color: #D4AF37;
    /* Gold */
    --text-color: #333333;
    /* Dark Grey Text */
    --light-text: #ffffff;
    /* White Text */
    --border-color: #e0e0e0;

    /* Typography */
    --font-heading: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Transitions */
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Ensure global container doesn't overflow */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

/* Header Styles */
.site-header {
    background-color: var(--secondary-color);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: var(--spacing-sm);
    font-size: 0.9em;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo {
    font-family: 'Playfair Display', serif;
    /* Or a custom script font if available */
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-lg);
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.main-nav a:hover::after {
    width: 100%;
}

.user-actions {
    display: flex;
    gap: var(--spacing-md);
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: #cccccc;
    padding: var(--spacing-xl) 0 0;
    /* Removed bottom padding */
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-col h4 {
    color: var(--light-text);
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid #333;
    font-size: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    transition: all var(--transition-speed);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Utility Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 600px;
    /* Reduced from 80vh to prevent excessive cropping */
    /* Full screen height minus header approx */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    /* Focus on top part (heads/faces) */
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Dark overlay for text readability */
}

.slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.slide-content h2 {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: white;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Slider Controls */
.prev-slide,
.next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    z-index: 20;
    transition: 0.3s;
}

.prev-slide:hover,
.next-slide:hover {
    color: var(--accent-color);
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}


/* Promo Bar - Desktop Default (Static) */
.promo-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    /* Original Padding */
    font-size: 0.9rem;
    /* Original Font Size */
    letter-spacing: 1px;
    overflow: hidden;
    text-align: center;
}

/* Desktop: Static Layout */
.promo-scroll-container {
    display: block;
    width: 100%;
}

.promo-track {
    display: flex;
    justify-content: center;
    width: 100%;
    animation: none;
}

.promo-content {
    display: none;
    /* Hide duplicates */
}

/* Show only the first content block on desktop */
.promo-content:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.divider {
    color: var(--accent-color);
    margin: 0 10px;
}

@keyframes scrollPromo {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}




/* Category Grid */
.category-grid {
    display: grid;
    grid-template-areas:
        "women new"
        "men new";
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.item-women {
    grid-area: women;
}

.item-men {
    grid-area: men;
}

.item-new {
    grid-area: new;
    height: 720px;
    /* span both rows + gap */
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

/* Dark Overlay for better text readability */
.grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Hafif karartı (adjust opacity as needed) */
    pointer-events: none;
    /* Click through to link if any */
    z-index: 1;
}

.grid-item .overlay {
    z-index: 2;
    /* Ensure text is above overlay */
}

.yellow-box {
    background-color: #FFD700;
    /* Bright yellow as per screenshot */
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* or left align based on design */
    padding: 40px;
    text-align: left;
}

.yellow-box h2 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.overlay h3 {
    font-family: 'Brush Script MT', cursive;
    /* Or similar script font */
    color: var(--accent-color);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}


/* Hot This Week */
.hot-products {
    padding: 50px 0;
    text-align: center;
}

.section-title {
    margin-bottom: 40px;
    font-size: 2rem;
}

.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;

    /* Smooth Scrolling & Snapping */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* for smooth momentum scrolling on iOS */
    scrollbar-width: none;
    /* Firefox: Hide scrollbar for cleaner look */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.product-carousel::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 250px;
    text-align: center;
    scroll-snap-align: start;
    /* Snap to start of card */
    flex: 0 0 auto;
    /* Ensure cards don't shrink */
}

.product-image {
    position: relative;
    margin-bottom: 15px;
}

.placeholder-image {
    height: 350px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    width: 100%;
}

.badge {
    position: absolute;
    top: 10px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.product-info {
    padding: 10px 0;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    /* Stack vertically for better mobile layout */
    align-items: flex-start;
    /* Left align */
    gap: 5px;
}

.product-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0;
    text-align: left;
    width: 100%;
    padding-right: 10px;
    min-width: 0;
    /* Allow wrapping for full visibility */
    white-space: normal;
    line-height: 1.3;
    min-height: 2.6em;
    /* FORCE height of 2 lines to align buttons */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property to silence linter warning */
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0;
    text-align: left;
    /* Align with text */
    font-size: 1rem;
    width: 100%;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
    font-weight: normal;
    font-size: 0.9em;
}

.add-to-cart {
    width: 100%;
    margin-top: 15px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    display: block;
}

.add-to-cart:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    padding: 10px;
}

.carousel-btn:hover {
    color: var(--primary-color);
}

.prev-btn {
    left: -40px;
}

.next-btn {
    right: -40px;
}

@media(max-width: 1300px) {
    .prev-btn {
        left: 10px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .next-btn {
        right: 10px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }
}

/* Lookbook Animation */
.lookbook-item:hover img {
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f9f9f9;
    /* Light, clean background */
    padding: 100px 0;
    text-align: center;
    position: relative;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 80px;
}

.testimonial-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.6;
    margin-bottom: 30px;
}

.testimonial-author h5 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #888;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    /* WhatsApp Green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    /* remove hover line */
}

.chat-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Responsive Design */

/* Default Mobile Elements Hidden on Desktop */
.mobile-menu-btn,
.mobile-side-menu,
.mobile-overlay,
.mobile-user-link {
    display: none;
}

@media (max-width: 768px) {

    /* Reduce Header Height */
    .site-header {
        padding: 5px 0 !important;
    }

    .nav-container {
        /* Mobile: Hamburger - Logo - User/Cart */
        justify-content: space-between;
        padding: 5px 15px !important;
        min-height: 50px;
    }

    /* Hide Desktop Elements */
    .desktop-nav,
    .desktop-user-link {
        display: none !important;
    }

    /* Show Mobile Elements */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        padding: 5px;
    }

    .mobile-user-link {
        display: inline-block;
        margin-right: 10px;
        font-size: 1.2rem;
    }

    .logo {
        font-size: 1.5rem;
        /* Adjust if needed */
        margin: 0;
        /* Absolute centering for logo if necessary or flex settings */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Adjust User Actions */
    .user-actions {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .cart-link i {
        font-size: 1.2rem;
    }

    .cart-count {
        font-size: 0.9rem;
    }

    /* Mobile Side Menu Styles */
    .mobile-side-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 2000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
    }

    .mobile-side-menu.active {
        transform: translateX(0);
        display: flex;
        /* Ensure it's flex when active */
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #eee;
        background: var(--primary-color);
        color: white;
    }

    .mobile-menu-title {
        font-family: var(--font-heading);
        font-size: 1.2rem;
        font-weight: bold;
    }

    .close-menu-btn {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .mobile-nav-links {
        padding: 20px;
        overflow-y: auto;
    }

    .mobile-nav-links ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        /* Reset gap */
    }

    .mobile-nav-links li {
        border-bottom: 1px solid #f4f4f4;
    }

    .mobile-nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
        color: var(--primary-color);
        font-weight: 500;
        width: 100%;
    }

    .mobile-nav-links a::after {
        display: none;
        /* Remove underline effect */
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }

    .hero-slider {
        height: 50vh;
    }

    .slide-content h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .prev-slide,
    .next-slide {
        display: none !important;
    }

    .category-grid {
        grid-template-areas:
            "women"
            "men"
            "new";
        grid-template-columns: 1fr;
    }


    .item-new {
        height: 350px;
    }

    /* Fix Yellow Box Alignment on Mobile */
    .yellow-box {
        padding: 20px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .yellow-box h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        line-height: 1.1;
    }

    /* Reduce Header Height */
    .site-header {
        padding: 5px 0 !important;
    }

    /* Mobile Promo Bar Logic (Scrolling) */
    .promo-bar {
        padding: 5px 0 !important;
        font-size: 0.85rem !important;
        line-height: normal;
        height: auto !important;
        min-height: 0 !important;
    }

    .promo-scroll-container {
        display: block;
        /* Enable container */
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
    }

    /* Override Desktop Static Styles */
    /* Override Desktop Static Styles */
    .promo-bar .promo-track {
        display: inline-block !important;
        /* Force track logic */
        width: auto !important;
        animation: scrollPromo 35s linear infinite !important;
        white-space: nowrap !important;
        min-width: 100%;
        text-align: left;
        /* Ensure text flows naturally */
    }

    .promo-content {
        display: inline-block !important;
        /* Show all copies */
        white-space: nowrap !important;
        padding-right: 50px;
        vertical-align: middle;
        width: auto !important;
    }

    .promo-content:first-child {
        display: inline-block !important;
        /* Override desktop flex */
        justify-content: normal !important;
        /* Reset flex prop */
        gap: 0 !important;
    }

    .divider {
        display: inline-block;
    }

    .lookbook-grid {
        grid-template-columns: 1fr !important;
    }

    .lookbook-item {
        height: 400px !important;
    }
}

/* Category Page Layout */
.category-page-container {
    display: flex;
    gap: 40px;
    padding: 50px 0;
    align-items: flex-start;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    /* Prevent sidebar from shrinking */
    padding-right: 20px;
    border-right: 1px solid #eee;
}

/* DESKTOP FULL WIDTH OVERRIDE for Category Pages */
@media (min-width: 901px) {
    .category-page-container.container {
        max-width: 98% !important;
        /* "Ta mekran" - Almost full width */
        width: 98% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .products-grid-view {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
        /* Larger cards */
        gap: 40px !important;
        /* More breathing room */
    }

    .sidebar {
        width: 280px;
        min-width: 280px;
        /* Ensure sidebar doesn't shrink */
    }

    /* Fix Image Aspect Ratio on Wide Cards */
    .product-card .product-image img,
    .product-card .product-image .placeholder-image {
        /* Apply to placeholder too */
        object-fit: cover !important;
        /* Fill the box, no white bars */
        width: 100% !important;
        height: 500px !important;
        /* Taller image for premium look */
        object-position: top !important;
        /* Focus on face/top */
    }

    /* ALIGN BUTTONS TO BOTTOM */
    .product-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    .product-info {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
    }

    .product-info .add-to-cart {
        margin-top: auto !important;
        /* Pushes button to bottom */
        display: block !important;
        text-align: center !important;
    }
}

.sidebar h3 {
    font-family: 'Brush Script MT', cursive;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    /* Aesthetic line */
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.filter-title {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.filter-options {
    display: none;
    /* Hidden by default for accordion effect */
    list-style: none;
}

.filter-options.active {
    display: block;
}

.filter-options li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-options li:hover {
    color: var(--accent-color);
}

.filter-options input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.category-products {
    flex: 1;
}

.category-header {
    margin-bottom: 30px;
}

.category-header h1 {
    font-family: 'Brush Script MT', cursive;
    font-size: 3rem;
    color: var(--primary-color);
}

.products-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Carousel (Desktop) */
.product-carousel-wrapper {
    position: relative;
    padding: 0 50px;
    /* Space for buttons */
}

.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    /* Space for shadow/hover effects */
    /* Hide Scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.product-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.product-carousel .product-card {
    min-width: 280px;
    /* Fixed width for carousel items */
    scroll-snap-align: start;
    flex: 0 0 auto;
    /* Don't shrink */
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: #333;
}

.carousel-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.carousel-nav-btn.prev {
    left: 0;
}

.carousel-nav-btn.next {
    right: 0;
}

/* Mobile Adjustments for Carousel */
@media (max-width: 900px) {
    .product-carousel-wrapper {
        padding: 0;
        /* Remove button space */
    }

    .carousel-nav-btn {
        display: none;
        /* Hide buttons on mobile */
    }

    .product-carousel .product-card {
        min-width: 200px;
        /* Smaller cards on mobile */
    }
}

/* Category Page Responsive */
@media (max-width: 900px) {
    .category-page-container {
        flex-direction: column;
        padding: 20px 5px;
        /* Minimal side padding */
        gap: 20px;
        width: 100%;
        /* Ensure it fits */
        overflow: hidden;
        /* Prevent internal spill */
    }

    .sidebar {
        width: 100%;
        flex: 0 0 auto !important;
        /* CRITICAL FIX: Allow height to shrink/grow */
        border-right: none;
        border-bottom: 1px solid #eee;
        margin-bottom: 10px !important;
        /* Reduced gap */
        padding-right: 0;
        /* Remove desktop right padding */
    }

    .product-card {
        min-width: 0 !important;
        /* Allow shrinking */
        width: 100% !important;
    }

    .products-grid-view {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns on mobile */
        gap: 10px;
        /* Tight gap */
        width: 100%;
        box-sizing: border-box;
    }

    .product-card .product-image img,
    .product-card .product-image .placeholder-image {
        height: 350px !important;
        /* Increased from 200px to show detail */
        width: 100% !important;
        object-fit: cover !important;
        /* CRITICAL: Override inline 'contain' */
        object-position: top !important;
        /* Focus on top (head/shoulders) */
    }

    .category-header h1 {
        font-size: 2rem;
        /* Smaller title */
    }
}

@media (max-width: 480px) {

    /* For vary small screens, fall back to 1 column if needed, or keep 2 but smaller font */
    .product-info h4 {
        font-size: 0.9rem;
    }

    .price {
        font-size: 1rem;
    }
}

/* Product Detail Page */
.product-detail-container {
    display: flex;
    gap: 60px;
    padding: 60px 0;
}

.product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    width: 100%;
    background-color: #f9f9f9;
    padding: 20px;
}

.main-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 600px;
}

.gallery-thumbs {
    display: flex;
    gap: 15px;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.product-details-info {
    flex: 1;
    padding-top: 10px;
}

.pd-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.pd-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 30px;
}

.pd-price .old {
    color: #999;
    text-decoration: line-through;
    font-size: 1.2rem;
    margin-right: 10px;
    font-weight: normal;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-select,
.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    background: white;
}

.qty-input {
    width: 80px;
    text-align: center;
}

.pd-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Accordion */
.accordion-item {
    border-top: 1px solid #eee;
}

.accordion-item:last-child {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.accordion-content {
    display: none;
    padding-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-content.active {
    display: block;
}

/* Fix Mobile Horizontal Scroll Globally */
/* Only apply strict overflow rules on mobile to avoid breaking desktop container widths */
@media (max-width: 900px) {

    html,
    body {
        overflow-x: hidden !important;
        position: relative;
        max-width: 100% !important;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
}

/* Cart Header & Product Detail Fix (Mobile Only) */
@media (max-width: 900px) {
    .page-header h1 {
        font-size: 1.8rem !important;
        /* Smaller title */
        word-wrap: break-word;
        /* Prevent long words breaking layout */
    }

    .product-detail-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px !important;
        /* Added 15px side padding */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Container inside needs side padding? No, global container has it. */

    .pd-title {
        font-size: 1.8rem;
        /* Smaller title */
        line-height: 1.2;
    }

    .pd-price {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .main-image-container {
        padding: 0;
        /* Remove inner padding */
        background: transparent;
    }

    .gallery-thumbs {
        overflow-x: auto;
        /* Allow scrolling if many images */
        justify-content: flex-start;
        padding-bottom: 5px;
    }

    .pd-actions {
        flex-direction: column;
        /* Stack buttons */
        gap: 10px;
        margin-bottom: 30px;
    }
}

/* Newsletter Button Styles */
.newsletter-btn {
    padding: 8px 15px;
    font-size: 0.8rem;
    background-color: #111 !important;
    color: #fff !important;
    border: 1px solid #111 !important;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    background-color: #fff !important;
    color: #111 !important;
    border-color: #fff !important;
}

/* FLOATING BUTTONS (WhatsApp & Back to Top) */
.chat-widget,
.back-to-top-btn {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

/* WhatsApp Specifics */
.chat-widget {
    bottom: 20px;
    background-color: #25D366;
}

.chat-widget:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

/* Back to Top Specifics */
.back-to-top-btn {
    bottom: 85px;
    /* 20px (chat) + 50px (height) + 15px (gap) */
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #111;
    transform: translateY(-3px);
}

/* Mobile Adjustments */
@media (max-width: 900px) {

    .chat-widget,
    .back-to-top-btn {
        width: 45px;
        height: 45px;
        right: 15px;
        font-size: 1.2rem;
    }

    .chat-widget {
        bottom: 15px;
    }

    .back-to-top-btn {
        bottom: 75px;
        /* 15px + 45px + 15px */
    }
}

.btn-block {
    width: 100%;
    /* Ensure full width */
}

/* About Us - Mobile Overrides */
@media (max-width: 900px) {
    .about-hero {
        height: 300px !important;
    }

    .about-hero h1 {
        font-size: 2.5rem !important;
    }

    .about-content {
        flex-direction: column !important;
        gap: 40px !important;
    }

    /* Override inline padding for container in about page if needed, 
           but we can target specific divs */
    .about-content .about-text {
        padding: 0 15px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr !important;
        /* Keep side-by-side */
    }

    .mission-section .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .stats-grid {
        flex-direction: column;
        gap: 40px !important;
    }

    /* Reduce vertical padding for sections */
    .about-hero+.container,
    .mission-section,
    .mission-section+.container {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* Cart Page - Mobile Overrides */
@media (max-width: 900px) {
    .page-header {
        padding: 20px 0 !important;
        /* Reduced padding */
        margin-bottom: 20px !important;
        /* Reduced bottom gap */
    }

    .page-header h1 {
        font-size: 1.8rem !important;
        word-wrap: break-word;
        /* Prevent long words breaking layout */
        margin-bottom: 0 !important;
    }

    .cart-header {
        display: none !important;
    }

    .cart-item {
        display: grid !important;
        grid-template-columns: 100px 1fr !important;
        /* Fixed Image Width | Content */
        grid-template-rows: auto auto auto 1fr;
        /* Name, Price, Size, Bottom Actions */
        column-gap: 15px !important;
        row-gap: 5px !important;
        padding: 15px !important;
        background: #fff;
        border: 1px solid #eee;
        /* Reference has clean border */
        border-radius: 8px;
        box-shadow: none !important;
        /* Reference looks flat/bordered */
        margin-bottom: 10px;
        /* Reduced margin */
        position: relative;
        align-items: start !important;
    }

    /* Child 1: Image div */
    .cart-item>div:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / span 4;
        /* Span all rows */
        width: 100px !important;
        height: 100% !important;
        /* Fill height */
        max-height: 140px;
        /* Cap height */
        border: none !important;
        background: #f9f9f9;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cart-item>div:nth-child(1) img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    /* Child 2: Name & Link div */
    .cart-item>div:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        padding-right: 0;
        margin-bottom: 5px !important;
    }

    .cart-item h4 {
        font-size: 0.95rem !important;
        font-weight: 600;
        margin-bottom: 0 !important;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .cart-item a {
        display: none;
        /* Hide 'Urune Git' to match reference cleaner look */
    }

    /* Child 4: Price div (Move up under Name) */
    .cart-item>div:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        /* Align left */
        font-weight: bold;
        color: #111;
        /* Black price */
        font-size: 1.1rem !important;
        margin-bottom: 5px;
        padding-top: 0;
    }

    /* Child 3: Size div */
    .cart-item>div:nth-child(3) {
        grid-column: 2;
        grid-row: 3;
        font-size: 0.85rem;
        color: #666;
        margin-bottom: 10px;
    }

    /* Child 5: Qty div (Bottom Left) */
    .cart-item>div:nth-child(5) {
        grid-column: 2;
        grid-row: 4;
        justify-self: start;
        align-self: end;
        margin-top: auto;
        display: flex;
        flex-direction: column;
        /* Label top, input bottom if needed */
        margin-left: 0;
        padding-left: 0;
    }

    /* Child 6: Trash (Remove) div (Bottom Right) */
    .cart-item>div:nth-child(6) {
        grid-column: 2;
        grid-row: 4;
        position: static !important;
        /* Not absolute anymore */
        justify-self: end;
        align-self: end;
    }

    /* Actions: Left Aligned */
    .cart-actions {
        flex-direction: column-reverse !important;
        gap: 15px !important;
        align-items: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .cart-actions>div {
        text-align: left !important;
        width: 100% !important;
        margin-left: 0 !important;
        /* Override inline 20px */
        border-top: 1px solid #eee;
        /* Divider */
        padding-top: 15px;
        box-sizing: border-box !important;
    }

    .cart-actions .btn-secondary {
        display: none !important;
        /* Hide update button if auto-udpate or clean look desired, or keep small */
    }

    .cart-actions button {
        width: 100% !important;
        background-color: #111;
        /* Black button */
        color: #fff;
        padding: 15px;
        font-weight: bold;
        box-sizing: border-box !important;
    }
}

/* Global Cart Styles (Restored for Desktop) */
.cart-item .qty-input {
    width: 60px;
    padding: 5px 10px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #333;
    /* Dark border like ref */
    border-radius: 4px;
    background: transparent;
}

.cart-item a {
    /* Ensure trash icon and links are visible by default on desktop */
    display: inline-block;
}

.cart-item>div:nth-child(6) a {
    /* Trash icon style */
    color: #ff4444;
    transition: transform 0.2s;
}

.cart-item>div:nth-child(6) a:hover {
    transform: scale(1.1);
}

.cart-actions .btn-secondary {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid #333;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.cart-actions .btn-secondary:hover {
    background: #333;
    color: #fff;
}

/* Toggle Summary Blocks - Defaults (Desktop First) */
.desktop-summary {
    display: block;
}

.mobile-summary {
    display: none;
}

/* Add Mobile Toggles inside the media query below */

/* REFINED COMPACT CART STYLES (Overrides for Mobile Only) */
@media (max-width: 900px) {
    .cart-item {
        grid-template-columns: 80px 1fr !important;
        /* Smaller image col */
        column-gap: 12px !important;
        row-gap: 2px !important;
        padding: 10px !important;
        /* Slimmer card */
        margin-bottom: 10px !important;
    }

    .cart-item>div:nth-child(1) {
        width: 80px !important;
        max-height: 120px !important;
    }

    .cart-item h4 {
        font-size: 0.85rem !important;
    }

    .cart-item>div:nth-child(4) {
        /* Price */
        font-size: 1rem !important;
    }

    .cart-item>div:nth-child(3) {
        /* Size */
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
    }

    .cart-item .qty-input {
        width: 45px !important;
        padding: 3px !important;
        font-size: 0.85rem !important;
    }

    .cart-item>div:nth-child(6) a {
        /* Trash */
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
    }
}

/* Mobile Accordion Logic */
.sidebar-content {
    display: none;
    /* Hidden by default on mobile */
}

.main-filter-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.main-filter-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    font-size: 1.1rem;
}

.mobile-toggle-icon {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Desktop: Always show sidebar content */
@media (min-width: 901px) {

    /* Explicitly Force Desktop Grid Layout to Prevent Issues */
    .checkout-form-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }

    .checkout-form-grid .span-2 {
        grid-column: span 2 !important;
    }

    .sidebar-content {
        display: block !important;
    }

    .main-filter-header {
        cursor: default;
        pointer-events: none;
        /* Not clickable on desktop */
        background: transparent;
        padding: 0;
    }

    .mobile-toggle-icon {
        display: none !important;
    }

    /* Hide "Beden:" prefix on desktop */
    .mobile-label {
        display: none !important;
    }

    /* Resize and positioning for Desktop Checkout Button with ID */
    #desktop-checkout-btn {
        width: auto !important;
        display: inline-block !important;
        padding: 12px 40px !important;
        /* Smaller than full width */
        font-size: 1rem !important;
        margin-left: auto;
        float: right;
        /* Ensure it goes to right */
    }
}

/* Mobile-Specific Overrides */
@media (max-width: 900px) {

    /* Ensure Beden label is visible on mobile */
    .mobile-label {
        display: inline !important;
    }

    /* Thinner Top Bar on Mobile */
    .top-bar {
        padding: 4px !important;
        font-size: 0.7rem !important;
        line-height: normal;
        min-height: 0 !important;
    }

    /* Smaller WhatsApp Button on Mobile */
    .chat-widget {
        width: 50px !important;
        height: 50px !important;
        font-size: 28px !important;
        bottom: 15px !important;
        right: 15px !important;
    }

    /* Adjust Promo Bar if needed here too, though handled above */
    .promo-bar {
        padding: 4px 0 !important;
        font-size: 0.8rem !important;
    }

    /* Mobile Checkout Grid Fix */
    .checkout-form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .checkout-form-grid .span-2 {
        grid-column: auto !important;
    }

    /* Toggle Summary Blocks for Mobile */
    .desktop-summary {
        display: none !important;
    }

    .mobile-summary {
        display: block !important;
    }

    .desktop-coupon-area {
        display: none !important;
    }

    /* Checkout Summary & Payment - Mobile Compact Styles */
    .checkout-summary {
        margin-top: 15px !important;
        padding: 15px !important;
    }

    .checkout-summary h3 {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
    }

    .summary-list li {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }

    .summary-list li span {
        font-size: 0.85rem !important;
    }

    .summary-list .total {
        font-size: 1.1rem !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
    }

    .payment-method-title {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        font-size: 1.1rem !important;
    }

    .payment-method-box {
        padding: 10px !important;
        margin-bottom: 15px !important;
    }

    .payment-method-box label span {
        font-size: 0.9rem !important;
    }

    .kvkk-text {
        font-size: 0.8rem !important;
        line-height: 1.2;
        display: inline-block;
    }
}

/* Arlink Medya Credit */
.arlink-credit {
    text-align: center;
    padding: 15px 0 0;
    /* Reduced padding */
    background-color: var(--primary-color);
    font-size: 0.75rem;
    border-top: 1px solid #222;
    margin-top: 10px;
    padding-bottom: 2px;
    /* Minimal padding for visual balance */
    margin-bottom: 0;
}

.arlink-credit a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.arlink-credit a:hover {
    opacity: 1;
}

.arlink-credit .created-by {
    color: #666;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.arlink-credit img {
    height: 16px;
    width: auto;
    object-fit: contain;
    margin: 0 5px;
    opacity: 1;
}

.arlink-credit .company-name {
    color: #666;
    /* Same as created-by */
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.arlink-credit a:hover .company-name {
    color: #fff;
    /* Shine effect on hover */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}