/* ===================================
   CSS VARIABLES & RESET
   =================================== */
:root {
    /* Brand Colors - Based on Coco & Rose branding */
    --primary-color: #a8577d;
    --primary-dark: #6b4458;
    --primary-light: #d097b3;
    --secondary-color: #f5c6d9;
    --accent-color: #e8b4c8;

    /* Neutral Colors */
    --bg-light: #fef5f8;
    --bg-white: #ffffff;
    --text-dark: #2d1f29;
    --text-gray: #6b6b6b;
    --text-light: #9b9b9b;

    /* Functional Colors */
    --success-color: #25D366;
    --error-color: #dc3545;
    --border-color: #e6d5dd;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(168, 87, 125, 0.1);
    --shadow-md: 0 4px 16px rgba(168, 87, 125, 0.15);
    --shadow-lg: 0 8px 32px rgba(168, 87, 125, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hide floating social on mobile */
@media (max-width: 768px) {
    .floating-social {
        display: none !important;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

/* Ripple Effect */
.btn-ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    padding: var(--spacing-sm) 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.logo {
    height: 50px;
    width: auto;
    border-radius: var(--radius-sm);
}

.mobile-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.loading-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.nav {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* Header Cart Button - Gradient Style */
.header-cart-btn {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(168, 87, 125, 0.3);
    z-index: 100;
}

.header-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(168, 87, 125, 0.4);
}

.header-cart-btn i {
    color: white;
}

/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    /* Darker gradient */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(168, 87, 125, 0.4);
    z-index: 999;
    border: 2px solid white;
    /* Add border for contrast */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Floating Social Sidebar */
.floating-social {
    position: fixed;
    left: 20px;
    bottom: 100px;
    /* Above whatsapp button */
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 998;
}

.floating-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-social a:hover {
    transform: translateX(5px) scale(1.1);
}

.floating-social img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-cart-btn:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 8px 24px rgba(168, 87, 125, 0.5);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    height: 22px;
    /* Corrected height */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    /* Corrected font-size */
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: badge-pulse 0.3s ease;
}

@keyframes badge-pulse {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    /* Use a responsive min-height to avoid excessive vertical space on small devices */
    min-height: clamp(420px, 60vh, 700px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/optimized/banner.webp') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(245, 198, 217, 0.2), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(232, 180, 200, 0.2), transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero .btn {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 14px 32px;
    font-size: 1.1rem;
}

.hero .btn:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
}

/* ===================================
   SECTIONS
   =================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto var(--spacing-sm);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background: white;
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

/* Unified About features block */
.about-features {
    display: flex;
    justify-content: center;
}

.about-features-card {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    max-width: 900px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.about-features-icons {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.about-features-icons .feature-inline i {
    font-size: 2rem;
    color: var(--primary-color);
}

.about-features-text h3 {
    margin-bottom: 0.5rem;
}

.feature-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-gray);
}

/* ===================================
   LIFESTYLE SECTION
   =================================== */
.lifestyle {
    background: var(--bg-light);
    padding: 0;
}

.lifestyle-content {
    position: relative;
}

.lifestyle-image {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.lifestyle-image {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: block;
}

.lifestyle-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .lifestyle-image img {
        height: auto;
        max-height: 420px;
    }
}

.lifestyle-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-xl);
}

.lifestyle-text {
    color: white;
    max-width: 600px;
}

.lifestyle-text h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.lifestyle-text p {
    font-size: 1.1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.testimonials {
    background: white;
}

.testimonial-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (max-width: 768px) {
    .testimonial-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-image img {
        height: 280px;
        object-fit: cover;
    }
}

.testimonial-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-image:hover img {
    transform: scale(1.05);
}

/* Disable hover scale on touch devices (prevents accidental zoom and layout jumps) */
@media (hover: none) {
    .testimonial-image:hover img {
        transform: none;
    }
}

.testimonial-content {
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.3;
    margin-bottom: var(--spacing-md);
}

.testimonial-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.stars {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    color: #ffc107;
    font-size: 1.2rem;
}

.customer-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===================================
   WHY CHOOSE US SECTION
   =================================== */
.why-choose {
    background: linear-gradient(135deg, var(--bg-light), white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.benefit-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.benefit-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===================================
   PRODUCTS SECTION
   =================================== */
.search-filter-container {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(168, 87, 125, 0.1);
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.filter-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 24px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: white;
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(168, 87, 125, 0.1);
}

.product-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 400 / 280;
    max-height: 320px;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    to {
        background-position-x: -200%;
    }
}

.product-image.loaded {
    animation: none;
    background: none;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.add-to-cart-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

.add-to-cart-btn.success {
    background: linear-gradient(135deg, #25D366, #20ba5a);
    pointer-events: none;
}

.rotating {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.product-info {
    padding: var(--spacing-md);
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.product-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-gray);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--bg-light);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-input {
    width: 45px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
}

.add-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.add-to-cart-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}



.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.remove-item {
    position: absolute;
    top: var(--spacing-xs);
    left: var(--spacing-xs);
    width: 28px;
    height: 28px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.remove-item:hover {
    transform: scale(1.1);
}

.cart-footer {
    padding: var(--spacing-md);
    border-top: 2px solid var(--border-color);
    background: var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
    font-weight: 600;
}

.total-price {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ===================================
   OVERLAY & MODAL
   =================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   MODAL
   =================================== */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    overflow: hidden;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
}

.modal-body {
    padding: var(--spacing-md);
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(168, 87, 125, 0.1);
}

.order-summary {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.order-summary h4 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.summary-items {
    margin-bottom: var(--spacing-md);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--primary-color);
    font-size: 1.2rem;
}

/* ===================================
   PRODUCT DETAILS MODAL
   =================================== */
#productDetailsModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    overflow-y: auto;
}

#productDetailsModal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

#productDetailsModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

#productDetailsModal .modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
}

#productDetailsModal .modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

#productDetailsModal .modal-close:hover {
    background: var(--primary-color);
    color: white;
}

#productDetailsModal .modal-body {
    padding: var(--spacing-md);
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

#productDetailsOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

#productDetailsOverlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    background: white;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.contact-item p {
    color: var(--text-gray);
}

.contact-item a {
    color: var(--text-gray);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.tagline {
    font-style: italic;
    font-size: 0.95rem;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===================================
   FLOATING WHATSAPP BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet devices (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 24px;
    }

    .hero {
        min-height: 500px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .testimonial-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        margin: 0 auto;
    }

    .nav {
        display: none;
    }

    .header {
        padding: 12px 0;
    }

    .header-content {
        padding: 0;
        gap: 12px;
    }

    .logo {
        height: 45px;
    }

    .hero {
        min-height: 450px;
        padding: 40px 0;
    }

    .hero-content {
        padding: 20px 16px;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    section {
        padding: 40px 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .search-filter-container {
        padding: 0;
    }

    .filter-buttons {
        width: 100%;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .cart-sidebar {
        max-width: 100%;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 20px;
        left: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .about-text {
        font-size: 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Small mobile devices (max-width: 414px) */
@media (max-width: 414px) {
    .product-image {
        height: 200px;
    }

    .hero {
        min-height: 380px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Disable animations site-wide when requested (homepage cleanup) */
body[data-remove-animations] *,
body[data-remove-animations] *::before,
body[data-remove-animations] *::after {
    animation: none !important;
    transition: none !important;
}

body[data-remove-animations] {
    scroll-behavior: auto !important;
}

/* Accessibility: focus-visible for keyboard users */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Skip link styles (visually hidden until focused) */
.skip-link {
    position: absolute;
    right: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 50%;
    right: auto;
    top: 12px;
    transform: translateX(-50%);
    background: white;
    color: var(--primary-color);
    padding: 8px 12px;
    z-index: 10000;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

/* Small-screen adjustments: improve touch targets and reduce typography scale */
@media (max-width: 414px) {
    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .section-title {
        font-size: 1.6rem;
    }

    .product-name {
        font-size: 1.05rem;
    }

    .product-description {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 18px;
        min-height: 44px;
        font-size: 1rem;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 0.95rem;
    }

    .header-content {
        gap: 0.5rem;
    }

    .logo {
        height: 44px;
    }

    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}

/* Header compact spacing for small devices to avoid wrapping */
@media (max-width: 480px) {
    .header-content {
        padding-left: 8px;
        padding-right: 8px;
    }

    .nav-link {
        display: none;
        /* hide nav links in header on very small screens; mobile menu is used */
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }
}

@media (min-width: 415px) and (max-width: 767px) {
    .btn {
        padding: 12px 22px;
        min-height: 44px;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

/* Extra small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
        margin: 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero {
        min-height: 380px;
        padding: 30px 0;
    }

    .hero-content {
        padding: 16px 12px;
    }

    .lifestyle-image img {
        height: auto;
        max-height: 300px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-text {
        font-size: 0.95rem;
    }
}

/* Prevent background scrolling when modal is open */
/* Prevent background scrolling when modal is open */
body.modal-open {
    overflow: hidden !important;
}

/* Ensure modal content is scrollable */
/* Ensure modal content is scrollable and isolates scroll */
#productDetailsModal {
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Prevents scroll chaining to background */
    touch-action: pan-y;
    /* Re-enables vertical scroll inside modal */
}