/* Shop Specific Styles (Dark Theme Override) */
:root {
    --shop-bg: #121212;
    /* Matches panel --bg-dark */
    --shop-card-bg: #1e1e1e;
    /* Matches panel --bg-card */
    --shop-text: #ffffff;
    --shop-text-muted: #a1a1aa;
    --shop-border: #27272a;
    --shop-primary: #7a0000;
    --shop-accent: #c29d59;
}

body {
    background-color: var(--shop-bg);
    color: var(--shop-text);
}

/* Top Bar */
.top-bar {
    background-color: #0d0d0d;
    /* Slightly darker than main bg */
    border-bottom: 1px solid var(--shop-border);
    padding: 3px 0;
    margin-top: 0px;
    font-size: 1rem;
    color: var(--shop-text-muted);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2px;
    padding-bottom: 2px;
    min-height: auto;
}

.top-links a {
    color: var(--shop-text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}

.top-links a:hover {
    color: white;
}

/* Main Header */
.main-header {
    background: var(--shop-bg);
    padding: 0;
    /* No padding */
    border-bottom: 2px solid var(--shop-primary);
    /* Make separator visible and red */
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.shop-logo img {
    height: 60px;
    /* Reduced back from 75px to save vertical space */
    max-width: 350px;
}

.shop-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Times New Roman', serif;
    letter-spacing: 1px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--shop-border);
    border-radius: 50px;
    background: #000000;
    /* Darker input background */
    color: white;
    padding-right: 50px;
}

.search-bar input:focus {
    border-color: var(--shop-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(122, 0, 0, 0.3);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--shop-text-muted);
    border: none;
    font-size: 1.1rem;
    padding: 8px 15px;
}

.header-actions {
    display: flex;
    gap: 25px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--shop-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    gap: 5px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.action-item i {
    font-size: 1.4rem;
    color: white;
}

.action-item:hover i,
.action-item:hover span {
    color: var(--shop-primary);
}

.badge-count {
    position: absolute;
    top: -5px;
    right: 0;
    background: var(--shop-primary);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Bar */
.nav-bar {
    background: var(--shop-bg);
    border-bottom: 1px solid var(--shop-border);
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0;
    /* Removed gap for vertical separators */
    padding: 0;
    margin: 0;
}

.nav-menu li {
    padding: 0 15px;
    border-right: 1px solid var(--shop-border);
    display: flex;
    align-items: center;
}

.nav-menu li:first-child {
    padding-left: 0;
}

.nav-menu li:last-child {
    border-right: none;
    padding-right: 0;
}

.nav-link {
    display: block;
    padding: 0;
    /* Removed all padding */
    color: var(--shop-text-muted);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    /* Increased from 0.9rem (approx 10%) */
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--shop-primary);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: white;
}

.nav-link.highlight {
    color: #f59e0b;
    /* Bright amber */
}

/* Category Title Separator */
.category-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 5px 0 5px 0;
}

.category-separator::before,
.category-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--shop-border);
}

.category-separator span {
    padding: 0 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--shop-primary);
    letter-spacing: 1px;
}

/* Shop Grid Override */
#productGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Shop Product Card */
.shop-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px;
    /* Reduced from 20px */
    border-radius: 0;
    /* Sharp corners as per image */
    overflow: hidden;
    height: 100%;
}

.shop-card:hover {
    border-color: var(--shop-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.like-btn:hover {
    color: #ef4444 !important;
    transform: scale(1.1);
}

.shop-card-img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

/* Add to Cart Button Styles */
.add-to-cart-btn {
    width: 100%;
    margin-top: auto;
    /* Push to bottom */
    padding: 10px 0;
    background: white;
    color: black;
    border: none;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.add-to-cart-btn:hover {
    color: white !important;
    background: var(--shop-primary) !important;
    /* Kırmızı arka plan */
    border-color: var(--shop-primary) !important;
    /* Kırmızı kenarlık */
}

/* Remove old overlay button styles if present */
.shop-card::after {
    display: none;
}

.shop-brand {
    font-size: 1.1rem;
    /* Increased size */
    font-weight: 900;
    color: #000000;
    /* Kesin siyah */
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.shop-title {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.shop-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    /* Make price pop */
    margin-top: auto;
}

/* Brand Slider */
.brand-slider-container {
    background: transparent;
    overflow: hidden;
    padding: 10px 0;
    margin-top: 10px;
    /* Space from header content */
    width: 100%;
}

.brand-track {
    display: flex;
    gap: 50px;
    align-items: center;
    animation: scrollBrands 30s linear infinite;
    width: max-content;
}

.brand-track:hover {
    animation-play-state: paused;
}

.brand-track img {
    height: 35px;
    /* Smaller height for header fit */
    object-fit: contain;
    filter: brightness(0);
    /* Make logos black */
    opacity: 0.6;
    transition: opacity 0.2s;
}

.brand-track img:hover {
    opacity: 1;
    filter: none;
    /* Show original colors */
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Modals Override for Dark Theme Support inside Shop */
#cartModal>div {
    background: var(--shop-card-bg) !important;
    color: white !important;
    border: 1px solid var(--shop-border) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#closeCart {
    color: white !important;
}

#cartItems {
    border-bottom: 1px solid var(--shop-border);
}

.flex-between {
    border-color: var(--shop-border) !important;
    color: white !important;
}

/* Inputs in Modal */
#customerForm input,
#customerForm textarea {
    background: #000 !important;
    border: 1px solid var(--shop-border) !important;
    color: white !important;
}

/* Cart Item Border */
.cart-item-row {
    border-bottom-color: var(--shop-border) !important;
}

/* Auth Modal Styles */
.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--shop-text-muted);
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    /* overlap border */
}

.auth-tab:hover {
    color: var(--shop-primary);
}

.auth-tab.active {
    color: var(--shop-accent);
    border-bottom: 2px solid var(--shop-accent);
}

.auth-form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    /* Light gray border */
    color: #333333;
    /* Dark text */
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: var(--shop-accent);
}

.auth-phone-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.auth-phone-group:focus-within {
    border-color: var(--shop-accent);
}

.auth-phone-prefix {
    display: flex;
    align-items: center;
    padding: 12px 0 12px 15px;
    color: #333333;
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
}

.auth-phone-prefix span {
    margin-right: 4px;
    color: #6b7280;
    /* lighter color for the plus */
}

.auth-phone-prefix input {
    width: 35px;
    border: none;
    background: transparent;
    color: #333333;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    padding: 0;
}

.auth-phone-number {
    flex: 1;
    border: none;
    background: transparent;
    color: #333333;
    padding: 12px 15px 12px 8px;
    /* less left padding to attach to prefix */
    font-size: 1rem;
    outline: none;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: var(--shop-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-submit-btn:hover {
    background: #5a0000;
    /* Darker primary */
}

/* Slider Container */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 425px;
    overflow: hidden;
    margin-bottom: 0;
    background-color: var(--shop-bg);
}

/* The sliding track */
.hero-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

/* Individual Slide */
.slide {
    flex: 0 0 100%;
    /* Take up exact container width */
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Slide Content */
.hero-content {
    color: white;
    max-width: 800px;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
    /* Delay for nice effect after slide */
}

/* Only animate content of the active slide */
.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--shop-primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s;
    border: 2px solid var(--shop-primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: var(--shop-primary);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Dots Pagination */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dot.active {
    background-color: var(--shop-primary);
    transform: scale(1.2);
}

/* Removed old definition of .hero-section and keyframes fadeInUp as it's replaced by slider styles */

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.category-card {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--shop-border);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover img {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transition: all 0.3s;
}

.cat-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cat-overlay span {
    font-size: 0.9rem;
    color: var(--shop-accent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.category-card:hover .cat-overlay span {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Section */
.shop-footer {
    background: #0d0d0d;
    border-top: 1px solid var(--shop-border);
    padding: 60px 0 20px 0;
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--shop-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--shop-primary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid var(--shop-border);
}

.social-icons a:hover {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    background: #000;
    border: 1px solid var(--shop-border);
    border-right: none;
    color: white;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    padding: 10px 15px;
    background: var(--shop-primary);
    border: 1px solid var(--shop-primary);
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid var(--shop-border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--shop-text-muted);
    font-size: 0.8rem;
}

.payment-icons {
    display: flex;
    gap: 10px;
    font-size: 1.5rem;
    color: white;
}

/* Brand Slider Styles */
.brand-track {
    display: flex;
    align-items: center;
    gap: 0;
    /* No gap */
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 10px;
}

.brand-track::-webkit-scrollbar {
    display: none;
}

.brand-track img {
    height: 60px;
    margin: 0;
    /* No margin */
    width: auto;
    max-width: none;
    flex-shrink: 0;
    object-fit: contain;
    filter: brightness(0);
    /* Make black */
    opacity: 1;
    transition: all 0.3s ease;
}

.brand-track img:hover {
    transform: scale(1.1);
    filter: none;
    /* Show original colors */
    /* Glow on hover */
}

/* Category Separator Styles */
.category-separator {
    text-align: center;
    margin: 5px 0 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-separator span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--shop-primary);
    /* Changed to theme red */
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
    /* Red glow */
    position: relative;
    padding: 0 20px;
    text-transform: uppercase;
}

.category-separator::before,
.category-separator::after {
    content: '';
    height: 3px;
    /* Increased from 1px */
    background: linear-gradient(to right, transparent, var(--shop-primary), transparent);
    /* Changed to primary color */
    flex: 1;
    max-width: 200px;
}

/* Brand Section Styles */
.brand-section {
    margin-bottom: 50px;
    padding: 0 10px;
}

.brand-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.brand-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-divider {
    flex: 1;
    height: 3px;
    /* Increased from 1px */
    background: var(--shop-border);
}

/* Product Slider Styles */
.product-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--shop-primary) var(--shop-bg);
}

.product-slider::-webkit-scrollbar {
    height: 6px;
}

.product-slider::-webkit-scrollbar-track {
    background: var(--shop-bg);
}

.product-slider::-webkit-scrollbar-thumb {
    background-color: var(--shop-primary);
    border-radius: 10px;
}

/* Ensure cards don't shrink */
.product-slider .shop-card {
    flex: 0 0 auto;
    width: 250px;
    /* Fixed width for slider items */
}


/* Brand Header Logo Styles */
.brand-header {
    justify-content: center;
    /* Center align */
    margin-bottom: 30px;
}

.brand-header-logo {
    filter: brightness(0) invert(1);
    /* Make logo white */
    transition: transform 0.3s;
}

.brand-header-logo:hover {
    transform: scale(1.1);
}

/* Ensure Center Alignment for Reverted Text Headers */
.brand-header h3 {
    margin: 0 20px;
    /* Symmetry */
    text-align: center;
}

/* Vertical Separators in Nav */
.nav-menu {
    gap: 0;
}

.nav-menu li {
    padding: 0 30px;
    border-right: 2px solid var(--shop-primary);
    /* Make separator visible and red */
    display: flex;
    align-items: center;
}

.nav-menu li:first-child {
    padding-left: 0;
}

.nav-menu li:last-child {
    border-right: none;
    padding-right: 0;
}

/* Sort Bar Styles */
.sort-bar {
    width: 100%;
    margin-bottom: 2px;
    border: 1px solid var(--shop-border);
    border-radius: 6px;
    background: transparent;
    padding: 8px 15px;
    box-shadow: none;
}

.sort-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#productCountText {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--shop-text-muted);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-options label {
    font-size: 0.85rem;
    color: var(--shop-text-muted);
    font-weight: 500;
}

.sort-options select {
    padding: 6px 12px;
    border: 1px solid var(--shop-border);
    border-radius: 4px;
    background: transparent;
    color: var(--shop-text);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.sort-options select:focus {
    border-color: var(--shop-primary);
}


/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--shop-border);
    border-radius: 4px;
    color: var(--shop-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
}

.pagination-btn.active {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.05);
    /* very subtle dark background for disabled */
}

/* LIGHT THEME OVERRIDES */
:root {
    --shop-bg: #ffffff;
    --shop-card-bg: #ffffff;
    --shop-text: #111827;
    --shop-text-muted: #6b7280;
    --shop-border: #e5e7eb;
    --shop-primary: #991b1b;
    --shop-accent: #b45309;
}

body {
    background-color: var(--shop-bg);
    color: var(--shop-text);
}

.top-bar {
    background-color: #f3f4f6;
    border-bottom: 1px solid var(--shop-border);
}

.top-links a:hover {
    color: var(--shop-primary);
}

.shop-logo-text {
    color: var(--shop-text);
}

.search-bar input {
    background: #ffffff;
    color: var(--shop-text);
    border: 2px solid var(--shop-primary);
    /* Make border visible and red */
}

.action-item i {
    color: var(--shop-text);
}

.nav-link:hover {
    color: var(--shop-primary);
}

.nav-link.active {
    color: var(--shop-primary);
}

.shop-card {
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shop-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--shop-primary);
}

.shop-title,
.shop-price {
    color: var(--shop-text);
}

.shop-brand {
    color: #000000;
}

.brand-header h3 {
    color: var(--shop-text);
}

.brand-header-logo {
    filter: brightness(0);
    /* Force black */
}

.shop-footer {
    background: #f9fafb;
    border-top: 1px solid var(--shop-border);
}

.footer-col h4 {
    color: var(--shop-text);
}

.social-icons a {
    color: var(--shop-text);
    border-color: var(--shop-border);
    background: white;
}

.newsletter-form input {
    background: white;
    color: var(--shop-text);
    border: 1px solid var(--shop-border);
}

#cartModal>div {
    background: white !important;
    color: var(--shop-text) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

#closeCart,
.flex-between {
    color: var(--shop-text) !important;
}

#customerForm input,
#customerForm textarea {
    background: white !important;
    color: var(--shop-text) !important;
    border: 1px solid #d1d5db !important;
}


/* Fix Brand Track Images for Light Theme */
.brand-track img {
    filter: brightness(0);
    /* Make black */
    opacity: 0.8;
}

.brand-track img:hover {
    filter: none;
    /* Show original color on hover */
    opacity: 1;
}

/* Shop Main Wrapper for Sidebar Layout */
.shop-main-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 2px;
    position: relative;
    /* Removed overflow: hidden; as it clips the absolute positioned dropdowns */
}

/* Horizontal Filters */
.horizontal-filter-container {
    width: 100%;
}

.horizontal-filters {
    display: flex;
    flex-wrap: nowrap;
    /* Force single row */
    gap: 15px;
    align-items: center;
    width: 100%;
    /* Take full width to distribute children */
}

.filter-dropdown {
    position: relative;
    display: inline-block;
    flex: 1;
    /* Allow equal width sharing */
    min-width: 0;
    /* Prevent overflow */
}

.filter-dropdown-btn {
    background: transparent;
    border: 1px solid var(--shop-border);
    padding: 0 10px;
    /* Reduced padding slightly to fit more options */
    height: 42px;
    /* Uniform height */
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--shop-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    /* Reduced gap securely */
    width: 100%;
    /* Take full width of parent */
    min-width: 80px;
    /* Let it shrink if needed */
    /* Uniform width */
    transition: border-color 0.2s, background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Handle very long labels gracefully */
}

.filter-dropdown-btn:hover {
    border-color: var(--shop-primary);
    background-color: rgba(0, 0, 0, 0.02);
}

:root body .filter-dropdown-btn {
    background: #ffffff;
}

:root body .filter-dropdown-btn:hover {
    background-color: #f9fafb;
}

.filter-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--shop-card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    border: 1px solid var(--shop-border);
    padding: 10px 15px;
    border-radius: 4px;
    border-top-left-radius: 0;
    /* Connects squarely with the button */
    border-top-right-radius: 0;
    margin-top: -1px;
    /* Overlap border with button */

    /* Horizontal expansion constraints */
    max-width: 90vw;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    /* Prevent option text from wrapping weirdly */
}

/* Center dropdown content relative to its parent button by default */
.filter-dropdown-content {
    left: 50%;
    transform: translateX(-50%);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.filter-dropdown:hover .filter-dropdown-content {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 8px 20px;
    align-items: center;
}

.filter-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown-content::-webkit-scrollbar-track {
    background: transparent;
}

.filter-dropdown-content::-webkit-scrollbar-thumb {
    background-color: var(--shop-border);
    border-radius: 10px;
}

/* Checkbox Style */
.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--shop-text-muted);
    transition: color 0.2s;
    padding: 4px 0;
}

.filter-option:hover {
    color: var(--shop-text);
}

.filter-option input[type="checkbox"] {
    accent-color: var(--shop-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
    border: 1px solid var(--shop-border);
}

.clear-filters-btn {
    background: transparent;
    border: none;
    color: var(--shop-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.clear-filters-btn:hover {
    color: var(--shop-primary);
}

/* Shop Content in Grid Mode */
.shop-content {
    flex: 1;
    width: 100%;
    /* Ensure it takes full remaining width */
}

/* Responsive Sidebar (Drawer stays same, fix layout) */
@media (max-width: 900px) {
    .shop-main-wrapper {
        flex-direction: column;
    }
}

/* Product Detail Modal */
.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-detail-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.product-detail-content {
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-detail-modal.active .product-detail-content {
    transform: translateY(0);
}

.product-detail-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--shop-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.product-detail-close:hover {
    color: var(--shop-text);
    background: rgba(255, 255, 255, 0.05);
    /* very subtle dark background for disabled */
}

/* Light theme close hover */
:root body .product-detail-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.product-detail-grid {
    display: flex;
    flex-wrap: wrap;
}

.product-detail-image-container {
    flex: 1 1 50%;
    min-width: 300px;
    padding: 40px;
    background: white;
    /* Always white for images to pop */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 0 0 12px;
    border-right: 1px solid var(--shop-border);
}

.product-detail-image {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
}

.product-detail-info {
    flex: 1 1 50%;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.pd-brand {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--shop-text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

:root .pd-brand {
    color: #000;
}

.pd-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--shop-text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.pd-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--shop-primary);
    margin: 25px 0;
}

.pd-attributes {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-attr-row {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid var(--shop-border);
    padding-bottom: 8px;
}

.pd-attr-label {
    width: 140px;
    color: var(--shop-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.pd-attr-value {
    flex: 1;
    color: var(--shop-text);
    font-size: 0.95rem;
}

.pd-action-area {
    margin-top: auto;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.pd-quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--shop-border);
    border-radius: 6px;
    overflow: hidden;
    height: 48px;
}

.pd-qty-btn {
    width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--shop-text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.pd-qty-btn:hover {
    background: rgba(122, 0, 0, 0.1);
    color: var(--shop-primary);
}

.pd-qty-input {
    width: 50px;
    height: 100%;
    background: transparent;
    border: none;
    border-left: 1px solid var(--shop-border);
    border-right: 1px solid var(--shop-border);
    color: var(--shop-text);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    appearance: textfield;
    -moz-appearance: textfield;
}

.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pd-add-to-cart-btn {
    flex: 1;
    height: 48px;
    background: var(--shop-card-bg);
    color: var(--shop-text);
    border: 1px solid var(--shop-border);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
    min-width: 200px;
}

.pd-add-to-cart-btn:hover {
    background: var(--shop-primary);
    color: white;
    border-color: var(--shop-primary);
}

/* Light Theme Overrides inner parts */
:root .pd-add-to-cart-btn {
    background: white;
    color: #121212;
}

:root .pd-add-to-cart-btn:hover {
    background: var(--shop-primary);
    color: white;
}

@media (max-width: 768px) {
    .product-detail-image-container {
        border-radius: 12px 12px 0 0;
        border-right: none;
        border-bottom: 1px solid var(--shop-border);
        padding: 20px;
    }

    .product-detail-info {
        padding: 20px;
    }

    .pd-title {
        font-size: 1.5rem;
    }

    .pd-price {
        font-size: 2rem;
        margin: 15px 0;
    }
}