@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Brand Color Palette - Based on Opalee Logo */
    --primary-color: #f98bab; /* Soft Pink */
    --primary-dark: #d8567b; /* Darker pink for readable text */
    --primary-light: #ffdce6;
    --secondary-color: #333333; /* Dark for text */
    --accent-color: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #777777;
    --white: #ffffff;
    --bg-light: #fffafb; /* Very faint pink/white */
    --bg-gray: #f9f9f9;
    
    /* Typography */
    --font-primary: 'Cairo', sans-serif;
    --font-secondary: 'Cairo', sans-serif;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(249, 139, 171, 0.05);
    --shadow-md: 0 10px 20px rgba(249, 139, 171, 0.1);
    --shadow-lg: 0 20px 40px rgba(249, 139, 171, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

input, textarea, select, button {
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.bg-light {
    background-color: var(--bg-gray);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px; /* Pill shape for cosmetics */
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background-color: rgba(255,255,255,0.2);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 15px rgba(249, 139, 171, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(249, 139, 171, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    gap: 10px;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(37, 211, 102, 0.3);
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(249, 139, 171, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(249, 139, 171, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 139, 171, 0); }
}

/* ==========================================================================
   Navbar (Glassmorphism)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

/* Text Logo for Navbar */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 1px;
    margin: 0;
    line-height: 1;
}

.logo-slogan {
    font-size: 13px;
    color: #555555;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 4px;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo-slogan {
        font-size: 11px;
        letter-spacing: 0;
    }
}

/* Large Center Logo for Hero Section */
.hero-center-logo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 10px 25px rgba(249, 139, 171, 0.4);
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
    background-color: var(--white);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
    font-size: 16px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Using a stunning, high-quality makeup background */
    background-image: linear-gradient(to right, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%), url('/uploads/girl-hero.jpg');
    background-size: cover;
    background-position: center right;
    z-index: -1;
    animation: scaleBg 20s infinite alternate linear;
}

@keyframes scaleBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-content {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 25px;
    color: #111;
    text-align: center;
    font-weight: 800;
}

.hero-desc {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7), 0 0 15px rgba(0,0,0,0.5);
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
    width: 100%;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.sub-title {
    display: block;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.title-separator {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
}

/* ==========================================================================
   Features Section (Glass Panels)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.glass-panel:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.glass-panel:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
    transition: var(--transition);
}

.glass-panel:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotateY(360deg);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 16px;
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.product-info {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-desc {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-family: var(--font-secondary);
}

/* Loader */
.loader-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Parallax CTA Section
   ========================================================================== */
.parallax-cta {
    position: relative;
    background-image: url('/uploads/hero.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
}

.cta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(249, 139, 171, 0.85); /* Pink Overlay */
}

.relative-z {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 35px;
}

.cta-content .btn {
    background: var(--white);
    color: var(--primary-color);
}

.cta-content .btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    border-radius: 16px;
    filter: drop-shadow(0 4px 10px rgba(249, 139, 171, 0.2));
}

.footer-brand p {
    color: var(--text-light);
    max-width: 350px;
}

.footer h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 40px; height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-links ul li, .footer-contact ul li {
    margin-bottom: 18px;
    transition: var(--transition);
}

.footer-links ul li a {
    color: var(--text-light);
}

.footer-links ul li:hover {
    transform: translateX(-10px);
}

.footer-links ul li:hover a {
    color: var(--primary-color);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
}

.footer-contact ul li i {
    color: var(--primary-color);
    font-size: 20px;
    width: 25px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-light);
    font-size: 15px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 25px;
    color: #111;
    text-align: center;
    font-weight: 800;
}
    .section-title h2 { font-size: 36px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.5s ease;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
    }
    
    .hamburger { display: block; }
    .nav-btn { display: inline-block; padding: 6px 12px; font-size: 13px; margin-left: 10px; }
    
    .hero-bg {
        background-image: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%), url('/uploads/girl-hero.jpg');
        background-position: 80% center;
    }
    
    .hero-content {
        padding: 30px 20px;
        text-align: center;
        background: rgba(255, 255, 255, 0.35);
        backdrop-filter: blur(15px);
    }
    
    .hero-title {
        font-size: 42px;
        line-height: 1.3;
        margin-bottom: 20px;
        color: #111;
        text-align: center;
        font-weight: 800;
    }
    .hero-actions { flex-direction: column; }
    
    .parallax-cta { background-attachment: scroll; }
    .cta-content h2 { font-size: 32px; }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .product-info {
        padding: 12px;
    }
    .product-title {
        font-size: 14px;
        margin-bottom: 5px;
    }
    .product-price {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .product-card .add-to-cart-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}
.modal-info-col {
    flex: 1.5;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}
.modal-info-col h2 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.modal-desc {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}
.modal-ingredients {
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}
.modal-ingredients h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-ingredients p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}
.modal-usage {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #90caf9;
    margin-bottom: 15px;
    border-right: 4px solid #1976d2;
}
.modal-usage h4 {
    color: #1565c0;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-usage p {
    color: #37474f;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
}
.modal-footer-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.modal-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}
.modal-order-btn {
    flex: 1;
    max-width: 250px;
    font-size: 16px;
    padding: 12px 20px;
}

@media (max-width: 768px) {
    .modal-body { flex-direction: column; }
    .modal-img-col img { height: 250px; min-height: 250px; }
    .modal-info-col { padding: 25px; }
    .modal-info-col h2 { font-size: 24px; }
    .modal-footer-row { flex-direction: column; align-items: stretch; }
    .modal-price { text-align: center; margin-bottom: 15px; }
    .modal-order-btn { max-width: 100%; }
}

/* ==========================================================================
   Ratings and Reviews
   ========================================================================== */
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}
.product-rating .fa-star {
    color: #ffd700;
    font-size: 14px;
}
.product-rating span {
    font-size: 13px;
    color: #777;
}

.modal-reviews-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}
.modal-reviews-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.reviews-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}
.review-item {
    border-bottom: 1px solid #f1f1f1;
    padding: 10px 0;
}
.review-item:last-child {
    border-bottom: none;
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.review-author {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}
.review-date {
    font-size: 12px;
    color: #999;
}
.review-stars .fa-star {
    color: #ffd700;
    font-size: 12px;
}
.review-comment {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}
.review-form-container {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}
.review-form-container h5 {
    margin-bottom: 10px;
    color: #444;
}
.star-rating-input {
    display: flex;
    gap: 5px;
    cursor: pointer;
    font-size: 20px;
    color: #ccc;
    margin-bottom: 15px;
}
.review-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(219, 112, 147, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 15px;
    box-sizing: border-box;
}

.review-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(219, 112, 147, 0.15);
}

.review-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}
.star-rating-input .fa-star.active,
.star-rating-input .fa-star:hover,
.star-rating-input .fa-star:hover ~ .fa-star {
    color: #ffd700;
}

/* Most Ordered Badge */
.best-seller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f1c40f, #e67e22);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

/* ==========================================================================
   Shopping Cart Drawer
   ========================================================================== */
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 22px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    left: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    left: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    line-height: 1;
}

.close-cart:hover {
    color: #333;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-msg {
    text-align: center;
    color: #888;
    margin-top: 50px;
}

.empty-cart-msg i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #ccc;
}

.cart-item {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    margin-left: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.qty-btn {
    background: #f1f1f1;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: #e2e2e2;
}

.cart-item-remove {
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
    margin-right: 15px;
    background: none;
    border: none;
    padding: 0;
}

.cart-item-remove:hover {
    color: #c0392b;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: #fdfdfd;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .cart-drawer {
        max-width: 100%;
        left: -100%;
    }
}

/* ==========================================================================
   Filters and Search
   ========================================================================== */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    align-items: center;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.search-box, .filter-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-gray);
    padding: 10px 15px;
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}
.search-box i, .filter-box i {
    color: var(--primary-color);
}
.search-box input, .filter-box select {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
}
.search-box input {
    width: 200px;
}

/* ==========================================================================
   Product Modal & Overlays
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.modal-container {
    background: var(--white);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.show .modal-container {
    transform: translateY(0);
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #888;
    z-index: 10;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #333;
}
.modal-body {
    display: flex;
    flex-wrap: wrap;
}
.modal-img-col {
    flex: 1;
    min-width: 300px;
    position: relative;
    background: #fdfdfd;
}
.modal-img-col img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}
@media (min-width: 769px) {
    .modal-img-col img {
        border-radius: 20px 0 0 20px;
    }
}
.modal-badge {
    top: 15px;
    left: 15px;
    right: auto;
}


/* ==========================================================================
   Reviews Section
   ========================================================================== */
.modal-reviews-section {
    width: 100%;
    padding: 20px 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.modal-reviews-section h4 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--primary-dark);
}
.reviews-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}
.review-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.reviewer-name {
    font-weight: bold;
}
.review-rating {
    color: #f1c40f;
}
.add-review-box {
    background: #fff;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
}
.add-review-box h5 {
    margin-bottom: 10px;
}
.rating-select {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}
.rating-select i {
    color: #ddd;
    font-size: 24px;
    transition: color 0.2s;
}
.rating-select i.active, .rating-select i:hover, .rating-select i:hover ~ i {
    color: #f1c40f;
}
.review-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 14px;
    background-color: #fafafa;
    transition: var(--transition);
    outline: none;
}
.review-input:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(249, 139, 171, 0.15);
}
.btn-primary.small {
    padding: 8px 20px;
    font-size: 14px;
}

/* ==========================================================================
   Shopping Cart Drawer
   ========================================================================== */
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--primary-dark);
    margin-right: 15px;
    display: flex;
    align-items: center;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-dark);
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.cart-drawer {
    position: fixed;
    top: 0;
    left: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    z-index: 10001;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.open {
    left: 0;
}
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    margin: 0;
    color: var(--primary-dark);
}
.close-cart {
    cursor: pointer;
    font-size: 24px;
    color: #888;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}
.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-info {
    flex: 1;
}
.cart-item-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}
.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.qty-btn {
    background: #eee;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
}
.qty-val {
    font-size: 14px;
    font-weight: bold;
}
.cart-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}
.btn-checkout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    font-size: 16px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.btn-checkout:hover {
    background: #128C7E;
}
.empty-cart-msg {
    text-align: center;
    color: #888;
    margin-top: 50px;
}
.empty-cart-msg i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #ddd;
}
.best-seller-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, #f39c12, #f1c40f);
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Badges Container Styling */
.badges-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}
.badge-item {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
}
.badge-item.best-seller {
    background: linear-gradient(45deg, #FFD700, #F57F17);
    color: #333;
}
.badge-item.offer {
    background: linear-gradient(45deg, #f44336, #d32f2f);
}
.badge-item.fragrances {
    background: linear-gradient(45deg, #4caf50, #009688);
}
/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 50%, #d32f2f 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10000;
    font-size: 14px;
    font-weight: 600;
    direction: rtl;
}
@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}
.announcement-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.announcement-link {
    background: white;
    color: #d32f2f;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}
.announcement-link:hover {
    background: #fff8e1;
    transform: scale(1.05);
}
.announcement-close {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 6px;
    opacity: 0.8;
}
.announcement-close:hover { opacity: 1; }

/* Hero Offer Floating Badge */
.hero-offer-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #FF6B35, #d32f2f);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
    animation: floatBadge 3s ease-in-out infinite;
    cursor: pointer;
    text-decoration: none;
    z-index: 5;
}
.hero-offer-badge:hover {
    transform: translateY(-5px) scale(1.05);
    color: white;
}
.hero-offer-badge i {
    font-size: 24px;
    animation: wobble 2s ease-in-out infinite;
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-10deg); }
    30% { transform: rotate(10deg); }
    45% { transform: rotate(-10deg); }
    60% { transform: rotate(0deg); }
}
.hero-offer-badge-text {
    display: flex;
    flex-direction: column;
}
.hero-offer-badge-title {
    font-size: 15px;
    font-weight: 800;
}
.hero-offer-badge-sub {
    font-size: 12px;
    opacity: 0.9;
}

/* Special Offers Section */
.special-offers-section {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 50%, #fff0f5 100%);
    position: relative;
    overflow: hidden;
}
.special-offers-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(249, 139, 171, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.special-offers-section .sub-title.offer-sub-title {
    color: var(--primary-dark);
}
.special-offers-section .offer-section-title {
    color: var(--text-dark);
}
.special-offers-section p {
    color: var(--text-dark);
    font-weight: 500;
    opacity: 0.85;
}
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.special-offers-section .product-card {
    background: white;
    border: 1px solid rgba(249, 139, 171, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.special-offers-section .product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px rgba(249, 139, 171, 0.2);
}
.special-offers-section .product-title {
    color: var(--text-dark);
}
.special-offers-section .product-desc {
    color: var(--text-light);
}
.btn-outline-light-offer {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-outline-light-offer:hover {
    background: var(--primary-color);
    color: white;
}
