/* --- 1. RESET & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --bg-body: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #888888;
    --accent: #FFD700;
    --border: #e5e5e5;
    --nav-bg: #1a1a1a;
    --nav-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-body);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.btn-hero,
.nav-link,
.filter-btn,
.mobile-links a {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 2. TICKER --- */
.ticker-wrap {
    background: var(--accent);
    color: #000;
    height: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker {
    white-space: nowrap;
    animation: ticker 25s infinite linear;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.ticker-item {
    display: inline-block;
    padding: 0 30px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- 3. NAVBAR --- */
/* --- 3. NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    color: var(--nav-text);
    height: auto;
    min-height: 80px;
    /* Base for larger logo */
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
    gap: 20px;
}

.nav-center {
    flex: 0 0 auto;
    /* Allow center to take necessary space */
    display: flex;
    justify-content: center;
    padding: 0 20px;
    /* Space from links */
}

.nav-logo {
    height: 90px;
    /* Bigger Desktop Logo */
    width: auto;
    object-fit: contain;
    cursor: pointer;
    display: block;
    transition: height 0.3s;
}

/* If Navbar exceeds 120px (e.g. very large logo), make it stacked/separate using this class manually or logically */
.navbar.separate-layout {
    flex-direction: column;
    padding: 20px;
}

.navbar.separate-layout .nav-center {
    order: 1;
    margin-bottom: 20px;
}

.navbar.separate-layout .nav-left,
.navbar.separate-layout .nav-right {
    order: 2;
    width: 100%;
    justify-content: center;
}


.desktop-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--nav-text);
    font-size: 13px;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent);
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* DROPDOWN */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    border: 1px solid var(--border);
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s;
}

.dropdown-content a {
    color: #000;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 12px;
    font-family: 'Oswald';
    letter-spacing: 1px;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background-color: #f4f4f4;
    padding-left: 25px;
}

.loading-text {
    color: #888;
    padding: 10px 20px;
    font-size: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SEARCH BAR --- */
/* --- SEARCH BAR --- */
.search-container {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 5px 10px;
}

.search-container input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 200px;
    font-family: 'Roboto', sans-serif;
}

.search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    padding: 0 5px;
}

/* SEARCH DROPDOWN */
.search-container {
    position: relative;
    /* Anchor for dropdown */
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 300px;
    /* Wider than input */
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    z-index: 1001;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
}

.search-dropdown.active {
    display: block;
}

/* Adjust for Mobile */
@media (max-width: 768px) {
    .search-dropdown {
        width: 100%;
        /* Matches full width container */
        min-width: auto;
        position: static;
        /* Flows inside the mobile container */
        box-shadow: none;
        border: none;
        border-top: 1px solid #eee;
    }
}

.sd-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
    transition: background 0.2s;
}

.sd-item:hover {
    background: #f5f5f5;
}

.sd-img {
    width: 40px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 2px;
}

.sd-info h4 {
    font-size: 13px;
    margin: 0;
    color: #333;
}

.sd-info p {
    font-size: 12px;
    margin: 2px 0 0;
    color: #666;
}

.sd-price {
    font-weight: bold;
    color: #000;
}

.sd-no-result {
    padding: 15px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* Mobile Search Toggle Button (Hidden on Desktop) */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--nav-text);
    cursor: pointer;
    margin-right: 15px;
}

@media (max-width: 768px) {

    /* Hide the full container by default on mobile */
    .search-container {
        display: none;
        position: absolute;
        top: 100%;
        /* Below navbar */
        left: 0;
        width: 100%;
        background: #fff;
        padding: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
        justify-content: center;
        border-bottom: 1px solid #111;
    }

    .search-container.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .search-container input {
        width: 100%;
        border-bottom: 1px solid #ddd;
        padding: 8px;
        font-size: 16px;
        /* Prevent zoom */
    }

    /* Show the toggle icon */
    .mobile-search-toggle {
        display: block;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.search-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

.nav-icon {
    color: var(--nav-text);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    margin-left: 5px;
    text-decoration: none;
}

#cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent);
    color: #000;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: 700;
}

#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--nav-text);
    font-size: 20px;
    cursor: pointer;
}

/* --- 4. HERO --- */
.hero {
    height: 85vh;
    width: 100%;
    position: relative;
    background: url('https://images.unsplash.com/photo-1552346154-21d32810aba3?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 20px;
}

.hero h3 {
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero h1 {
    font-size: 80px;
    line-height: 0.9;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.btn-hero {
    background: #fff;
    color: #000;
    padding: 16px 40px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}

.btn-hero:hover {
    background: var(--accent);
    color: #000;
}

/* --- 5. SHOP --- */
.filter-container {
    padding: 40px 50px 10px;
    border-bottom: 1px solid var(--border);
}

.filter-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.brand-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 20px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.shop-section {
    padding: 50px;
    min-height: 60vh;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
}

.product-card {
    cursor: pointer;
    position: relative;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f4f4f4;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 4px 8px;
    font-family: 'Oswald';
}

.card-info h3 {
    font-size: 15px;
    margin-bottom: 5px;
    font-family: 'Roboto';
    font-weight: 500;
    text-transform: uppercase;
    color: #000;
}

.card-brand {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-price {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 13px;
}

.sale-price {
    color: #d93025;
    font-weight: 700;
    font-size: 15px;
}

/* --- 6. PRODUCT PAGE --- */
.product-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-frame {
    width: 100%;
    aspect-ratio: 4/5;
    background: #f4f4f4;
    position: relative;
    overflow: hidden;
}

#main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    font-family: 'Oswald';
    font-size: 12px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0.6;
    transition: 0.2s;
}

.thumb-img.active,
.thumb-img:hover {
    border-color: #000;
    opacity: 1;
}

.product-info {
    padding-top: 20px;
}

.brand-name {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 15px;
    color: #000;
}

.product-price {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 30px 0;
}

.size-section label {
    font-size: 12px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    color: #000;
}

.size-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #ddd;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: 'Oswald';
    transition: 0.2s;
}

.size-btn:hover {
    border-color: #000;
}

.size-btn.selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-add {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 20px;
    font-family: 'Oswald';
    font-size: 16px;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-add:hover {
    background: #333;
}

.btn-add:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.error-text {
    color: red;
    font-size: 12px;
    margin-top: 10px;
    font-weight: bold;
}

.product-desc p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* --- REVIEWS --- */
.reviews-section {
    margin-top: 40px;
}

.reviews-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    font-family: 'Oswald';
}

.review-card {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.review-user {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.review-date {
    font-size: 11px;
    color: #999;
}

.review-stars {
    color: #f39c12;
    font-size: 12px;
    margin-bottom: 8px;
}

.review-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.star-rating-input {
    display: flex;
    gap: 5px;
    cursor: pointer;
    font-size: 18px;
    color: #ddd;
    margin-bottom: 10px;
}

.star-rating-input i.active {
    color: #f39c12;
    font-weight: 900;
}

#review-comment {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-family: 'Roboto';
    font-size: 13px;
    margin-top: 10px;
}

.review-delete-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    margin-left: 10px;
}

.review-delete-btn:hover {
    color: #d93025;
}

/* --- CART SIDEBAR (REDESIGNED) --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: 0.4s;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    margin: 0;
    font-size: 20px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item img {
    width: 90px;
    height: 110px;
    object-fit: cover;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.item-details p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* New Quantity Controls */
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    width: fit-content;
    margin-top: 10px;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #f4f4f4;
}

.qty-val {
    font-size: 13px;
    font-weight: bold;
    width: 25px;
    text-align: center;
}

.remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
}

.remove-btn:hover {
    color: #d93025;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.tax-note {
    font-size: 11px;
    color: #999;
    text-align: right;
    display: block;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 18px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
}

/* --- CHECKOUT MODAL STYLING --- */
.checkout-summary {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    text-align: right;
}

#coupon-section {
    display: block !important;
    text-align: left;
    /* Reset alignment */
    margin-top: 15px;
}

#coupon-input {
    width: 100%;
    background: #fff;
    /* Ensure white background */
    color: #000;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    color: #000;
}

.saved-addr-box {
    border: 1px solid #000;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    cursor: pointer;
    margin-bottom: 15px;
}

/* --- MOBILE MENU --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    padding: 30px;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.mobile-links a {
    display: block;
    font-size: 24px;
    font-family: 'Oswald';
    color: #000;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* --- FOOTER --- */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 80px 50px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    width: 250px;
    margin-bottom: 20px;
}

footer h4 {
    font-size: 12px;
    margin-bottom: 25px;
    color: #666;
}

footer a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.social-icons {
    display: flex;
    gap: 20px;
    font-size: 20px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    font-size: 11px;
    color: #666;
    text-align: center;
}

/* --- GLOBAL UI (Buttons/Toasts) --- */
.btn-black {
    background: #000;
    color: #fff;
    padding: 14px;
    border: none;
    font-family: 'Oswald';
    cursor: pointer;
    font-size: 13px;
    width: 100%;
    text-transform: uppercase;
    transition: 0.2s;
}

.btn-black:hover {
    background: #333;
    transform: translateY(-1px);
}

.small-btn {
    width: auto;
    padding: 12px 30px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #000;
    padding: 10px 25px;
    cursor: pointer;
    font-family: 'Oswald';
    font-size: 12px;
    transition: 0.2s;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Oswald';
    font-size: 13px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.toast i {
    color: #2ecc71;
    font-size: 16px;
}

.toast.error {
    background: #d93025;
}

.toast.error i {
    color: #fff;
}

/* --- MODALS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.modal-box {
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border-radius: 2px;
    max-height: 90vh;
    overflow-y: auto;
}

.address-option {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #fff;
    text-align: left;
    transition: 0.2s;
}

.address-option:hover {
    background: #f9f9f9;
}

.address-option.selected {
    border: 2px solid #000;
    background: #fff;
}

.simple-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-family: 'Roboto';
    font-size: 13px;
    margin-bottom: 10px;
    outline: none;
}

.simple-input:focus {
    border-color: #000;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
        height: 60px;
    }

    .desktop-links,
    .nav-right .nav-icon:not(.cart-icon) {
        display: none;
    }

    #mobile-menu-btn {
        display: block;
        font-size: 20px;
    }

    .nav-logo {
        height: 35px;
    }

    /* Force 2 Columns on Mobile (Myntra Style) */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    /* Smaller Cards for Mobile */
    .card-details {
        padding: 8px;
    }

    .card-title {
        font-size: 12px;
    }

    .card-price {
        font-size: 12px;
    }

    .card-image-box .add-btn {
        display: none;
    }

    /* Hide hover button on mobile */

    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 32px;
    }

    .product-container {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .product-gallery {
        width: 100%;
    }

    .main-image-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 4/5;
    }

    #main-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-info {
        padding-top: 0;
        width: 100%;
    }

    .product-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .product-price {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .shop-section {
        padding: 30px 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .cart-sidebar {
        width: 85%;
    }

    .cart-overlay {
        z-index: 1500;
    }

    #toast-container {
        width: 90%;
    }
}

/* --- EXISTING CSS ... --- */

/* ... (Keep all your existing CSS) ... */

/* --- LOAD MORE BUTTON --- */
.load-more-container {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    grid-column: 1 / -1;
    /* Ensures it spans full width in grid */
}

.btn-load-more {
    background: transparent;
    border: 1px solid #000;
    color: #000;
    padding: 12px 40px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}

.btn-load-more:hover {
    background: #000;
    color: #fff;
}

.btn-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

/* --- PRODUCT GRID & CARDS (ADDED FIX) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: #f9f9f9;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .card-image-box img {
    transform: scale(1.05);
}

.card-image-box .add-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-family: 'Oswald';
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.product-card:hover .add-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-details {
    padding: 12px;
}

.card-brand {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.card-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-price {
    font-size: 14px;
    font-weight: 600;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 5px 15px;
        height: 80px;
        min-height: 0;
        flex-direction: row !important;
        align-items: center;
    }

    /* Swap to Short Logo on Mobile */
    .nav-logo {
        content: url('../assets/logo_short.png');
        height: 60px;
        width: auto;
        object-fit: contain;
    }

    .nav-center {
        padding: 0;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .desktop-links,
    .nav-right .nav-icon:not(.cart-icon) {
        display: none;
    }

    #mobile-menu-btn {
        display: block;
        font-size: 24px;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    .card-details {
        padding: 8px;
    }

    .card-title {
        font-size: 11px;
    }

    .card-price {
        font-size: 12px;
    }

    /* Hide hover button on mobile */
    .card-image-box .add-btn {
        display: none;
    }
}