/* Reset & Base */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* .product-page-wrapper */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #9e9e9e0a;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background-color: #ffffff;
    /* Removed box-shadow as per user request */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
    /* Reduced specific height for "fine" look */
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    /* Extremely minimal, or use #f5f5f5 for very subtle separation if needed later */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo {
    font-size: 20px;
    /* Slightly smaller */
    font-weight: 600;
    /* Less bold */
    color: #333;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* Desktop Navigation */
.desktop-nav {
    flex-grow: 1;
    /* Takes up remaining space */
    display: flex;
    justify-content: center;
    /* Centers the menu items */
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    position: relative;
}

.desktop-nav a:hover {
    color: #000;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Search Bar Styles */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background: #fff;
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.desktop-search {
    max-width: 520px;
    width: 100%;
    margin: 0 40px;
}

.search-icon {
    color: #999;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
}

.category-filter {
    border: none;
    background: transparent;
    font-size: 13px;
    font-family: 'Outfit', sans-serif;
    color: #333;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    padding: 2px 4px;
    width: 90px;
    min-width: 90px;
    flex-shrink: 0;
    text-overflow: ellipsis;
}

.category-filter:hover {
    color: #000;
}

.category-filter option {
    background: #fff;
    color: #333;
    padding: 8px;
}

.search-separator {
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    margin: 0 10px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    color: #333;
    outline: none;
    padding: 0;
    min-width: 0;
}

.search-input::placeholder {
    color: #aaa;
}

.mobile-search {
    width: 100%;
    margin-bottom: 20px;
    background: #f5f5f5;
    border-radius: 4px;
}

.mobile-search .category-filter,
.mobile-search .search-separator {
    display: none;
}

.mobile-search:focus-within {
    background: #fff;
}

/* Category Icons Nav (Desktop) */
.category-nav-bar {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;
    padding: 15px 0;
    margin-top: 60px;
    /* Offset for fixed header */
}

.category-scroll-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.category-scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #666;
    transition: 0.3s;
    min-width: 80px;
}

.category-icon-item:hover,
.category-icon-item.active {
    color: #000;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.3s;
}

.category-icon-item:hover .icon-circle,
.category-icon-item.active .icon-circle {
    background: #000;
    color: #fff;
}

.category-icon-item span {
    font-size: 13px;
    font-weight: 500;
}

/* Mobile Permanent Search Bar */
.mobile-search-bar {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    top: 60px;
    /* Just below header (60px height) */
    left: 0;
    right: 0;
    width: auto;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    z-index: 999;
    /* Below header (1000) */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mobile-permanent-search {
    width: 100%;
    background: #f8f8f8;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    padding: 8px 14px;
}

.mobile-permanent-search:focus-within {
    background: #fff;
    border-color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}


/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 15px;
    /* Space between icons and hamburger on mobile */
}

.icon-btn {
    font-size: 18px;
    color: #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: #e74c3c;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Animation */
@keyframes cartBump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.cart-bump {
    animation: cartBump 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #000 !important;
    /* Flash black */
}



/* Mobile Actions (Hamburger) */
.mobile-actions {
    display: none;
    /* Hidden on desktop */
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

/* Mobile Sidebar */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    /* Slide from Left */
    /* right: auto; */
    width: 280px;
    height: 100%;
    background: #fff;
    /* Box shadow moved to .active to prevent ghost shadow */
    transform: translateX(-100%);
    /* Start hidden left */
    visibility: hidden;
    /* Ensure completely hidden */
    transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s;
    /* Delay visibility hidden */
    z-index: 2000;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-sidebar.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease-in-out, visibility 0s linear 0s;
    /* Show immediately */
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.sidebar-header .logo {
    font-size: 20px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.mobile-links li {
    margin-bottom: 12px;
}

.mobile-links a {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: block;
}

.mobile-links a:hover {
    color: #e74c3c;
    /* Accent color on hover */
    padding-left: 5px;
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
}

/* =========================================
   CART SIDEBAR STYLES
   ========================================= */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    /* Box shadow moved to .active */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 3000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 5px;
    transition: 0.2s;
}

.close-cart:hover {
    color: #e74c3c;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: #f6f7f8;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #e74c3c;
    margin: 0 0 8px 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #666;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #f5f5f5;
    border-color: #333;
    color: #333;
}

.qty {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
}

.remove-item:hover {
    color: #e74c3c;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-cart p {
    font-size: 16px;
    margin: 0;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.total-price {
    color: #e74c3c;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================
   AUTHENTICATION MODAL STYLES
   ========================================= */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 450px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.auth-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.close-auth {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    transition: 0.2s;
}

.close-auth:hover {
    color: #333;
}

.auth-body {
    padding: 25px;
}

.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-input-wrapper i {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 14px;
}

.phone-input-wrapper input {
    padding-left: 40px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    color: #333;
    transition: 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.alert {
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
}

.alert.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.alert.info {
    background: #e8f4fd;
    color: #0366d6;
    border: 1px solid #c8e1ff;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover:not(:disabled) {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.link-btn {
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.link-btn:hover {
    color: #333;
    text-decoration: underline;
}

#code-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 700;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .desktop-search {
        display: none;
    }

    .category-nav-bar {
        display: block;
        padding: 10px 0;
        /* Reduce vertical padding */
    }

    .category-scroll-wrapper {
        justify-content: flex-start;
        /* Align start for scrolling */
        gap: 15px;
        /* Reduce gap */
        padding: 0 15px;
        /* Add side padding for scroll start/end */
    }

    .category-icon-item {
        min-width: 70px;
        /* Slightly smaller min-width */
    }

    .icon-circle {
        width: 45px;
        /* Comfortable touch target */
        height: 45px;
        font-size: 18px;
    }

    .category-icon-item span {
        font-size: 11px;
        /* Smaller text */
        text-align: center;
        white-space: nowrap;
    }

    .mobile-actions {
        display: block;
        margin-left: 10px;
    }

    .header-container {
        padding: 0 15px;
        /* Ensure Logo Left, Icons+Menu Right */
    }

    /* Move icons to the right to sit with hamburger */
    .header-icons {
        margin-left: auto;
        /* Push to right */
        margin-right: 0;
        gap: 20px;
    }

    /* Hide mobile search bar as requested */
    .mobile-search-bar {
        display: none;
    }

    /* Adjust main content padding for mobile search bar */
    .main-content {
        padding-top: 80px;
        /* Reverted to 80px since mobile search is removed */
    }
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.main-content {
    padding-top: 80px;
    /* Compensate for fixed navbar (60px) + extra space */
}

/* =========================================
   PRODUCT GRID
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 50px;

}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.3s;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square images */
    position: relative;
    background: #f6f7f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-link {
    display: block;
    height: 100%;
    color: inherit;
}

/* Badges */
.new-badge,
.out-of-stock-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
}

.new-badge {
    background: #333;
}

.out-of-stock-badge {
    background: #e74c3c;
}

/* Floating Add Button */
.add-to-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
    opacity: 0;
    transform: translateY(10px);
    z-index: 5;
    font-size: 16px;
}

.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.add-to-cart-btn:hover:not(:disabled) {
    background: #333;
    color: #fff;
    border-color: #333;
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Skeleton loading state */
.product-image.loading {
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Hide image while loading */
.product-image.loading img {
    opacity: 0;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Special Promo Card */
.special-card {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.special-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.special-card-content {
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 30px 20px;
}

.special-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.special-card-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.special-card-content p {
    font-size: 16px;
    margin: 0 0 20px 0;
    opacity: 0.95;
}

.special-btn {
    background: #fff;
    color: #e74c3c;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.special-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 15px;
}

.product-info h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.product-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.product-info .price {
    font-size: 15px;
    font-weight: 700;
    color: #e74c3c;
    /* Accent color */
    margin-bottom: 0;
}

.add-btn {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    color: #333;
}

.add-btn:hover {
    background-color: #e74c3c;
    color: white;
}

/* Mobile Product Layout */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Mobile */
        gap: 12px;
        padding-top: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .product-card {
        flex-direction: column;
        height: 100%;
    }

    .product-image {
        width: 100%;
        height: auto;
        /* Let aspect-ratio handle it */
    }

    .product-info {
        padding: 10px;
    }

    /* Refine mobile text */
    .product-info h2 {
        font-size: 13px;
        margin-bottom: 4px;
        /* Line Clamp for title */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 34px;
        /* Fixed height for consistency */
    }

    .product-info .price {
        font-size: 14px;
    }

    /* Always show add button on mobile */
    .add-to-cart-btn {
        opacity: 1;
        transform: translateY(0);
        width: 32px;
        height: 32px;
        font-size: 14px;
        bottom: 8px;
        right: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

/* =========================================
   PAGINATION STYLES
   ========================================= */
.pagination-wrapper {
    margin-top: 60px;
    margin-bottom: 40px;
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-btn:hover:not(.disabled) {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-number {
    min-width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0 8px;
}

.page-number:hover:not(.active) {
    background: #fff;
    border-color: #e74c3c;
    color: #e74c3c;
}

.page-number.active {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    cursor: default;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.pagination-info {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    font-weight: 500;
}

/* Mobile Pagination */
@media (max-width: 768px) {
    .pagination-wrapper {
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .pagination-container {
        gap: 8px;
    }

    .pagination-btn {
        width: 36px;
        height: 36px;
    }

    .page-number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .pagination-info {
        font-size: 12px;
        padding: 0 10px;
    }
}

/* =========================================
   SIMPLE FOOTER STYLES
   ========================================= */
.simple-footer {
    background-color: #ffffff;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: 60px;
    color: #333;
    font-family: 'Outfit', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #666;
    font-size: 14px;
    max-width: 300px;
    margin: 0;
}

.footer-links h4,
.footer-socials h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: #e74c3c;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #f9f9f9;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 30px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
        /* Center text */
    }

    .social-icons {
        justify-content: center;
        /* Center icons */
    }
}

/* =========================================
   PRODUCT PAGE STYLES (Minimalist)
   ========================================= */

.product-page-wrapper {
    padding-top: 20px;
    padding-bottom: 60px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    margin-bottom: 60px;
    flex-wrap: nowrap;
    /* Prevent stacking */
    overflow: hidden;
}

.breadcrumb a:hover {
    color: #000;
}

.breadcrumb a {
    white-space: nowrap;
    /* Keep links one line */
}

.breadcrumb .separator {
    color: #ccc;
    font-size: 11px;
    flex-shrink: 0;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}


/* Grid */
.product-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

@media (max-width: 900px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Gallery */
.main-image-frame {
    width: 100%;
    aspect-ratio: 1;
    background: #f9f9f9;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.badge-featured {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000;
    color: #fff;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 600;
    z-index: 10;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background: #f9f9f9;
    transition: 0.2s;
}

.thumb.active {
    border-color: #000;
}

.thumb:hover {
    transform: translateY(-2px);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details */
.product-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.product-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-brand {
    font-weight: 600;
    color: #000;
}

.product-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.stock-status {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-status.in-stock {
    color: #10b981;
}

.stock-status.out-stock {
    color: #ef4444;
}

.product-description-short {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Specs */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #fafafa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.spec-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Actions */
.add-to-cart-btn-large {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 40px;
}

.add-to-cart-btn-large:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn-large .btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 600;
}

.add-to-cart-btn-large .price-small {
    opacity: 0.7;
    font-weight: 400;
    font-size: 14px;
}

.add-to-cart-btn-large .btn-icon {
    font-size: 20px;
}

.add-to-cart-btn-large.disabled {
    background: #ccc;
    cursor: not-allowed;
    justify-content: center;
}

.product-full-desc h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
    display: inline-block;
}

.related-products-section {
    margin-top: 60px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Mobile Product Page Refinements */
@media (max-width: 768px) {
    .category-nav-bar {
        display: none;
    }

    .product-page-wrapper {
        padding-top: 80px;
        /* Ensure generic clearance for fixed header */
        padding-bottom: 40px;
    }

    .product-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .price {
        font-size: 22px;
    }

    .product-main-grid {
        gap: 20px;
        margin-bottom: 40px;
    }

    .main-image-frame {
        border-radius: 4px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .add-to-cart-btn-large {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-bottom: 0;
        border-radius: 0;
        padding: 15px 20px;
        z-index: 1000;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    }

    /* Ensure content isn't hidden behind sticky button */
    .product-page-wrapper {
        padding-bottom: 80px;
    }

    .add-to-cart-btn-large .btn-content {
        font-size: 16px;
    }

    .add-to-cart-btn-large .price-small {
        font-size: 13px;
    }
}

/* =========================================
   PRODUCTS PAGE - SIDEBAR + GRID LAYOUT
   ========================================= */

.products-page-wrapper {
    background: #ffffff;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
    justify-content: space-between;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.filter-toggle-btn:hover {
    background: #222;
}

.results-count {
    font-size: 14px;
    color: #666;
}

/* Main Container */
.products-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding-top: 30px;
    position: relative;
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* Sidebar */
.products-sidebar {
    background: white;
    border-radius: 4px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.sidebar-content {
    padding: 20px;
}

/* Category Items */
.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.2s;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.category-item i {
    font-size: 16px;
    color: #666;
    width: 20px;
    text-align: center;
}

.category-item span:first-of-type {
    flex: 1;
}

.category-item .count {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

.category-item:hover {
    background: #ffffff;
    color: var(--primary);
}

.category-item.active {
    background: var(--primary);
    color: white;
}

.category-item.active i,
.category-item.active .count {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* Subcategories */
.subcategories {
    margin-left: 32px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.category-item.child {
    font-size: 13px;
    padding: 10px 12px;
}

/* Filter Section */
.filter-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.filter-section h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Main Content */
.products-main {
    min-height: 500px;
}

/* Products Header */
.products-header {
    background: white;
    padding: 20px 25px;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb i {
    font-size: 10px;
}

.products-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-info {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Empty State */
.empty-state {
    background: white;
    padding: 60px 40px;
    border-radius: 4px;
    text-align: center;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    color: #666;
    margin-bottom: 25px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* =========================================
   RESPONSIVE - PRODUCTS PAGE
   ========================================= */

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }

    .products-container {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .products-container {
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    /* Mobile Sidebar (Drawer) */
    .products-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 999;
        border-radius: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .products-sidebar.active {
        left: 0;
    }

    .sidebar-close {
        display: block;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .products-header {
        padding: 15px 20px;
    }

    .breadcrumb {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hide category-nav-bar on products page */
.products-page-wrapper~.category-nav-bar,
body:has(.products-page-wrapper) .category-nav-bar {
    display: none !important;
}

/* Loading Indicator for Livewire */
.loading-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.opacity-50 {
    opacity: 0.5;
    transition: opacity 0.2s;
}



/* Floating WhatsApp Button */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 900;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-sticky:hover {
    transform: scale(1.05) translateY(-5px);
    background: #20ba5a;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-sticky i {
    font-size: 20px;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* .mobile-discovery-section */
@media (max-width: 768px) {
    .whatsapp-sticky {
        bottom: 20px;
        right: 20px;
        padding: 0;
        width: 50px;
        height: 50px;
        justify-content: center;
    }

    .whatsapp-sticky span {
        display: none;
    }
}

/* Highlighted Products Section (Les Plus Demand�s) */
.highlight-section {
    margin: 60px auto;
    padding: 0 20px;
    max-width: 1210px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-left: 6px solid #000;
    padding-left: 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    line-height: 1;
    margin: 0;
    color: #000;
}

.section-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
    font-weight: 500;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    position: relative;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid #000;
}

.feature-card:hover {
    transform: translate(-8px, -8px);
    box-shadow: 12px 12px 0px #000;
}

.feature-card .image-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f1f5f9;
    border-bottom: 3px solid #000;
}

.feature-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .image-wrapper img {
    transform: scale(1.15);
}

.feature-card .card-info {
    padding: 20px;
    background: #fff;
}

.feature-card .category-name {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    background: #f1f5f9;
    padding: 2px 8px;
    display: inline-block;
    margin-bottom: 10px;
}

.feature-card .product-name {
    font-size: 18px;
    font-weight: 900;
    color: #000;
    margin-bottom: 15px;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.feature-card .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.feature-card .price {
    font-size: 20px;
    font-weight: 900;
    color: #000;
}

@media (max-width: 1024px) {
    .highlight-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .section-title {
        font-size: 26px;
    }

    .highlight-section {
        margin: 40px auto;
        padding: 0 15px;
    }

    .feature-card .card-info {
        padding: 12px;
    }

    .feature-card .product-name {
        font-size: 14px;
        height: 40px;
    }

    .feature-card:hover {
        transform: translate(-4px, -4px);
        box-shadow: 6px 6px 0px #000;
    }
}

/* =========================================
   WELCOME PAGE SPECIFIC STYLES
   ========================================= */

/* Hero Slider Styles */
@keyframes meshGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(3deg);
    }

    50% {
        transform: translateY(-15px) rotate(4deg);
    }

    100% {
        transform: translateY(0px) rotate(3deg);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(15, 23, 42, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    height: 420px;
    overflow: hidden;
    border-radius: 8px;
    /* Reduced radius */
    background: linear-gradient(-45deg, #f8fafc, #e2e8f0, #f1f5f9, #cbd5e1);
    background-size: 400% 400%;
    animation: meshGradient 15s ease infinite;
    box-shadow: none;
    /* Removed shadow */
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 80px;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

/* Staggered entrance animations */
.hero-slide.active .hero-badge {
    animation: fadeInUp 0.6s both 0.2s;
}

.hero-slide.active .hero-title {
    animation: fadeInUp 0.6s both 0.3s;
}

.hero-slide.active .hero-description {
    animation: fadeInUp 0.6s both 0.4s;
}

.hero-slide.active .hero-actions {
    animation: fadeInUp 0.6s both 0.5s;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 18px;
    color: #64748b;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.hero-btn {
    padding: 16px 40px;
    background: #0f172a;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulseGlow 3s infinite;
}

.hero-btn:hover {
    transform: scale(1.05) translateY(-3px);
    background: #000;
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.5);
}

.hero-image {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
    border: 8px solid white;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
}

.slider-nav:hover {
    background: #0f172a;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 30px;
}

.slider-nav.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 80px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 6px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.1);
    cursor: pointer;
    transition: all 0.4s;
}

.dot.active {
    background: #0f172a;
    width: 40px;
}

@media (max-width: 768px) {
    .hero-slider-container {
        min-height: 480px;
        margin: 77px 0px 30px;
        border-radius: 0;
        /* Full width mobile feel */
        background-size: 600% 600%;
    }

    .hero-content {
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        text-align: center;
        justify-content: center;
    }

    .hero-text {
        max-width: 100%;
        order: 2;
    }

    .hero-badge {
        font-size: 10px;
        margin-bottom: 12px;
        padding: 4px 12px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-btn {
        padding: 14px 40px;
        font-size: 14px;
        width: 100%;
        max-width: 220px;
    }

    .hero-image {
        width: 240px;
        height: 240px;
        order: 1;
        margin: 0 auto 5px;
        border: 6px solid #fff;
    }

    .slider-nav {
        display: none;
    }

    .slider-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 25px;
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

    .dot.active {
        width: 24px;
    }
}

/* highlight-scroll-title */
@media (min-width: 769px) {
    .mobile-discovery-section {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-discovery-section {
        display: block;
        /* margin: 20px 15px 40px; */
    }
}

.discovery-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns for 2 Cards */
    gap: 8px;
    /* Reduced gap */
}

.discovery-card-container {
    background: #fff;
    border-radius: 0;
    /* Boxy look */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 10px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.discovery-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-align: center;
}

/* Marquee / Scrolling Rows */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    /* Height dynamic based on content aspect ratio */
    position: relative;
}

.marquee-row-item {
    display: flex;
    width: 100%;
    /* Constrained to parent */
    gap: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    /* Mask content */
}

.marquee-track {
    display: flex;
    gap: 8px;
    width: max-content;
    /* Allow track to be long */
}

/* Row 1 Animation: 3s pause, slide group of 2 */
/* 5 steps of 20% each (since 10 items/2 = 5 groups) */
/* Total cycle: 5 * (3s wait + 0.6s slide) = 18s */
.marquee-track.row-1 {
    animation: stepScroll1 18s linear infinite;
}

/* Row 2 Animation: 4s pause */
/* Total cycle: 5 * (4s wait + 0.6s slide) = 23s */
.marquee-track.row-2 {
    animation: stepScroll2 23s linear infinite;
}

@keyframes stepScroll1 {

    0%,
    16% {
        transform: translateX(0);
    }

    20%,
    36% {
        transform: translateX(-10%);
    }

    /* -10% of track (20 items) = 2 items */
    40%,
    56% {
        transform: translateX(-20%);
    }

    60%,
    76% {
        transform: translateX(-30%);
    }

    80%,
    96% {
        transform: translateX(-40%);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes stepScroll2 {

    0%,
    17% {
        transform: translateX(0);
    }

    /* Slightly longer wait ratio */
    20%,
    37% {
        transform: translateX(-10%);
    }

    40%,
    57% {
        transform: translateX(-20%);
    }

    60%,
    77% {
        transform: translateX(-30%);
    }

    80%,
    97% {
        transform: translateX(-40%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.discovery-card-limit {
    /* Calculated to perfectly match the static grid's 1fr sizing logic */
    /* Formula: (50vw - 50px gap/margin logic) approx */
    width: calc(25vw - 25px);
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1/1;
}

.discovery-card-limit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Static Grid */
.static-grid-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.static-card-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f8f8f8;
    position: relative;
}

.static-card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.static-price-tag {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #0f172a;
}


/* Animation Keyframes - Softer */
@keyframes softPopIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Minimal Scroll Section */
.highlight-scroll-container {
    padding: 24px 0 16px;
    overflow: visible;
    text-align: center;
}

.highlight-scroll-title {
    /* padding: 0 20px; */
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1e293b;
    letter-spacing: -0.5px;
    /* text-align: center; */
}

.highlight-scroll-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 20px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: center;
    /* Centers items */
}

.highlight-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.mini-product-card {
    flex: 0 0 auto;
    width: 120px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 10px -1px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    text-decoration: none;
    opacity: 0;
    /* Start hidden for animation */
    animation: softPopIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.mini-product-card:active {
    transform: scale(0.98);
}

.mini-product-image {
    width: 100%;
    height: 120px;
    /* Square aspect ratio */
    object-fit: cover;
    display: block;
}

.mini-price-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}