/* ==========================================================================
   SEVEN HERBAL SHOP - MODERN E-COMMERCE DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --navy-900: #0F172A;
    --navy-800: #1E293B;
    --navy-700: #334155;
    --emerald-600: #059669;
    --emerald-500: #10B981;
    --emerald-100: #D1FAE5;
    --emerald-50: #ECFDF5;
    --gold-600: #D97706;
    --gold-500: #F59E0B;
    --gold-50: #FFFBEB;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-600: #475569;
    --slate-800: #1E293B;
    --white: #FFFFFF;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--slate-50);
    color: var(--navy-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy-900);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Layout Utilities */
.shop-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Announcement Bar */
.top-announcement {
    background-color: var(--navy-900);
    color: var(--slate-100);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-announcement .shop-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.announcement-badge {
    background-color: var(--emerald-600);
    color: var(--white);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
}

/* Header & Navbar */
.shop-header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-900);
}
.brand-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate-600);
    position: relative;
    padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--emerald-600);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--emerald-600);
    border-radius: var(--radius-full);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.action-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-900);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.action-btn:hover {
    background-color: var(--emerald-50);
    color: var(--emerald-600);
}
.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--emerald-600);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* Search Bar Header */
.header-search {
    position: relative;
    width: 280px;
}
.search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--slate-200);
    background-color: var(--slate-50);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.search-input:focus {
    outline: none;
    border-color: var(--emerald-500);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-600);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: var(--white);
    padding: 5rem 0 6rem 0;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-content {
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--emerald-500);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}
.hero-title span {
    color: var(--emerald-500);
    background: linear-gradient(135deg, #34D399, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--slate-200);
    margin-bottom: 2rem;
    max-width: 540px;
}
.hero-btns {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-image-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
}
.hero-image-card img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Feature Badges / Engagements */
.features-bar {
    background: var(--white);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--slate-200);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background-color: var(--emerald-50);
    color: var(--emerald-600);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-title {
    font-size: 1rem;
    font-weight: 700;
}
.feature-desc {
    font-size: 0.85rem;
    color: var(--slate-600);
}

/* Section Titles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-subtitle {
    color: var(--emerald-600);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;

}
.section-title {
    font-size: 2.2rem;
    color: var(--navy-900);
}

/* Product Card Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--slate-300);
}
.product-badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: var(--emerald-600);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}
.product-stock-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 5;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.product-stock-badge--out {
    background: #DC2626;
    color: #fff;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}
.product-stock-badge--in {
    background: rgba(255, 255, 255, 0.94);
    color: var(--emerald-600);
    border: 1px solid var(--emerald-300);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.wishlist-btn-card {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-600);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.wishlist-btn-card:hover {
    color: #EF4444;
    background: #FEF2F2;
}

.product-img-wrapper {
    height: 230px;
    background: var(--slate-100);
    position: relative;
    overflow: hidden;
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-category {
    font-size: 0.8rem;
    color: var(--slate-600);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gold-500);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.product-rating span {
    color: var(--slate-600);
    font-size: 0.75rem;
    margin-left: 4px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--slate-100);
}
.product-price {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--emerald-600);
}
.product-price span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-600);
}

.add-cart-btn {
    background-color: var(--navy-900);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}
.add-cart-btn:hover {
    background-color: var(--emerald-600);
}

/* Category Cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.category-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}
.category-card:hover {
    border-color: var(--emerald-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.category-card-image {
    width: 100%;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--slate-100);
    margin-bottom: 1rem;
}
.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.category-card:hover .category-card-image img {
    transform: scale(1.06);
}
.category-card-image--fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--emerald-50), var(--slate-100));
}

/* Payment Methods & Transfer Code Box */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.payment-card-option {
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
    position: relative;
}
.payment-card-option:hover {
    border-color: var(--emerald-500);
}
.payment-card-option.selected {
    border-color: var(--emerald-600);
    background-color: var(--emerald-50);
}
.payment-card-option input[type="radio"] {
    position: absolute;
    top: 1rem;
    right: 1rem;
}
.payment-method-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.payment-method-desc {
    font-size: 0.8rem;
    color: var(--slate-600);
}

.transfer-code-box {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--emerald-500);
    text-align: center;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}
.transfer-code-display {
    font-family: monospace;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--gold-500);
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1rem auto;
    display: inline-block;
    border: 1px dashed var(--gold-500);
}

/* Reviews Cards */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.review-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--emerald-600);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Footer */
.shop-footer {
    background-color: var(--navy-900);
    color: var(--slate-200);
    padding: 4rem 0 2rem 0;
    margin-top: 5rem;
    border-top: 4px solid var(--emerald-600);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.6rem;
}
.footer-links a:hover {
    color: var(--emerald-500);
}

.payment-badges-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}
.payment-badge-pill {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Toast Notifications */
.shop-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--navy-900);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--emerald-500);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}
.shop-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ─── Hamburger Menu Button ───────────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--slate-100);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
    transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--emerald-50); }
.nav-hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--navy-900);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.nav-hamburger.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile Overlay Menu ─────────────────────────────────────────────── */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1001;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100dvh;
    background: var(--white);
    z-index: 1002;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
}
.mobile-menu-panel.open {
    right: 0;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--slate-200);
    background: var(--navy-900);
}
.mobile-menu-brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
}
.mobile-menu-close {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.3); }

.mobile-menu-search {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--slate-100);
}
.mobile-menu-search input {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.mobile-nav-links {
    list-style: none;
    padding: 1rem 0;
    flex-grow: 1;
}
.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy-900);
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
    background: var(--emerald-50);
    color: var(--emerald-600);
    border-left-color: var(--emerald-600);
}

.mobile-menu-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--slate-200);
}
.mobile-menu-actions a {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
}
.mobile-action-login {
    background: var(--slate-100);
    color: var(--navy-900) !important;
}
.mobile-action-cart {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
    color: var(--white) !important;
}

/* ─── Responsive Breakpoints ─────────────────────────────────────────── */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none !important; }
    .header-search { display: none; }
    .nav-hamburger { display: flex !important; }
    .mobile-menu-overlay { display: block; }
    .mobile-menu-panel { display: flex; }
    .navbar-wrapper { height: 68px; }
    .top-announcement .shop-container { flex-direction: column; gap: 0.2rem; text-align: center; }
}
@media (max-width: 576px) {
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .hero-btns { flex-direction: column; align-items: flex-start; }
    .transfer-code-display { font-size: 1.6rem; letter-spacing: 0.08em; }
    .payment-methods-grid { grid-template-columns: 1fr; }
}

/* ─── Catalog Layout ─────────────────────────────────────────────────── */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
}
.catalog-sidebar { display: block; }

.catalog-main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 6rem 1.5rem;
}

/* ─── Mobile Filter Bar (hidden on desktop) ────────────────────────── */
.catalog-mobile-bar {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 68px;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}
.catalog-mobile-bar .shop-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Pills scrollables */
.cat-pills-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}
.cat-pills-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--slate-100);
    color: var(--slate-600);
    border: 1px solid var(--slate-200);
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.cat-pill:hover {
    background: var(--emerald-50);
    color: var(--emerald-600);
    border-color: var(--emerald-500);
}
.cat-pill--active {
    background: var(--emerald-600);
    color: var(--white) !important;
    border-color: var(--emerald-600);
}

/* Bouton tri mobile */
.mobile-sort-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy-900);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}
.mobile-sort-btn.active,
.mobile-sort-btn:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-500);
    color: var(--emerald-600);
}

/* Panel tri déroulant mobile */
.mobile-sort-panel {
    display: none;
    border-top: 1px solid var(--slate-200);
    background: var(--white);
    padding: 0.75rem 1.5rem;
}
.mobile-sort-panel.open { display: block; }

.mobile-sort-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.sort-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    transition: all 0.2s;
}
.sort-option input[type="radio"] { display: none; }
.sort-option--active,
.sort-option:hover {
    background: var(--emerald-50);
    color: var(--emerald-600);
    border-color: var(--emerald-500);
}

/* ─── Responsive catalog ─────────────────────────────────────────── */
@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar { display: none; }
    .catalog-mobile-bar { display: block; }
    .catalog-mobile-bar .shop-container {
        flex-wrap: nowrap;
    }
}

/* ─── Optimisation mobile : grille & cartes produits ──────────────── */
@media (max-width: 576px) {
    .catalog-main { padding: 1.5rem 0.75rem 4rem 0.75rem; }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: 1fr; gap: 0.75rem; }

    .product-card { border-radius: var(--radius-md); }
    .product-img-wrapper { height: auto; aspect-ratio: 4 / 3; }

    .product-info { padding: 0.75rem; }
    .product-category { font-size: 0.66rem; margin-bottom: 0.2rem; }
    .product-name { font-size: 0.9rem; margin-bottom: 0.3rem; }
    .product-rating { font-size: 0.7rem; margin-bottom: 0.5rem; }
    .product-rating span { font-size: 0.65rem; margin-left: 2px; }

    .product-footer { padding-top: 0.5rem; }
    .product-price { font-size: 1rem; }
    .product-price span { font-size: 0.68rem; }

    .product-badge-tag { top: 8px; left: 8px; padding: 3px 8px; font-size: 0.65rem; }
    .product-stock-badge { bottom: 8px; left: 8px; padding: 3px 7px; font-size: 0.62rem; }
}

/* ─── Fiche produit (product_detail) ─────────────────────────────── */
.pd-main { padding: 4rem 1.5rem 6rem 1.5rem; }
.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 5rem;
}
.pd-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    background: var(--white);
    height: 420px;
    margin-bottom: 1rem;
}
.pd-thumbs { display: flex; gap: 0.75rem; }
.pd-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    border: 2px solid var(--slate-200);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.pd-thumb:hover { border-color: var(--emerald-500); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-title { font-size: 2.4rem; margin-bottom: 0.75rem; color: var(--navy-900); }
.pd-rating-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.pd-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--emerald-600);
    margin-bottom: 1.5rem;
}
.pd-cart-form { display: flex; gap: 1rem; margin-bottom: 2.5rem; }
.pd-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    background: var(--white);
}

@media (max-width: 768px) {
    .pd-main { padding: 2rem 0.75rem 4rem 0.75rem; }
    .pd-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3.5rem; }
    .pd-image-main { height: 300px; }
    .pd-thumbs { gap: 0.5rem; }
    .pd-thumb { width: 64px; height: 64px; }
    .pd-title { font-size: 1.6rem; }
    .pd-price { font-size: 1.7rem; margin-bottom: 1rem; }
    .pd-rating-row { flex-wrap: wrap; }
    .pd-cart-form { flex-direction: column; align-items: stretch; }
    .pd-qty { align-self: center; }
    .pd-cart-form .btn-primary { width: 100%; }
}

/* ─── Panier (cart) ───────────────────────────────────────────────── */
.cart-main { padding: 4rem 1.5rem 6rem 1.5rem; }
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
}
.cart-coupon {
    margin-top: 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
}
.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    padding: 2rem;
    position: sticky;
    top: 100px;
}

@media (max-width: 768px) {
    .cart-main { padding: 2rem 0.75rem 4rem 0.75rem; }
    .cart-main > h1 { font-size: 1.6rem !important; margin-bottom: 1.5rem !important; }
    .cart-grid { grid-template-columns: 1fr; gap: 2rem; }

    .cart-table { border: none; background: transparent; overflow: visible; }
    .cart-table thead { display: none; }
    .cart-table tbody { display: block; }
    .cart-table tr {
        display: block;
        border: 1px solid var(--slate-200);
        border-radius: var(--radius-lg);
        margin-bottom: 1rem;
        padding: 0 1rem;
        background: var(--white);
    }
    .cart-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.8rem 0 !important;
        border-bottom: 1px dashed var(--slate-200);
    }
    .cart-table td:last-child { border-bottom: none; }
    .cart-table td[data-label]::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--slate-600);
        flex-shrink: 0;
    }
    .cart-table td[data-label="Produit"] {
        justify-content: flex-start;
        padding-top: 1rem !important;
    }
    .cart-table td[data-label="Produit"]::before { display: none; }
    .cart-table td[data-label="Action"] { justify-content: center; }
    .cart-table td[data-label="Action"]::before { display: none; }

    .cart-coupon form { flex-direction: column; }
    .cart-coupon form button { width: 100%; }
    .cart-summary { position: static; }
}

/* ─── Espace client (account) ─────────────────────────────────────── */
.acc-main { padding: 4rem 1.5rem 6rem 1.5rem; }
.acc-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}
.acc-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
}
.acc-orders-list { display: flex; flex-direction: column; gap: 1.5rem; }
.acc-order-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.acc-order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.acc-transfer {
    background: var(--navy-900);
    color: var(--white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.acc-order-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.acc-edit-panel {
    display: none;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}
.acc-edit-panel.open { display: block; }
.acc-edit-toggle.active {
    background: var(--emerald-600);
    color: var(--white) !important;
    border-color: var(--emerald-600);
}
.acc-edit-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .acc-main { padding: 2rem 0.75rem 4rem 0.75rem; }
    .acc-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    .acc-welcome h1 { font-size: 1.4rem !important; }
    .acc-welcome > div:last-child { width: 100%; }
    .acc-welcome .btn-outline { width: 100%; justify-content: center; }
    .acc-edit-panel { padding: 1.25rem; }
    .acc-edit-fields { grid-template-columns: 1fr; gap: 1rem; }
    .acc-grid { grid-template-columns: 1fr; gap: 2rem; }
    .acc-order-card { padding: 1.25rem; }
    .acc-order-head { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .acc-order-head > div:last-child { text-align: left; }
    .acc-transfer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .acc-transfer .btn-outline { width: 100%; justify-content: center; }
    .acc-order-foot { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ─── Détail commande (order_confirmation) ────────────────────────── */
.oc-main { padding: 4rem 1.5rem 6rem 1.5rem; }
.oc-card {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}
.oc-title { font-size: 2.2rem; margin-bottom: 0.5rem; color: var(--navy-900); }
.oc-items-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    font-size: 0.9rem;
}
.oc-actions { display: flex; justify-content: center; gap: 1rem; }

@media (max-width: 768px) {
    .oc-main { padding: 2rem 0.75rem 4rem 0.75rem; }
    .oc-card { padding: 1.5rem 1rem; }
    .oc-title { font-size: 1.6rem !important; }

    .oc-items-table { border: none; background: transparent; }
    .oc-items-table thead { display: none; }
    .oc-items-table tbody { display: block; }
    .oc-items-table tr {
        display: block;
        border: 1px solid var(--slate-200);
        border-radius: var(--radius-md);
        margin-bottom: 0.75rem;
        padding: 0 0.75rem;
        background: var(--white);
    }
    .oc-items-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.6rem 0 !important;
        border-bottom: 1px dashed var(--slate-200);
        text-align: left !important;
    }
    .oc-items-table td:last-child { border-bottom: none; }
    .oc-items-table td[data-label]::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--slate-600);
        flex-shrink: 0;
    }
    .oc-items-table td[data-label="Article"] { justify-content: flex-start; }
    .oc-items-table td[data-label="Article"]::before { display: none; }

    .oc-actions { flex-direction: column; }
    .oc-actions a { width: 100%; justify-content: center; }
}

/* ─── Suivez-nous sur les Réseaux Sociaux ────────────────────────── */
.soc-section {
    padding: 5rem 0;
    background-color: var(--slate-50);
}
.soc-section--light {
    background-color: var(--white);
}
.soc-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.75rem;
    text-align: center;
}
.soc-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--navy-900);
}
.soc-title svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}
.soc-title--instagram svg { color: #E1306C; }
.soc-title--tiktok svg { color: #010101; }
.soc-title--facebook svg { color: #1877F2; }
.soc-title--youtube svg { color: #FF0000; }
.soc-handle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--emerald-600);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--slate-200);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}
.soc-handle:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-500);
}
.soc-handle--instagram { color: #E1306C; }
.soc-handle--tiktok { color: #010101; }
.soc-handle--facebook { color: #1877F2; }
.soc-handle--youtube { color: #FF0000; }
.soc-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.soc-card {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.soc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.soc-card:hover img {
    transform: scale(1.06);
}
.soc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--emerald-500);
}
.soc-play {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    backdrop-filter: blur(2px);
}
.soc-cta-wrap {
    display: flex;
    justify-content: center;
}
.soc-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0F172A;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.soc-cta:hover {
    transform: translateY(-2px);
    color: #fff;
}
.soc-cta--instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.3);
}
.soc-cta--instagram:hover {
    box-shadow: 0 8px 22px rgba(220, 39, 67, 0.4);
}
.soc-cta--tiktok {
    background: #010101;
    box-shadow: 0 4px 14px rgba(1, 1, 1, 0.3);
}
.soc-cta--tiktok:hover {
    background: #262626;
}
.soc-cta--facebook {
    background: #1877F2;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}
.soc-cta--facebook:hover {
    background: #0f63d6;
}
.soc-cta--youtube {
    background: #FF0000;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
}
.soc-cta--youtube:hover {
    background: #cc0000;
}
@media (max-width: 992px) {
    .soc-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}
@media (max-width: 480px) {
    .soc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .soc-title {
        font-size: 1.4rem;
    }
}
