﻿/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

nav button {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

nav button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

/* Header actions spacing */
.header-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.icon-btn:hover {
    background: rgba(15, 23, 42, 0.52);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Hero section redesign */
.hero {
    background: linear-gradient(135deg, #F5F5DC 0%, #FFF8DC 50%, #F0E68C 100%);
    color: #2c3e50;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1596040033229-a9821ebd058d?w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.22) 0%, rgba(30, 41, 59, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.highlight {
    background: linear-gradient(45deg, #DAA520, #F4A460);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    background: rgba(15, 23, 42, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    backdrop-filter: blur(4px);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.52);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.36);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: #f3f4f6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 3rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    border: 3px solid transparent;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    min-width: auto;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.6),
        rgba(255,255,255,0.4),
        rgba(255,255,255,0.6),
        transparent);
    transition: left 1s ease-in-out;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 1.2s ease-out, height 1.2s ease-out;
    z-index: 0;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover::after {
    width: 500px;
    height: 500px;
}

.btn:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.7),
        inset 0 2px 0 rgba(255,255,255,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 15px 40px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(0,0,0,0.4);
    transition: all 0.1s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #EC4899, #F97316, #8B5CF6);
    color: white;
    border-color: #8B5CF6;
    box-shadow:
        0 20px 60px rgba(139,92,246,0.7),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(139,92,246,0.3);
    background-size: 400% 400%;
    animation: violetPinkPulse 5s ease infinite;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7C3AED, #DB2777, #EA580C, #7C3AED);
    border-color: #7C3AED;
    box-shadow:
        0 30px 80px rgba(139,92,246,0.9),
        inset 0 2px 0 rgba(255,255,255,0.4),
        inset 0 -2px 0 rgba(139,92,246,0.4);
    animation: none;
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #FFF8DC, #F5DEB3, #FFE4B5, #FFF8DC);
    color: #8B4513;
    border-color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
    box-shadow:
        0 20px 60px rgba(218,165,32,0.5),
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(139,69,19,0.2);
    background-size: 400% 400%;
    animation: creamPulse 5s ease infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #F5DEB3, #FFE4B5, #FFF8DC, #F5DEB3);
    border-color: #F4A460;
    box-shadow:
        0 30px 80px rgba(218,165,32,0.7),
        inset 0 2px 0 rgba(255,255,255,0.5),
        inset 0 -2px 0 rgba(139,69,19,0.3);
    animation: none;
    color: #8B4513;
}

@keyframes goldenPulse {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(255,215,0,0.6);
        background-position: 0% 50%;
    }
    50% {
        box-shadow: 0 20px 50px rgba(255,215,0,0.9);
        background-position: 100% 50%;
    }
}

@keyframes creamPulse {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(218,165,32,0.4);
        background-position: 0% 50%;
    }
    50% {
        box-shadow: 0 20px 50px rgba(218,165,32,0.7);
        background-position: 100% 50%;
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-image {
    position: absolute;
    bottom: 50px;
    right: 10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: float 4s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-animation {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

/* Section Story */
.story-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #FFF8DC 0%, #F5DEB3 100%);
}

.story-grid {
    display: grid;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    align-items: start;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h2 {
    font-size: 3rem;
    color: #8B4513;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
}

.story-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #8B4513, #DAA520);
    border-radius: 2px;
}

.story-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2C1810;
    margin-bottom: 2rem;
}

.story-features {
    display: grid;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
}

.feature i {
    font-size: 3rem;
    color: #8B4513;
    margin-bottom: 1rem;
    display: block;
}

.feature h4 {
    font-size: 1.3rem;
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.story-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 69, 19, 0.2);
    align-self: start;
}

.story-image img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

/* Products section */
.products {
    padding: 100px 0;
    background: white;
}

.products h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.search-container input {
    padding: 0.8rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1rem;
    width: 300px;
    transition: border-color 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-container button {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.search-container button:hover::before {
    left: 100%;
}

.search-container button:hover {
    background: linear-gradient(45deg, #218838, #1aa085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
}
.product {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.product:nth-child(odd) {
    animation-delay: 0.1s;
}

.product:nth-child(even) {
    animation-delay: 0.2s;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product:hover img {
    transform: scale(1.05);
}

.product h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.product p {
    padding: 0 1.5rem;
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.5;
}

.product .price {
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    font-size: 1.4rem;
    display: block;
}

.product button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.product button:hover::before {
    left: 100%;
}

.product button:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
}

/* Add to cart button styles */
.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    background: linear-gradient(45deg, #218838, #1aa085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-link {
    background: none;
    border: none;
    color: #bdc3c7;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    padding: 0;
    font-family: inherit;
}

.footer-link:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 0;
}

/* Contact form styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    font-family: inherit;
}

.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23667eea" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 50px;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: #fff;
    transform: translateY(-1px);
}

.contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-align: center;
}

.contact-info p {
    margin: 0.5rem 0;
    color: #495057;
    font-size: 1rem;
}

/* Modal styles */
.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease-out;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 2rem;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out forwards;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    border: 0;
    background: transparent;
    padding: 0.15rem 0.35rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #667eea;
}

/* Keep modal close buttons compact; avoid inheriting full-width modal button styles. */
.modal button.close {
    width: auto !important;
    min-width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.35) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    opacity: 1 !important;
}

.modal button.close:hover,
.modal button.close:focus {
    background: rgba(15, 23, 42, 0.55) !important;
    color: #ffffff !important;
}

:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
    outline: 3px solid #4f46e5;
    outline-offset: 2px;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 2rem;
    text-align: center;
}

.modal input,
.modal select {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fff;
}

.modal input:focus,
.modal select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-field {
    position: relative;
    margin: 0.5rem 0 1rem;
}

.password-field input {
    margin: 0;
    padding-right: 3.25rem;
}

.password-field .password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.password-field .password-toggle:hover {
    transform: translateY(-50%) scale(1.08);
    background: rgba(102, 126, 234, 0.12);
    box-shadow: none;
}

#signup-password::-ms-reveal,
#signup-password::-ms-clear,
#login-password::-ms-reveal,
#login-password::-ms-clear {
    display: none;
}


.modal button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.modal button:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

#cart-items {
    list-style-type: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

#cart-items li {
    padding: 1rem 0;
    border-bottom: 1px solid #e1e8ed;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    background: #667eea;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.quantity-controls button:hover {
    background: #5a6fd8;
}

#cart-items li button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

#cart-items li button:hover {
    background: #c0392b;
}

#cart-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.packaging-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.packaging-options button {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.packaging-options button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.packaging-options button:hover::before {
    left: 100%;
}

.packaging-options button:hover {
    background: linear-gradient(45deg, #218838, #1aa085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #8B4513;
    background: white;
    color: #8B4513;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-btn:hover {
    background: #8B4513;
    color: white;
}

.page-btn.active {
    background: #8B4513;
    color: white;
}

.page-dots {
    padding: 0.5rem;
    color: #666;
    font-weight: bold;
}

/* Testimonials section */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.testimonials-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
}

.testimonials-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.testimonials-grid {
    display: grid;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.testimonial {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    margin-bottom: 1rem;
}

.testimonial-author strong {
    display: block;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

.testimonial-rating {
    color: #f39c12;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* Styles pour le modal d'évaluation du site */
#site-review-modal .modal-content {
    max-width: 500px;
}

#site-review-modal .rating-stars {
    text-align: center;
    margin-bottom: 1.5rem;
}

#site-review-modal .stars-input {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

#site-review-modal .stars-input input[type="radio"] {
    display: none;
}

#site-review-modal .stars-input label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

#site-review-modal .stars-input input[type="radio"]:checked ~ label,
#site-review-modal .stars-input label:hover,
#site-review-modal .stars-input label:hover ~ label {
    color: #f39c12;
}

#site-review-modal .comment-section {
    margin-bottom: 1.5rem;
}

#site-review-modal .comment-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

#site-review-modal .comment-section textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#site-review-modal .comment-section textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#site-review-modal .anonymous-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

#site-review-modal .anonymous-option input[type="checkbox"] {
    width: auto;
    margin: 0;
}

#site-review-modal button[type="button"] {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

#site-review-modal button[type="button"]:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .products h2 {
        font-size: 2rem;
    }

    .product-grid {
        
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonials-grid {
        
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .footer-content {
        
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr;
        gap: 2rem;
    }

    #site-review-modal .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    #site-review-modal .stars-input label {
        font-size: 1.5rem;
    }
}
#signup-password::-ms-reveal,
#signup-password::-ms-clear,
#login-password::-ms-reveal,
#login-password::-ms-clear {
    display: block;
}
/* Signup premium */
.phone-group {
    display: grid;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: auto 1fr;
    gap: 0.6rem;
    margin: 0.5rem 0 1rem;
    align-items: start;
}

.country-wrapper {
    position: relative;
    width: 180px;
}

#country-code {
    display: none;
}

#country-search {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 8px;
    display: none;
}

.country-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    cursor: pointer;
    width: 180px;
    background: #fff;
}

.country-display img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    background: #f1f5f9;
}

.country-list {
    position: absolute;
    top: 38px;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: none;
    z-index: 999;
    pointer-events: auto;
}

.country-item {
    padding: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-item:hover {
    background: #f0f0f0;
}

.password-wrapper {
    position: relative;
}

.eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    cursor: pointer;
    background-size: cover;
    background-image: url('https://img.icons8.com/ios-glyphs/30/000000/visible.png');
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.eye:hover {
    opacity: 1;
}

.eye.hide {
    background-image: url('https://img.icons8.com/ios-glyphs/30/000000/invisible.png');
}

#password-strength {
    height: 8px;
    border-radius: 4px;
    margin-top: 8px;
    background: #e5e7eb;
    transition: background 0.3s ease;
}

#password-rules {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #555;
}

#password-rules li.valid {
    color: #27ae60;
    font-weight: 600;
}

#password-rules li.invalid {
    color: #e74c3c;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.4s ease;
}

button.loading {
    pointer-events: none;
    opacity: 0.7;
}

button.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* Client reviews section */
.btn-review {
    display: block;
    margin: 24px auto 10px;
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 45%, #8b5cf6 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(139, 92, 246, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.36);
    filter: saturate(1.08);
}

.reviews-section {
    position: relative;
    width: min(1140px, 94%);
    margin: 28px auto 58px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 16% 12%, rgba(245, 158, 11, 0.17) 0%, transparent 32%),
        radial-gradient(circle at 86% 88%, rgba(139, 92, 246, 0.16) 0%, transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 244, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.16);
    backdrop-filter: blur(5px);
}

.reviews-section .container {
    max-width: 100%;
    padding: 0;
}

.reviews-section h2 {
    margin-bottom: 18px;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    color: #1f2937;
}

.reviews-section h3 {
    margin-bottom: 10px;
    color: #111827;
}

.stats-box {
    display: grid;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr 1.5fr;
    gap: 16px;
    margin-bottom: 22px;
}

.average-box,
.graph-box,
.review-form {
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.average-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
}

.average-number {
    margin-top: 8px;
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    font-weight: 800;
    color: #f59e0b;
    text-shadow: 0 3px 10px rgba(245, 158, 11, 0.2);
}

#ratingGraph {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-row {
    display: grid;
    grid-template-columns: 56px 1fr 34px;
    gap: 12px;
    align-items: center;
    font-weight: 600;
    color: #374151;
}

.rating-row span:first-child {
    text-align: left;
}

.rating-row span:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.rating-bar-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 40%, #ef4444 100%);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.32);
    transition: width 0.35s ease;
}

@media (max-width: 640px) {
    .rating-row {
        grid-template-columns: 52px 1fr 30px;
        gap: 10px;
    }
}

.review-form {
    margin-bottom: 16px;
}

#spiceSelect,
#filterSpice,
#sortReviews,
.review-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#spiceSelect,
#filterSpice,
#sortReviews {
    padding: 11px 12px;
}

#spiceSelect {
    margin-top: 8px;
}

#spiceSelect:focus,
#filterSpice:focus,
#sortReviews:focus,
.review-form textarea:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

.review-form textarea {
    min-height: 120px;
    margin-top: 12px;
    padding: 12px;
    resize: vertical;
}

.site-reviews-stars {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 6px;
}

.site-reviews-stars span {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.site-reviews-stars span:hover {
    transform: translateY(-2px) scale(1.06);
}

.site-reviews-stars span.selected {
    color: #f59e0b;
    text-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.review-form .anonymous {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #374151;
    font-weight: 500;
}

.review-form button {
    margin-top: 12px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(139, 92, 246, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(139, 92, 246, 0.38);
}

.filters-box {
    display: grid;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr 260px;
    gap: 12px;
    margin: 18px 0 14px;
}

#reviewsList {
    display: grid;
    gap: 12px;
}

.review-card {
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fffbf5 100%);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.review-card .stars-display {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.review-card p {
    color: #111827;
    margin: 0 0 8px;
}

.review-card small {
    color: #6b7280;
}

#pagination {
    margin-top: 18px;
    text-align: center;
}

.reviews-page-btn {
    min-width: 36px;
    margin: 0 4px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reviews-page-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.reviews-page-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(139, 92, 246, 0.35);
}

@media (max-width: 900px) {
    .reviews-section {
        padding: 18px;
        border-radius: 18px;
    }

    .stats-box {
        
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr;
    }

    .filters-box {
        
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr;
    }
}.notification {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    max-width: 360px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #1f2937;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}






.cart-actions {
    display: grid;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.cart-actions button {
    margin-top: 0;
}

.modal .cart-actions .clear-cart-btn {
    background: linear-gradient(45deg, #ef4444, #dc2626);
}

.modal .cart-actions .clear-cart-btn:hover {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

@media (max-width: 640px) {
    .cart-actions {
        
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr;
    }
}

.clear-cart-confirm-content {
    max-width: 520px;
}

.clear-cart-confirm-text {
    margin: 0.75rem 0 1rem;
    color: #334155;
    font-size: 1.05rem;
}

.clear-cart-confirm-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #475569;
}

.clear-cart-confirm-option input[type='checkbox'] {
    width: auto;
    margin: 0;
}

.clear-cart-confirm-actions {
    display: grid;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.clear-cart-confirm-actions button {
    margin-top: 0;
}

.modal .clear-cart-confirm-actions .clear-cart-cancel-btn {
    background: #64748b;
}

.modal .clear-cart-confirm-actions .clear-cart-cancel-btn:hover {
    background: #475569;
}

.modal .clear-cart-confirm-actions .clear-cart-confirm-btn {
    background: linear-gradient(45deg, #ef4444, #dc2626);
}

.modal .clear-cart-confirm-actions .clear-cart-confirm-btn:hover {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

@media (max-width: 640px) {
    .clear-cart-confirm-actions {
        
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr;
    }
}

.forgot-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: #7c2d12;
    font-weight: 600;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
    color: #9a3412;
}

@media (max-width: 640px) {
    .phone-group {
        
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr;
    }
}


/* Country selector fixes */
.phone-group {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: minmax(200px, 220px) 1fr;
    align-items: start;
}

.country-wrapper {
    width: 100%;
}

.country-display {
    width: 100%;
    padding: 10px 10px;
}

#country-search {
    width: 100%;
    margin-top: 8px;
}

.country-list {
    top: calc(100% + 6px);
}

@media (max-width: 640px) {
    .phone-group {
        
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr;
    }
}

.country-display img { display: none; }
.country-flag-emoji { font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; }
.country-list { z-index: 5000; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18); }


/* Country alignment final fix */
.phone-group {
    align-items: start;
}

.phone-group #signup-phone {
    margin: 0;
    height: 56px;
    padding: 0 14px;
    line-height: 56px;
}

.phone-group .country-wrapper {
    margin: 0;
}

.phone-group .country-display {
    min-height: 56px;
    height: 56px;
    padding: 0 12px;
    line-height: 1;
}

.phone-group #country-search {
    margin-top: 6px;
}

.login-help-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

.login-help-links .forgot-link {
    margin-top: 0;
}

.login-signup-switch {
    margin-top: 0.9rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #475569;
    font-size: 0.95rem;
}

.login-signup-link {
    border: 0;
    background: transparent;
    color: #7c3aed;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.login-signup-link:hover {
    color: #6d28d9;
}

@media (min-width: 901px) {
    .login-signup-switch {
        display: none !important;
    }
}

.auth-login-mobile {
    display: none;
}


.terms-accept {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.9rem;
    color: #475569;
    font-size: 0.95rem;
}

.terms-accept input[type='checkbox'] {
    width: auto;
    margin-top: 0.15rem;
}

.terms-accept a {
    color: #7c2d12;
    font-weight: 700;
}

.terms-accept a:hover {
    text-decoration: underline;
}

.password-change-section {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.password-change-section h3 {
    margin: 0 0 0.5rem;
    color: #334155;
    font-size: 1rem;
}

.edit-account-actions {
    display: grid;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.edit-account-actions button {
    margin-top: 0.75rem;
}

.modal .edit-account-actions .delete-account-btn {
    background: linear-gradient(45deg, #ef4444, #b91c1c);
}

.modal .edit-account-actions .delete-account-btn:hover {
    background: linear-gradient(45deg, #dc2626, #991b1b);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.25);
}

.delete-account-confirm-content {
    max-width: 520px;
}

.delete-account-confirm-text {
    margin: 0.75rem 0 1rem;
    color: #334155;
}

.delete-account-password-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
}

.delete-account-confirm-actions {
    display: grid;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal .delete-account-confirm-actions .delete-account-cancel-btn {
    background: #64748b;
}

.modal .delete-account-confirm-actions .delete-account-confirm-btn {
    background: linear-gradient(45deg, #ef4444, #b91c1c);
}

@media (max-width: 640px) {
    .edit-account-actions,
    .delete-account-confirm-actions {
        
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr;
    }
}


/* Admin catalog */
.admin-modal{max-width:980px}
.admin-subtitle{margin-top:-6px;color:#5b4635}
.admin-toolbar{display:flex;gap:12px;align-items:center;margin:16px 0}
.admin-toolbar input{flex:1;min-width:220px}
.admin-form{display:grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
}
.admin-form-actions{grid-column:1/-1;display:flex;gap:10px;justify-content:flex-end}
.admin-table-wrap{max-height:420px;overflow:auto;border:1px solid #eee;border-radius:12px}
.admin-table{width:100%;border-collapse:collapse;background:#fff}
.admin-table th,.admin-table td{padding:12px 14px;border-bottom:1px solid #f1f1f1;text-align:left;vertical-align:middle}
.admin-table th{position:sticky;top:0;background:#faf7f2;z-index:1}
.admin-actions{display:flex;gap:8px}
.admin-actions button{white-space:nowrap}
.admin-note{color:#7a5b43;font-size:.95rem;margin-top:12px}


.admin-form input,
.admin-form select{
    width:100%;
    height:52px;
    box-sizing:border-box;
    margin:0;
    padding:1rem;
    border:2px solid #e1e8ed;
    border-radius:10px;
    font-size:1rem;
    background:#fff;
    color:#2c3e50;
    transition:border-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-form select{
    padding-right:2.75rem;
}

.admin-form input:focus,
.admin-form select:focus{
    outline:none;
    border-color:#667eea;
    box-shadow:0 0 0 3px rgba(102, 126, 234, 0.1);
}
.admin-packaging summary{cursor:pointer;font-weight:700;color:#5b4635;margin:10px 0}
.admin-packaging[open] summary{margin-bottom:10px}
.admin-packaging-form{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
}



.admin-selected{display:flex;align-items:center;gap:6px;color:#5b4635;font-weight:600;white-space:nowrap}
.admin-selected strong{color:#111827}


#admin-packaging-enable{height:46px}
#admin-packaging-hint{margin-top:10px}



/* Order success modal */
.order-success{max-width:760px}
.order-success h2{margin-bottom:6px}
.order-success-sub{margin-top:0;color:#6b7280}
.order-success-meta{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.order-success-chip{flex:1 1 180px;display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid rgba(0,0,0,0.08);border-radius:14px;background:linear-gradient(180deg,#ffffff 0%,#fbf7f2 100%)}
.order-success-chip .label{font-size:.85rem;color:#7a5b43;text-transform:uppercase;letter-spacing:.04em}
.order-success-chip strong{color:#111827;font-size:1rem}
.order-success-summary{margin-top:10px;padding:14px;border:1px solid rgba(0,0,0,0.08);border-radius:16px;background:#fff}
.order-success-summary h3{margin:0 0 10px;color:#5b4635}
.order-success-items{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.order-success-items li{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:rgba(102,126,234,0.06)}
.order-success-items .line-title{font-weight:700;color:#111827}
.order-success-items .line-sub{color:#6b7280;font-size:.95rem;margin-top:2px}
.order-success-items .line-total{font-weight:800;color:#111827;white-space:nowrap}
.order-success-total{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:12px;border-top:1px dashed rgba(0,0,0,0.15)}
.order-success-total strong{font-size:1.25rem}
.order-success-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:16px}
.order-success-actions .btn{min-width:160px}
@media (max-width:640px){
  .order-success-actions{justify-content:stretch}
  .order-success-actions .btn{width:100%}
}

.signup-type {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
  color: #334155;
  font-weight: 600;
}

.signup-type input[type=\"checkbox\"] {
  width: 18px;
  height: 18px;
}

.signup-business-disabled {
  opacity: 0.6;
}


.admin-view-toggle {
  margin: 6px 0;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
}

.admin-view-toggle #admin-view-label {
  display: block;
  margin-bottom: 6px;
  color: #1e3a5f;
  font-weight: 700;
}

.admin-view-actions {
  display: flex;
  gap: 8px;
}

/* ===== Header/dropdown responsive fix ===== */
.main-header .container {
  gap: 0.85rem;
  align-items: center;
}
.header-left, .header-right {
  display: flex;
  align-items: center;
  min-width: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.brand-name {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1;
  white-space: nowrap;
}
.main-nav ul {
  flex-wrap: nowrap;
  justify-content: center;
}
.main-nav .nav-link { white-space: nowrap; }
#auth-buttons { display:flex; gap:.6rem; align-items:center; }
.user-menu { position: relative; }
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 330px;
  max-width: min(92vw, 420px);
  background: rgba(248,250,252,.98);
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 14px;
  padding: .7rem;
  box-shadow: 0 14px 30px rgba(15,23,42,.22);
  z-index: 1200;
}
.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown { display:block; }
#user-info { gap: .55rem; }
#user-status { color:#243b6b; font-size:1rem; font-weight:700; }

@media (max-width: 1400px) {
  .main-nav ul { gap: .55rem; }
  .btn-small { padding: .46rem .85rem; font-size: .84rem; }
  .brand-name { font-size: 1.55rem; }
  .header-actions { gap: .95rem; }
}

@media (max-width: 1180px) {
  header { padding: 1rem 0; }
  header .container { flex-wrap: wrap; justify-content: center; }
  .header-left, .header-right { width: 100%; justify-content: center; }
  .main-nav { width: 100%; }
  .main-nav ul { width: 100%; }
  .hero { padding-top: 230px; }
}

/* ===== Adaptive viewport fix (header + hero) ===== */
.hero {
  padding-top: clamp(210px, 24vh, 290px);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.12;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  max-width: min(92vw, 760px);
  margin-left: auto;
  margin-right: auto;
  word-break: break-word;
}

.hero-stats {
  display: grid;
  
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  width: min(100%, 940px);
  margin-left: auto;
  margin-right: auto;
}

.stat {
  min-width: 0;
}

.stat-number {
  font-size: clamp(1.8rem, 4.8vw, 3rem);
  white-space: normal;
  line-height: 1.2;
}

.stat-label {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.hero-cta {
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-cta .btn {
  flex: 1 1 240px;
  max-width: 420px;
}

@media (max-width: 1180px) {
  .hero {
    padding-top: 280px;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
  }

  .user-dropdown {
    right: 50%;
    transform: translateX(50%);
    max-width: 95vw;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 330px;
  }

  .main-nav ul {
    gap: 0.4rem;
  }

  .btn-small {
    font-size: 0.8rem;
    padding: 0.42rem 0.72rem;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .hero-image {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 360px;
  }

  .hero-content {
    padding: 0 12px;
  }

  .hero-stats {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr;
  }

  .hero-cta .btn {
    flex-basis: 100%;
    max-width: 100%;
  }

  .user-dropdown {
    right: 0;
    transform: none;
    min-width: min(95vw, 360px);
  }
}

/* ===== User dropdown close-delay behavior ===== */
body.is-authenticated .user-menu.open .user-dropdown { display: block !important; }
body.is-authenticated .user-menu:not(.open) .user-dropdown { display: none !important; }

/* ===== User dropdown premium animation ===== */
.user-dropdown {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transform-origin: top right;
  transition: opacity 220ms ease, transform 240ms ease, visibility 0s linear 240ms;
}

.user-menu.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 220ms ease, transform 240ms ease, visibility 0s linear 0s;
}

/* ===== User menu hover + delayed close compatibility ===== */
body.is-authenticated .user-menu:not(.open) .user-dropdown { display: block !important; }
.user-dropdown {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transform-origin: top right;
  transition: opacity 220ms ease, transform 240ms ease, visibility 0s linear 240ms;
}
.user-menu.open .user-dropdown,
.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 220ms ease, transform 240ms ease, visibility 0s linear 0s;
}

 .social-auth-intro {
    margin: 0 0 0.7rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.28);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.10), rgba(236, 72, 153, 0.10));
    color: #4338ca;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: uppercase;
}

.social-auth-buttons {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.social-auth-buttons button {
    margin: 0;
}




body:not(.is-authenticated) .user-dropdown {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* AUTH SAFETY GUARD: never show account dropdown when logged out */
body:not(.is-authenticated) .user-menu .user-dropdown,
body:not(.is-authenticated) .user-menu:hover .user-dropdown,
body:not(.is-authenticated) .user-menu:focus-within .user-dropdown,
body:not(.is-authenticated) .user-menu.open .user-dropdown {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.is-authenticated .user-menu.open .user-dropdown,
body.is-authenticated .user-menu:hover .user-dropdown,
body.is-authenticated .user-menu:focus-within .user-dropdown {
  display: block !important;
}

#google-onboarding-form {
  display: grid;
  gap: 0.7rem;
}

#google-onboarding-form #google-siret:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Admin view selector modal */
.view-selector-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.view-selector-card {
  width: min(520px, 96vw);
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.view-selector-title {
  margin: 0 0 6px;
  color: #1e3a5f;
  font-size: 2rem;
  font-weight: 800;
}

.view-selector-subtitle {
  margin: 0 0 16px;
  color: #475569;
  font-size: 1rem;
}

.view-selector-option {
  width: 100%;
  margin-bottom: 10px;
}

.view-selector-option.is-active {
  border: 2px solid #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.view-selector-close {
  width: 100%;
  margin-top: 6px;
}

.social-auth-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-btn-label {
  line-height: 1;
}

.social-brand-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.social-brand-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}



.is-hidden {
  display: none;
}

.signup-type-spaced {
  margin-top: 12px;
}


.admin-toolbar-tight { margin: 12px 0 8px; }
.admin-btn-spaced-top { margin: 6px 0 12px; }
.admin-btn-spaced-bottom { margin: 0 0 12px; }
.admin-table-wrap-spaced { margin-top: 12px; }
.payment-note-primary { margin-top: 0; color: #6b7280; }
.payment-note-secondary { margin: 12px 0 0; color: #6b7280; font-size: 0.95rem; }
.view-selector-note { margin-bottom: 20px; color: #6b7280; }


/* ===== UX stability (loading states) ===== */
button.is-loading,
.btn.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

#stripe-checkout-btn[disabled] {
  filter: saturate(0.75);
}

.admin-toolbar select {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  color: #1f2937;
}

/* Admin users table: two fixed action slots */
#admin-users-tbody .admin-actions {
  display: grid;
  
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  min-width: 360px;
}

#admin-users-tbody .admin-actions .btn {
  width: 100%;
  min-width: 0;
  text-align: center;
}

#admin-users-tbody td:last-child {
  min-width: 420px;
}





/* ===== Mobile compatibility (iOS/Android) ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Keep touch targets comfortable on phones */
@media (max-width: 900px) {
  .btn,
  .btn-small,
  .icon-btn,
  button,
  .country-display,
  .country-item {
    min-height: 44px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* iPhone safe-area + dynamic viewport for modals */
@supports (height: 100dvh) {
  .modal {
    min-height: 100dvh;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-right: max(10px, env(safe-area-inset-right));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    padding-left: max(10px, env(safe-area-inset-left));
  }

  .modal-content {
    max-height: 90dvh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== HARD MOBILE RESPONSIVE PATCH ===== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (hover: none) {
  .btn:hover,
  .add-to-cart-btn:hover,
  .product:hover,
  .feature:hover {
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .main-header,
  header {
    padding: 0.6rem 0 !important;
  }

  .main-header .container,
  header .container {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
    justify-items: center !important;
  }

  .header-left,
  .header-right,
  .main-nav,
  .header-actions {
    width: 100% !important;
    justify-content: center !important;
  }

  .logo {
    justify-content: center !important;
  }

  .brand-name {
    font-size: 1.35rem !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .main-nav ul {
    width: 100% !important;
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    align-items: stretch !important;
  }

  .main-nav li {
    width: 100% !important;
  }

  .main-nav .nav-link,
  .main-nav .btn,
  .main-nav .btn-small,
  .main-nav .contact-btn {
    width: 100% !important;
    min-height: 42px !important;
    padding: 0.5rem 0.6rem !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.4px !important;
    text-align: center !important;
  }

  #auth-buttons {
    width: 100% !important;
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  #auth-buttons .btn,
  #auth-buttons .btn-small {
    width: 100% !important;
    min-height: 42px !important;
    padding: 0.5rem 0.55rem !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.4px !important;
  }

  .hero {
    min-height: auto !important;
    padding-top: 420px !important;
    padding-bottom: 36px !important;
  }

  .hero-title {
    font-size: 2rem !important;
    line-height: 1.15 !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    padding: 0.7rem 0.8rem !important;
  }

  .hero-stats {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .stat {
    width: 100% !important;
  }

  .hero-cta {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
    width: 100% !important;
  }

  .hero-cta .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .story-grid,
  .footer-content {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .story-features {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .search-container {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .search-container input,
  .search-container button {
    width: 100% !important;
  }

  .product-grid {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .product img {
    height: 200px !important;
  }

  .modal {
    padding: 10px !important;
  }

  .modal-content {
    width: min(96vw, 620px) !important;
    max-height: 90dvh !important;
    overflow: auto !important;
    padding: 14px !important;
  }

  .admin-modal {
    max-width: 96vw !important;
  }

  .admin-form {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
  }

  .admin-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .admin-toolbar input,
  .admin-toolbar select,
  .admin-toolbar button {
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-table-wrap {
    overflow: auto !important;
  }

  .admin-table {
    min-width: 780px !important;
  }

  .user-dropdown {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    min-width: min(94vw, 360px) !important;
    max-width: 94vw !important;
  }
}

@media (max-width: 480px) {
  .main-nav ul {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
  }

  #auth-buttons {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
  }

  .hero {
    padding-top: 470px !important;
  }

  .hero-title {
    font-size: 1.8rem !important;
  }
}

/* ===== MOBILE COMPACT HEADER OVERRIDE ===== */
@media (max-width: 900px) {
  header,
  .main-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 0 !important;
    z-index: 1000;
  }

  .main-header .container,
  header .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .logo {
    justify-content: center !important;
    gap: 10px !important;
  }

  .logo img {
    height: 54px !important;
  }

  .brand-name {
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .main-nav {
    width: 100% !important;
  }

  .main-nav ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    padding: 2px 2px 6px !important;
    scrollbar-width: none;
  }

  .main-nav ul::-webkit-scrollbar {
    display: none;
  }

  .main-nav li {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .main-nav .nav-link,
  .main-nav .btn,
  .main-nav .btn-small,
  .main-nav .contact-btn {
    width: auto !important;
    min-height: 36px !important;
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
  }

  .header-right,
  .header-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  #auth-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: auto !important;
  }

  #auth-buttons .btn,
  #auth-buttons .btn-small {
    min-height: 36px !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px !important;
    width: auto !important;
  }

  .icon-btn {
    min-width: 36px !important;
    min-height: 36px !important;
    font-size: 1.15rem !important;
  }

  .hero {
    padding-top: 255px !important;
    min-height: auto !important;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 48px !important;
  }

  .brand-name {
    font-size: 0.98rem !important;
  }

  .main-nav .nav-link,
  .main-nav .btn,
  .main-nav .btn-small,
  .main-nav .contact-btn {
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
  }

  #auth-buttons .btn,
  #auth-buttons .btn-small {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 0.76rem !important;
  }

  .hero {
    padding-top: 235px !important;
  }
}

/* ===== MOBILE HEADER LAYOUT V2 ===== */
@media (max-width: 900px) {
  header,
  .main-header {
    padding: 8px 0 !important;
  }

  header .container,
  .main-header .container {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .header-left,
  .main-nav,
  .header-right,
  .header-actions {
    width: 100% !important;
    min-width: 0 !important;
  }

  .logo {
    justify-content: center !important;
    gap: 10px !important;
  }

  .logo img {
    height: 50px !important;
    width: auto !important;
  }

  .brand-name {
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }

  .main-nav ul {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    justify-content: stretch !important;
  }

  .main-nav li {
    width: 100% !important;
    min-width: 0 !important;
  }

  .main-nav .nav-link,
  .main-nav .btn,
  .main-nav .btn-small,
  .main-nav .contact-btn,
  nav button {
    width: 100% !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }

  .header-actions {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: auto 1fr auto !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .cart-btn {
    justify-self: start !important;
  }

  #auth-buttons {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #auth-buttons .btn,
  #auth-buttons .btn-small {
    width: 100% !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
  }

  .user-menu {
    justify-self: end !important;
  }

  .icon-btn {
    min-width: 36px !important;
    min-height: 36px !important;
    font-size: 1.1rem !important;
  }

  .hero {
    padding-top: calc(var(--mobile-header-offset, 240px) + 18px) !important;
  }
}

@media (max-width: 480px) {
  .main-nav ul {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
  }

  #auth-buttons {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
  }

  .brand-name {
    font-size: 1rem !important;
  }

  .hero {
    padding-top: calc(var(--mobile-header-offset, 270px) + 14px) !important;
  }
}

/* ===== MOBILE HAMBURGER MENU ===== */
.mobile-menu-toggle,
.mobile-menu,
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }

  .header-left {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(15,23,42,0.22);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #fff;
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(2, 6, 23, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(84vw, 340px);
    z-index: 1300;
    background: linear-gradient(180deg, #1f2a44 0%, #2b1d48 100%);
    box-shadow: -10px 0 30px rgba(0,0,0,.35);
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
    display: block;
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    margin-bottom: 12px;
  }

  .mobile-menu-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-menu-nav {
    display: grid;
    gap: 8px;
  }

  .mobile-menu-link {
    width: 100%;
    display: block;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
  }

  .mobile-menu-contact {
    text-align: left;
    border: 1px solid rgba(255,211,77,.55);
    background: linear-gradient(135deg, #fcd34d, #facc15);
    color: #1f2937;
    cursor: pointer;
  }

  body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
  }

  body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: block;
  }

  body.mobile-menu-open .mobile-menu {
    transform: translateX(0);
  }
}

/* ===== MOBILE MENU FINAL OVERRIDE ===== */
@media (max-width: 900px) {
  .main-header .container {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 10px !important;
    align-items: center !important;
  }
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .main-header .main-nav {
    display: none !important;
  }

  .main-header .header-left {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .main-header .logo {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
  }

  .main-header .mobile-menu-toggle {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(15,23,42,0.22);
    cursor: pointer;
    flex: 0 0 auto;
  }

  .main-header .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #fff;
  }
}

@media (min-width: 901px) {
  .main-header .mobile-menu-toggle,
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ===== MOBILE HEADER FIX: CART BADGE AND HERO READABILITY ===== */
@media (max-width: 900px) {
  .main-header .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .main-header .cart-btn,
  .main-header .icon-btn {
    position: relative !important;
    overflow: visible !important;
  }

  .main-header .cart-btn {
    justify-self: start !important;
    min-width: 40px !important;
    min-height: 40px !important;
    z-index: 2 !important;
  }

  .main-header .cart-count {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    left: auto !important;
    transform: none !important;
    z-index: 3 !important;
    min-width: 18px !important;
    min-height: 18px !important;
    line-height: 18px !important;
    padding: 0 5px !important;
    font-size: 11px !important;
    border: 2px solid #fff !important;
  }

  .hero {
    padding-top: calc(var(--mobile-header-offset, 320px) + 32px) !important;
  }

  .hero-content {
    padding-top: 8px !important;
  }

  .hero-title {
    color: #ffffff !important;
    text-shadow: 0 4px 18px rgba(0,0,0,0.65) !important;
  }

  .hero-subtitle {
    color: #ffffff !important;
    background: rgba(15, 23, 42, 0.62) !important;
    border: 1px solid rgba(255,255,255,0.34) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7) !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--mobile-header-offset, 350px) + 26px) !important;
  }

  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }
}

/* ===== CART BADGE GLOBAL FIX ===== */
.cart-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.cart-btn .cart-count,
.header-actions .cart-count {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  left: auto !important;
  transform: none !important;
  z-index: 5 !important;
}

/* ===== MOBILE HEADER COMPACT V3 ===== */
@media (max-width: 900px) {
  .main-header #auth-buttons {
    display: none !important;
  }

  .main-header .header-right {
    width: 100% !important;
  }

  .main-header .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .main-header .cart-btn,
  .main-header .user-menu {
    flex: 0 0 auto !important;
  }

  .main-header .cart-btn {
    margin-left: 2px !important;
  }

  .main-header .user-menu {
    margin-right: 2px !important;
  }

  .hero {
    padding-top: calc(var(--mobile-header-offset, 170px) + 20px) !important;
  }

  .hero-title {
    margin-top: 0 !important;
  }

  .mobile-menu-auth {
    display: grid;
    gap: 8px;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--mobile-header-offset, 170px) + 16px) !important;
  }
}

/* ===== MOBILE AUTH BUTTONS COMPACT V4 ===== */
@media (max-width: 900px) {
  .main-header #auth-buttons {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .main-header #auth-buttons .btn,
  .main-header #auth-buttons .btn-small {
    min-height: 30px !important;
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.3px !important;
    border-radius: 999px !important;
    line-height: 1.05 !important;
  }

  .main-header .header-actions {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .main-header .icon-btn {
    min-width: 34px !important;
    min-height: 34px !important;
    font-size: 1rem !important;
    padding: 4px !important;
  }

  .main-header .mobile-menu-auth {
    display: none !important;
  }

  .hero {
    padding-top: calc(var(--mobile-header-offset, 230px) + 8px) !important;
  }
}

@media (max-width: 480px) {
  .main-header #auth-buttons .btn,
  .main-header #auth-buttons .btn-small {
    min-height: 28px !important;
    padding: 4px 7px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.2px !important;
  }

  .main-header .header-actions {
    gap: 4px !important;
  }

  .hero {
    padding-top: calc(var(--mobile-header-offset, 220px) + 6px) !important;
  }
}

/* ===== MOBILE HEADER FINAL HOTFIX V5 ===== */
@media (max-width: 900px) {
  .main-header,
  .main-header .container {
    overflow: visible !important;
  }

  .main-header #auth-buttons {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .main-header #auth-buttons .btn,
  .main-header #auth-buttons .btn-small {
    min-height: 26px !important;
    padding: 3px 6px !important;
    font-size: 0.64rem !important;
    line-height: 1 !important;
    letter-spacing: 0.15px !important;
    border-radius: 999px !important;
  }

  .main-header .header-actions {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .main-header .icon-btn {
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 0.92rem !important;
    padding: 2px !important;
  }

  .main-header .logo img {
    height: 44px !important;
  }

  .main-header .brand-name {
    font-size: 0.9rem !important;
  }

  /* repousser le hero sous le header, meme si hauteur dynamique change */
  .hero {
    padding-top: calc(var(--mobile-header-offset, 260px) + 44px) !important;
  }

  .hero-content {
    padding-top: 12px !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--mobile-header-offset, 250px) + 40px) !important;
  }

  .hero-subtitle {
    margin-top: 6px !important;
  }
}

/* ===== MOBILE AUTH FINAL LAYOUT V6 ===== */
@media (max-width: 900px) {
  .main-header #auth-buttons {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
  }

  .main-header #auth-buttons .btn,
  .main-header #auth-buttons .btn-small {
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: 0.82rem !important;
    line-height: 1.05 !important;
    letter-spacing: 0.35px !important;
    border-radius: 999px !important;
    width: 100% !important;
  }

  .main-header .header-actions {
    display: grid !important;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Product card layout (uniform image size) */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.14);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #eef2f7;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
}

.product-info {
    padding: 1rem 1rem 1.1rem;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #223a57;
    font-weight: 800;
}

.product-description {
    margin: 0 0 0.5rem;
    color: #334155;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-main {
    font-weight: 800;
    color: #1e293b;
}

.price-unit {
    color: #334155;
}

.product-rating {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .product-image-container {
        height: 200px;
    }
grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .main-header .icon-btn {
    min-width: 34px !important;
    min-height: 34px !important;
    font-size: 1rem !important;
  }

  .hero {
    padding-top: calc(var(--mobile-header-offset, 250px) + 12px) !important;
  }
}

@media (max-width: 480px) {
  .main-header #auth-buttons .btn,
  .main-header #auth-buttons .btn-small {
    min-height: 32px !important;
    padding: 5px 9px !important;
    font-size: 0.78rem !important;
  }

  .hero {
    padding-top: calc(var(--mobile-header-offset, 245px) + 10px) !important;
  }
}

/* ===== HERO MOBILE CLEAN V7 ===== */
@media (max-width: 900px) {
  .hero {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 10px !important;
  }

  .hero .container {
    padding-bottom: 0 !important;
  }

  .hero-content {
    margin-bottom: 0 !important;
  }

  /* Garder les blocs Accueil visibles sur mobile */
  .hero-stats,
  .hero-cta {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hero-image {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-bottom: 6px !important;
  }

  .hero-subtitle {
    margin-bottom: 8px !important;
  }
}

/* ===== HERO MOBILE HEIGHT FIX V9 ===== */
@media (max-width: 900px) {
  .hero {
    overflow: visible !important;
    min-height: 980px !important;
    height: auto !important;
    padding-top: calc(var(--mobile-header-offset, 245px) + 8px) !important;
    padding-bottom: 20px !important;
  }

  .hero-background {
    position: absolute !important;
    inset: 0 !important;
  }

  .hero-content {
    position: relative !important;
    z-index: 3 !important;
  }

  .hero-stats,
  .hero-cta {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 1020px !important;
  }
}

/* ===== AUTH STATE VISIBILITY FIX V1 ===== */
body.is-authenticated .main-header #auth-buttons {
  display: none !important;
}

body.is-authenticated #user-info {
  display: grid !important;
}

body:not(.is-authenticated) #user-info {
  display: none !important;
}


/* === Product image normalization (admin uploads + fallback SVG) === */
.product-grid .product-card {
  overflow: hidden !important;
}

.product-grid .product-card .product-image-container {
  width: 100% !important;
  height: 260px !important;
  min-height: 260px !important;
  max-height: 260px !important;
  overflow: hidden !important;
  background: #eef2f7 !important;
  position: relative !important;
}

.product-grid .product-card .product-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

@media (max-width: 900px) {
  .product-grid .product-card .product-image-container {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
  }
}

@media (max-width: 640px) {
  .product-grid .product-card .product-image-container {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
  }
}

/* ===== FINAL FIX: header/auth visibility + hero CTA clipping ===== */
@media (min-width: 901px) {
  body:not(.is-authenticated) .main-header #auth-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body:not(.is-authenticated) .main-header #login-btn,
  body:not(.is-authenticated) .main-header #signup-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body:not(.is-authenticated) .main-header .user-menu #user-info {
    display: none !important;
  }

  .main-header .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===== AUTH CODE MODAL ACTIONS ===== */
.auth-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

#auth-code-submit-btn,
#auth-code-resend-btn {
  flex: 1 1 220px;
}

.auth-code-resend-hint {
  margin-top: 0.6rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #5a6280;
}

.login-verify-resend {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
}

.login-verify-resend-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: #7c2d12;
}

.login-verify-resend-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #475569;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  .modal-content {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .modal h2 {
    font-size: clamp(1.35rem, 4.5vw, 1.8rem);
  }

  .modal button,
  .modal .btn,
  .modal input,
  .modal select,
  .modal textarea {
    min-height: 44px;
    font-size: 0.95rem;
  }
}

/* ===== MOBILE USER DROPDOWN NO OVERFLOW ===== */
@media (max-width: 900px) {
  .main-header .user-menu .user-dropdown {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: 108px !important;
    width: min(92vw, 420px) !important;
    max-width: 92vw !important;
    max-height: calc(100vh - 128px) !important;
    overflow: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 70000 !important;
  }
}

/* ===== MOBILE USER DROPDOWN HARD CLAMP ===== */
@media (max-width: 900px) {
  .main-header .user-menu {
    top: 50% !important;
    transform: none !important;
    margin-top: -17px !important;
  }

  .main-header .user-menu .user-dropdown,
  .main-header .user-menu.open .user-dropdown {
    position: absolute !important;
    left: auto !important;
    right: 0 !important;
    width: min(320px, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    top: 108px !important;
    transform: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    max-height: calc(100vh - 126px) !important;
    overflow: auto !important;
    z-index: 70001 !important;
  }
}

/* ===== MOBILE USER DROPDOWN ULTIMATE FIX ===== */
@media (max-width: 900px) {
  body.is-authenticated .main-header .user-menu .user-dropdown,
  body.is-authenticated .main-header .user-menu.open .user-dropdown,
  body.is-authenticated .main-header .user-menu:hover .user-dropdown,
  body.is-authenticated .main-header .user-menu:focus-within .user-dropdown {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    top: 108px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
    transition: none !important;
    max-height: calc(100vh - 124px) !important;
    overflow: auto !important;
    z-index: 90000 !important;
  }

  body.is-authenticated .main-header .user-menu .user-dropdown > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ===== MOBILE USER MENU STABLE MODE (override all legacy rules) ===== */
@media (max-width: 900px) {
  body.is-authenticated .main-header .user-menu .user-dropdown {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.is-authenticated .main-header .user-menu.open .user-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed !important;
    inset: 108px 8px auto 8px !important;
    left: 8px !important;
    right: 8px !important;
    top: 108px !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    min-width: 0 !important;
    transform: none !important;
    transition: none !important;
    box-sizing: border-box !important;
    max-height: calc(100vh - 124px) !important;
    overflow: auto !important;
    z-index: 95000 !important;
  }

  body.is-authenticated .main-header .user-menu.open #user-info,
  body.is-authenticated .main-header .user-menu.open #user-info > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.is-authenticated .main-header .user-menu.open #user-info .btn,
  body.is-authenticated .main-header .user-menu.open #user-info button {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
}

.hero {
  position: relative !important;
  min-height: 760px !important;
  overflow: visible !important;
}

.hero .hero-background {
  position: absolute !important;
  inset: 0 !important;
}

.hero .container,
.hero .hero-content {
  position: relative !important;
  z-index: 2 !important;
}

.hero .hero-content {
  padding-bottom: 120px !important;
}

.hero .hero-cta {
  position: relative !important;
  z-index: 3 !important;
  margin-top: 24px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 900px) {
  .hero {
    min-height: 980px !important;
  }

  .hero .hero-content {
    padding-bottom: 24px !important;
  }
}

/* ===== Final admin + mobile overrides (stable) ===== */
.admin-status-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.admin-status-card {
  background: #f8fafc;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.admin-status-title {
  font-size: 0.86rem;
  color: #475569;
}

.admin-status-value {
  font-size: 1.35rem;
  line-height: 1;
  color: #1e3a8a;
}

#admin-users-tbody .admin-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 300px !important;
}

#admin-users-tbody .admin-actions .btn {
  width: 100% !important;
  min-width: 0 !important;
}

#admin-users-tbody td:last-child {
  min-width: 320px !important;
}

@media (max-width: 900px) {
  .admin-status-counts {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  #admin-users-tbody td:last-child {
    min-width: 250px !important;
  }
}

@media (max-width: 640px) {
  .admin-status-counts {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ===== HERO STATS DESKTOP RESTORE ===== */
@media (min-width: 901px) {
  .hero .hero-stats {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 20px !important;
    margin: 24px auto 30px !important;
    max-width: 1080px !important;
  }

  .hero .stat {
    flex: 0 1 320px !important;
    min-width: 0 !important;
    padding: 16px 18px !important;
    border-radius: 20px !important;
    background: rgba(15, 23, 42, 0.44) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    backdrop-filter: blur(9px) !important;
  }

  .hero .stat-number {
    font-size: clamp(2.6rem, 3.5vw, 4rem) !important;
    line-height: 1.05 !important;
    margin-bottom: 8px !important;
  }

  .hero .stat:nth-child(3) .stat-number {
    font-size: clamp(2rem, 2.5vw, 3.2rem) !important;
    line-height: 1.12 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .hero .stat-label {
    font-size: 1rem !important;
    letter-spacing: 0.7px !important;
  }
}

/* ===== CART MODAL COMPACT FIX ===== */
#cart-modal .modal-content {
  width: 90% !important;
  max-width: 500px !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

#cart-modal .cart-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-height: 0 !important;
}

#cart-modal #cart-items {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  max-height: min(42vh, 420px) !important;
  overflow-y: auto !important;
  min-height: 0 !important;
  padding-right: 4px !important;
}

#cart-modal #cart-items li {
  padding: 14px 0 18px !important;
  border-bottom: 1px solid #e5e7eb !important;
}

#cart-modal .cart-item {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 12px !important;
  align-items: start !important;
}

#cart-modal .cart-item .cart-item-name {
  grid-column: 1 !important;
  color: #334155 !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  min-width: 0 !important;
  word-break: break-word !important;
}

#cart-modal .cart-item .quantity-controls {
  grid-column: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#cart-modal .cart-item .quantity-controls span {
  font-size: 1rem !important;
  color: #334155 !important;
  min-width: 95px !important;
  text-align: center !important;
}

#cart-modal .cart-item .quantity-controls button {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  border: none !important;
  background: #df3c3c !important;
  color: #fff !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 0 !important;
}

#cart-modal .cart-item .quantity-controls button:hover {
  background: #c83434 !important;
}

#cart-modal .cart-item .cart-item-price {
  grid-column: 1 / -1 !important;
  color: #334155 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

#cart-modal .cart-item .remove-btn {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-top: 2px !important;
  min-height: 52px !important;
  border-radius: 10px !important;
  background: #df3c3c !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border: none !important;
}

#cart-modal #cart-total {
  margin: 14px 0 !important;
  padding: 16px !important;
  border-radius: 14px !important;
  font-size: 1.05rem !important;
}

#cart-modal .cart-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 12px !important;
  position: sticky !important;
  bottom: 0 !important;
  background: #fff !important;
  padding-top: 6px !important;
  z-index: 2 !important;
}

#cart-modal .cart-actions button,
#cart-modal .cart-actions .btn,
#cart-modal #stripe-checkout-btn {
  margin-top: 0 !important;
  min-height: 54px !important;
  padding: 12px 18px !important;
  border-radius: 14px !important;
  width: 100% !important;
  font-size: 1rem !important;
}

#cart-modal .cart-actions .clear-cart-btn {
  background: linear-gradient(45deg, #ef4444, #dc2626) !important;
}

#cart-modal .cart-actions #stripe-checkout-btn,
#cart-modal .cart-actions button:not(.clear-cart-btn) {
  background: linear-gradient(45deg, #5b6ee1, #6d3ea4) !important;
}

@media (max-width: 640px) {
  #cart-modal .modal-content {
    width: 94% !important;
    max-height: 86vh !important;
    padding: 16px 12px !important;
  }

  #cart-modal #cart-items {
    max-height: 46vh !important;
  }

  #cart-modal .cart-item {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  #cart-modal .cart-item .quantity-controls {
    grid-column: 1 !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  #cart-modal .cart-item .quantity-controls .cart-item-qty {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    text-align: center !important;
  }

  #cart-modal .cart-item .quantity-controls button {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.35rem !important;
  }

  #cart-modal .cart-item .remove-btn {
    min-height: 48px !important;
    border-radius: 12px !important;
  }

  #cart-modal #cart-total {
    margin: 8px 0 4px !important;
    font-size: 1.35rem !important;
    text-align: center !important;
  }

  #cart-modal .cart-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  #cart-modal .cart-actions button,
  #cart-modal .cart-actions .btn,
  #cart-modal #stripe-checkout-btn {
    min-height: 50px !important;
    font-size: 0.95rem !important;
    padding: 10px 8px !important;
  }
}

/* ===== CLEAR CART CONFIRM MODAL FIX ===== */
#clear-cart-confirm-modal .modal-content {
  width: 90% !important;
  max-width: 500px !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
}

#clear-cart-confirm-modal .clear-cart-confirm-text {
  margin: 8px 0 12px !important;
  font-size: 1rem !important;
  color: #475569 !important;
}

#clear-cart-confirm-modal .clear-cart-confirm-option {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
  color: #64748b !important;
}

#clear-cart-confirm-modal .clear-cart-confirm-option input[type='checkbox'] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

#clear-cart-confirm-modal .clear-cart-confirm-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 6px !important;
}

#clear-cart-confirm-modal .clear-cart-confirm-actions button {
  margin-top: 0 !important;
  min-height: 52px !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

#clear-cart-confirm-modal .clear-cart-cancel-btn {
  background: #6b7a92 !important;
}

#clear-cart-confirm-modal .clear-cart-confirm-btn {
  background: linear-gradient(45deg, #ef4444, #dc2626) !important;
}

@media (max-width: 640px) {
  #clear-cart-confirm-modal .clear-cart-confirm-actions {
    grid-template-columns: 1fr !important;
  }
}

/* ===== NOTIFICATION VISIBILITY FIX ===== */
.notification {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 20px !important;
  transform: translate(-50%, 12px) !important;
  z-index: 2147483647 !important;
  max-width: min(92vw, 560px) !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  background: rgba(15, 23, 42, 0.94) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38) !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  letter-spacing: 0.2px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
}

.notification.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
}

.notification.notification-error {
  top: max(12px, env(safe-area-inset-top)) !important;
  bottom: auto !important;
  transform: translate(-50%, -8px) !important;
}

.notification.notification-error.show {
  transform: translate(-50%, 0) !important;
}

.notification.notification-cart {
  top: max(12px, env(safe-area-inset-top)) !important;
  bottom: auto !important;
  transform: translate(-50%, -8px) !important;
  background: linear-gradient(135deg, #10b981, #22c55e) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.45) !important;
}

.notification.notification-cart.show {
  transform: translate(-50%, 0) !important;
}

.notification.notification-cart::before {
  content: "✔";
  display: inline-block;
  margin-right: 8px;
  font-weight: 900;
}

/* ===== SIGNUP MOBILE LAYOUT FIX ===== */
@media (max-width: 640px) {
  #signup-modal .modal-content {
    width: 92% !important;
    max-width: 500px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 18px 14px !important;
  }

  #signup-modal #signup-form {
    display: grid !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #signup-modal #signup-form > * {
    min-width: 0 !important;
  }

  #signup-modal input:not([type='checkbox']):not([type='radio']),
  #signup-modal select,
  #signup-modal textarea,
  #signup-modal button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #signup-modal .signup-type,
  #signup-modal .terms-accept {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    color: #334155 !important;
  }

  #signup-modal .signup-type input[type='checkbox'],
  #signup-modal .terms-accept input[type='checkbox'] {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    margin-top: 2px !important;
  }

  #signup-modal .signup-type span,
  #signup-modal .terms-accept span {
    display: block !important;
    min-width: 0 !important;
    line-height: 1.35 !important;
  }

  #signup-modal .phone-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  #signup-modal .country-wrapper {
    width: 100% !important;
    min-width: 0 !important;
  }

  #signup-modal .country-display,
  #signup-modal #country-search,
  #signup-modal #signup-phone {
    width: 100% !important;
    min-width: 0 !important;
  }

  #signup-modal .social-auth-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  #signup-modal .social-auth-buttons button {
    width: 100% !important;
  }

  /* Date picker icon visibility fix on mobile (iOS/Android) */
  #signup-modal input[type='date'],
  #account-modal input[type='date'] {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    padding-right: 42px !important;
    color: #1f2937 !important;
    background-color: #f8fafc !important;
    /* Fallback icon always visible even when native indicator is hidden */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 18px 18px !important;
    color-scheme: light !important;
  }

  #signup-modal input[type='date']::-webkit-calendar-picker-indicator,
  #account-modal input[type='date']::-webkit-calendar-picker-indicator {
    display: block !important;
    opacity: 1 !important;
    width: 38px !important;
    height: 100% !important;
    cursor: pointer !important;
    filter: brightness(0.25) contrast(1.2) !important;
  }
}

/* Date picker icon fallback outside mobile media query */
#signup-birthdate,
#edit-birthdate {
  padding-right: 42px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 18px 18px !important;
}

#signup-birthdate::-webkit-calendar-picker-indicator,
#edit-birthdate::-webkit-calendar-picker-indicator {
  opacity: 1 !important;
  cursor: pointer !important;
  filter: brightness(0.25) contrast(1.2) !important;
}

/* ===== REVIEWS LAYOUT CLARITY FIX ===== */
#testimonials.reviews-section .stats-box {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.9fr) minmax(360px, 1.4fr) !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

#testimonials.reviews-section .filters-box {
  display: grid !important;
  grid-template-columns: 1fr 220px !important;
  gap: 10px !important;
  margin: 12px 0 14px !important;
}

#testimonials.reviews-section .review-form {
  margin: 10px 0 14px !important;
}

#testimonials.reviews-section #reviewsList {
  display: grid !important;
  gap: 10px !important;
}

#testimonials.reviews-section .review-card {
  padding: 14px !important;
  border-radius: 12px !important;
}

@media (max-width: 900px) {
  #testimonials.reviews-section .stats-box,
  #testimonials.reviews-section .filters-box {
    grid-template-columns: 1fr !important;
  }
}

/* ===== MOBILE CLEANUP FINAL (header + products + add-to-cart notif) ===== */
@media (max-width: 900px) {
  .product-grid {
    gap: 10px !important;
  }

  .product-grid .product-card {
    border-radius: 14px !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1) !important;
  }

  .product-grid .product-card .product-image-container {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }

  .product-grid .product-card .product-info {
    padding: 10px !important;
  }

  .product-grid .product-card .product-title {
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
  }

  .product-grid .product-card .product-description {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }

  .product-grid .product-card .price-main {
    font-size: 0.95rem !important;
  }

  .product-grid .product-card .add-to-cart-btn {
    min-height: 38px !important;
    margin-top: 8px !important;
    padding: 8px 10px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 900px) {
  .notification.notification-compact {
    top: max(12px, env(safe-area-inset-top)) !important;
    bottom: auto !important;
    transform: translate(-50%, -8px) !important;
    min-width: 170px !important;
    max-width: min(86vw, 280px) !important;
    padding: 9px 12px !important;
    border-radius: 999px !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #10b981, #22c55e) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45) !important;
    text-align: center !important;
  }

  .notification.notification-compact.show {
    transform: translate(-50%, 0) !important;
  }
}

/* ===== AUTH BUTTON WIDTH FIX ===== */
@media (max-width: 900px) {
  body:not(.is-authenticated) .main-header #auth-buttons {
    display: flex !important;
    width: auto !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }

  body:not(.is-authenticated) .main-header #auth-buttons .btn,
  body:not(.is-authenticated) .main-header #auth-buttons .btn-small {
    display: inline-flex !important;
    width: auto !important;
    max-width: max-content !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
  }

  body:not(.is-authenticated) .main-header #signup-btn {
    display: none !important;
  }

  .auth-login-desktop {
    display: none !important;
  }

  .auth-login-mobile {
    display: inline !important;
  }
}

/* ===== MOBILE HEADER FINAL ALIGNMENT ===== */
@media (max-width: 900px) {
  .main-header,
  header.main-header,
  header {
    padding: 4px 0 !important;
  }

  .main-header .container,
  header .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .main-nav {
    display: none !important;
  }

  .main-header .mobile-menu-toggle {
    display: inline-flex !important;
    margin-left: 0 !important;
  }

  .logo {
    gap: 6px !important;
  }

  .logo img {
    height: 36px !important;
  }

  .brand-name {
    font-size: 0.9rem !important;
    line-height: 1 !important;
  }

  .header-right,
  .header-actions {
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
  }

  .cart-btn {
    order: 1 !important;
  }

  #auth-buttons {
    order: 2 !important;
  }

  .user-menu {
    order: 3 !important;
  }

  .icon-btn,
  .cart-btn {
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 0.95rem !important;
  }

  body:not(.is-authenticated) .main-header #auth-buttons #login-btn {
    min-height: 32px !important;
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }

  .hero {
    padding-top: calc(var(--mobile-header-offset, 82px) + 8px) !important;
  }
}

@media (max-width: 480px) {
  .brand-name {
    display: none !important;
  }
}

/* ===== HIDE SIGNUP ON MOBILE (robust) ===== */
@media (max-width: 1024px) {
  .main-header #signup-btn,
  #mobile-menu #signup-btn,
  .mobile-menu-auth #signup-btn,
  .mobile-menu-auth .signup-btn {
    display: none !important;
  }
}

@media (pointer: coarse) {
  .main-header #signup-btn,
  #auth-buttons #signup-btn {
    display: none !important;
  }
}

/* ===== HERO COUNT FLASH FIX (mobile only) ===== */
@media (max-width: 900px) {
  body:not(.hero-count-ready) #hero-spice-count,
  body:not(.hero-count-ready) #hero-spice-label {
    visibility: hidden !important;
  }
}

/* ===== MOBILE HEADER HOTFIX (no empty gap + user icon visible) ===== */
@media (max-width: 900px) {
  .main-header,
  header.main-header,
  header {
    padding: 4px 0 !important;
  }

  .main-header .container,
  header .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .main-header .header-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .main-header .header-right,
  .main-header .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    gap: 6px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .main-header #auth-buttons {
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  .main-header #auth-buttons .btn,
  .main-header #auth-buttons .btn-small {
    margin: 0 !important;
  }

  .main-header .user-menu,
  .main-header .user-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .main-header .user-menu {
    flex: 0 0 auto !important;
  }

  /* Panier gauche - Connexion centre - Bonhomme droite */
  .main-header .header-actions {
    display: grid !important;
    grid-template-columns: auto auto auto !important;
    align-items: center !important;
    width: 100% !important;
    column-gap: 8px !important;
    justify-content: space-between !important;
  }

  .main-header .cart-btn {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  .main-header #auth-buttons {
    grid-column: 2 !important;
    justify-self: center !important;
    width: auto !important;
    max-width: max-content !important;
  }

  .main-header .user-menu {
    grid-column: 3 !important;
    justify-self: end !important;
    min-width: 32px !important;
  }
}

/* ===== STORY TEXT READABILITY FIX ===== */
#story.story-section {
  padding: 70px 0 !important;
}

#story .story-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

#story .story-text {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 18px !important;
  padding: 18px 16px !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08) !important;
}

#story .story-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem) !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
  overflow-wrap: anywhere !important;
}

#story .story-text p {
  font-size: clamp(1rem, 1.4vw, 1.1rem) !important;
  line-height: 1.6 !important;
  margin-bottom: 14px !important;
  color: #243447 !important;
  overflow-wrap: anywhere !important;
}

#story .story-features {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#story .feature {
  padding: 12px !important;
  border-radius: 12px !important;
}

#story .feature h4,
#story .feature p {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

@media (max-width: 900px) {
  #story .story-grid {
    grid-template-columns: 1fr !important;
  }

  #story .story-features {
    grid-template-columns: 1fr !important;
  }

  #story .story-text {
    padding: 14px 12px !important;
  }

  #story .story-image img {
    height: 250px !important;
  }
}

/* ===== PRODUITS MOBILE FORMAT (phone only) ===== */
@media (max-width: 900px) {
  #produits .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  #produits .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #produits .product-grid .product-card {
    border-radius: 14px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
  }

  #produits .product-grid .product-image-container {
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
  }

  #produits .product-grid .product-info {
    padding: 9px !important;
  }

  #produits .product-grid .product-title {
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }

  #produits .product-grid .product-description {
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
  }

  #produits .product-grid .price-main {
    font-size: 0.92rem !important;
  }

  #produits .product-grid .price-unit {
    font-size: 0.75rem !important;
  }

  #produits .product-grid .add-to-cart-btn {
    min-height: 36px !important;
    padding: 7px 8px !important;
    font-size: 0.78rem !important;
    border-radius: 10px !important;
    margin-top: 7px !important;
  }
}

@media (max-width: 480px) {
  #produits .product-grid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  #produits .product-grid .product-image-container {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }
}

/* ===== PACKAGING MODAL MOBILE POLISH ===== */
@media (max-width: 900px) {
  #packaging-modal .modal-content {
    width: min(94vw, 620px) !important;
    max-height: 86vh !important;
    padding: 18px 14px 14px !important;
    border-radius: 24px !important;
    overflow-y: auto !important;
  }

  #packaging-modal .close {
    top: 8px !important;
    right: 12px !important;
    font-size: 2.2rem !important;
    line-height: 1 !important;
  }

  #packaging-title {
    margin: 8px 30px 14px !important;
    font-size: clamp(1.25rem, 6.2vw, 2rem) !important;
    line-height: 1.22 !important;
    letter-spacing: 0.2px !important;
    text-wrap: balance !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  #packaging-modal .packaging-options {
    gap: 10px !important;
  }

  #packaging-modal .packaging-options button {
    min-height: 56px !important;
    padding: 12px 10px !important;
    border-radius: 14px !important;
    font-size: clamp(1rem, 4.7vw, 1.3rem) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  #packaging-modal .packaging-options p {
    margin: 2px 0 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.35 !important;
    color: #334155 !important;
  }
}

/* ===== FOOTER MOBILE CLEAN LAYOUT ===== */
@media (max-width: 900px) {
  footer {
    padding: 2rem 0 1rem !important;
    margin-top: 0 !important;
  }

  footer .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .footer-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
    margin: 0 !important;
  }

  .footer-section {
    min-width: 0 !important;
  }

  .footer-section h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.45rem !important;
    line-height: 1.25 !important;
  }

  .footer-section h4 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.25 !important;
  }

  .footer-section p,
  .footer-section li,
  .footer-link {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    color: #d1d5db !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    margin: 0 0 0.28rem !important;
  }

  .footer-section ul {
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer-bottom {
    margin-top: 0.9rem !important;
    padding-top: 0.65rem !important;
  }

  .footer-bottom p {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    color: #94a3b8 !important;
    overflow-wrap: anywhere !important;
  }
}

/* ===== MOBILE HEADER SPACING FINAL FIX ===== */
@media (max-width: 900px) {
  .main-header .header-right {
    width: 100% !important;
  }

  .main-header .header-actions {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    column-gap: 12px !important;
    width: 100% !important;
  }

  .main-header .cart-btn {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  .main-header #auth-buttons {
    grid-column: 2 !important;
    justify-self: center !important;
    width: auto !important;
    max-width: max-content !important;
    margin: 0 auto !important;
  }

  .main-header .user-menu {
    grid-column: 3 !important;
    justify-self: end !important;
    margin-left: 12px !important;
    min-width: 34px !important;
  }
}

/* ===== FORGOT LINKS ALWAYS UNDERLINED ===== */
.login-help-links .forgot-link,
.forgot-link {
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  text-decoration-thickness: 1.5px !important;
}

.login-help-links .forgot-link:hover,
.login-help-links .forgot-link:focus-visible,
.forgot-link:hover,
.forgot-link:focus-visible {
  text-decoration: underline !important;
}

/* ===== STORY MOBILE VISUAL MATCH FIX ===== */
@media (max-width: 900px) {
  .hero {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 14px !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .hero .hero-background {
    position: relative !important;
    inset: auto !important;
    min-height: auto !important;
  }

  .hero .container,
  .hero .hero-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .hero .hero-stats,
  .hero .hero-cta {
    position: relative !important;
    z-index: 2 !important;
    transform: none !important;
  }

  #story.story-section {
    padding-top: 18px !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 5 !important;
  }

  #story .story-text {
    padding: 16px 14px !important;
  }

  #story .story-text h2 {
    font-size: clamp(1.5rem, 9vw, 2.15rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 10px !important;
  }

  #story .story-text h2::after {
    margin-top: 8px !important;
    width: 110px !important;
  }
}

/* ===== MOBILE HERO CONSISTENCY FIX ===== */
@media (max-width: 900px) {
  /* Sur mobile, ne pas afficher le grand titre hero pour garder le meme rendu que ta version ordi */
  .hero .hero-title {
    display: none !important;
  }

  .hero .hero-subtitle {
    margin-top: 4px !important;
    margin-bottom: 10px !important;
  }

  /* Remonter les boutons CTA (dont "Notre Histoire") */
  .hero .hero-cta {
    margin-top: 10px !important;
    gap: 10px !important;
    padding-bottom: 4px !important;
  }

  .hero .hero-cta .btn,
  .hero .hero-cta a.btn {
    margin: 0 !important;
  }

  /* Reduire l'espace avant la section Notre Histoire */
  #story.story-section {
    padding-top: 8px !important;
  }
}

/* ===== MOBILE HEADER/HERO GAP FIX (FINAL) ===== */
@media (max-width: 900px) {
  .main-header {
    margin-bottom: 0 !important;
  }

  .main-header + .hero,
  #accueil.hero {
    margin-top: 0 !important;
    padding-top: calc(var(--mobile-header-offset, 82px)) !important;
  }

  #accueil.hero {
    background: transparent !important;
    overflow: hidden !important;
    position: relative !important;
  }

  #accueil.hero .hero-background {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
  }

  #accueil.hero .hero-overlay {
    z-index: 1 !important;
  }

  #accueil.hero .container,
  #accueil.hero .hero-content {
    position: relative !important;
    z-index: 2 !important;
  }

  #accueil.hero .hero-title {
    display: none !important;
  }

  /* Restaurer proprement le contenu Accueil sur mobile */
  #accueil.hero .hero-subtitle {
    display: block !important;
    margin: 8px auto 12px !important;
  }

  #accueil.hero .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 0 auto 10px !important;
    position: relative !important;
    transform: none !important;
  }

  #accueil.hero .hero-cta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    margin-top: 4px !important;
    padding-top: 0 !important;
    padding-bottom: 6px !important;
    gap: 8px !important;
    position: relative !important;
    transform: none !important;
  }

  #accueil.hero {
    padding-top: calc(var(--mobile-header-offset, 82px) + 10px) !important;
    padding-bottom: 18px !important;
    min-height: auto !important;
    height: auto !important;
  }
}

/* ===== STORY TITLE UNDERLINE CONSISTENCY ===== */
#story .story-text h2::after {
  display: none !important;
}

#story .story-text .story-title-main {
  display: inline-block;
  position: relative;
}

#story .story-text .story-title-main::after {
  content: "";
  display: block;
  width: 110px;
  height: 4px;
  margin-top: 8px;
  background: linear-gradient(45deg, #8B4513, #DAA520);
  border-radius: 2px;
}

#story .story-text .story-title-year {
  display: inline;
}

@media (max-width: 900px) {
  #story .story-text .story-title-main::after {
    width: 110px;
    margin-top: 8px;
  }
}

/* ===== MOBILE ACCUEIL HARD RESTORE ===== */
@media (max-width: 900px) {
  body #accueil.hero {
    padding-top: calc(var(--mobile-header-offset, 82px) + 10px) !important;
    padding-bottom: 20px !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  body #accueil.hero .container,
  body #accueil.hero .hero-content {
    display: block !important;
    position: relative !important;
    z-index: 3 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  body #accueil.hero .hero-subtitle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 8px auto 12px !important;
  }

  body #accueil.hero .hero-stats {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 auto 10px !important;
    position: relative !important;
    transform: none !important;
    z-index: 4 !important;
  }

  body #accueil.hero .hero-cta {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 6px auto 0 !important;
    position: relative !important;
    transform: none !important;
    z-index: 4 !important;
  }

  body #accueil.hero .hero-cta .btn,
  body #accueil.hero .hero-cta a.btn {
    display: block !important;
    width: 100% !important;
  }
}

/* ===== MOBILE MENU CONTACT BUTTON HARD STYLE ===== */
@media (max-width: 900px) {
  #mobile-menu .mobile-menu-link {
    width: 100% !important;
    display: block !important;
    text-align: left !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    line-height: 1.25 !important;
    box-sizing: border-box !important;
  }

  #mobile-menu button.mobile-menu-link.mobile-menu-contact {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid rgba(255, 211, 77, 0.55) !important;
    background: linear-gradient(135deg, #fcd34d, #facc15) !important;
    color: #1f2937 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    margin: 0 !important;
  }
}

/* ===== ACCUEIL MOBILE HARD FIX (DO NOT OVERRIDE) ===== */
@media (max-width: 900px) {
  body #accueil.hero {
    margin-top: 0 !important;
    padding-top: calc(var(--mobile-header-offset, 82px) + 8px) !important;
    padding-bottom: 18px !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
  }

  body #accueil.hero .hero-background {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
  }

  body #accueil.hero .container,
  body #accueil.hero .hero-content {
    position: relative !important;
    z-index: 3 !important;
    display: block !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  body #accueil.hero .hero-subtitle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body #accueil.hero .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 10px auto !important;
    position: relative !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 4 !important;
  }

  body #accueil.hero .hero-cta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 8px auto 0 !important;
    position: relative !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 4 !important;
  }
}

/* ===== MOBILE ACCUEIL RESTORE FINAL ===== */
@media (max-width: 900px) {
  #accueil.hero {
    padding-top: calc(var(--mobile-header-offset, 82px) + 10px) !important;
    padding-bottom: 18px !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
  }

  #accueil.hero .hero-title {
    display: block !important;
    font-size: clamp(2.2rem, 12vw, 3.2rem) !important;
    line-height: 1.1 !important;
    margin: 0 auto 10px !important;
    text-align: center !important;
  }

  #accueil.hero .hero-subtitle {
    display: block !important;
    margin: 6px auto 12px !important;
  }

  #accueil.hero .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 0 auto 10px !important;
    position: relative !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #accueil.hero .hero-cta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 4px auto 0 !important;
    position: relative !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* ===== MOBILE FLOW ORDER LOCK: ACCUEIL THEN STORY ===== */
@media (max-width: 900px) {
  #accueil,
  #accueil.hero {
    position: relative !important;
    z-index: 40 !important;
    margin-bottom: 16px !important;
  }

  #story,
  #story.story-section {
    position: relative !important;
    z-index: 10 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
    clear: both !important;
  }

  #story .container,
  #story .story-grid,
  #story .story-text {
    position: relative !important;
    z-index: 10 !important;
    transform: none !important;
  }
}

/* ===== ULTIMATE MOBILE STACK FIX (HERO ABOVE STORY, NO OVERLAP) ===== */
@media (max-width: 900px) {
  body #accueil.hero {
    position: relative !important;
    z-index: 20 !important;
    margin: 0 !important;
    padding-top: calc(var(--mobile-header-offset, 82px) + 8px) !important;
    padding-bottom: 18px !important;
    min-height: auto !important;
    height: auto !important;
    overflow: hidden !important;
  }

  body #accueil.hero .hero-background,
  body #accueil.hero .hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
  }

  body #accueil.hero .container,
  body #accueil.hero .hero-content {
    position: relative !important;
    z-index: 2 !important;
  }

  body #accueil.hero .hero-title,
  body #accueil.hero .hero-subtitle,
  body #accueil.hero .hero-stats,
  body #accueil.hero .hero-cta,
  body #accueil.hero .hero-stats .stat {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
  }

  body #accueil.hero .hero-stats,
  body #accueil.hero .hero-cta {
    display: grid !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body #accueil.hero .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 8px 0 10px !important;
  }

  body #accueil.hero .hero-cta {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
  }

  body #story.story-section {
    position: relative !important;
    z-index: 5 !important;
    clear: both !important;
    margin: 0 !important;
    padding-top: 16px !important;
    transform: none !important;
  }
}

/* Mobile menu contact style also applies when element is an <a> */
@media (max-width: 900px) {
  #mobile-menu .mobile-menu-link.mobile-menu-contact {
    border: 1px solid rgba(255, 211, 77, 0.55) !important;
    background: linear-gradient(135deg, #fcd34d, #facc15) !important;
    color: #1f2937 !important;
  }
}

/* ===== ADMIN MOBILE LAYOUT ===== */
@media (max-width: 900px) {
  #admin-modal .admin-modal {
    width: min(95vw, 95vw) !important;
    max-width: 95vw !important;
    max-height: 88vh !important;
    margin: 4vh auto !important;
    padding: 14px !important;
    border-radius: 16px !important;
    overflow: auto !important;
  }

  #admin-modal .modal-header {
    gap: 8px !important;
  }

  #admin-modal .modal-header h3 {
    font-size: 1.45rem !important;
    line-height: 1.2 !important;
  }

  #admin-modal .admin-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.35 !important;
  }

  #admin-modal .admin-status-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #admin-modal .admin-toolbar,
  #admin-modal .admin-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  #admin-modal .admin-toolbar input,
  #admin-modal .admin-toolbar select,
  #admin-modal .admin-toolbar button,
  #admin-modal .admin-form input,
  #admin-modal .admin-form select,
  #admin-modal .admin-form textarea {
    width: 100% !important;
    min-width: 0 !important;
  }

  #admin-modal .admin-selected {
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
  }

  #admin-modal .admin-form-actions,
  #admin-modal .admin-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    justify-content: stretch !important;
  }

  #admin-modal .admin-form-actions .btn,
  #admin-modal .admin-actions .btn,
  #admin-modal .admin-actions button {
    width: 100% !important;
    min-height: 42px !important;
  }

  #admin-modal .admin-table-wrap {
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 10px !important;
  }

  #admin-modal .admin-table {
    min-width: 720px !important;
    font-size: 0.9rem !important;
  }

  #admin-modal .admin-table th,
  #admin-modal .admin-table td {
    padding: 10px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 540px) {
  #admin-modal .admin-modal {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 90vh !important;
    margin: 3vh auto !important;
    padding: 12px !important;
    border-radius: 14px !important;
  }

  #admin-modal .admin-status-counts {
    grid-template-columns: 1fr !important;
  }

  #admin-modal .admin-table {
    min-width: 640px !important;
  }
}

/* ===== CHANGER DE VUE: LAYOUT FIX ===== */
#admin-view-selector-modal .modal-content {
  width: min(680px, 94vw) !important;
  max-height: 88vh !important;
  overflow: auto !important;
  padding: 22px !important;
  border-radius: 18px !important;
}

#admin-view-selector-modal h2 {
  margin: 0 0 8px !important;
  color: #243b53 !important;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem) !important;
  line-height: 1.15 !important;
}

#admin-view-selector-modal .view-selector-note {
  margin: 0 0 14px !important;
  color: #52606d !important;
  font-size: 1.02rem !important;
  line-height: 1.45 !important;
}

#admin-view-selector-modal .admin-view-selector-options {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

#admin-view-selector-modal .view-option-btn {
  display: grid !important;
  grid-template-columns: 36px 1fr !important;
  grid-template-areas:
    "icon title"
    "icon desc" !important;
  gap: 2px 10px !important;
  align-items: center !important;
  width: 100% !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  border: 1px solid #dbe4f0 !important;
  background: #f8fafc !important;
  text-align: left !important;
}

#admin-view-selector-modal .view-option-btn:hover {
  border-color: #7c3aed !important;
  background: #f5f3ff !important;
}

#admin-view-selector-modal .view-option-icon {
  grid-area: icon !important;
  font-size: 1.3rem !important;
  line-height: 1 !important;
}

#admin-view-selector-modal .view-option-title {
  grid-area: title !important;
  font-weight: 800 !important;
  color: #1f2d3d !important;
  font-size: 1.03rem !important;
}

#admin-view-selector-modal .view-option-desc {
  grid-area: desc !important;
  color: #52606d !important;
  font-size: 0.92rem !important;
  line-height: 1.35 !important;
}

/* Dynamic modal generated by script.js */
#view-selector-modal.view-selector-overlay {
  z-index: 70000 !important;
}

#view-selector-modal .view-selector-card {
  width: min(680px, 94vw) !important;
  max-height: 88vh !important;
  overflow: auto !important;
  border-radius: 18px !important;
  padding: 20px !important;
}

#view-selector-modal .view-selector-title {
  margin: 0 0 8px !important;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem) !important;
  line-height: 1.15 !important;
}

#view-selector-modal .view-selector-subtitle {
  margin: 0 0 14px !important;
  line-height: 1.4 !important;
}

#view-selector-modal .view-selector-option,
#view-selector-modal .view-selector-close {
  width: 100% !important;
  min-height: 42px !important;
  border-radius: 13px !important;
}

#view-selector-modal .view-selector-option {
  padding: 8px 14px !important;
  font-size: 0.98rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.6px !important;
}

#view-selector-modal .view-selector-close {
  padding: 8px 14px !important;
  font-size: 0.96rem !important;
  line-height: 1.2 !important;
}

@media (max-width: 900px) {
  #admin-view-selector-modal .modal-content,
  #view-selector-modal .view-selector-card {
    width: 96vw !important;
    max-height: 90vh !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  #admin-view-selector-modal h2,
  #view-selector-modal .view-selector-title {
    font-size: clamp(1.55rem, 8vw, 2.1rem) !important;
  }

  #admin-view-selector-modal .view-option-btn {
    grid-template-columns: 30px 1fr !important;
    padding: 9px 12px !important;
  }

  #view-selector-modal .view-selector-option,
  #view-selector-modal .view-selector-close {
    min-height: 38px !important;
    padding: 7px 12px !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.4px !important;
  }

  #admin-view-selector-modal .view-option-desc {
    font-size: 0.86rem !important;
  }
}

/* ===== GERER MON COMPTE: LAYOUT FIX ===== */
#account-modal .modal-content,
#edit-account-modal .modal-content {
  width: min(760px, 94vw) !important;
  max-height: 88vh !important;
  overflow: auto !important;
  padding: 22px !important;
  border-radius: 18px !important;
}

#account-modal h2,
#edit-account-modal h2 {
  margin: 0 0 14px !important;
  color: #243b53 !important;
  line-height: 1.15 !important;
}

#account-modal .account-info {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

#account-modal .account-info p {
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  color: #334155 !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}

#account-modal .account-info p strong {
  color: #1e293b !important;
}

#account-modal button[onclick="editAccount()"] {
  width: 100% !important;
  min-height: 46px !important;
}

#edit-account-modal .password-change-section {
  margin-top: 12px !important;
  padding: 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
}

#edit-account-modal .password-change-section h3 {
  margin: 0 0 10px !important;
}

#edit-account-modal .edit-account-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

#edit-account-modal .edit-account-actions button {
  width: 100% !important;
  min-height: 46px !important;
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  #account-modal .modal-content,
  #edit-account-modal .modal-content {
    width: 96vw !important;
    max-height: 90vh !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  #account-modal h2,
  #edit-account-modal h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem) !important;
  }

  #edit-account-modal input:not([type='checkbox']):not([type='radio']),
  #edit-account-modal select,
  #edit-account-modal textarea,
  #edit-account-modal button {
    width: 100% !important;
    min-width: 0 !important;
  }

  #edit-account-modal .edit-account-actions {
    grid-template-columns: 1fr !important;
  }

  #edit-account-modal .password-change-section button {
    width: 100% !important;
  }
}

/* ===== CART TOTAL COMPACT ON MOBILE ===== */
@media (max-width: 640px) {
  #cart-modal #cart-total {
    width: 92% !important;
    margin: 8px auto 4px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
}

/* ===== CART ITEM THUMBNAIL ===== */
#cart-modal .cart-item .cart-item-main {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

#cart-modal .cart-item .cart-item-thumb {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #eef2f7 !important;
  border: 1px solid #e2e8f0 !important;
  flex: 0 0 44px !important;
}

#cart-modal .cart-item .cart-item-main .cart-item-name {
  margin: 0 !important;
  min-width: 0 !important;
}

@media (max-width: 640px) {
  #cart-modal .cart-item .cart-item-thumb {
    width: 38px !important;
    height: 38px !important;
    border-radius: 9px !important;
    flex-basis: 38px !important;
  }
}

/* ===== MOBILE AUTH IN MENU ===== */
@media (max-width: 900px) {
  .main-header #auth-buttons {
    display: none !important;
  }

  /* Brand centered and larger on mobile without overlapping actions */
  .main-header .container {
    position: relative !important;
    min-height: 88px !important;
  }

  .main-header .brand-name {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: clamp(1.6rem, 5.2vw, 2.05rem) !important;
    font-weight: 800 !important;
    max-width: 52vw !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
    pointer-events: none !important;
    z-index: 2 !important;
  }

  .main-header .logo {
    position: relative !important;
    gap: 0 !important;
  }

  .main-header .logo img {
    margin-right: 0 !important;
  }
}

/* Force cart thumbnail visibility on mobile */
@media (max-width: 900px) {
  #cart-modal #cart-items .cart-item .cart-item-main {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  #cart-modal #cart-items .cart-item .cart-item-thumb {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
  }
}

/* ===== MOBILE BRAND CENTER BIG ===== */
@media (max-width: 900px) {
  .main-header .container {
    position: relative !important;
    min-height: 92px !important;
  }

  .main-header .logo .brand-name {
    display: inline-block !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: clamp(1.85rem, 6vw, 2.35rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    max-width: 58vw !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    pointer-events: none !important;
    z-index: 3 !important;
  }
}

/* ===== MOBILE LOGO CENTER (IMAGE ONLY) ===== */
@media (max-width: 900px) {
  .main-header .container {
    position: relative !important;
    min-height: 100px !important;
  }

  .main-header .logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  .main-header .logo .brand-name {
    display: none !important;
  }

  .main-header .logo img {
    width: 96px !important;
    height: 96px !important;
    max-width: none !important;
    object-fit: contain !important;
    margin: 0 !important;
  }

  .main-header .mobile-menu-toggle {
    position: absolute !important;
    right: 14px !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 8 !important;
  }

  .main-header .header-right,
  .main-header .header-actions {
    position: static !important;
    width: auto !important;
  }

  .main-header .cart-btn {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 8 !important;
  }

  .main-header .user-menu {
    position: absolute !important;
    right: 78px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 8 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .main-header .user-btn {
    min-width: 34px !important;
    min-height: 34px !important;
  }

  .main-header,
  .main-header .container,
  .main-header .header-right,
  .main-header .header-actions {
    overflow: visible !important;
  }

  body.is-authenticated .main-header .user-menu .user-dropdown {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 110px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: calc(100dvh - 124px) !important;
    overflow: auto !important;
    transform: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 120000 !important;
    border-radius: 18px !important;
  }

  body.is-authenticated .main-header .user-menu.open .user-dropdown,
  body.is-authenticated .main-header .user-menu:hover .user-dropdown,
  body.is-authenticated .main-header .user-menu:focus-within .user-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

}

/* ===== MOBILE USER DROPDOWN HARD RESET (final) ===== */
@media (max-width: 900px) {
  .main-header,
  .main-header .container,
  .main-header .header-right,
  .main-header .header-actions,
  .main-header .user-menu {
    overflow: visible !important;
  }

  .main-header .user-menu {
    position: absolute !important;
    right: 78px !important;
    top: 22px !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 8 !important;
  }

  body.is-authenticated .main-header .user-menu .user-dropdown {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    top: 108px !important;
    bottom: auto !important;
    inset: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: calc(100dvh - 122px) !important;
    overflow: auto !important;
    transform: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 150000 !important;
    border-radius: 18px !important;
  }

  body.is-authenticated .main-header .user-menu.open .user-dropdown,
  body.is-authenticated.user-menu-open .main-header .user-menu .user-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.is-authenticated .main-header .user-menu:not(.open):hover .user-dropdown,
  body.is-authenticated .main-header .user-menu:not(.open):focus-within .user-dropdown {
    display: none !important;
  }

  body.is-authenticated .main-header .user-menu .user-dropdown #user-info {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.is-authenticated .main-header .user-menu .user-dropdown #user-info .btn,
  body.is-authenticated .main-header .user-menu .user-dropdown #user-info button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ===== Support Chatbot ===== */
.support-chatbot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 180000;
}

.support-chatbot-toggle {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #6a70e6 0%, #8b3cc8 100%);
  box-shadow: 0 10px 28px rgba(24, 24, 46, 0.35);
  cursor: pointer;
}

.support-chatbot-panel {
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: min(520px, calc(100vh - 110px));
  margin-top: 10px;
  border-radius: 16px;
  background: #f8f9ff;
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.support-chatbot-panel.is-hidden {
  display: none;
}

.support-chatbot-header {
  padding: 12px 14px;
  background: linear-gradient(90deg, #5b63db 0%, #7e39c1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-chatbot-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.support-chatbot-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.support-chatbot-messages {
  padding: 12px;
  background: #f8f9ff;
  overflow: auto;
  max-height: 260px;
}

.support-chatbot-message {
  margin-bottom: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.support-chatbot-message.bot {
  background: #e8ebff;
  color: #1f2937;
}

.support-chatbot-message.user {
  background: #dff8ea;
  color: #065f46;
}

.support-chatbot-actions {
  padding: 10px;
  border-top: 1px solid rgba(99, 102, 241, 0.18);
  background: #fff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.support-chatbot-actions button {
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  text-align: left;
  background: #eef1ff;
  color: #1f2a44;
  font-weight: 600;
  cursor: pointer;
}

.support-chatbot-actions button:hover {
  background: #e1e6ff;
}

.support-chatbot-form {
  padding: 10px;
  border-top: 1px solid rgba(99, 102, 241, 0.18);
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.support-chatbot-form input {
  border: 1px solid #cfd7ff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.support-chatbot-form input:focus {
  border-color: #7a5ce6;
  box-shadow: 0 0 0 2px rgba(122, 92, 230, 0.15);
}

.support-chatbot-form button {
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: linear-gradient(90deg, #6a70e6 0%, #8b3cc8 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* FAQ section */
.faq-section {
  padding: 48px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.faq-intro {
  color: #334155;
  max-width: 760px;
  margin: 8px 0 18px;
}

.faq-question-form {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.08);
}

.faq-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.faq-question-form input,
.faq-question-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.faq-question-form textarea {
  min-height: 104px;
  resize: vertical;
  margin-bottom: 10px;
}

.faq-submit-status {
  min-height: 20px;
  margin-top: 8px;
  color: #0f766e;
  font-weight: 600;
}

.faq-list-wrap {
  margin-top: 20px;
}

.faq-answered-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 12px 14px;
}

.faq-item-question {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 7px;
}

.faq-item-answer {
  color: #334155;
  margin-bottom: 6px;
  white-space: pre-wrap;
}

.faq-item-date {
  color: #64748b;
  font-size: 0.84rem;
}

/* Admin FAQ answers */
#admin-faq-tbody td {
  vertical-align: top;
}

.admin-faq-answer-box {
  min-width: 250px;
}

.admin-faq-answer-box textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 8px 10px;
  font: inherit;
  margin-bottom: 8px;
}

.admin-faq-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.admin-faq-stat {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 8px 10px;
}

.admin-faq-stat .label {
  color: #64748b;
  font-size: 0.8rem;
  display: block;
}

.admin-faq-stat .value {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.admin-faq-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-faq-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #f8fafc;
}

.admin-faq-chip.status-new {
  border-color: #fcd34d;
  background: #fef9c3;
  color: #92400e;
}

.admin-faq-chip.status-progress {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e3a8a;
}

.admin-faq-chip.status-answered {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.admin-faq-answer-template {
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 8px;
  font: inherit;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin: 8px 0 14px;
}

.admin-kpi-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 9px 10px;
}

.admin-kpi-card .label {
  color: #64748b;
  font-size: 0.8rem;
}

.admin-kpi-card .value {
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 700;
}

.account-orders-block {
  margin-top: 14px;
}

.account-orders-list {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  background: #f8fafc;
}

.account-order-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.account-order-item + .account-order-item {
  margin-top: 8px;
}

.account-order-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-weight: 700;
}

.account-order-lines {
  color: #334155;
  font-size: 0.9rem;
}

.form-helper {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .faq-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .support-chatbot {
    right: 10px;
    bottom: 14px !important;
  }

  .support-chatbot-panel {
    width: min(360px, calc(100vw - 16px));
    max-height: min(500px, calc(100vh - 120px));
  }

}

/* ===== Mobile Polish (safe overrides) ===== */
@media (max-width: 600px) {
  .container {
    width: min(100%, 96vw) !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .modal .modal-content,
  .modal-content {
    width: min(94vw, 560px) !important;
    max-width: 94vw !important;
  }

  .search-container {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 8px !important;
  }

  .search-container input,
  .search-container button,
  .support-chatbot-form input,
  .support-chatbot-form button {
    min-height: 42px !important;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 3.8vw, 1.1rem) !important;
  }
}

.payment-legal-short {
  margin-top: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
}

.payment-legal-short p {
  margin: 4px 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #0f172a;
}

.payment-legal-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: underline;
}


/* Mobile polish: lisibilite + confort tactile */
@media (max-width: 900px) {
  body,
  .main-header,
  .hero,
  .products,
  .story-section,
  .reviews-section,
  footer {
    max-width: 100vw !important;
    overflow-x: clip !important;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .main-header .header-actions {
    gap: 0.55rem;
  }

  .main-header .logo img {
    height: 42px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .main-header #login-btn,
  .main-header #auth-buttons #login-btn {
    display: none !important;
  }

  .hero {
    padding-top: 118px;
    padding-bottom: 56px;
    min-height: auto;
  }

  .hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.16;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0.75rem 0.9rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
  }

  .stat {
    padding: 0.72rem;
  }

  .hero-image {
    max-width: 280px;
    margin: 0 auto;
  }

  .search-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .search-container input,
  .search-container button {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .modal-content {
    width: min(94vw, 560px);
    max-height: 86vh;
    overflow-y: auto;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* Mobile menu reliability fix (iOS safe) */
@media (max-width: 900px) {
  body.is-authenticated #mobile-login-link,
  body.is-authenticated #mobile-signup-link {
    display: none !important;
  }

  #mobile-menu {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  #mobile-menu .mobile-menu-header {
    flex: 0 0 auto;
  }

  #mobile-menu .mobile-menu-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100dvh - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    /* Keep last legal links visible above iOS/Safari bottom bars */
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }

  body.mobile-menu-open {
    touch-action: pan-y !important;
  }

  #mobile-menu .mobile-menu-link {
    min-height: 50px;
  }

  #mobile-menu .mobile-menu-contact {
    display: block !important;
  }

  #mobile-menu .mobile-menu-legal-group {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  #mobile-menu .mobile-menu-legal {
    background: linear-gradient(135deg, #fcd34d, #facc15) !important;
    color: #1f2937 !important;
    border-color: rgba(255, 211, 77, 0.7) !important;
    font-weight: 800;
  }
}

/* ===== CART MOBILE FINAL FIX (readable items + stable layout) ===== */
@media (max-width: 900px) {
  #cart-modal {
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0 !important;
  }

  #cart-modal .modal-content {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(96vw, 560px) !important;
    max-width: 96vw !important;
    height: min(86dvh, 760px) !important;
    max-height: 86dvh !important;
    padding: 14px 12px 12px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #cart-modal h2 {
    margin: 0 34px 8px 0 !important;
    font-size: clamp(1.7rem, 7vw, 2.2rem) !important;
    line-height: 1.05 !important;
    text-align: left !important;
  }

  #cart-modal .close {
    top: 8px !important;
    right: 12px !important;
    font-size: 30px !important;
    line-height: 1 !important;
    z-index: 4 !important;
  }

  #cart-modal .cart-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  #cart-modal #cart-items {
    flex: 1 1 auto !important;
    min-height: 140px !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 3px 6px 0 !important;
    -webkit-overflow-scrolling: touch;
  }

  #cart-modal #cart-items li {
    padding: 10px 0 !important;
  }

  #cart-modal .cart-item {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: start !important;
  }

  #cart-modal .cart-item .cart-item-main {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  #cart-modal .cart-item .cart-item-name {
    font-size: 0.96rem !important;
    line-height: 1.32 !important;
    word-break: break-word !important;
  }

  #cart-modal .cart-item .quantity-controls {
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #cart-modal .cart-item .quantity-controls span,
  #cart-modal .cart-item .quantity-controls .cart-item-qty {
    min-width: 0 !important;
    text-align: left !important;
    flex: 1 1 auto !important;
    font-size: 0.95rem !important;
  }

  #cart-modal .cart-item .quantity-controls button {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.2rem !important;
  }

  #cart-modal #cart-total {
    margin: 0 !important;
    padding: 10px 12px !important;
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
  }

  #cart-modal .cart-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 3 !important;
    background: #fff !important;
    padding-top: 8px !important;
    margin-top: 0 !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  #cart-modal .cart-actions button,
  #cart-modal .cart-actions .btn,
  #cart-modal #stripe-checkout-btn {
    min-height: 38px !important;
    font-size: 0.78rem !important;
    padding: 6px 6px !important;
    white-space: normal !important;
    line-height: 1.15 !important;
    border-radius: 10px !important;
  }

  #cart-modal .payment-legal-short {
    margin-top: 8px !important;
    max-height: 20vh !important;
    overflow-y: auto !important;
    font-size: 0.84rem !important;
    line-height: 1.35 !important;
  }

  #cart-modal .payment-legal-link,
  #payment-modal .payment-legal-link {
    font-size: 0.82rem !important;
  }
}

/* ===== FINAL MOBILE VIEWPORT STABILITY ===== */
@media (max-width: 900px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none !important;
  }

  body {
    position: relative !important;
    touch-action: pan-y pinch-zoom !important;
  }

  .main-header,
  .hero,
  .hero-background,
  .hero-overlay,
  .products,
  .story-section,
  .reviews-section,
  footer,
  .container {
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  img,
  video,
  iframe,
  canvas,
  svg {
    max-width: 100% !important;
    height: auto;
  }
}

/* ===== FINAL CHATBOT SAFE ZONE (iOS browser bar) ===== */
@media (max-width: 900px) {
  .support-chatbot {
    right: 10px !important;
    bottom: 14px !important;
    z-index: 190000 !important;
  }

  .support-chatbot-toggle {
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
  }

  .support-chatbot-panel {
    width: min(360px, calc(100vw - 16px)) !important;
    max-height: min(500px, calc(100vh - 170px)) !important;
  }
}

/* ===== MOBILE HARD STOP (overflow + iOS bottom bar) ===== */
@media (max-width: 900px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-x: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body {
    margin: 0 !important;
    touch-action: pan-y pinch-zoom !important;
  }

  .main-header,
  .main-header .container,
  .container,
  .hero,
  .hero-background,
  .hero-overlay,
  .products,
  .story-section,
  .reviews-section,
  footer,
  section {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Prevent malformed legacy nav rules from expanding page width */
  .main-nav,
  .main-nav ul {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .main-nav ul {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  #mobile-menu,
  #mobile-menu .mobile-menu-nav {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #support-chatbot {
    right: 10px !important;
    bottom: 14px !important;
  }

  #support-chatbot-toggle {
    min-height: 42px !important;
    padding: 9px 12px !important;
    font-size: 0.88rem !important;
  }
}

/* ===== CHATBOT MOBILE LAYOUT (final) ===== */
@media (max-width: 900px) {
  #support-chatbot {
    right: 10px !important;
    bottom: 12px !important;
    z-index: 190000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
  }

  #support-chatbot-toggle {
    order: 2 !important;
    border-radius: 999px !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 0.84rem !important;
    line-height: 1.1 !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3) !important;
  }

  #support-chatbot-panel {
    order: 1 !important;
    position: fixed !important;
    right: 8px !important;
    left: 8px !important;
    bottom: calc(58px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    height: min(64dvh, 520px) !important;
    max-height: min(64dvh, 520px) !important;
    margin-top: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    flex-direction: column !important;
  }

  #support-chatbot-panel .support-chatbot-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
  }

  #support-chatbot-panel.is-hidden {
    display: none !important;
  }

  #support-chatbot-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px !important;
  }

  #support-chatbot-actions {
    flex: 0 0 auto !important;
    max-height: 22vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px !important;
  }

  #support-chatbot-actions button {
    padding: 8px 9px !important;
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
  }

  #support-chatbot-form {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 8px !important;
  }

  #support-chatbot-input {
    min-height: 40px !important;
    font-size: 16px !important;
  }

  #support-chatbot-form button {
    min-height: 38px !important;
    width: 100% !important;
  }
}

/* ===== CHATBOT STABLE LAYOUT (desktop + mobile) ===== */
#support-chatbot {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
}

#support-chatbot-toggle {
  order: 2 !important;
}

#support-chatbot-panel {
  order: 1 !important;
  display: grid !important;
  grid-template-rows: auto minmax(150px, 1fr) auto auto !important;
}

#support-chatbot-panel.is-hidden {
  display: none !important;
}

#support-chatbot-panel .support-chatbot-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
}

#support-chatbot-messages {
  min-height: 150px !important;
  max-height: none !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 12px !important;
  scroll-padding-top: 14px !important;
}

/* FINAL MOBILE USER MENU FIX: keep account dropdown fully visible on viewport */
@media (max-width: 900px) {
  body.is-authenticated.user-menu-open .main-header .user-menu .user-dropdown,
  body.is-authenticated .main-header .user-menu.open .user-dropdown {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    top: calc(env(safe-area-inset-top) + 92px) !important;
    bottom: auto !important;
    inset: calc(env(safe-area-inset-top) + 92px) 10px auto 10px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 120px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 160000 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

#support-chatbot-actions {
  max-height: 160px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 900px) {
  #support-chatbot-panel {
    height: min(66dvh, 540px) !important;
    max-height: min(66dvh, 540px) !important;
    grid-template-rows: auto minmax(140px, 1fr) auto auto !important;
  }

  #support-chatbot-messages {
    min-height: 140px !important;
  }

  #support-chatbot-actions {
    max-height: 18vh !important;
  }
}

/* ===== DESKTOP NAV RESTORE (header links visible) ===== */
@media (min-width: 901px) {
  .main-header .container {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .main-header .header-left,
  .main-header .header-right {
    min-width: 0 !important;
    width: auto !important;
  }

  .main-header .main-nav {
    display: block !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .main-header .main-nav ul {
    display: flex !important;
    width: auto !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 0.42rem !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .main-header .main-nav .nav-link,
  .main-header .main-nav .btn,
  .main-header .main-nav .btn-small,
  .main-header .main-nav .contact-btn {
    padding: 0.42rem 0.64rem !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
  }

  .main-header .mobile-menu-toggle {
    display: none !important;
  }
}
