/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1b365d; /* Dark Blue */
    --primary-hover: #122643;
    --accent-color: #d4af37; /* Golden */
    --accent-hover: #b5952f;
    --secondary-color: #ffffff;
    --text-color: #121212;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --bg-gray: #e5e5e5;
    --border-color: #eaeaea;
    --warning-color: #d4af37; /* Star rating color matching golden */
    --font-family: 'Work Sans', Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography utilities */
.text-warning {
    color: var(--warning-color);
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Header */
.header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-typography {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-row-1 {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-row-2 {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.text-gold {
    color: var(--warning-color);
}

.search-bar {
    flex: 0 1 600px;
    margin: 0 30px;
}

.search-bar form {
    display: flex;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    overflow: hidden;
    background-color: white;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 15px;
}

.search-bar button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: var(--accent-hover);
}

.header-icons {
    display: flex;
    gap: 25px;
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

.icon-link:hover {
    color: var(--primary-color);
}

.icon-link i {
    font-size: 22px;
}

.cart-icon {
    position: relative;
}

.cart-count {
    background-color: var(--accent-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -5px;
    border: 2px solid white;
}

/* Navigation */
.navigation {
    background-color: var(--primary-color);
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 35px;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-list a {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-list a:hover {
    opacity: 0.8;
}

.badge-new {
    background-color: #ffeb3b;
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background: #000;
}

.slider-watermark {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 120px;
    background: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 8px;
}

.slider-watermark img {
    width: 100%;
    height: auto;
    display: block;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.banner-overlay h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-overlay p {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

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

/* Categories */
.shop-by-category {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
}

.category-item {
    cursor: pointer;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-8px);
}

.category-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--border-color);
    padding: 5px;
    transition: border-color 0.3s;
}

.category-item:hover img {
    border-color: var(--primary-color);
}

.category-item p {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
}

/* Featured Products */
.featured-products {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
}

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

.product-image {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-image .img-secondary {
    opacity: 0;
}

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

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

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.hover-actions {
    position: absolute;
    right: -50px;
    top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: right 0.3s ease;
    z-index: 2;
}

.product-card:hover .hover-actions {
    right: 15px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.3s;
}

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

.product-info {
    padding: 20px;
}

.rating {
    margin-bottom: 10px;
    font-size: 13px;
}

.review-count {
    color: var(--text-light);
    margin-left: 5px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    height: 44px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.sale-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
}

.regular-price {
    font-size: 15px;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-buy-now {
    width: 100%;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-buy-now:hover {
    background-color: var(--accent-color);
    color: white;
}

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

.btn-view-all {
    display: inline-block;
    background-color: var(--text-color);
    color: white;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-view-all:hover {
    background-color: var(--accent-color);
}

/* Newsletter */
.newsletter {
    padding: 80px 5%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    padding: 15px 30px;
    background-color: var(--text-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #222;
    color: #fff;
    padding-top: 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto 20px;
}

.footer-logo {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #fff;
}

.footer-col p {
    color: #aaa;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 15px;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    font-size: 14px;
    transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    background-color: #111;
    text-align: center;
    padding: 15px 5%;
    font-size: 13px;
    color: #888;
}

/* Mobile menu base styles (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.close-mobile-menu {
    display: none;
}

.mobile-overlay {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-container {
        padding: 15px 5%;
    }
    .search-bar {
        flex: 1;
        margin: 0 15px;
    }
    .nav-list {
        gap: 20px;
    }
    .banner-overlay {
        padding: 25px;
        max-width: 400px;
    }
    .banner-overlay h2 {
        font-size: 28px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
    }
    .mobile-menu-toggle {
        display: block;
        order: 1;
    }
    .logo {
        order: 2;
        flex: 1;
        text-align: center;
    }
    .logo-text {
        font-size: 28px;
    }
    .header-icons {
        order: 3;
        gap: 15px;
    }
    .icon-link .icon-text {
        display: none; /* Hide text on mobile */
    }
    .icon-link i {
        font-size: 24px;
    }
    .search-bar {
        order: 4;
        flex: 1 1 100%;
        margin: 0;
    }
    
    /* Mobile Navigation Drawer */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .navigation {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background-color: white;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .navigation.active {
        left: 0;
    }

    .close-mobile-menu {
        display: block;
        padding: 20px;
        font-size: 24px;
        text-align: right;
        color: var(--text-color);
        cursor: pointer;
        border-bottom: 1px solid var(--border-color);
    }
    
    .logo-img {
        height: 38px;
    }
    
    .logo-row-1, .logo-row-2 {
        font-size: 16px;
    }
    
    .logo-link {
        gap: 8px;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    .nav-list a {
        color: var(--text-color);
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
    }
    .nav-list a:hover {
        background-color: var(--bg-light);
        color: var(--primary-color);
        opacity: 1;
    }

    /* Hero Banner Mobile */
    .slide {
        max-height: 400px;
    }
    .banner-overlay {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
        text-align: center;
        padding: 30px 20px;
        background-color: var(--bg-light);
    }
    .banner-overlay h2 {
        font-size: 24px;
    }

    /* Sections Mobile */
    .shop-by-category {
        padding: 40px 15px;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .category-item img {
        width: 90px;
        height: 90px;
    }
    .category-item p {
        font-size: 14px;
    }
    
    .featured-products {
        padding: 40px 15px;
    }
    ..product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 items per line */
    gap: 10px;
    margin-bottom: 25px;
}

    .product-image img {
        border-radius: 8px 8px 0 0;
    }
    .product-info {
        padding: 15px;
    }
    .product-title {
        font-size: 13px;
        height: 38px;
    }
    .sale-price {
        font-size: 18px;
    }
    .hover-actions {
        display: none; /* Hide hover actions on touch devices */
    }

    /* Newsletter */
    .newsletter {
        padding: 50px 15px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter h2 {
        font-size: 26px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .contact-info p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 items per line */
    gap: 6px;
    margin-bottom: 20px;
}

    .logo-img {
        height: 30px;
    }
    .logo-row-1, .logo-row-2 {
        font-size: 13px;
    }
    .logo-link {
        gap: 5px;
    }
    .banner-overlay h2 {
        font-size: 22px;
    }
    .banner-overlay p {
        font-size: 15px;
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.toast {
    background-color: var(--text-color);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 12px;
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--secondary-color);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: preloaderPulse 1.8s ease-in-out infinite;
}

.preloader-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.preloader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    margin-bottom: 6px;
}

.preloader-name-1 {
    font-size: 30px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.preloader-name-2 {
    font-size: 30px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.preloader-tagline {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.preloader-spinner {
    width: 150px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.preloader-bar {
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 4px;
    position: absolute;
    animation: preloaderSlide 1.2s infinite ease-in-out;
}

@keyframes preloaderPulse {
    0% { transform: scale(0.97); opacity: 0.9; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(0.97); opacity: 0.9; }
}

@keyframes preloaderSlide {
    0% { left: -60px; }
    100% { left: 150px; }
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}

/* Rise up motion animation */
@keyframes riseUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rise-up {
    animation: riseUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
}

.rise-up-delay-1 {
    animation-delay: 0.2s;
}
.rise-up-delay-2 {
    animation-delay: 0.4s;
}
.rise-up-delay-3 {
    animation-delay: 0.6s;
}
