/* ===== Hleli - Product Page Styles ===== */
:root {
    --purple: #4B1D5F;
    --purple-dark: #3a1650;
    --purple-light: #6b2d85;
    --navy: #1D293E;
    --navy-light: #2a3a52;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-500: #9E9E9E;
    --gray-700: #616161;
    --gray-900: #212121;
    --green: #2E7D32;
    --green-light: #E8F5E9;
    --red: #E53935;
    --gold: #f5a623;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: 0.2s ease;
    --font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    max-width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.main-content {
    overflow-x: clip;
    max-width: 100%;
}
.top-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-700);
    display: none;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
}
.top-bar-right, .top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-link { display: flex; align-items: center; gap: 4px; transition: color var(--transition); }
.top-link:hover { color: var(--purple); }
.top-social { color: var(--gray-500); transition: color var(--transition); }
.top-social:hover { color: var(--purple); }

/* ===== Header ===== */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 100%;
    overflow-x: clip;
}
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    justify-self: center;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    border-radius: 0;
}
.footer-logo {
    height: 56px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 0;
}
.phone-ltr {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}
.logo-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--purple);
    font-style: italic;
    letter-spacing: -1px;
}

/* Challenge CTA — EST vs CA */
.challenge-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 5px 22px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background-color: #9b1b1b;
    border: 1.5px solid rgba(255, 138, 128, 0.55);
    box-shadow: 0 4px 14px rgba(225, 6, 0, 0.5);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    animation: challenge-flash 1.4s steps(2, jump-none) infinite;
}
.challenge-btn:hover {
    transform: translateY(-1px) scale(1.02);
    animation-play-state: paused;
}
.challenge-btn__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    line-height: 1.1;
    width: 100%;
}
.challenge-btn__label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}
.challenge-btn__match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}
.challenge-team-logo {
    width: 28px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.challenge-team-logo--est {
    border-radius: 50%;
}
.challenge-vs {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
@keyframes challenge-flash {
    0% {
        background-color: #9b1b1b;
        border-color: rgba(255, 138, 128, 0.55);
        box-shadow: 0 4px 14px rgba(225, 6, 0, 0.5);
    }
    100% {
        background-color: #c89200;
        border-color: rgba(255, 213, 79, 0.55);
        box-shadow: 0 4px 14px rgba(245, 197, 0, 0.5);
    }
}

.header-search {
    display: none;
    position: relative;
    max-width: 400px;
    width: 100%;
}
.search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    background: var(--gray-100);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--purple); }
.search-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}
.header-icons { display: flex; align-items: center; gap: 8px; }
.header-icon {
    position: relative;
    padding: 8px;
    color: var(--gray-700);
    transition: color var(--transition);
    border-radius: 50%;
}
.header-icon:hover { color: var(--purple); background: var(--gray-100); }
.cart-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-900);
    transition: var(--transition);
    border-radius: 2px;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Navigation ===== */
.main-nav {
    background: var(--navy);
    overflow: hidden;
}
.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--transition);
}
.nav-link:hover, .nav-link.highlight { background: var(--navy-light); }
.nav-link.highlight { color: #ffd54f; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--gray-500);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb .current { color: var(--gray-900); font-weight: 500; }
.breadcrumb .sep { color: var(--gray-300); }

/* ===== Product Section ===== */
.product-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 40px;
}

/* Gallery */
.product-gallery { width: 100%; }
.gallery-main {
    position: relative;
    background: var(--gray-50);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    max-height: 500px;
}
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.gallery-zoom {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow);
    transition: background var(--transition);
}
.gallery-zoom:hover { background: var(--white); }
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow);
    transition: background var(--transition);
    opacity: 0;
}
.gallery-main:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: var(--white); }
.gallery-prev { right: 12px; }
.gallery-next { left: 12px; }
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.thumb-btn {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}
.thumb-btn.active, .thumb-btn:hover { border-color: var(--purple); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Product Details */
.product-details { width: 100%; }
.product-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.stars { display: flex; gap: 2px; }
.review-link { font-size: 13px; color: var(--gray-500); }
.review-link:hover { color: var(--purple); }
.product-price { margin-bottom: 20px; }
.price-current {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
}

/* Trust badges */
.trust-badges {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 20px;
    padding: 14px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800, #1f2937);
    line-height: 1.4;
}
.trust-badge__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--green-light);
    color: var(--green);
}

/* Options */
.option-group { margin-bottom: 20px; }
.option-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-700);
}
.option-label span { color: var(--purple); font-weight: 700; }

/* Colors */
.color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.color-btn {
    width: 56px;
    height: 56px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 2px;
    transition: border-color var(--transition), transform var(--transition);
}
.color-btn:hover { transform: scale(1.05); }
.color-btn.active { border-color: var(--purple); border-width: 3px; }
.color-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }

/* Logos */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.logo-btn {
    min-width: 72px;
    height: 56px;
    padding: 4px 8px;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}
.logo-btn:hover { transform: scale(1.03); }
.logo-btn.active { border-color: var(--purple); border-width: 3px; }
.logo-btn img {
    width: 100%;
    height: 100%;
    max-height: 48px;
    object-fit: contain;
}
.logo-btn-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
}

/* Front / back toggle */
.view-toggle {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.view-btn {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.view-btn:hover { border-color: var(--purple-light); }
.view-btn.active {
    border-color: var(--purple);
    background: rgba(75, 29, 95, 0.08);
    color: var(--purple);
}

/* Sizes */
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
    min-width: 48px;
    height: 44px;
    padding: 0 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition);
}
.size-btn:hover { border-color: var(--purple); color: var(--purple); }
.size-btn.active {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

/* Offers */
.offers-list { display: flex; flex-direction: column; gap: 8px; }
.offer-card {
    display: block;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 16px;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    position: relative;
}
.offer-card:hover { border-color: var(--purple-light); }
.offer-card.selected { border-color: var(--purple); background: #faf5fc; }
.offer-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.offer-content { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-label { font-size: 14px; font-weight: 500; }
.offer-price { font-size: 16px; font-weight: 700; color: var(--purple); }
.popular-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--purple);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
}

/* Bundle */
.bundle-section {
    background: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}
.bundle-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; color: var(--gray-700); }
.bundle-rows { display: flex; flex-direction: column; gap: 10px; }
.bundle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}
.bundle-row label {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}
.bundle-row select {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--white);
    outline: none;
}
.bundle-row select:focus { border-color: var(--purple); }

/* Order Form */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}
.order-form-section {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 8px;
}
.order-form-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-900);
    scroll-margin-top: 16px;
    scroll-margin-bottom: 24px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--gray-50);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(75, 29, 95, 0.1);
    background: var(--white);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--red); }

/* Order Summary */
.order-summary {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin: 16px 0;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}
.summary-row span:first-child { color: var(--gray-500); }
.form-group input.phone-ltr,
.form-group textarea.phone-ltr {
    direction: ltr;
    text-align: left;
}
.summary-row span:last-child {
    font-weight: 600;
    color: var(--gray-900);
}
.shipping-row span:last-child {
    color: var(--gray-700);
}
.total-row {
    border-top: 1px solid var(--gray-200);
    margin-top: 6px;
    padding-top: 10px;
    font-size: 16px;
    font-weight: 700;
}
.total-row span:last-child { color: var(--purple); font-size: 18px; }

/* Order Actions */
.order-actions {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.order-actions--inline {
    display: none;
}
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.qty-btn {
    width: 40px;
    height: 48px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-700);
    transition: background var(--transition);
}
.qty-btn:hover { background: var(--gray-100); }
.qty-selector input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-300);
    border-right: 1px solid var(--gray-300);
    font-size: 16px;
    font-weight: 600;
    background: var(--white);
    -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-order {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--purple);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), transform var(--transition);
    min-height: 48px;
}
.btn-order__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-order__icon {
    flex-shrink: 0;
}
.btn-order.is-attention:not(:disabled) {
    animation: btn-order-vibrate 0.55s ease-in-out infinite;
}
.btn-order.is-attention:not(:disabled):active {
    animation: none;
}
@keyframes btn-order-vibrate {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
}
.btn-order:hover { background: var(--purple-dark); }
.btn-order:active { transform: scale(0.98); }
.btn-order:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: none;
}
.form-message.success { display: block; background: var(--green-light); color: var(--green); }
.form-message.error { display: block; background: #FFEBEE; color: var(--red); }

/* Lifestyle Gallery */
.lifestyle-section {
    padding: 36px 0 40px;
    border-top: 1px solid var(--gray-200);
}
.lifestyle-section__title {
    margin-bottom: 20px;
}
.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.lifestyle-item {
    margin: 0;
    padding: 0;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 4 / 5;
    cursor: zoom-in;
    width: 100%;
    display: block;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.lifestyle-item:hover {
    border-color: var(--purple-light);
    box-shadow: 0 8px 24px rgba(75, 29, 95, 0.12);
}
.lifestyle-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.lifestyle-item:hover img {
    transform: scale(1.03);
}
@media (min-width: 768px) {
    .lifestyle-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .lifestyle-section {
        padding: 44px 0 48px;
    }
}

/* Customer Reviews */
.reviews-section {
    padding: 36px 0 40px;
    border-top: 1px solid var(--gray-200);
}
.reviews-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.reviews-section__title { margin-bottom: 4px; }
.reviews-section__subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--gray-500);
}
.reviews-section__score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.reviews-section__stars { display: flex; gap: 2px; }
.reviews-section__count {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600, #757575);
}
.reviews-carousel {
    position: relative;
}
.reviews-carousel__viewport {
    position: relative;
    min-height: 200px;
}
.review-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px 22px 20px;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
}
.review-card.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1;
}
.review-card__quote {
    position: absolute;
    top: 16px;
    inset-inline-end: 18px;
    color: var(--purple);
    line-height: 1;
}
.review-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}
.review-card__text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--gray-800, #1f2937);
    font-weight: 500;
    font-style: normal;
}
.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}
.review-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.review-card__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.review-card__name {
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
}
.review-card__location {
    font-size: 12px;
    color: var(--gray-500);
}
.review-card__date {
    font-size: 12px;
    color: var(--gray-400, #bdbdbd);
    white-space: nowrap;
}
.reviews-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    padding: 0;
    transition: width 0.25s ease, background 0.25s ease;
}
.reviews-dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: var(--purple);
}
.reviews-dot:hover { background: var(--purple-light); }

/* Related Products */
.related-section { padding: 40px 0; border-top: 1px solid var(--gray-200); }
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.product-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--gray-50);
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-info { padding: 10px 12px; }
.card-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.card-price { font-size: 15px; font-weight: 700; }

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.zoom-modal.active { display: flex; }
.zoom-modal img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.zoom-close {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 36px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
    margin-top: 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.footer-col h4 { color: white; font-size: 16px; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; font-size: 14px; }
.footer-col a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    text-align: center;
    font-size: 13px;
}

/* Install Page */
.install-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
}
.install-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 480px;
}
.install-box h1 { color: var(--purple); margin-bottom: 12px; }
.install-box ul { list-style: none; margin-top: 20px; }
.install-box li { margin: 8px 0; }
.install-box a { color: var(--purple); font-weight: 600; }

/* ===== Admin Styles ===== */
.admin-body { background: var(--gray-100); min-height: 100vh; overflow-x: hidden; }
.admin-header {
    background: var(--navy);
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 60;
}
.admin-header h1 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-header__links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.admin-header a { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; }
.admin-header a:hover { color: white; }
.admin-nav {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 8px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 52px;
    z-index: 55;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}
.admin-nav__icon { display: none; line-height: 1; }
.admin-nav a:hover, .admin-nav a.active { color: var(--purple); border-bottom-color: var(--purple); }
.admin-content { padding: 20px; max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}
.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.admin-card-head h2 { margin: 0; }
.admin-card h2 {
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-section-title {
    margin: 20px 0 10px;
    font-size: 15px;
    color: var(--gray-700);
}
.admin-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.admin-detail-grid--compact { font-size: 13px; }
.admin-detail-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.admin-detail-item span {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
}
.admin-detail-item strong {
    font-size: 14px;
    color: var(--gray-800);
    word-break: break-word;
}
.admin-break { overflow-wrap: anywhere; }
.admin-log-box {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    overflow: auto;
    max-height: 220px;
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}
.admin-status-form {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
}
.admin-status-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-700);
}
.admin-status-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.admin-status-form select {
    flex: 1 1 180px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}
.admin-status-form .admin-btn {
    min-height: 44px;
    min-width: 110px;
}
.admin-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 700;
}
.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
}
.admin-table th { background: var(--gray-50); font-weight: 600; color: var(--gray-700); }
.admin-table tr:hover td { background: var(--gray-50); }
.admin-table-empty td {
    text-align: center !important;
    color: var(--gray-500);
    padding: 24px 12px !important;
}
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: background var(--transition);
    text-align: center;
}
.admin-btn-primary { background: var(--purple); color: white; }
.admin-btn-primary:hover { background: var(--purple-dark); }
.admin-btn-danger { background: var(--red); color: white; }
.admin-btn-danger:hover { background: #c62828; }
.admin-btn-success { background: var(--green); color: white; }
.admin-btn-success:hover { background: #1b5e20; }
.admin-btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.admin-btn-secondary:hover { background: var(--gray-300); }
.admin-btn-shipped { background: #1565C0; color: white; }
.admin-btn-shipped:hover { background: #0D47A1; }
.admin-btn-sms { background: #00897B; color: white; }
.admin-btn-sms:hover { background: #00695C; }
.admin-btn-edit { background: #5C6BC0; color: white; }
.admin-btn-edit:hover { background: #3F51B5; }
.admin-btn-supplier { background: #6D4C41; color: #fff; }
.admin-btn-supplier:hover { background: #5D4037; }
.admin-btn-new-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    min-height: 42px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.25);
    cursor: pointer;
    white-space: nowrap;
}
.admin-btn-new-order:hover { background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%); }
.admin-btn-new-order__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    font-size: 14px;
    line-height: 1;
}
.admin-orders-head {
    margin-bottom: 14px;
}
.admin-orders-head h2 {
    margin: 0;
}
.admin-btn-excel { background: #2E7D32; color: #fff; }
.admin-btn-excel:hover { background: #1B5E20; }

.admin-orders-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 16px;
}
.admin-orders-search {
    position: relative;
    flex: 1 1 260px;
    min-width: 200px;
}
.admin-orders-search__icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 10px;
    transform: translateY(-50%);
    font-size: 13px;
    pointer-events: none;
}
.admin-orders-search__input {
    width: 100%;
    padding-block: 10px;
    padding-inline: 34px 36px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    background: #fff;
}
.admin-orders-search__clear {
    position: absolute;
    top: 50%;
    inset-inline-end: 8px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-700);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.admin-orders-search__clear[hidden] { display: none !important; }
.admin-orders-date {
    position: relative;
}
.admin-orders-status {
    position: relative;
}
.admin-orders-date__toggle,
.admin-orders-status__toggle {
    background: #ECEFF1;
    color: #37474F;
    min-width: 140px;
}
.admin-orders-date__toggle:hover,
.admin-orders-status__toggle:hover { background: #CFD8DC; }
.admin-orders-date__menu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    z-index: 30;
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    display: grid;
    gap: 4px;
}
.admin-orders-date__menu[hidden] { display: none !important; }
.admin-orders-date__option {
    border: 0;
    background: transparent;
    text-align: start;
    padding: 8px 10px;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
}
.admin-orders-date__option:hover { background: #F5F5F5; }
.admin-orders-date__option.is-active {
    background: #E8EAF6;
    color: #283593;
}
.admin-orders-date__custom {
    display: grid;
    gap: 8px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-200);
}
.admin-orders-date__custom label {
    display: grid;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}
.admin-orders-date__custom input[type="date"] {
    font: inherit;
    padding: 7px 8px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
}
.admin-orders-meta {
    flex: 1 1 100%;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-600);
}
@media (min-width: 900px) {
    .admin-orders-meta {
        flex: 0 0 auto;
        margin-inline-start: auto;
    }
}

.admin-modal__dialog--supplier {
    width: min(100%, 820px);
    max-height: calc(100vh - 32px);
    overflow: auto;
}
.supplier-controls {
    display: grid;
    gap: 14px;
    margin-bottom: 12px;
}
.supplier-control-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 6px;
}
.supplier-period-options,
.supplier-status-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.supplier-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #F5F5F5;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
}
.supplier-status-chip input { accent-color: var(--purple); }
.supplier-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.supplier-meta {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--gray-600);
}
.supplier-results[hidden] { display: none !important; }
.supplier-table-wrap {
    overflow-x: auto;
    margin-bottom: 14px;
}
.supplier-table th:last-child,
.supplier-table td:last-child {
    text-align: end;
}
.supplier-group {
    margin-bottom: 12px;
}
.supplier-group h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--purple);
}
.supplier-group ul {
    margin: 0;
    padding-inline-start: 18px;
    color: var(--gray-700);
    font-size: 13px;
    line-height: 1.6;
}
.supplier-total-line {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-200);
    font-weight: 800;
    font-size: 14px;
    color: #1B5E20;
}
.supplier-blanks {
    margin: 16px 0 18px;
    padding: 14px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    background: #FAFAFA;
}
.supplier-blanks__title {
    margin: 0 0 4px;
    font-size: 15px;
    color: #4E342E;
}
.supplier-blanks__hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--gray-600);
}
.supplier-group--blank h4 {
    color: #4E342E;
}
.supplier-group--blank p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-700);
}
.admin-btn-sm { padding: 6px 12px; font-size: 12px; min-height: 34px; }
.admin-sms-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.admin-sms-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 2px 7px;
    border-radius: 999px;
    background: #E8F5E9;
    color: #2E7D32;
    white-space: nowrap;
}
.admin-sms-badge--sent {
    background: #E8F5E9;
    color: #1B5E20;
}
.admin-sms-muted {
    font-size: 12px;
    color: var(--gray-500);
}
.admin-sms-status-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.admin-btn-sms-option.is-sent::after {
    content: " ✓";
    color: #2E7D32;
    font-weight: 700;
}
.admin-toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    background: #1B5E20;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: calc(100% - 32px);
}
.admin-toast[hidden] {
    display: none !important;
}
.admin-modal__dialog--edit {
    width: min(100%, 640px);
    max-height: calc(100vh - 32px);
    overflow: auto;
}
.admin-modal__dialog--new-order {
    width: min(100%, 560px);
}
.admin-edit-form {
    margin: 0;
}
.admin-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.admin-edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}
.admin-edit-field--full {
    grid-column: 1 / -1;
}
.admin-edit-field input,
.admin-edit-field select,
.admin-edit-field textarea {
    font: inherit;
    font-weight: 500;
    padding: 9px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: #fff;
    color: var(--gray-800);
    width: 100%;
    box-sizing: border-box;
}
.admin-edit-field textarea {
    resize: vertical;
    min-height: 64px;
}
.admin-edit-field--readonly {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}
.admin-edit-readonly {
    padding: 9px 10px;
    border-radius: 8px;
    background: var(--gray-100);
    border: 1px dashed var(--gray-300);
    color: var(--gray-700);
    font-weight: 700;
}
.admin-edit-error {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #FFEBEE;
    color: #C62828;
    font-size: 13px;
}
.admin-edit-error[hidden] {
    display: none !important;
}
.admin-new-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.admin-new-item {
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: #f8fbff;
}
.admin-new-item__head {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 10px;
}
.admin-new-item .admin-edit-grid {
    margin-bottom: 0;
}
@media (max-width: 900px) {
    .admin-modal#newOrderModal {
        align-items: flex-end;
        padding: 0;
    }
    .admin-modal__dialog--new-order {
        width: 100%;
        max-width: none;
        max-height: min(94vh, 920px);
        border-radius: 18px 18px 0 0;
        padding: 18px 14px calc(14px + env(safe-area-inset-bottom, 0px));
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-modal__dialog--new-order .admin-edit-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .admin-modal__dialog--new-order .admin-edit-field input,
    .admin-modal__dialog--new-order .admin-edit-field select,
    .admin-modal__dialog--new-order .admin-edit-field textarea {
        min-height: 46px;
        font-size: 16px;
    }
    .admin-modal__dialog--new-order .admin-modal__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .admin-modal__dialog--new-order .admin-modal__actions .admin-btn {
        width: 100%;
        min-height: 48px;
        margin: 0;
    }
}
@media (max-width: 640px) {
    .admin-edit-grid {
        grid-template-columns: 1fr;
    }
}
.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.admin-phone-link {
    color: var(--purple);
    font-weight: 600;
    text-decoration: none;
}
.admin-phone-link:hover {
    text-decoration: underline;
}
.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.admin-modal[hidden] {
    display: none !important;
}
.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
}
.admin-modal__dialog {
    position: relative;
    width: min(100%, 420px);
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.admin-modal__dialog--sms {
    width: min(100%, 460px);
}
.admin-modal__title {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--purple);
}
.admin-modal__text {
    margin: 0 0 18px;
    color: var(--gray-700);
    line-height: 1.6;
}
.admin-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-sms-meta {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    padding: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}
.admin-sms-order-ref {
    font-size: 12px;
    color: var(--gray-500);
}
.admin-sms-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #FFEBEE;
    color: var(--red);
    font-size: 13px;
    font-weight: 600;
}
.admin-sms-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}
.admin-sms-actions[hidden],
.admin-sms-preview[hidden],
.admin-sms-error[hidden],
#smsOrderCancelRow[hidden] {
    display: none !important;
}
.admin-btn-sms-option {
    width: 100%;
    padding: 14px 16px;
    background: #E0F2F1;
    color: #00695C;
    font-size: 15px;
    text-align: center;
    border-radius: 10px;
}
.admin-btn-sms-option:hover {
    background: #B2DFDB;
}
.admin-sms-preview {
    margin-bottom: 8px;
}
.admin-sms-preview__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 8px;
}
.admin-sms-preview__text {
    margin: 0 0 14px;
    padding: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-900);
    white-space: pre-wrap;
    word-break: break-word;
}
.admin-sms-preview__actions {
    justify-content: stretch;
}
.admin-sms-preview__actions .admin-btn {
    flex: 1;
    text-align: center;
    padding: 12px 14px;
}
.admin-form .form-group { margin-bottom: 16px; }
.admin-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    border-color: var(--purple);
    outline: none;
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--purple); }
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending { background: #FFF3E0; color: #E65100; }
.status-confirmed { background: var(--green-light); color: var(--green); }
.status-cancelled { background: #FFEBEE; color: var(--red); }
.status-injoignable { background: #FFEBEE; color: var(--red); }
.status-shipped { background: #E3F2FD; color: #1565C0; }
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
}
.login-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}
.login-box h1 { text-align: center; color: var(--purple); margin-bottom: 24px; }
.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #FFEBEE; color: var(--red); }
.alert-success { background: var(--green-light); color: var(--green); }

/* ===== Responsive ===== */
@media (min-width: 640px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-arrow { opacity: 1; }
}

@media (min-width: 768px) {
    .top-bar { display: block; }
    .header-inner {
        grid-template-columns: 1fr auto 1fr;
        padding: 16px;
    }
    .header-brand { justify-self: start; order: 3; gap: 12px; }
    .logo { justify-self: auto; }
    .logo-img { height: 56px; max-width: 200px; }
    .challenge-btn {
        min-width: 148px;
        padding: 6px 28px;
    }
    .challenge-btn__label { font-size: 13px; }
    .challenge-btn__match { gap: 10px; }
    .challenge-team-logo { width: 32px; height: 28px; }
    .challenge-vs { font-size: 11px; padding: 1px 8px; }
    .header-search { display: flex; order: 2; justify-self: center; }
    .header-icons { order: 1; }
    .mobile-menu-btn { display: none; }
    .product-section {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
    }
    .product-gallery { width: 50%; position: sticky; top: 80px; }
    .product-details { width: 50%; }
    .product-title { font-size: 26px; }
    .related-grid { grid-template-columns: repeat(4, 1fr); }
    .bundle-row {
        grid-template-columns: auto 1fr 1fr;
        padding: 10px 12px;
    }
    .bundle-row label {
        grid-column: auto;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }
}

@media (min-width: 1024px) {
    .container { padding: 0 24px; }
    .product-gallery { width: 48%; }
    .product-details { width: 52%; }
    .gallery-main { max-height: 600px; }
}

@media (max-width: 767px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 10px 12px;
    }
    .header-search { display: none !important; }
    .mobile-menu-btn { flex-shrink: 0; order: 1; }
    .header-brand {
        flex: 1;
        order: 2;
        justify-content: center;
        gap: 8px;
        min-width: 0;
        flex-wrap: nowrap;
    }
    .logo {
        flex: 0 0 auto;
        min-width: 0;
    }
    .header-icons {
        flex-shrink: 0;
        order: 3;
        gap: 2px;
    }
    .header-icon { padding: 6px; }
    .logo-img {
        width: auto;
        max-width: 170px;
        height: auto;
        max-height: 44px;
    }
    .challenge-btn {
        min-width: 120px;
        padding: 4px 16px;
        border-radius: 12px;
    }
    .challenge-btn__label { font-size: 11px; }
    .challenge-btn__match { gap: 7px; }
    .challenge-team-logo { width: 26px; height: 22px; }
    .challenge-vs { font-size: 9px; padding: 1px 6px; }
    .logo-text {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .container {
        padding: 0 12px;
        max-width: 100%;
    }
    .product-section,
    .product-gallery,
    .product-details {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .gallery-thumbs {
        max-width: 100%;
    }
    .gallery-arrow { opacity: 1; width: 32px; height: 32px; }
    .order-form-section {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }
    .order-actions--sticky {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 900;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 -6px 24px rgba(17, 24, 39, 0.1);
    }
    .order-actions--inline {
        display: flex;
        margin-top: 4px;
    }
    .order-actions--inline .btn-order {
        flex: 1;
        min-height: 52px;
        font-size: 17px;
        animation: none !important;
    }
    .qty-selector { justify-content: center; }
    .btn-order {
        width: auto;
        flex: 1;
        min-height: 52px;
        font-size: 17px;
    }
    .form-message.success,
    .form-message.error {
        position: fixed;
        inset-inline: 16px;
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        z-index: 901;
        margin-top: 0;
    }
    #customerName,
    #phone,
    #city,
    #address,
    .order-form-title {
        scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }
    .main-nav { max-height: 0; transition: max-height 0.3s ease; }
    .main-nav.open { max-height: 300px; }
    .nav-list { flex-direction: column; overflow-x: visible; }
    .nav-link { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .admin-header {
        padding: 10px 12px;
        gap: 8px;
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
    }
    .admin-header h1 { font-size: 15px; max-width: 55vw; }
    .admin-header__links { gap: 8px; }
    .admin-header a {
        font-size: 12px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        padding: 0 4px;
    }
    .admin-nav {
        position: fixed;
        top: auto;
        bottom: 0;
        inset-inline: 0;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        overflow: visible;
        padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
        border-bottom: 0;
        border-top: 1px solid var(--gray-200);
        background: #fff;
        box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.08);
    }
    .admin-nav a {
        flex-direction: column;
        gap: 2px;
        padding: 8px 4px;
        font-size: 11px;
        border-bottom: 0;
        border-top: 2px solid transparent;
        border-radius: 10px;
        color: var(--gray-600);
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        min-height: 56px;
    }
    .admin-nav__icon { display: block; font-size: 18px; }
    .admin-nav a:hover,
    .admin-nav a.active {
        color: var(--purple);
        border-bottom-color: transparent;
        border-top-color: var(--purple);
        background: #F3E5F5;
    }
    .admin-content {
        padding: 12px 12px calc(88px + env(safe-area-inset-bottom, 0px));
    }
    .admin-card {
        padding: 14px;
        border-radius: 12px;
        overflow: visible;
    }
    .admin-card h2,
    .admin-card-head h2 { font-size: 16px; margin-bottom: 0; }
    .admin-card-head { margin-bottom: 12px; }
    .admin-orders-head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: stretch;
    }
    .admin-orders-head h2 {
        margin: 0;
    }
    .admin-btn-new-order {
        width: 100%;
        min-height: 48px;
        font-size: 15px;
        border-radius: 12px;
    }
    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 14px;
    }
    .stat-card { padding: 14px; }
    .stat-card .stat-value { font-size: 22px; word-break: break-word; }
    .stat-card .stat-label { font-size: 12px; }
    .admin-orders-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }
    .admin-orders-search { min-width: 0; flex: none; }
    .admin-orders-search__input {
        min-height: 44px;
        font-size: 16px; /* prevents iOS zoom */
    }
    .admin-orders-date,
    .admin-orders-status { width: 100%; }
    .admin-orders-date__toggle,
    .admin-orders-status__toggle {
        width: 100%;
        min-height: 44px;
        justify-content: flex-start;
    }
    .admin-orders-date__menu {
        inset-inline: 0;
        width: auto;
        min-width: 0;
    }
    .admin-btn-supplier {
        width: 100%;
        min-height: 44px;
    }
    .admin-orders-meta {
        flex: none;
        width: 100%;
        margin: 0;
        font-size: 12px;
    }
    .admin-action-bar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .admin-action-bar .admin-btn {
        width: 100%;
        min-height: 46px;
    }
    .admin-detail-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .admin-status-form__row {
        display: grid;
        grid-template-columns: 1fr;
    }
    .admin-status-form select,
    .admin-status-form .admin-btn {
        width: 100%;
    }
    .admin-form input,
    .admin-form select,
    .admin-form textarea {
        min-height: 44px;
        font-size: 16px;
        max-width: 100%;
    }
    .admin-form textarea { min-height: 96px; }
    .admin-form .admin-btn {
        width: 100%;
        min-height: 48px;
    }
    .admin-table-wrap { overflow: visible; }
    .admin-table--stack {
        border-collapse: separate;
        border-spacing: 0;
    }
    .admin-table--stack thead {
        display: none;
    }
    .admin-table--stack,
    .admin-table--stack tbody,
    .admin-table--stack tr,
    .admin-table--stack td {
        display: block;
        width: 100%;
    }
    .admin-table--stack tr {
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 12px;
        box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
    }
    .admin-table--stack tr:hover td {
        background: transparent;
    }
    .admin-table--stack td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px dashed var(--gray-200);
        text-align: left;
        white-space: normal;
        word-break: break-word;
        font-size: 13px;
        line-height: 1.45;
    }
    .admin-table--stack td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .admin-table--stack td::before {
        content: attr(data-label);
        flex: 0 0 34%;
        max-width: 110px;
        color: var(--gray-500);
        font-size: 12px;
        font-weight: 700;
        text-align: right;
    }
    .admin-table--stack td[data-label="رقم الطلب"],
    .admin-table--stack td[data-label="رقم المنتج"] {
        padding-top: 0;
        border-bottom: 1px solid var(--gray-200);
        margin-bottom: 2px;
        font-size: 15px;
        font-weight: 800;
        color: var(--purple);
    }
    .admin-table--stack td.admin-table-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding-top: 12px;
        margin-top: 4px;
        border-top: 1px solid var(--gray-200);
        border-bottom: none;
        align-items: stretch;
    }
    .admin-table--stack td.admin-table-actions::before {
        grid-column: 1 / -1;
        max-width: none;
        margin-bottom: 2px;
        text-align: right;
    }
    .admin-table--stack .admin-table-actions form,
    .admin-table--stack .admin-table-actions .js-inline-form {
        margin: 0;
        display: contents;
    }
    .admin-table--stack .admin-table-actions .admin-btn-sm {
        width: 100%;
        min-height: 44px;
        padding: 10px 8px;
        font-size: 13px;
        flex: initial;
    }
    .admin-table-empty td {
        display: block !important;
        text-align: center !important;
        border: none !important;
        padding: 20px 8px !important;
    }
    .admin-table-empty td::before {
        display: none;
    }
    .admin-modal {
        align-items: flex-end;
        padding: 0;
    }
    .admin-modal__dialog,
    .admin-modal__dialog--edit,
    .admin-modal__dialog--sms,
    .admin-modal__dialog--supplier {
        width: 100%;
        max-width: none;
        max-height: min(92vh, 920px);
        border-radius: 16px 16px 0 0;
        padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-modal__actions {
        flex-wrap: wrap;
    }
    .admin-modal__actions .admin-btn {
        flex: 1 1 calc(50% - 4px);
        min-height: 44px;
    }
    .admin-sms-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .admin-btn-sms-option {
        width: 100%;
        min-height: 46px;
    }
    .supplier-period-options,
    .supplier-status-options {
        gap: 8px;
    }
    .supplier-status-chip {
        min-height: 40px;
    }
    .supplier-actions-row .admin-btn {
        flex: 1 1 100%;
        min-height: 46px;
    }
    .admin-toast {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 24px);
        max-width: none;
        text-align: center;
    }
    .login-page,
    .install-page { padding: 16px; }
    .login-box,
    .install-box {
        width: 100%;
        max-width: 100%;
        padding: 24px 18px;
    }
    .order-form-section,
    .order-form,
    .form-group input,
    .form-group select,
    .form-group textarea {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .header-inner { padding-inline: 8px; }
    .header-icons .header-icon:nth-child(2) { display: none; }
    .logo-img { max-width: 150px; max-height: 40px; height: auto; }
    .challenge-btn {
        min-width: 108px;
        padding: 4px 12px;
    }
    .challenge-btn__label { font-size: 10px; }
    .challenge-btn__match { gap: 6px; }
    .challenge-team-logo { width: 24px; height: 20px; }
    .container { padding-inline: 10px; }
    .product-section { gap: 18px; }
    .product-title { font-size: 20px; }
    .price-current { font-size: 24px; }
    .order-form-section { padding: 14px; }
    .bundle-section { padding: 12px; }
    .offer-card { padding-inline: 12px; }
    .offer-content { align-items: flex-start; }
    .offer-label { overflow-wrap: anywhere; }
    .offer-price { flex-shrink: 0; }
    .related-grid { gap: 8px; }
    .card-info { padding-inline: 8px; }
}

/* ===== Order toast notifications ===== */
.order-toast-stack {
    position: fixed;
    inset-inline-start: 16px;
    bottom: 16px;
    z-index: 100000;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: min(400px, calc(100vw - 24px));
}
.order-toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 44px 16px 16px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(245, 166, 35, 0.18) 0%, transparent 42%),
        linear-gradient(160deg, #2a1540 0%, var(--navy) 55%, #152033 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-inline-start: 5px solid var(--gold);
    border-radius: 16px;
    box-shadow:
        0 18px 40px rgba(17, 24, 39, 0.35),
        0 0 0 1px rgba(75, 29, 95, 0.2);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(28px) scale(0.92);
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}
.order-toast::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
    transform: translateX(-120%);
    pointer-events: none;
}
.order-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: order-toast-attention 0.9s ease 0.35s 1;
}
.order-toast.is-visible::before {
    animation: order-toast-shine 1.1s ease 0.2s 1;
}
.order-toast.is-leaving {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    animation: none;
}
.order-toast__icon {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--gold), #e08912);
    color: var(--navy);
    box-shadow: 0 8px 18px rgba(245, 166, 35, 0.35);
}
.order-toast__content { min-width: 0; flex: 1; }
.order-toast__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.order-toast__live {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
    animation: order-toast-pulse 1.6s ease-out infinite;
}
.order-toast__title {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--gold);
    text-transform: none;
}
.order-toast__text {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.4;
}
.order-toast__buyer {
    font-weight: 800;
    color: var(--white);
}
.order-toast__club {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffd78a;
    line-height: 1.35;
}
.order-toast__close {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}
.order-toast__close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}
@keyframes order-toast-pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes order-toast-shine {
    to { transform: translateX(120%); }
}
@keyframes order-toast-attention {
    0%, 100% { box-shadow: 0 18px 40px rgba(17, 24, 39, 0.35), 0 0 0 1px rgba(75, 29, 95, 0.2); }
    40% { box-shadow: 0 18px 40px rgba(17, 24, 39, 0.4), 0 0 0 4px rgba(245, 166, 35, 0.35); }
}
@media (min-width: 768px) {
    .order-toast-stack {
        inset-inline-start: 28px;
        bottom: 28px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .order-toast { transition: none; animation: none; }
    .order-toast.is-visible { animation: none; }
    .order-toast.is-visible::before { animation: none; }
    .order-toast__live { animation: none; }
    .challenge-btn { animation: none; }
    .btn-order.is-attention { animation: none; }
    .review-card { transition: none; }
    .lifestyle-item img { transition: none; }
    .lifestyle-item:hover img { transform: none; }
}
