:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --text-color: #333;
    --background-color: #f4f4f4;
    --red-accent: #ff0000;
    --red-hover: #fdc7c7;
    --mobile-nav-width: 60%;
    --transition-speed: 0.3s;
    --primary-white: #ffffff;
    --primary-yellow: #FFD700;
    --primary-red: #FF0000;
    --secondary-yellow: #FFFACD;
    --secondary-red: #FFCCCB;
    --dark-gray: #333333;
    --light-gray: #f5f5f5;
}

* {
    font-family: "Outfit", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* News Ticker */
.news-ticker {
    width: 100%;
    background-color: var(--red-accent);
    color: white;
    padding: 6px;
    text-align: center;
    font-size: 0.85rem;
    z-index: 1000;
}

/* Search Styles */
.search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    background-color: white;
    position: relative;
}

.logo {
    height: 50px;
    width: auto;
    margin-right: 0.8rem;
    cursor: pointer;
}

.search-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 500px;
    margin: 0 1.5rem;
}

.search input[type="search"] {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.search input[type="search"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    margin-left: -56px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.search-button:hover {
    background-color: #2980b9;
}

.search-button i {
    font-size: 0.9rem;
}

.search img {
    margin-left: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search img:hover {
    transform: scale(1.05);
}

.search hr {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border: none;
    height: 1px;
    background-color: #eee;
    margin: 0;
}

.signup {
    text-decoration: none;
    cursor: pointer;
}

/* Navigation Styles */
.nav {
    background-color: #ffffff;
    border-bottom: 2px solid #ffcc00;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 1000;
}

.nav-container ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.nav-container a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-container a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff4d4f;
    transition: width 0.3s ease;
}

.nav-container a:hover {
    color: #ff4d4f;
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.4rem;
    z-index: 1;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.6rem 0.8rem;
    color: #1a1a1a;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.dropdown-content a:hover {
    background-color: #fff3cd;
}

/* Mobile Styles */
.menu-toggle {
    display: none;
    cursor: pointer;
    position: fixed;
    top: 0.8rem;
    right: 1.2rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #1a1a1a;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -70%;
    width: 70%;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 1.5rem 0.8rem;
}

.mobile-nav a {
    display: block;
    padding: 0.8rem;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.mobile-dropdown-content {
    display: none;
    padding-left: 0.8rem;
    background-color: #fefae0;
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: block;
}

.mobile-dropdown > a::after {
    content: '+';
    float: right;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.mobile-dropdown.active > a::after {
    content: '-';
}

/* Overlay */
.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: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Footer Menu */
.mobile-footer-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
}

.footer-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.7rem;
    flex: 1;
    padding: 0.4rem 0;
    cursor: pointer;
}

.footer-menu-item i {
    font-size: 1rem;
    margin-bottom: 0;
}

.footer-menu-item span {
    margin-top: 0.1rem;
}

.footer-toggle {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.1rem;
    cursor: pointer;
}

/* Search for Mobile */
.search-mobile {
    display: none;
}

/* Hero Carousel */
.hero-desktop,
.hero-mobile {
    display: none;
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.carousel {
    display: flex;
    height: auto;
    transition: transform 0.5s ease-in-out;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    width: 100%;
    z-index: 5;
    cursor: pointer;
}

.voucher {
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

.voucher img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    aspect-ratio: 8.5 / 2.75;
    border-radius: 6px;
}
@media (max-width: 480px) {
  .voucher img {
    width: 100%;
    max-width: 400px;
    height: 220px;
    aspect-ratio: 8.5 / 2.75;
    border-radius: 6px;
}

}
/* Responsive design */
@media (max-width: 768px) {
    .search {
        display: none;
        flex-wrap: wrap;
        padding: 0;
    }

    .search-mobile {
        display: flex;
    }
    
    .section-nav {
        display: none;
    }
    
    .hero-mobile {
        display: block;
    }

    .hero-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-container ul {
        display: none;
    }

    .mobile-footer-menu {
        display: flex;
    }
    
    .nav {
        padding: 0;
    }
}

@media (min-width: 769px) {
    .hero-desktop {
        display: block;
    }

    .hero-mobile {
        display: none;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-nav {
        display: none;
    }
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--red-accent);
    color: white;
    font-size: 0.7rem;
    padding: 1px 5px;
    border-radius: 50%;
    font-weight: 700;
    pointer-events: none;
}

/* Pulse animation for cart icon */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease;
}

/* User Dropdown Styles */
.user-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    border-radius: 0.3rem;
    z-index: 2000;
    min-width: 140px;
    padding: 0.4rem 0;
}

.user-dropdown a {
    display: block;
    padding: 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

.user-dropdown a:hover {
    background-color: var(--red-hover);
}

.mobile-header-logo-only {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-header-logo-only .logo {
    height: 50px;
    width: auto;
}

.accordion-content {
    transition: max-height 0.2s ease-out, opacity 0.2s ease;
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-header-logo-only {
        display: none;
    }
}

.new-arrivals {
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-red), var(--primary-yellow));
    border-radius: 2px;
}

.view-all {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--dark-gray);
    transform: translateX(3px);
}

.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 6px 16px;
    background-color: var(--light-gray);
    border-radius: 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab.active {
    background-color: var(--primary-red);
    color: var(--primary-white);
}

.tab:hover:not(.active) {
    background-color: var(--secondary-red);
}

/* Desktop Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Mobile Scroller Layout */
.products-scroller {
    display: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    margin: 0 -15px;
}

.products-scroller::-webkit-scrollbar {
    display: none;
}

.scroller-inner {
    display: flex;
    gap: 15px;
    padding: 0 15px;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-220px * 6 - 15px * 6)); }
}

.product-card {
    background-color: var(--primary-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    flex: 0 0 240px;
    scroll-snap-align: start;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-yellow);
    color: var(--dark-gray);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

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

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

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

.product-info {
    padding: 15px;
}

.product-category {
    color: #777;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-red);
}

.old-price {
    font-size: 0.85rem;
    color: #777;
    text-decoration: line-through;
}

.to-cart {
    width: 100%;
    padding: 8px;
    background-color: var(--primary-yellow);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.to-cart:hover {
    background-color: var(--dark-gray);
    color: var(--primary-white);
}

.rating {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.star {
    color: var(--primary-yellow);
    font-size: 0.8rem;
}
  .account-menu {
      position: relative;
      display: inline-block;
      cursor: pointer;
    }

    .account-icon {
      font-size: 20px;
      padding: 5px 10px;
    }

    .account-dropdown {
      display: none;
      position: absolute;
      right: 0;
      background-color: white;
      min-width: 150px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      z-index: 100000;
    }

    .account-dropdown a {
      display: block;
      padding: 10px;
      text-decoration: none;
      color: black;
    }

    .account-dropdown a:hover {
      background-color: #f0f0f0;
    }

    .account-menu:hover .account-dropdown {
      display: block;
    }
/* Responsive styles */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }
    
    .product-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        display: none;
    }
    
    .products-scroller {
        display: block;
    }
    
    .product-image {
        height: 200px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-card {
        flex: 0 0 200px;
    }
}

@media (max-width: 576px) {
    .product-card {
        flex: 0 0 180px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .category-tabs {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        width: 100%;
    }
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .desktop-container {
        display: none;
    }
}

@media (min-width: 481px) {
    .mobile-container {
        display: none;
    }
}

.text-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hover\:scale-103:hover {
    transform: scale(1.02);
}

/* Animation for new arrivals */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.4s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }