/* ===================================================================
 * BINGO E-Commerce Modern Premium Styles
 * ------------------------------------------------------------------- */

/* ===================================================================
 * 1. Base Styles
 * ------------------------------------------------------------------- */
 :root {
    /* Color Variables */
    --color-primary: #0a0a0a;
    --color-secondary: #c9a980;
    --color-body: #4a4a4a;
    --color-dark: #111;
    --color-light: #f8f8f8;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-border: #e5e5e5;
    
    /* Font Variables */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Shadow Variables */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Transition Variables */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Sizes */
    --header-height: 80px;
    --footer-spacing: 100px;
    --section-spacing: 100px;
    --container-padding: 30px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Reset Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-body);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Updated Image Handling */
img {
    max-width: 100%;
    height: auto;
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-base), background-color var(--transition-base);
}

a:hover {
    color: var(--color-secondary);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
}

button, input[type="submit"] {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.full-width {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

/* ===================================================================
 * 2. Typography
 * ------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-dark);
}

h1, h2 {
    font-family: var(--font-heading);
}

h1 {
    font-size: 3.75rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
}

.subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* ===================================================================
 * 3. Buttons & Form Elements
 * ------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 18px 38px;
    font-size: 1rem;
}

.btn-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-dark:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-light:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Form Elements */
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    transition: border-color var(--transition-base);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    position: relative;
    padding-left: 30px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: var(--color-light);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ===================================================================
 * 4. Header & Navigation
 * ------------------------------------------------------------------- */

/* Announcement Bar */
.announcement-bar {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 10px 0;
    font-size: 0.875rem;
}

.announcement-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-links {
    display: flex;
    align-items: center;
}

.announcement-links a {
    color: var(--color-white);
    margin-left: 20px;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.announcement-links a:hover {
    opacity: 1;
}

.language-selector {
    background-color: transparent;
    color: var(--color-white);
    border: none;
    margin-left: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' fill='none'%3E%3Cpath fill='%23fff' d='M6 6 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 16px;
}

/* Header */
header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

header.hide {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo h1 {
    font-size: 2rem;
    margin: 0;
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--color-primary);
}

.logo a {
    display: block;
}

/* Main Navigation */
nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    align-items: center;
}

.menu li {
    position: relative;
    margin: 0 15px;
}

.menu li a {
    display: block;
    padding: 8px 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-base);
}

.menu li a:hover::after,
.menu li a.active::after {
    width: 100%;
}

.menu li a i {
    font-size: 0.75rem;
    margin-left: 5px;
}

/* Mega Menu */
.dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mega-menu-column h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.mega-menu-column ul li {
    margin: 0 0 12px;
}

.mega-menu-column ul li a {
    padding: 0;
    font-weight: 400;
    font-size: 0.9375rem;
}

.mega-menu-column ul li a:hover {
    color: var(--color-secondary);
}

.mega-menu-column ul li a::after {
    display: none;
}

.featured-collection {
    position: relative;
}

.featured-collection-img {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
}

.featured-collection-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--color-white);
}

.featured-collection-overlay h3 {
    color: var(--color-white);
    margin-bottom: 5px;
}

.featured-collection-overlay p {
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
}

.header-actions > * {
    margin-left: 25px;
    position: relative;
}

.header-actions i {
    font-size: 1.125rem;
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.header-actions i:hover {
    color: var(--color-secondary);
}

.cart-count, .wishlist-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

/* Search Dropdown */
.search-container {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: -150px;
    width: 400px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 20px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.search-container:hover .search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.search-form {
    position: relative;
    margin-bottom: 20px;
}

.search-form input {
    padding-right: 50px;
}

.search-form button {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 1rem;
}

.quick-links h4 {
    font-size: 0.875rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags a {
    font-size: 0.75rem;
    padding: 5px 10px;
    background-color: var(--color-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.tags a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Cart Dropdown */
.cart-container {
    position: relative;
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: -20px;
    width: 380px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 20px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.cart-container:hover .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

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

.cart-header h3 {
    font-size: 1.125rem;
    margin: 0;
}

.close-cart {
    font-size: 1.125rem;
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.close-cart:hover {
    color: var(--color-secondary);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    text-align: center;
}

.cart-empty i {
    font-size: 3rem;
    color: var(--color-border);
    margin-bottom: 20px;
}

.cart-empty p {
    margin-bottom: 20px;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-footer {
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.125rem;
}

.cart-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: var(--color-white);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    transition: right var(--transition-base);
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-container {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-close {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.mobile-search {
    margin-bottom: 20px;
}

.mobile-nav {
    margin-bottom: 30px;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
}

.mobile-nav ul li {
    margin: 0;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav ul li a {
    padding: 15px 0;
    display: block;
    font-weight: 600;
}

.mobile-nav ul li a.active {
    color: var(--color-secondary);
}

.has-submenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.has-submenu > a {
    flex: 1;
}

.submenu-toggle {
    width: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 0.75rem;
    transition: all var(--transition-base);
}

.submenu-toggle.active {
    transform: rotate(180deg);
}

.mobile-submenu {
    width: 100%;
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-base);
}

.mobile-submenu.active {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 10px;
}

.mobile-submenu li {
    border-bottom: none !important;
}

.mobile-submenu li a {
    padding: 10px 0;
    font-weight: 400;
    font-size: 0.9375rem;
    opacity: 0.8;
}

.mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 30px;
}

.mobile-footer {
    margin-top: auto;
    text-align: center;
}

.mobile-footer .social-icons {
    margin-bottom: 20px;
}

.mobile-footer p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

/* ===================================================================
 * 5. Hero Section
 * ------------------------------------------------------------------- */
.hero {
    position: relative;
    margin-bottom: var(--section-spacing);
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.hero-image {
    position: relative;
    height: 700px;
    background-color: #f5f5f5; /* Background while image loads */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 600px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(50px);
    opacity: 0;
    animation: fadeInUp 1s 0.5s forwards;
}

.hero-text .title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-text .description {
    font-size: 1.125rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.prev-slide, .next-slide {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.prev-slide:hover, .next-slide:hover {
    background-color: var(--color-white);
    color: var(--color-secondary);
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
}

.hero-dot.active, .hero-dot:hover {
    background-color: var(--color-white);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================================
 * 6. Category Section
 * ------------------------------------------------------------------- */
.categories {
    margin-bottom: var(--section-spacing);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.8;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Updated Category Card */
.category-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 0;
    padding-bottom: 100%; /* 1:1 aspect ratio */
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5; /* Background while image loads */
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-white);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-slow);
}

.category-card:hover .category-content {
    transform: translateY(0);
    opacity: 1;
}

.category-content h3 {
    color: var(--color-white);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.shop-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.shop-link i {
    margin-left: 5px;
    transition: transform var(--transition-base);
}

.category-card:hover .shop-link i {
    transform: translateX(5px);
}

/* ===================================================================
 * 7. Featured Products Section
 * ------------------------------------------------------------------- */
.featured-products {
    margin-bottom: var(--section-spacing);
}

.product-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.product-tab {
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-body);
    background-color: transparent;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
}

.product-tab:hover, .product-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-secondary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block !important;
}

/* Featured products specific grid layout */
.featured-products .tab-content.active {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Prevent nested grid conflicts */
.featured-products .tab-content.active .products-grid {
    display: contents; /* Use contents to flatten the nested grid */
}

/* Updated Product Card */
.product-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

/* Updated Product Image Container */
.product-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background-color: #f5f5f5; /* Background while image loads */
    min-height: 250px; /* Minimum height to ensure visibility */
}

.product-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    z-index: 0;
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.badge.new {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.badge.sale {
    background-color: #e74c3c;
    color: var(--color-white);
}

.badge.hot {
    background-color: #e67e22;
    color: var(--color-white);
}

.badge.sold-out {
    background-color: #7f8c8d;
    color: var(--color-white);
}

.badge.bestseller {
    background-color: #f39c12;
    color: var(--color-white);
}

.badge.eco {
    background-color: #27ae60;
    color: var(--color-white);
}

/* Updated Product Images */
.primary-image, .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-slow);
    z-index: 1;
}

.hover-image {
    opacity: 0;
    z-index: 2;
}

.product-card:hover .primary-image {
    opacity: 0;
}

.product-card:hover .hover-image {
    opacity: 1;
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
    transform: translateX(60px);
    opacity: 0;
    transition: all var(--transition-base);
}

.product-card:hover .product-actions {
    transform: translateX(0);
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    background-color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.action-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.add-to-cart-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(100%);
    transition: transform var(--transition-base);
    z-index: 5;
}

.product-card:hover .add-to-cart-wrapper {
    transform: translateY(0);
}

.add-to-cart-btn {
    width: 100%;
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-categories {
    margin-bottom: 5px;
}

.product-categories a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-body);
}

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

.product-title a {
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.product-title a:hover {
    color: var(--color-secondary);
}

.category-image img, .product-image img {
    min-height: 100%;
}

/* Shop page specific image styling */
.product-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Override for shop grid to ensure proper display */
.shop-page .product-image {
    height: 250px;
    padding-bottom: 0;
    position: relative;
}

.shop-page .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars {
    color: #f1c40f;
    font-size: 0.875rem;
}

.rating-count {
    margin-left: 5px;
    font-size: 0.875rem;
    color: var(--color-body);
}

.product-price {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.old-price {
    text-decoration: line-through;
    color: var(--color-body);
    opacity: 0.7;
    margin-right: 8px;
    font-size: 0.9375rem;
    font-weight: 400;
}

.current-price {
    color: var(--color-secondary);
}

.color-options {
    display: flex;
    gap: 8px;
}

.color-option {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: transform var(--transition-base);
}

.color-option:hover {
    transform: scale(1.2);
}

.view-all-container {
    text-align: center;
    margin-top: 50px;
}

/* ===================================================================
 * 8. Feature Banner Section
 * ------------------------------------------------------------------- */
.feature-banner {
    margin-bottom: var(--section-spacing);
}

.feature-banner-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 600px;
}

.feature-banner-content {
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.feature-text {
    padding-right: 50px;
}

.feature-text .title {
    color: var(--color-white);
    margin-bottom: 20px;
}

.feature-text .subtitle {
    color: var(--color-secondary);
}

.feature-text .description {
    margin-bottom: 30px;
    opacity: 0.8;
}

.countdown-timer {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    min-width: 80px;
    border-radius: var(--radius-sm);
}

.countdown-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Updated Feature Banner Image */
.feature-banner-image {
    position: relative;
    height: 100%;
    background-color: #f5f5f5; /* Background while image loads */
}

.feature-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================================================
 * 9. New Arrivals Section
 * ------------------------------------------------------------------- */
.new-arrivals {
    margin-bottom: var(--section-spacing);
}

.products-slider {
    position: relative;
    overflow: hidden;
}

.products-slider-wrapper {
    display: flex;
    gap: 30px;
    transition: transform var(--transition-base);
}

.product-slide {
    min-width: calc(25% - 30px * 3 / 4);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-prev, .slider-next {
    width: 40px;
    height: 40px;
    background-color: var(--color-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.slider-prev:hover, .slider-next:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ===================================================================
 * 10. Brand Story Section
 * ------------------------------------------------------------------- */
.brand-story {
    margin-bottom: var(--section-spacing);
    background-color: var(--color-light);
    padding: 80px 0;
}

.brand-story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.brand-story-text {
    padding-right: 30px;
}

/* Updated Brand Story Image */
.brand-story-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    background-color: #f5f5f5; /* Background while image loads */
}

.brand-story-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.brand-value {
    text-align: center;
}

.value-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--color-secondary);
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.brand-value h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.brand-value p {
    font-size: 0.9375rem;
    margin: 0;
}

/* ===================================================================
 * 11. Instagram Feed Section
 * ------------------------------------------------------------------- */
.instagram-feed {
    margin-bottom: var(--section-spacing);
}

/* Updated Instagram Grid */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.instagram-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #f5f5f5; /* Background while image loads */
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 2;
}

.instagram-overlay i {
    color: var(--color-white);
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform var(--transition-base);
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-item:hover .instagram-overlay i {
    transform: scale(1);
}

/* ===================================================================
 * 12. Newsletter Section
 * ------------------------------------------------------------------- */
.newsletter {
    margin-bottom: var(--section-spacing);
    background-color: var(--color-light);
    padding: 80px 0;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text {
    margin-bottom: 30px;
}

.newsletter-form .form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto 20px;
}

.newsletter-form input {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
}

.newsletter-form button {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0 25px;
}

.form-privacy {
    font-size: 0.875rem;
}

.privacy-text {
    color: var(--color-body);
}

.privacy-text a {
    text-decoration: underline;
}

/* ===================================================================
 * 13. Footer
 * ------------------------------------------------------------------- */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 30px;
}

.footer-widget h3 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-logo h1 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.about-text {
    margin-bottom: 25px;
    opacity: 0.8;
}

.footer .social-icons {
    display: flex;
    gap: 15px;
}

.footer .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: all var(--transition-base);
}

.footer .social-icons a:hover {
    background-color: var(--color-secondary);
    transform: translateY(-5px);
}

.widget-list li {
    margin-bottom: 12px;
}

.widget-list li a {
    color: var(--color-white);
    opacity: 0.8;
    transition: all var(--transition-base);
}

.widget-list li a:hover {
    opacity: 1;
    color: var(--color-secondary);
    padding-left: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-icon {
    color: var(--color-secondary);
}

.contact-text p {
    margin: 0;
    opacity: 0.8;
}

.footer-middle {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    color: var(--color-secondary);
    font-size: 1.5rem;
}

.feature-text h4 {
    color: var(--color-white);
    margin-bottom: 5px;
    font-size: 1rem;
}

.feature-text p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.875rem;
}

.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    opacity: 0.8;
    font-size: 0.875rem;
}

.footer-links ul {
    display: flex;
    gap: 20px;
}

.footer-links ul li a {
    color: var(--color-white);
    opacity: 0.8;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

/* ===================================================================
 * 14. Back to Top Button & Modals
 * ------------------------------------------------------------------- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--color-secondary);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.modal-close:hover {
    color: var(--color-secondary);
}

/* ===================================================================
 * 15. Responsive Styles
 * ------------------------------------------------------------------- */
@media (max-width: 1200px) {
    :root {
        --section-spacing: 80px;
    }
    
    .hero-image {
        height: 600px;
    }
    
    .hero-text .title {
        font-size: 2.5rem;
    }
    
    .categories-grid,
    .tab-content.active {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-slide {
        min-width: calc(33.333% - 30px * 2 / 3);
    }
    
    .footer-widgets {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    
    .about-widget {
        grid-column: span 4;
        margin-bottom: 30px;
    }
}

@media (max-width: 992px) {
    :root {
        --header-height: 70px;
        --section-spacing: 70px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .announcement-bar p {
        font-size: 0.75rem;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions > *:not(:last-child) {
        display: none;
    }
    
    .hero-image {
        height: 500px;
    }
    
    .hero-text {
        max-width: 500px;
    }
    
    .hero-text .title {
        font-size: 2rem;
    }
    
    .hero-text .description {
        font-size: 1rem;
    }
    
    .categories-grid,
    .tab-content.active,
    .featured-products .tab-content.active {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-slide {
        min-width: calc(50% - 30px * 1 / 2);
    }
    
.feature-banner-wrapper {
    grid-template-columns: 1fr;
    height: auto;
}
    
.feature-banner-content {
    order: 2;
    padding: 50px var(--container-padding);
    text-align: center;
}
    
    .feature-banner-image {
        order: 1;
        height: 300px;
        display: block;
        overflow: hidden;
    }
    
    .feature-banner-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .feature-text {
        padding-right: 0;
    }
    
    .brand-story-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .brand-story-text {
        padding-right: 0;
        order: 2;
    }
    
    .brand-story-image {
        order: 1;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .about-widget {
        grid-column: span 2;
    }
    
    .footer-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --section-spacing: 60px;
        --container-padding: 20px;
    }
    
    .announcement-bar .container {
        flex-direction: column;
        gap: 5px;
    }
    
    .hero-image {
        height: 400px;
        display: block; /* Ensure it's displayed */
    }
    
    .hero-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .hero-text {
        max-width: 100%;
        margin: 0 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .brand-values {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        border-radius: var(--radius-sm);
    }
    
    .footer-widgets {
        /* Change from single column to responsive grid layout */
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-widget {
        flex-basis: calc(50% - 15px); /* Two columns on smaller screens */
        min-width: 250px; /* Minimum width to ensure readability */
    }
    
    .about-widget {
        flex-basis: 100%; /* About widget still takes full width */
    }
}

@media (max-width: 576px) {
    :root {
        --section-spacing: 50px;
    }
    
    .hero-text .title {
        font-size: 1.75rem;
    }
    
    .hero-controls {
        bottom: 15px;
    }
    
    /* Ensure feature banner is visible */
    .feature-banner-image {
        height: 250px;
        display: block !important;
    }
    
    /* Ensure countdown is visible and properly sized */
    .countdown-timer {
        display: flex;
        justify-content: center;
    }
    
    .categories-grid,
    .tab-content.active,
    .featured-products .tab-content.active {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Fix product image size for small screens */
    .product-image {
        min-height: 180px; /* Ensure minimum height */
    }
    
    /* Ensure proper image display on small screens */
    .primary-image, .hover-image {
        object-fit: contain; /* Change to contain to make sure product is fully visible */
    }
    
    .product-slide {
        min-width: 100%;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-features {
        grid-template-columns: 1fr;
    }
    
    #back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===================================================================
 * Loading Container Styles
 * ------------------------------------------------------------------- */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    min-height: 200px;
}

.loading-container .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-container p {
    color: var(--color-body);
    font-size: 14px;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No products message styles */
.no-products-message {
    padding: 40px;
    text-align: center;
    color: var(--color-body);
}

.no-products-message h3 {
    color: var(--color-dark);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}
