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

:root {
    /* Brand Colors */
    --maroon-dark: #6E1E3A;       /* header bar, nav, footer, buttons */
    --maroon-deep: #5A1830;       /* hover states */
    --pink-bg: #F9D9DF;           /* hero background, soft sections */
    --pink-light: #FBEAEE;        /* trust bar / light backgrounds */
    --gold-accent: #C9A24B;       /* decorative lines, logo ring, borders */
    --white: #FFFFFF;
    
    /* Text Colors */
    --text-dark: #2B2024;
    --text-muted: #6B5A60;
    --price-color: #6E1E3A;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: pageFadeIn 0.8s ease-in-out;
}

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

/* Base Elements */
a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--maroon-dark);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}

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

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--maroon-dark);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.top-bar-social a:hover {
    transform: translateY(-2px);
    background-color: var(--pink-light);
}

/* Main Header */
.main-header {
    background-color: var(--white);
    padding: 24px 0;
    border-bottom: 1px solid var(--pink-light);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(110, 30, 58, 0.05);
}

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

/* Logo Section */
.header-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.header-logo-img {
    height: 65px;
    width: auto;
    border-radius: 50%; /* if you want it circular */
    box-shadow: 0 2px 10px rgba(110, 30, 58, 0.1);
}

/* Search Section */
.header-search {
    display: flex;
    flex: 0 1 400px;
    border: 1px solid var(--pink-light);
    border-radius: 24px;
    overflow: hidden;
    height: 44px;
}

.header-search input {
    flex: 1;
    border: none;
    padding: 0 20px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    color: var(--text-dark);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search button {
    background-color: var(--maroon-dark);
    color: var(--white);
    border: none;
    width: 44px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-search button:hover {
    background-color: var(--maroon-deep);
}

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

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--maroon-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.action-item i {
    font-size: 20px;
}

.action-item span {
    font-size: 12px;
    font-weight: 500;
}

.action-item:hover {
    color: var(--maroon-deep);
}

/* Main Navigation */
.main-nav {
    background-color: var(--maroon-dark);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    display: block;
    padding: 15px 0;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--gold-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold-accent);
}

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

.mobile-menu-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--maroon-dark);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(110, 30, 58, 0.2);
}

.btn-primary:hover {
    background-color: var(--maroon-deep);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(110, 30, 58, 0.3);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--white) 0%, var(--pink-bg) 100%);
    padding: 100px 0;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-left, .hero-right {
    flex: 1;
}

/* Emblem Layout */
.hero-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(110, 30, 58, 0.15);
    transition: transform 0.5s ease;
}

.hero-logo-img:hover {
    transform: scale(1.02);
}

/* Hero Right Side Text */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 78px;
    font-weight: 700;
    color: var(--maroon-dark);
    line-height: 1.1;
    letter-spacing: 4px;
    margin-bottom: 5px;
}

.hero-script {
    font-family: var(--font-script);
    font-size: 52px;
    color: var(--maroon-dark);
    margin-bottom: 30px;
    line-height: 1;
}

.hero-divider {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin-bottom: 30px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--gold-accent);
}

.divider-icon {
    color: var(--gold-accent);
    margin: 0 20px;
    font-size: 16px;
}

.hero-categories {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 5px;
    margin-bottom: 45px;
}

/* Features Bar */
.features-bar {
    background-color: var(--pink-light);
    padding: 40px 0;
    border-top: 1px solid rgba(201, 162, 75, 0.3);
    border-bottom: 1px solid rgba(201, 162, 75, 0.3);
}

.features-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.feature-icon {
    font-size: 32px;
    color: var(--maroon-dark);
}

.feature-text h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.feature-text p {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-muted);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--maroon-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.center-divider {
    margin: 0 auto;
    max-width: 300px;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: var(--white);
}

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

/* Product Card */
.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(110, 30, 58, 0.15);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--pink-light);
    overflow: hidden;
}

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

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

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

.product-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    flex: 1;
}

.product-price {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--price-color);
    margin-bottom: 15px;
}

.btn-product-order {
    width: 100%;
    background-color: var(--maroon-dark);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.btn-product-order:hover {
    background-color: var(--maroon-deep);
}

/* WhatsApp CTA Banner */
.whatsapp-cta-section {
    padding: 20px 0 80px 0;
    background-color: var(--white);
}

.whatsapp-banner {
    background-color: var(--pink-light);
    border-radius: 16px;
    padding: 35px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.whatsapp-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.whatsapp-icon-badge {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-text h3 {
    font-family: var(--font-body);
    color: var(--maroon-dark);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.whatsapp-text p {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 15px;
}

.btn-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--maroon-dark);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(110, 30, 58, 0.2);
}

.btn-whatsapp-cta:hover {
    background-color: var(--maroon-deep);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(110, 30, 58, 0.3);
    color: var(--white);
}

/* Footer Section */
.main-footer {
    background-color: var(--maroon-dark);
    color: var(--pink-light);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-heading {
    color: var(--gold-accent);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.footer-about {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}

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

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--white);
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    transform: translateY(-3px);
}

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

.footer-links a {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--pink-light);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-accent);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact i {
    color: var(--gold-accent);
    font-size: 16px;
    margin-top: 2px;
}

.footer-bottom {
    background-color: var(--maroon-deep);
    padding: 20px 0;
    border-top: 1px solid rgba(201, 162, 75, 0.3);
}

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

.copyright {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--pink-light);
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.payment-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-body);
    display: inline-block;
}

.badge-visa {
    background-color: #1A1F71;
    color: #F7B600;
}

.badge-mastercard {
    background-color: #EB001B;
    color: #F79E1B;
}

.badge-easypaisa {
    background-color: #4CAF50;
    color: #FFFFFF;
}

.badge-jazzcash {
    background-color: #EF3E36;
    color: #FFFFFF;
}

/* Scroll Reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cart animation */
@keyframes popFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: var(--gold-accent); }
    100% { transform: scale(1); }
}
.cart-pop {
    animation: popFlash 0.3s ease;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==============================================================
   EXTRA ANIMATIONS (Polish)
   ============================================================== */

/* Continuous Floating Logo */
@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); box-shadow: 0 15px 50px rgba(110, 30, 58, 0.25); }
    100% { transform: translateY(0px); }
}

.hero-logo-img {
    animation: floatLogo 4s ease-in-out infinite;
}
.hero-logo-img:hover {
    animation-play-state: paused;
    transform: scale(1.02);
}

/* WhatsApp Icon Pulsing Glow */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-icon-badge {
    animation: pulseGlow 2s infinite;
}

/* Hero Text Cascading Entry */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-right .hero-title,
.hero-right .hero-script,
.hero-right .hero-divider,
.hero-right .hero-categories,
.hero-right .btn-primary {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
}

.hero-right .hero-title { animation-delay: 0.2s; }
.hero-right .hero-script { animation-delay: 0.4s; }
.hero-right .hero-divider { animation-delay: 0.6s; }
.hero-right .hero-categories { animation-delay: 0.8s; }
.hero-right .btn-primary { animation-delay: 1.0s; }

/* =========================================================================
   ADVANCED UI ENHANCEMENTS
   ========================================================================= */

/* 1. Dynamic Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Advanced Product Card Interactions */
.product-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(110, 30, 58, 0.15);
}
.product-img-wrapper {
    overflow: hidden;
}
.product-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover img {
    transform: scale(1.08);
}
/* Slide up actions on desktop */
@media (min-width: 768px) {
    .product-actions {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: absolute;
        bottom: 20px;
        left: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.95);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        backdrop-filter: blur(5px);
    }
    .product-card {
        padding-bottom: 20px; /* Space for hidden actions */
    }
    .product-card:hover .product-actions {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Button Micro-interactions (Ripple) */
.btn-primary, .btn-secondary, .btn-product-cart, .btn-product-order {
    position: relative;
    overflow: hidden;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 600ms linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}
@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 4. Modernized Toast Notifications */
#toast {
    display: flex !important;
    align-items: center;
    gap: 12px;
    border-radius: 8px !important;
    padding: 16px 24px !important;
    font-weight: 500;
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s !important;
    background: white !important;
    color: var(--text-dark) !important;
    border-left: 5px solid #4CAF50;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    position: fixed;
    top: 30px;
    right: 30px;
    left: auto !important;
    bottom: auto !important;
    z-index: 9999;
    min-width: 300px;
}
#toast.show {
    transform: translateX(0);
    opacity: 1 !important;
}
#toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #4CAF50;
    width: 100%;
}
#toast.show::after {
    animation: toastProgress 3s linear forwards;
}
@keyframes toastProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}
@media (max-width: 768px) {
    #toast {
        top: auto;
        bottom: 80px !important;
        right: 15px;
        left: 15px !important;
        min-width: auto;
        transform: translateY(120%);
    }
    #toast.show {
        transform: translateY(0);
    }
}
