/* ==========================================================================
   Reve of Luth app-style theme
   Loaded after the page stylesheets; restyles product, cart, checkout,
   confirmation, favorites, shop and auth pages to the mobile-app look:
   soft grey canvas, white rounded cards, pill buttons, gold accent.
   ========================================================================== */
:root {
    --rl-bg: #f6f6f7;
    --rl-card: #ffffff;
    --rl-ink: #1c1917;
    --rl-muted: #78716c;
    --rl-line: #ececeb;
    --rl-accent: #0E0907;
    --rl-accent-ink: #ffffff;
    --rl-accent-soft: #f1efed;
    --rl-danger: #ef4444;
    --rl-radius: 1rem;
    --rl-shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
}

body { background: var(--rl-bg); }

/* ---- shared atoms --------------------------------------------------------- */
.btn-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
    background: var(--rl-accent); color: var(--rl-accent-ink); border: 1px solid var(--rl-accent);
    text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14, 9, 7, 0.25); color: var(--rl-accent-ink); }
.btn-pill-ghost { background: #fff; border-color: var(--rl-line); color: var(--rl-ink); }
.btn-pill-ghost:hover { box-shadow: var(--rl-shadow); }
.icon-btn {
    width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; background: #fff; border: 1px solid var(--rl-line); color: var(--rl-ink); text-decoration: none;
}
.icon-btn:hover { box-shadow: var(--rl-shadow); }
.app-toast {
    position: fixed; left: 50%; bottom: 5.5rem; transform: translate(-50%, 20px); opacity: 0; z-index: 90;
    background: var(--rl-ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 999px; font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .25s, transform .25s; pointer-events: none;
}
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }
.app-toast-error { background: var(--rl-danger); }

/* ---- shop / favorites heads ---------------------------------------------- */
.shop-page, .wishlist-page { padding: 0.5rem 0 3rem; }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.shop-kicker { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rl-muted); }
.shop-title { font-size: 1.6rem; font-weight: 700; color: var(--rl-ink); line-height: 1.2; }
.shop-count { font-size: 0.85rem; color: var(--rl-muted); margin-top: 0.15rem; }
.shop-search {
    position: relative; display: flex; align-items: center; gap: 0.5rem; flex: 1 1 260px; max-width: 420px;
    background: #fff; border: 1px solid var(--rl-line); border-radius: 999px; padding: 0.55rem 1rem; color: var(--rl-muted);
}
.shop-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 0.95rem; color: var(--rl-ink); }
.shop-search-clear { color: var(--rl-muted); text-decoration: none; font-size: 1.25rem; line-height: 1; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.shop-toolbar .category-chips { flex: 1 1 auto; min-width: 0; padding-bottom: 0.25rem; }
.category-chip { text-decoration: none; }
.shop-sort { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; font-size: 0.85rem; color: var(--rl-muted); }
.shop-sort select {
    border: 1px solid var(--rl-line); background: #fff; border-radius: 999px; padding: 0.45rem 2rem 0.45rem 0.9rem;
    font-size: 0.85rem; color: var(--rl-ink); appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.8rem center;
}
.shop-pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 1.5rem; }
.shop-page-btn { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--rl-line); background: #fff; color: var(--rl-ink); text-decoration: none; font-size: 0.85rem; }
.shop-page-btn.active { background: var(--rl-ink); color: #fff; border-color: var(--rl-ink); }
.shop-empty { text-align: center; padding: 3rem 1rem; background: #fff; border-radius: var(--rl-radius); border: 1px solid var(--rl-line); }
.shop-empty .material-symbols-outlined { font-size: 2.5rem; width: auto; height: auto; color: var(--rl-accent); }
.shop-empty h2 { font-size: 1.15rem; font-weight: 600; margin: 0.5rem 0 0.25rem; }
.shop-empty p { color: var(--rl-muted); margin-bottom: 1rem; }
.pc-heart-float { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; }
.pc-cart-btn {
    flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 999px; border: 0; background: var(--rl-ink); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.pc-cart-btn:hover { background: #3a3230; color: #fff; }
@media (max-width: 640px) {
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .shop-sort { justify-content: flex-end; }
}

/* ---- cart ----------------------------------------------------------------- */
.cart-page.container { max-width: 1100px; padding: 0.5rem 0 2rem; }
.cart-page .cart-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; border: 0; padding: 0; }
.cart-page .cart-header h1 { flex: 1; font-size: 1.35rem; font-weight: 700; margin: 0; text-align: center; }
.cart-page .cart-summary { font-size: 0.8rem; color: var(--rl-muted); background: #fff; border: 1px solid var(--rl-line); border-radius: 999px; padding: 0.3rem 0.7rem; }
.cart-page .cart-container { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .cart-page .cart-container { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.cart-page .cart-items { display: flex; flex-direction: column; gap: 0.75rem; background: transparent; padding: 0; box-shadow: none; }
.cart-page .cart-item {
    display: flex; gap: 0.85rem; align-items: stretch; background: var(--rl-card); border: 1px solid var(--rl-line);
    border-radius: var(--rl-radius); padding: 0.75rem; box-shadow: none; margin: 0;
}
.cart-page .item-image-link { flex: 0 0 auto; }
.cart-page .item-image { width: 5.25rem; height: 5.25rem; border-radius: 0.85rem; background: var(--rl-bg); overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 0; }
.cart-page .item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-page .item-details { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; padding: 0; }
.cart-page .item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.cart-page .item-name { font-size: 0.95rem; font-weight: 600; color: var(--rl-ink); line-height: 1.3; margin: 0; }
.cart-page .item-name-link { text-decoration: none; }
.cart-page .item-variant { font-size: 0.75rem; color: var(--rl-muted); margin: 0; }
.cart-page .item-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.35rem; }
.cart-page .item-price { font-size: 1rem; font-weight: 700; color: var(--rl-ink); margin: 0; }
.cart-page .quantity-selector { display: inline-flex; align-items: center; gap: 0.35rem; border: 0; background: transparent; }
.cart-page .quantity-btn {
    width: 1.75rem; height: 1.75rem; border-radius: 999px; border: 1px solid #d6d3d1; background: #fff; color: var(--rl-ink);
    font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.cart-page .quantity-btn:last-child { background: var(--rl-ink); color: #fff; border-color: var(--rl-ink); }
.cart-page .quantity-btn:hover { border-color: var(--rl-accent); }
.cart-page .quantity-input { width: 1.6rem; text-align: center; border: 0; background: transparent; font-weight: 600; font-size: 0.95rem; padding: 0; }
.cart-page .remove-btn {
    width: 1.9rem; height: 1.9rem; border-radius: 999px; border: 0; background: #fff1f2; color: var(--rl-danger);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-size: 0;
}
.cart-page .remove-btn:hover { background: var(--rl-danger); color: #fff; }
.cart-empty { text-align: center; padding: 3rem 1rem; background: #fff; border-radius: var(--rl-radius); border: 1px solid var(--rl-line); }
.cart-empty .material-symbols-outlined { font-size: 2.5rem; width: auto; height: auto; color: var(--rl-accent); }
.cart-empty h2 { font-size: 1.15rem; font-weight: 600; margin: 0.5rem 0 0.25rem; }
.cart-empty p { color: var(--rl-muted); margin-bottom: 1rem; }

/* order summary card (cart widget, also injected by cart.js) */
.cart-total {
    background: var(--rl-card); border: 1px solid var(--rl-line); border-radius: var(--rl-radius); padding: 1.1rem; box-shadow: none;
    position: sticky; top: 5.5rem;
}
.cart-total h2 { font-size: 1rem; font-weight: 700; margin: 0 0 0.75rem; }
.cart-total .total-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.9rem; border: 0; }
.cart-total .total-label { color: var(--rl-muted); }
.cart-total .total-value { font-weight: 600; color: var(--rl-ink); }
.cart-total .discount-value { color: var(--rl-danger); }
.cart-total .grand-total { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px dashed var(--rl-line); }
.cart-total .grand-total-label { font-weight: 700; }
.cart-total .grand-total-value { font-size: 1.15rem; font-weight: 800; color: var(--rl-ink); }
.cart-total .checkout-btn {
    width: 100%; margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 999px; border: 0; background: var(--rl-accent);
    color: var(--rl-accent-ink); font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.cart-total .checkout-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14, 9, 7, 0.25); background: var(--rl-accent); }
.cart-total .secure-checkout { text-align: center; font-size: 0.75rem; color: var(--rl-muted); margin-top: 0.6rem; }
.cart-coupon { margin: 0.6rem 0; padding: 0.75rem; background: var(--rl-bg); border-radius: 0.85rem; }
.cart-coupon .coupon-heading { font-size: 0.8rem; font-weight: 600; color: var(--rl-ink); }
.cart-coupon .coupon-input-group { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.cart-coupon .coupon-code-input { flex: 1; min-width: 0; border: 1px solid var(--rl-line); border-radius: 999px; padding: 0.5rem 0.9rem; font-size: 0.85rem; background: #fff; }
.cart-coupon .coupon-apply-btn { border: 0; border-radius: 999px; padding: 0.5rem 1rem; background: var(--rl-ink); color: #fff; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.cart-coupon .coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cart-coupon .coupon-remove-btn { border: 0; background: transparent; color: var(--rl-danger); font-size: 0.8rem; cursor: pointer; }
.cart-coupon .coupon-tick { color: #16a34a; font-weight: 700; }
.cart-coupon .coupon-applied-code { font-weight: 700; }
.cart-coupon .coupon-message { font-size: 0.75rem; margin-top: 0.3rem; }

/* ---- product details ------------------------------------------------------ */
.product-page .product-hero { gap: 1rem; }
.product-page .main-image-frame { border-radius: 1.25rem; background: var(--rl-bg); }
.product-page .gallery-thumbnails { display: flex; gap: 0.6rem; margin-top: 0.75rem; overflow-x: auto; scrollbar-width: none; }
.product-page .gallery-thumbnails::-webkit-scrollbar { display: none; }
.product-page .thumbnail { flex: 0 0 auto; width: 3.6rem; height: 3.6rem; border-radius: 999px; overflow: hidden; border: 2px solid var(--rl-line); background: #fff; padding: 0.15rem; }
.product-page .thumbnail.active { border-color: var(--rl-accent); }
.product-page .thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.product-page .info-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.product-page .price-block { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.product-page .size-chip {
    border-radius: 999px !important; border: 1px solid var(--rl-line); background: #fff; color: var(--rl-ink); padding: 0.5rem 1rem; font-weight: 500;
}
.product-page .size-chip.selected { background: var(--rl-ink) !important; color: #fff !important; border-color: var(--rl-ink) !important; }
.product-page .accordion-trigger { border-radius: 0.75rem; }
.product-page .quantity-field { border-radius: 999px; border: 1px solid var(--rl-line); background: #fff; }
.product-page .quantity-step { border-radius: 999px; }
.product-page .cta-button { border-radius: 999px !important; font-weight: 700; }
.product-page .cta-primary { background: var(--rl-accent) !important; color: var(--rl-accent-ink) !important; border-color: var(--rl-accent) !important; box-shadow: none !important; }
.product-page .cta-primary:hover { box-shadow: 0 8px 18px rgba(14, 9, 7, 0.25) !important; }
.product-page .cta-secondary { background: #fff !important; color: var(--rl-accent) !important; border: 1.5px solid var(--rl-accent) !important; }
.product-page .wishlist-toggle { border-radius: 999px; }
.product-page .purchase-meta, .product-page .share-row { border-radius: 0.85rem; }
.sticky-cart-mobile { border-radius: 1.25rem 1.25rem 0 0; box-shadow: 0 -8px 24px rgba(28, 25, 23, 0.08); }
.sticky-cart-btn { border-radius: 999px !important; background: var(--rl-accent) !important; color: var(--rl-accent-ink) !important; font-weight: 700; }
.reviews-section .button-primary, .login-prompt-btn { border-radius: 999px !important; }
.review-item { border-radius: var(--rl-radius); }

/* ---- checkout (shipping, payment, confirmation) --------------------------- */
.checkout-header h1, .confirmation-header h1 { font-size: 1.4rem; font-weight: 700; }
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin: 0.75rem 0 1.25rem; }
.checkout-steps .step { display: flex; align-items: center; gap: 0.4rem; }
.checkout-steps .step-number {
    width: 1.75rem; height: 1.75rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; background: #fff; border: 1px solid var(--rl-line); color: var(--rl-muted);
}
.checkout-steps .step.active .step-number { background: var(--rl-ink); color: #fff; border-color: var(--rl-ink); }
.checkout-steps .step.completed .step-number { background: #e7e5e4; color: var(--rl-ink); border-color: #e7e5e4; }
.checkout-steps .step-name { font-size: 0.8rem; color: var(--rl-muted); }
.checkout-steps .step.active .step-name { color: var(--rl-ink); font-weight: 600; }
.checkout-steps .step-divider { width: 1.5rem; height: 1px; background: var(--rl-line); }
.checkout-card, .order-info, .order-items, .order-summary, .order-help {
    background: var(--rl-card) !important; border: 1px solid var(--rl-line) !important; border-radius: var(--rl-radius) !important; box-shadow: none !important;
}
.checkout-card h2, .order-info h3, .order-items h3, .order-summary h3 { font-size: 1rem; font-weight: 700; }
.form-control, .country-select {
    border-radius: 0.85rem !important; border: 1px solid var(--rl-line) !important; background: #fff !important; padding: 0.7rem 0.9rem !important; box-shadow: none !important;
}
.form-control:focus, .country-select:focus { border-color: var(--rl-accent) !important; outline: 0; box-shadow: 0 0 0 3px rgba(14, 9, 7, 0.15) !important; }
.address-option, .delivery-option, .payment-option {
    border-radius: var(--rl-radius) !important; border: 1px solid var(--rl-line) !important; background: #fff !important;
}
.address-option.selected, .delivery-option.selected, .payment-option.selected, .payment-option:has(input:checked) {
    border-color: var(--rl-accent) !important; background: var(--rl-accent-soft) !important; box-shadow: none !important;
}
.address-option h3 { font-size: 0.95rem; font-weight: 600; }
.checkout-btn, .payment-btn, .cod-btn, .phonepe-btn, .razorpay-btn, .add-new-address .btn, #saveAddressBtn, .action-btn {
    border-radius: 999px !important; font-weight: 700 !important; box-shadow: none !important;
}
.payment-btn, .cod-btn { background: var(--rl-accent) !important; color: var(--rl-accent-ink) !important; border: 0 !important; }
.phonepe-btn { background: #5f259f !important; color: #fff !important; }
.summary-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.9rem; }
.summary-label { color: var(--rl-muted); }
.summary-value { font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px dashed var(--rl-line); font-weight: 800; }
.order-item, .order-items .item { border-radius: 0.85rem; }
.order-item-image, .order-items .item-image { border-radius: 0.75rem; background: var(--rl-bg); overflow: hidden; }
.success-animation .checkmark { border-color: var(--rl-accent) !important; }
.action-btn.primary-btn { background: var(--rl-accent) !important; color: var(--rl-accent-ink) !important; border: 0 !important; }
.action-btn.secondary-btn { background: #fff !important; color: var(--rl-ink) !important; border: 1px solid var(--rl-line) !important; }
.contact-option { border-radius: 0.85rem !important; }
.total-row .total-value, .grand-total-value { color: var(--rl-ink); }

/* ---- auth (login / signup) ------------------------------------------------ */
.auth-card { border-radius: 1.25rem !important; border: 1px solid var(--rl-line) !important; box-shadow: var(--rl-shadow) !important; background: #fff !important; }
.auth-card h1 { font-size: 1.5rem; font-weight: 700; }
.auth-card .form-control, .auth-card input[type="text"], .auth-card input[type="email"], .auth-card input[type="password"] { border-radius: 0.85rem !important; }
.auth-button { border-radius: 999px !important; background: var(--rl-accent) !important; color: var(--rl-accent-ink) !important; font-weight: 700 !important; border: 0 !important; box-shadow: none !important; }
.auth-button:hover { box-shadow: 0 8px 18px rgba(14, 9, 7, 0.25) !important; }
.social-button { border-radius: 999px !important; border: 1px solid var(--rl-line) !important; background: #fff !important; }
.auth-link { color: var(--rl-ink); font-weight: 600; }

/* ---- orders / profile cards ---------------------------------------------- */
.glass-card { background: #fff !important; border: 1px solid var(--rl-line) !important; border-radius: var(--rl-radius) !important; backdrop-filter: none !important; box-shadow: none !important; }

/* cart rows stay horizontal on every screen size */
.cart-page .cart-item { flex-direction: row !important; flex-wrap: nowrap !important; }

/* shipping page: primary button + links follow the theme */
.checkout-btn, #checkout-btn { background: var(--rl-accent) !important; color: var(--rl-accent-ink) !important; border: 0 !important; border-radius: 999px !important; font-weight: 700 !important; }
.checkout-btn:hover, #checkout-btn:hover { background: var(--rl-accent) !important; box-shadow: 0 8px 18px rgba(14, 9, 7, 0.25) !important; }
.back-to-cart { color: var(--rl-muted) !important; }
.back-to-cart:hover { color: var(--rl-ink) !important; }
.checkout-steps { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; padding: 0 0 0.25rem; }
.checkout-steps::-webkit-scrollbar { display: none; }
.checkout-steps .step { flex: 0 0 auto; }
/* payment options as full-width rows */
.payment-option { display: flex !important; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem !important; margin-bottom: 0.6rem; width: 100%; }
.payment-option label { margin: 0; font-weight: 600; cursor: pointer; }
.payment-btn, .cod-btn { width: 100% !important; box-sizing: border-box; margin: 0.75rem 0 0 !important; }

/* product card is always a vertical stack, whatever utility classes it carries */
.pc { display: flex; flex-direction: column; }
.pc .pc-media { flex: 0 0 auto; }
.order-summary > .payment-btn, .order-summary > form > .payment-btn, .order-summary .cod-btn { width: calc(100% - 2rem) !important; margin: 0.75rem 1rem 1rem !important; }

/* ---- profile ------------------------------------------------------------- */
.profile-page { display: flex; flex-direction: column; gap: 1rem; }
.profile-card { background: #fff; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); }
.profile-hero { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "avatar identity" "stats stats"; gap: 0.75rem 1rem; padding: 1.25rem; align-items: center; }
.profile-avatar { grid-area: avatar; width: 4.5rem; height: 4.5rem; border-radius: 999px; overflow: hidden; background: var(--rl-accent-soft); display: flex; align-items: center; justify-content: center; border: 2px solid var(--rl-accent); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-initial { font-size: 1.75rem; font-weight: 700; color: var(--rl-ink); }
.profile-identity { grid-area: identity; min-width: 0; }
.profile-identity h1 { font-size: 1.25rem; font-weight: 700; color: var(--rl-ink); line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.profile-identity p { font-size: 0.85rem; color: var(--rl-muted); margin: 0.15rem 0 0; overflow-wrap: anywhere; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; grid-area: stats; }
.profile-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0.7rem 0.5rem; border-radius: 0.85rem; background: var(--rl-bg); text-decoration: none; color: var(--rl-ink); }
.profile-stat strong { font-size: 1.1rem; font-weight: 800; }
.profile-stat span { font-size: 0.72rem; color: var(--rl-muted); }
.profile-menu { padding: 0.35rem 0; }
.profile-menu-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; text-decoration: none; color: var(--rl-ink); border-bottom: 1px solid var(--rl-line); }
.profile-menu-item:last-child { border-bottom: 0; }
.profile-menu-item:hover { background: var(--rl-bg); }
.profile-menu-icon { width: 2.4rem; height: 2.4rem; border-radius: 0.8rem; background: var(--rl-accent-soft); color: var(--rl-ink); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.profile-menu-icon .material-symbols-outlined { font-size: 1.3rem; width: auto; height: auto; }
.profile-menu-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.profile-menu-text strong { font-size: 0.95rem; font-weight: 600; }
.profile-menu-text small { font-size: 0.75rem; color: var(--rl-muted); }
.profile-menu-chev { color: #a8a29e; }
.addresses-section .section-header h2 { font-size: 1.05rem; font-weight: 700; }
.addresses-section .btn-primary { border-radius: 999px !important; background: var(--rl-ink) !important; }
.addresses-section .address-card { border-radius: var(--rl-radius) !important; box-shadow: none !important; }
.addresses-section .address-card.border-stone-900 { border-color: var(--rl-accent) !important; background: var(--rl-accent-soft); }
.addresses-section .address-card span.bg-stone-900 { background: var(--rl-accent) !important; color: #fff !important; }
.addresses-section .address-actions button { border-radius: 999px !important; }
.profile-logout { padding: 1rem; text-align: center; }
.profile-logout-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 999px; border: 1px solid #fecaca; background: #fff1f2; color: var(--rl-danger); font-weight: 700; cursor: pointer; }
.profile-logout-btn:hover { background: var(--rl-danger); color: #fff; }
.profile-logout p { font-size: 0.75rem; color: var(--rl-muted); margin: 0.5rem 0 0; }

/* ---- header --------------------------------------------------------------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rl-line); }
.site-header-inner { max-width: 80rem; margin: 0 auto; padding: 0 1rem; height: 3.75rem; display: flex; align-items: center; gap: 0.75rem; }
.site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; margin-right: auto; }
.site-logo img { height: 2.4rem !important; width: auto; }
.site-nav { display: none; align-items: center; gap: 0.25rem; }
.site-nav a { padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--rl-ink); text-decoration: none; }
.site-nav a:hover { background: var(--rl-bg); }
.site-nav a.active { background: var(--rl-accent); color: #fff; }
.site-header .site-search { display: none; align-items: center; gap: 0.5rem; flex: 1 1 auto; max-width: 22rem; background: var(--rl-bg); border: 1px solid var(--rl-line); border-radius: 999px; padding: 0.45rem 0.9rem; color: var(--rl-muted); }
.site-header .site-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 0.9rem; color: var(--rl-ink); }
.site-actions { display: flex; align-items: center; gap: 0.4rem; flex: 0 0 auto; }
.hdr-icon { position: relative; width: 2.4rem; height: 2.4rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--rl-ink); background: var(--rl-bg); border: 1px solid var(--rl-line); text-decoration: none; }
.hdr-icon:hover { background: #fff; box-shadow: var(--rl-shadow); }
.hdr-badge { position: absolute; top: -0.25rem; right: -0.25rem; min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; border-radius: 999px; background: var(--rl-accent); color: #fff; font-size: 0.65rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.hdr-avatar { width: 2.4rem; height: 2.4rem; border-radius: 999px; overflow: hidden; border: 1px solid var(--rl-line); display: inline-flex; }
.hdr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hdr-login { padding: 0.5rem 1rem; border-radius: 999px; background: var(--rl-accent); color: #fff; font-weight: 600; font-size: 0.85rem; text-decoration: none; }
.site-search-mobile { padding: 0 1rem 0.75rem; }
.site-search-mobile .site-search { display: flex; max-width: none; }
#main { padding-top: 4.5rem !important; }
@media (min-width: 768px) {
    .site-header-inner { height: 4.5rem; padding: 0 2rem; gap: 1.25rem; }
    .site-logo { margin-right: 0.5rem; }
    .site-logo img { height: 3rem !important; }
    .site-nav { display: flex; }
    .site-header .site-search { display: flex; margin-left: auto; }
    #main { padding-top: 5.5rem !important; }
}

/* ---- product page: title row, price, social proof, reviews ---------------- */
.product-page .info-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.product-page .info-title-wrap { min-width: 0; }
.product-page .info-title { font-size: 1.35rem; margin: 0; }
.product-page .info-category { font-size: 0.8rem; color: var(--rl-muted); margin: 0.15rem 0 0; }
.product-page .info-heart {
    flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--rl-line); background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: #a8a29e; text-decoration: none; cursor: pointer;
}
.product-page .info-heart .material-symbols-outlined { font-size: 1.25rem; width: auto; height: auto; }
.product-page .info-heart:hover, .product-page .info-heart.is-fav { color: #f43f5e; border-color: #fecdd3; background: #fff1f2; }
.product-page .price-block { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }
.product-page .price-line { display: inline-flex; align-items: baseline; gap: 0.25rem; }
.product-page .price-currency { font-size: 0.85rem; color: var(--rl-muted); font-weight: 600; }
.product-page .price-amount { font-size: 1.6rem; font-weight: 800; color: var(--rl-ink); }
.product-page .price-subline { display: inline-flex; align-items: center; gap: 0.5rem; }
.product-page .price-original { font-size: 0.9rem; color: var(--rl-danger); text-decoration: line-through; }
.product-page .discount-pill { background: #fee2e2 !important; color: var(--rl-danger) !important; border-radius: 999px; padding: 0.15rem 0.5rem; font-size: 0.75rem; font-weight: 700; }
.product-page .product-rating-card { background: transparent !important; border: 0 !important; padding: 0.25rem 0 !important; }
.social-proof { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0; }
.avatar-stack { display: inline-flex; }
.avatar-stack-item {
    width: 1.9rem; height: 1.9rem; border-radius: 999px; border: 2px solid #fff; margin-left: -0.5rem; background: var(--rl-accent-soft);
    color: var(--rl-ink); font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.avatar-stack-item:first-child { margin-left: 0; }
.avatar-stack-item img { width: 100%; height: 100%; object-fit: cover; }
.social-proof-text { font-size: 0.8rem; color: var(--rl-muted); text-decoration: none; }
.social-proof-text:hover { color: var(--rl-ink); }
.reviews-list .review-item { display: flex; flex-direction: column; gap: 0.5rem; }
.reviews-list .review-header { display: flex; align-items: center; gap: 0.75rem; }
.reviewer-avatar {
    width: 2.6rem; height: 2.6rem; border-radius: 999px; background: var(--rl-accent-soft); color: var(--rl-ink); font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto;
}
.reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reviews-list .reviewer-info { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.reviews-list .reviewer-name { font-weight: 600; }
.reviews-list .review-date { font-size: 0.75rem; color: var(--rl-muted); }
.reviews-list .review-comment { padding-left: 3.35rem; color: #44403c; }
.sticky-cart-mobile { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: #fff; }
.reviews-list .review-item { text-align: left; align-items: stretch !important; }
.reviews-list .review-header { flex-direction: row !important; justify-content: flex-start !important; text-align: left; }
.reviews-list .reviewer-info { align-items: flex-start !important; }
.reviews-list .review-rating { margin-left: auto; }
.reviews-list .review-comment { text-align: left; }
.login-prompt-btn, .reviews-section .button-primary, #writeReviewBtn { background: var(--rl-accent) !important; background-image: none !important; color: #fff !important; border: 0 !important; }

/* ---- product page on phones: app screen (no site header / bottom nav) ---- */
.product-accordion.mobile-collapsed { display: block; }
.info-desc { display: none; }
@media (max-width: 767px) {
    body.page-details .site-header, body.page-details .mobile-bttom { display: none !important; }
    body.page-details #main { padding: 0 0 6.5rem !important; }
    body.page-details .product-page { padding: 0 !important; max-width: none; }
    body.page-details .product-hero { display: block; }
    body.page-details .product-visual { gap: 0; }
    body.page-details .main-image-frame { height: 58vh; min-height: 22rem; border-radius: 0 0 1.75rem 1.75rem; margin: 0; background: #f1efed; }
    body.page-details .hero-topbar {
        position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
        padding: calc(0.75rem + env(safe-area-inset-top)) 1rem 0.75rem;
    }
    body.page-details .hero-topbar-title { font-weight: 700; font-size: 1rem; color: var(--rl-ink); background: rgba(255,255,255,0.8); padding: 0.35rem 0.8rem; border-radius: 999px; backdrop-filter: blur(6px); }
    body.page-details .hero-topbar-btn {
        width: 2.5rem; height: 2.5rem; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--rl-ink); border: 0;
        display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    body.page-details .hero-topbar-btn .material-symbols-outlined { font-size: 1.15rem; width: auto; height: auto; }
    body.page-details .gallery-thumbnails { justify-content: center; margin: -1.9rem auto 0.25rem; position: relative; z-index: 3; padding: 0 1rem; }
    body.page-details .thumbnail { width: 3.4rem; height: 3.4rem; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
    body.page-details .product-info-card { margin: 0.75rem 1rem 0; border-radius: 1.5rem; padding: 1.1rem 1rem 1rem; background: #fff; border: 1px solid var(--rl-line); }
    body.page-details .info-desc { display: block; margin: 0.25rem 0 0.5rem; }
    body.page-details .info-desc-text { font-size: 0.85rem; color: #57534e; line-height: 1.5; margin: 0; }
    body.page-details .info-desc-more { border: 0; background: transparent; padding: 0.15rem 0; color: var(--rl-ink); font-weight: 600; font-size: 0.85rem; cursor: pointer; }
    body.page-details .product-accordion.mobile-collapsed { display: none; }
    body.page-details .purchase-controls .quantity-field, body.page-details .purchase-controls .primary-actions { display: none !important; }
    body.page-details .sticky-cart-mobile {
        display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; transform: none !important; opacity: 1 !important; pointer-events: auto !important;
        gap: 0.75rem; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rl-line);
        border-radius: 1.25rem 1.25rem 0 0; box-shadow: 0 -8px 24px rgba(28,25,23,0.08);
    }
    body.page-details .sticky-qty { display: inline-flex; align-items: center; gap: 0.6rem; }
    body.page-details .sticky-qty-btn { width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid #d6d3d1; background: #fff; font-size: 1.15rem; line-height: 1; color: var(--rl-ink); display: inline-flex; align-items: center; justify-content: center; }
    body.page-details .sticky-qty-plus { background: var(--rl-accent); color: #fff; border-color: var(--rl-accent); }
    body.page-details .sticky-qty-value { min-width: 1.2rem; text-align: center; font-weight: 700; }
    body.page-details .sticky-cart-btn { flex: 1; margin: 0; height: 3rem; border-radius: 999px !important; background: var(--rl-accent) !important; color: #fff !important; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
    body.page-details .reviews-section { margin: 1rem 1rem 0; }
    body.page-details .product-page > .shipping-info, body.page-details .product-page > div:not(.product-hero):not(.reviews-section) { margin-left: 1rem; margin-right: 1rem; }
}

/* ---- home: tighter spacing after the banner, smaller trust stamps --------- */
.trust-badges-section { padding: 0.5rem 0 !important; margin: 0 !important; }
.trust-badges-container { gap: 0.75rem; }
.trust-badge { flex: 0 0 120px !important; min-width: 120px !important; max-width: 120px !important; }
.trust-badge .badge-svg { width: 100%; height: auto; }
.trust-badges-section::before, .trust-badges-section::after { display: none !important; }
@media (max-width: 640px) {
    .trust-badges-container { gap: 0.5rem; padding: 0 0.5rem; }
    .trust-badge { flex: 0 0 72px !important; min-width: 72px !important; max-width: 72px !important; }
    .badge-divider { width: 24px !important; }
}
/* the home sections stack closer on phones */
.max-w-7xl.space-y-12 > * + * { margin-top: 1.25rem !important; }
@media (min-width: 768px) { .max-w-7xl.space-y-12 > * + * { margin-top: 2.5rem !important; } }

/* ---- product page: flat layout (no rounded image, no card) --------------- */
.product-page .main-image-frame { border-radius: 0 !important; background: #f1efed; }
.product-page .main-image-frame img { border-radius: 0 !important; }
.product-page .product-info-card { border-radius: 0 !important; border: 0 !important; box-shadow: none !important; background: #fff; }
@media (max-width: 767px) {
    body.page-details .main-image-frame { border-radius: 0 !important; height: 56vh; }
    body.page-details .gallery-thumbnails { margin: 0.75rem 0 0; justify-content: flex-start; padding: 0 1rem; }
    body.page-details .thumbnail { box-shadow: none; }
    body.page-details .product-info-card { margin: 0 !important; padding: 1rem 1rem 0.5rem !important; border-radius: 0 !important; border: 0 !important; }
    body.page-details .product-page > div:not(.product-hero):not(.reviews-section) { margin-left: 1rem; margin-right: 1rem; }
    body.page-details .reviews-section { margin: 0.5rem 1rem 0; }
    body.page-details .review-item, body.page-details .login-prompt, body.page-details .review-form-container { border-radius: 0.5rem !important; }
}

/* thumbnails float over the bottom of the cover photo on phones */
@media (max-width: 767px) {
    body.page-details .product-visual { position: relative; }
    body.page-details .main-image-frame { height: 62vh; min-height: 24rem; }
    body.page-details .main-image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
    body.page-details .gallery-thumbnails {
        position: absolute; left: 0; right: 0; bottom: 0.9rem; z-index: 4; margin: 0; padding: 0 1rem;
        justify-content: center; gap: 0.6rem;
    }
    body.page-details .thumbnail { width: 3.1rem; height: 3.1rem; background: rgba(255,255,255,0.92); border: 2px solid rgba(255,255,255,0.9); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
    body.page-details .thumbnail.active { border-color: var(--rl-accent); }
    body.page-details .product-info-card { padding-top: 1.1rem !important; }
}

/* product price: one row, no percentage badge */
.product-page .price-block { flex-wrap: nowrap !important; align-items: baseline; gap: 0.75rem; }
.product-page .price-discount, .product-page #discount-badge { display: none !important; }
.product-page .price-original { font-size: 0.95rem; }
.product-page .price-block { display: flex !important; flex-direction: row !important; align-items: baseline !important; }
.product-page .price-subline { display: inline-flex !important; margin: 0 !important; }

/* broken / missing product photos: hide the alt text, show a neutral tile */
.pc-image, .cart-page .item-image img, .order-item-image img, .order-items .item-image img, .main-image-frame img, .thumbnail img { font-size: 0 !important; color: transparent !important; overflow: hidden; }
.pc-media, .cart-page .item-image { background: #f1efed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23c9c5c1' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center/2.5rem no-repeat; }
/* guest header: Login pill on desktop only; phones use the bottom bar */
.hdr-login { display: none; }
@media (min-width: 768px) { .hdr-login { display: inline-flex; } }

/* product card name: no reserved blank space under short names */
.pc-name { min-height: 0 !important; margin: 0; }
.pc-body { gap: 0.1rem; }
.pc-sub { margin: 0; }
.product-page .info-title { margin: 0; }
.product-page .info-header { margin-bottom: 0.25rem; }

/* starter pack (test) images: shorter tiles */
.starter-pack-card { width: 160px !important; height: 220px !important; }
.starter-pack-image, .starter-pack-image img, .starter-pack-image picture { height: 100% !important; }
.starter-pack-image img { object-fit: cover; }
@media (min-width: 768px) { .starter-pack-card { width: 220px !important; height: 300px !important; } }

/* shipping info note: hidden until the "Shipping Info" button is tapped */
.shipping-info-note { display: none; }
.shipping-info-note.is-open { display: block; }
/* product tile photo fills the whole tile */
.pc .pc-media { display: block; }
.pc .pc-picture { display: block !important; width: 100% !important; height: 100% !important; }
.pc .pc-image, .pc .product-card-image { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.pc .pc-media { position: relative; }
.pc .pc-picture { position: absolute !important; inset: 0 !important; }
.pc .pc-media picture img, .pc .pc-media img.pc-image { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: none !important; min-height: 100% !important; }

/* no scroll arrows on phones: rows are swiped */
@media (max-width: 767px) {
    .bestseller-nav-button, .starter-pack-nav, .nav-btn.prev-starter, .nav-btn.next-starter,
    .banner-container .prev-button, .banner-container .next-button { display: none !important; }
}

/* round two-line size chips */
.product-page .size-chip-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.product-page .size-round {
    width: 4.25rem !important; height: 4.25rem !important; padding: 0 !important; border-radius: 999px !important;
    display: inline-flex !important; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
    border: 1.5px solid #d6d3d1; background: #fff; color: var(--rl-ink);
}
.product-page .size-round .size-l1 { font-size: 0.85rem; font-weight: 700; }
.product-page .size-round .size-l2 { font-size: 0.7rem; color: var(--rl-muted); margin-top: 0.1rem; }
.product-page .size-round.selected { background: var(--rl-accent) !important; border-color: var(--rl-accent) !important; color: #fff !important; }
.product-page .size-round.selected .size-l2 { color: rgba(255,255,255,0.8); }

/* tighter gap under the header */
#main { padding-top: 4rem !important; }
@media (min-width: 768px) { #main { padding-top: 5rem !important; } }
.max-w-7xl.space-y-12 > .relative.w-full.rounded-3xl { margin-top: 0.25rem; }

/* rating summary sits at the right of the Size heading */
.product-page .section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.6rem; }
.product-page .section-head .section-label { margin: 0; }
.product-page .product-rating-card.compact { display: inline-flex !important; align-items: center; gap: 0.4rem; margin: 0 !important; padding: 0 !important; }
.product-page .product-rating-card.compact .rating-stars { display: inline-flex; gap: 0.1rem; }
.product-page .product-rating-card.compact .rating-stars .rating-star { width: 0.85rem; height: 0.85rem; }
.product-page .product-rating-card.compact .rating-meta { display: inline-flex; align-items: baseline; gap: 0.3rem; font-size: 0.8rem; }
.product-page .product-rating-card.compact .rating-average { font-weight: 700; }
.product-page .product-rating-card.compact .rating-link { color: var(--rl-muted); text-decoration: none; }
/* shorter cover photo on phones */
@media (max-width: 767px) { body.page-details .main-image-frame { height: 44vh !important; min-height: 18rem !important; max-height: 26rem; } }
.product-page .product-rating-card.compact { flex-wrap: nowrap !important; white-space: nowrap; }
.product-page .product-rating-card.compact .rating-stars .rating-star { width: 0.75rem; height: 0.75rem; }
.product-page .product-rating-card.compact .rating-meta { font-size: 0.75rem; }

/* compact rating: one star, average and total count only */
.product-page .product-rating-card.compact .rating-stars .rating-star:not(:first-child) { display: none !important; }
.product-page .product-rating-card.compact .rating-stars .rating-star:first-child { width: 1rem; height: 1rem; }
.product-page .product-rating-card.compact .rating-stars .rating-star:first-child:not(.filled):not(.half) { opacity: 1; }
.product-page .product-rating-card.compact .rating-meta { font-size: 0.9rem; gap: 0.2rem; }
.product-page .product-rating-card.compact .rating-average { font-weight: 700; color: var(--rl-ink); }
.product-page .product-rating-card.compact .rating-link { color: var(--rl-muted); }
.product-page .product-rating-card.compact { flex-direction: row !important; align-items: center !important; width: auto !important; }
.product-page .product-rating-card.compact .rating-stars { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; }
.product-page .product-rating-card.compact .rating-meta { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; }
/* size chips: smaller, number over unit */
.product-page .size-round { width: 3.6rem !important; height: 3.6rem !important; }
.product-page .size-round .size-l1 { font-size: 0.8rem; }
.product-page .size-round .size-l2 { font-size: 0.62rem; }

/* ---- product page: compact, even spacing between blocks ------------------ */
.product-page .product-info-card { display: flex; flex-direction: column; gap: 0.75rem !important; }
.product-page .product-info-card > * { margin: 0 !important; }
.product-page .info-header { display: flex; flex-direction: column; gap: 0.35rem !important; }
.product-page .info-title-row { margin: 0 !important; }
.product-page .price-block { margin: 0 !important; }
.product-page .social-proof { padding: 0 !important; }
.product-page .product-section { display: flex; flex-direction: column; gap: 0.5rem !important; }
.product-page .section-head { margin-bottom: 0 !important; }
.product-page .size-chip-group { gap: 0.6rem !important; }
.product-page .info-desc { margin: 0 !important; }
.product-page .product-accordion { gap: 0 !important; }
.product-page .accordion-item { margin: 0 !important; }
.product-page .accordion-trigger { padding: 0.65rem 0 !important; }
.product-page .purchase-controls { gap: 0.6rem !important; }
.product-page .purchase-meta { padding: 0.6rem 0 !important; gap: 0.35rem !important; border-top: 1px solid var(--rl-line); }
.product-page .purchase-meta .meta-row { padding: 0.15rem 0 !important; }
.product-page .share-row { padding: 0.5rem 0 0 !important; }
.product-page .shipping-info-link { margin-top: 0.35rem !important; }
@media (max-width: 767px) {
    body.page-details .product-info-card { padding: 0.9rem 1rem 0.5rem !important; }
    body.page-details .info-title { font-size: 1.25rem; }
    body.page-details .price-amount { font-size: 1.45rem; }
    body.page-details .avatar-stack-item { width: 1.6rem; height: 1.6rem; }
    body.page-details .product-page > .shipping-info-note { margin-top: 0.5rem; }
    body.page-details .reviews-section { margin-top: 0.75rem; }
    body.page-details .reviews-header { margin-bottom: 0.5rem !important; }
}

/* home banner: edge-to-edge on phones */
@media (max-width: 767px) {
    .home-banner { margin: 0 -1rem !important; width: auto !important; border-radius: 0 !important; height: 44vw !important; min-height: 160px; }
    .home-banner .banner-slide .bg-cover { background-size: cover; }
}

/* description is authored as HTML in the admin: show it as is, no plain-text preview */
.product-page .info-desc { display: none !important; }
.product-page .product-accordion.mobile-collapsed { display: block !important; }

/* avatars: the initial sits underneath; a loaded photo covers it, a broken one is removed */
.reviewer-avatar, .avatar-stack-item, .profile-avatar { position: relative; }
.reviewer-avatar img, .avatar-stack-item img, .profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* ---- search suggestions ---------------------------------------------------- */
.has-suggest { position: relative; }
.search-suggest {
    position: absolute; top: calc(100% + 0.4rem); left: 0; right: 0; z-index: 80; background: #fff; border: 1px solid var(--rl-line);
    border-radius: 1rem; box-shadow: 0 16px 40px rgba(28,25,23,0.14); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.search-suggest-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.85rem; text-decoration: none; color: var(--rl-ink); border-bottom: 1px solid var(--rl-line); }
.search-suggest-item:hover, .search-suggest-item.is-active { background: var(--rl-bg); }
.search-suggest-img { width: 2.75rem; height: 2.75rem; border-radius: 0.6rem; background: #f1efed; overflow: hidden; flex: 0 0 auto; }
.search-suggest-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-suggest-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.search-suggest-text strong { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest-text small { font-size: 0.72rem; color: var(--rl-muted); }
.search-suggest-price { font-size: 0.85rem; font-weight: 700; flex: 0 0 auto; }
.search-suggest-all, .search-suggest-empty { display: block; padding: 0.7rem 0.85rem; font-size: 0.82rem; color: var(--rl-muted); text-decoration: none; }
.search-suggest-all:hover { color: var(--rl-ink); background: var(--rl-bg); }
.site-search-mobile .search-suggest { left: 0; right: 0; }
/* card price: current and old price on one row */
.pc-price { flex-direction: row !important; align-items: baseline !important; gap: 0.35rem; flex-wrap: wrap; }
/* slightly smaller logo */
.site-logo img { height: 2rem !important; }
@media (min-width: 768px) { .site-logo img { height: 2.5rem !important; } }

/* Shop page: one search only. Desktop uses the header search; phones use the page search (header shows only an icon there). */
@media (min-width: 768px) { .shop-page .shop-search { display: none !important; } }
@media (max-width: 767px) { body.page-shop #mobileSearchToggle { display: none !important; } }
/* header search centered between the menu and the icons */
@media (min-width: 768px) {
    .site-header-inner { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; }
    .site-logo { margin-right: 0.75rem; }
    .site-header .site-search { margin: 0 auto !important; width: 100%; max-width: 24rem; justify-self: center; }
    .site-actions { justify-self: end; }
}
/* card: category and rating on one row */
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 1rem; }
.pc-meta .pc-sub { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta .pc-rating { flex: 0 0 auto; margin: 0; }
/* official Google button centred, full width */
.google-btn-container { display: flex; justify-content: center; width: 100%; min-height: 44px; margin-bottom: 0.75rem; }
.google-btn-container > div { width: 100% !important; }

/* fly-to-cart animation */
.fly-to-cart-clone { position: fixed; z-index: 1000; border-radius: 999px; object-fit: cover; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,0.25); transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.75s ease; will-change: transform; }
@keyframes cart-bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.cart-bump { animation: cart-bump 0.5s ease; }
/* shorter home banner on phones */
@media (max-width: 767px) { .home-banner { height: 36vw !important; min-height: 140px; } }

/* "item added" popup */
.cart-added-popup {
    position: fixed; left: 50%; bottom: 5.75rem; transform: translate(-50%, 16px); opacity: 0; z-index: 95;
    display: flex; align-items: center; gap: 0.6rem; max-width: calc(100% - 2rem); padding: 0.65rem 0.75rem 0.65rem 0.85rem;
    background: var(--rl-ink); color: #fff; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    transition: opacity .25s ease, transform .25s ease;
}
.cart-added-popup.show { opacity: 1; transform: translate(-50%, 0); }
.cart-added-icon .material-symbols-outlined { color: #4ade80; font-size: 1.25rem; width: auto; height: auto; }
.cart-added-text { font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.cart-added-link { background: #fff; color: var(--rl-ink); font-weight: 700; font-size: 0.8rem; padding: 0.35rem 0.75rem; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.cart-added-close { background: transparent; border: 0; color: #d6d3d1; font-size: 1.1rem; line-height: 1; padding: 0 0.15rem; cursor: pointer; }
@media (min-width: 768px) { .cart-added-popup { bottom: 2rem; } }

/* ---- order confirmation ---------------------------------------------------- */
.oc-page { max-width: 820px; padding: 0.5rem 0 3rem; display: flex; flex-direction: column; gap: 1rem; }
.oc-hero { text-align: center; padding: 1.5rem 1rem 1.25rem; background: #fff; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); }
.oc-check { width: 4.5rem; height: 4.5rem; margin: 0 auto 0.75rem; }
.oc-check svg { width: 100%; height: 100%; }
.oc-check-circle { stroke: #16a34a; stroke-width: 2; stroke-dasharray: 166; stroke-dashoffset: 166; animation: oc-stroke .6s ease forwards; }
.oc-check-mark { stroke: #16a34a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: oc-stroke .4s .5s ease forwards; }
@keyframes oc-stroke { to { stroke-dashoffset: 0; } }
.oc-hero h1 { font-size: 1.35rem; font-weight: 700; margin: 0 0 0.35rem; }
.oc-sub { color: var(--rl-muted); margin: 0; }
.oc-note { color: var(--rl-muted); font-size: 0.85rem; margin: 0.35rem 0 0.9rem; }
.oc-eta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.9rem; border-radius: 999px; background: var(--rl-bg); font-size: 0.85rem; }
.oc-eta .material-symbols-outlined { color: var(--rl-ink); font-size: 1.2rem; width: auto; height: auto; }
.oc-card { background: #fff; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); padding: 1rem 1.1rem; }
.oc-card h2 { font-size: 1rem; font-weight: 700; margin: 0 0 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.oc-card h2 .material-symbols-outlined { font-size: 1.15rem; width: auto; height: auto; color: var(--rl-muted); }
.oc-card p { margin: 0 0 0.25rem; font-size: 0.92rem; }
.oc-strong { font-weight: 600; }
.oc-muted { color: var(--rl-muted); font-size: 0.85rem !important; display: flex; align-items: center; gap: 0.3rem; }
.oc-muted .material-symbols-outlined { font-size: 1rem; width: auto; height: auto; }
.oc-chip { display: inline-block; font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--rl-bg); color: var(--rl-muted); margin-left: 0.35rem; vertical-align: middle; }
.oc-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.oc-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.6rem 0; border-top: 1px solid var(--rl-line); }
.oc-item:first-child { border-top: 0; padding-top: 0; }
.oc-item-img { width: 3.6rem; height: 3.6rem; border-radius: 0.75rem; background: #f1efed; overflow: hidden; flex: 0 0 auto; display: block; }
.oc-item-img img { width: 100%; height: 100%; object-fit: cover; }
.oc-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oc-item-name { font-weight: 600; color: var(--rl-ink); text-decoration: none; font-size: 0.95rem; }
.oc-item-meta { font-size: 0.78rem; color: var(--rl-muted); }
.oc-item-price { font-weight: 700; white-space: nowrap; }
.oc-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 700px) { .oc-grid { grid-template-columns: 1fr 1fr; } }
.oc-summary { margin-top: 0.75rem; border-top: 1px dashed var(--rl-line); padding-top: 0.5rem; }
.oc-summary > div { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.9rem; }
.oc-summary > div > span:first-child { color: var(--rl-muted); }
.oc-discount span:last-child { color: var(--rl-danger); }
.oc-total { border-top: 1px solid var(--rl-line); margin-top: 0.25rem; padding-top: 0.5rem !important; font-weight: 800; font-size: 1rem !important; }
.oc-total span:first-child { color: var(--rl-ink) !important; }
.oc-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.6rem; counter-reset: step; }
.oc-steps li { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.2rem 0.6rem; align-items: start; counter-increment: step; }
.oc-steps li::before { content: counter(step); grid-row: span 2; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--rl-accent); color: #fff; font-weight: 700; font-size: 0.8rem; display: inline-flex; align-items: center; justify-content: center; }
.oc-steps li strong { font-size: 0.92rem; }
.oc-steps li span { font-size: 0.82rem; color: var(--rl-muted); }
@media (min-width: 700px) { .oc-steps ol { grid-template-columns: repeat(3, 1fr); } }
.oc-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.oc-actions .btn-pill { flex: 1 1 12rem; }
.oc-help { text-align: center; font-size: 0.85rem; color: var(--rl-muted); }
.oc-help a { color: var(--rl-ink); font-weight: 600; text-decoration: none; }
.security-icons { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 0.75rem; }
.security-pill { font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--rl-bg); color: var(--rl-muted); border: 1px solid var(--rl-line); }

/* ---- contact page ---------------------------------------------------------- */
.contact-page { padding: 0.5rem 0 3rem; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 19rem 1fr; align-items: start; } }
.contact-channels { display: flex; flex-direction: column; gap: 0.6rem; }
.contact-channel { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 0.9rem; background: #fff; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); text-decoration: none; color: var(--rl-ink); }
.contact-channel:hover:not(.is-static) { box-shadow: var(--rl-shadow); transform: translateY(-1px); }
.contact-channel-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.8rem; background: var(--rl-accent-soft); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.contact-channel-icon .material-symbols-outlined { font-size: 1.3rem; width: auto; height: auto; }
.contact-channel-text { display: flex; flex-direction: column; line-height: 1.25; }
.contact-channel-text strong { font-size: 0.95rem; }
.contact-channel-text small { font-size: 0.78rem; color: var(--rl-muted); }
.contact-social { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.contact-social a { font-size: 0.8rem; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--rl-line); background: #fff; color: var(--rl-ink); text-decoration: none; }
.contact-form-card { background: #fff; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); padding: 1.1rem; }
.contact-form-card h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.75rem; }
.contact-form .form-group, .contact-form .mb-3 { margin-bottom: 0.85rem; }
.contact-label { font-size: 0.8rem; font-weight: 600; color: #44403c; margin-bottom: 0.25rem; display: block; }
.contact-form .form-control { width: 100%; }
.contact-row { display: grid; grid-template-columns: 1fr; gap: 0 0.75rem; }
@media (min-width: 640px) { .contact-row { grid-template-columns: 1fr 1fr; } }
.contact-captcha { display: flex; align-items: center; gap: 0.75rem; }
.contact-captcha img { border-radius: 0.6rem; border: 1px solid var(--rl-line); cursor: pointer; }
.contact-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.25rem; }
.contact-privacy { font-size: 0.78rem; color: var(--rl-muted); }
.contact-success { text-align: center; padding: 1.5rem 0.5rem; }
.contact-success .material-symbols-outlined { font-size: 2.75rem; width: auto; height: auto; color: #16a34a; }
.contact-success h2 { margin: 0.5rem 0 0.25rem; }
.contact-success p { color: var(--rl-muted); margin: 0 auto 1rem; max-width: 26rem; }
.contact-success .oc-actions { justify-content: center; }

/* ---- order tracking (compact) ---------------------------------------------- */
.track-page { padding: 0.5rem 0 3rem; display: flex; flex-direction: column; gap: 0.85rem; }
.track-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.track-select { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--rl-muted); }
.track-select select { border: 1px solid var(--rl-line); background: #fff; border-radius: 999px; padding: 0.45rem 2rem 0.45rem 0.9rem; font-size: 0.85rem; color: var(--rl-ink); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; }
.track-card { background: #fff; border: 1px solid var(--rl-line); border-radius: var(--rl-radius); padding: 0.9rem 1rem; }
.track-card h2 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.6rem; }
.track-h2-gap { margin-top: 0.9rem !important; }
.track-summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.track-order-no { font-weight: 800; font-size: 1.05rem; }
.track-muted { font-size: 0.8rem; color: var(--rl-muted); }
.track-pill { font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999px; white-space: nowrap; }
.track-pill.is-live { background: #fef3c7; color: #92400e; }
.track-pill.is-done { background: #dcfce7; color: #166534; }
.track-pill.is-bad { background: #fee2e2; color: #991b1b; }
.track-steps { list-style: none; margin: 0.9rem 0 0.6rem; padding: 0; display: flex; justify-content: space-between; position: relative; }
.track-steps::before { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; top: 0.7rem; height: 2px; background: var(--rl-line); }
.track-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; }
.track-dot { width: 1.45rem; height: 1.45rem; border-radius: 999px; background: #fff; border: 2px solid #d6d3d1; display: inline-flex; align-items: center; justify-content: center; z-index: 1; }
.track-steps li.done .track-dot { background: var(--rl-accent); border-color: var(--rl-accent); color: #fff; }
.track-steps li.done .track-dot .material-symbols-outlined { font-size: 0.9rem; width: auto; height: auto; }
.track-steps li.current .track-dot { border-color: var(--rl-accent); }
.track-dot-live { width: 0.55rem; height: 0.55rem; border-radius: 999px; background: var(--rl-accent); animation: track-pulse 1.4s ease-in-out infinite; }
@keyframes track-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }
.track-step-label { font-size: 0.68rem; color: var(--rl-muted); line-height: 1.1; }
.track-steps li.current .track-step-label, .track-steps li.done .track-step-label { color: var(--rl-ink); font-weight: 600; }
.track-cancelled { margin: 0.75rem 0; padding: 0.7rem 0.9rem; background: #fee2e2; color: #991b1b; border-radius: 0.75rem; font-size: 0.85rem; }
.track-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
@media (min-width: 700px) { .track-facts { grid-template-columns: repeat(4, 1fr); } }
.track-facts > div { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.65rem; background: var(--rl-bg); border-radius: 0.75rem; min-width: 0; }
.track-facts .material-symbols-outlined { color: var(--rl-muted); font-size: 1.2rem; width: auto; height: auto; flex: 0 0 auto; }
.track-facts small { display: block; font-size: 0.68rem; color: var(--rl-muted); }
.track-facts strong { font-size: 0.82rem; overflow-wrap: anywhere; }
.track-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 700px) { .track-grid { grid-template-columns: 1.3fr 1fr; } }
.track-updates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.track-updates li { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.82rem; }
.track-updates li span { color: var(--rl-muted); }

/* Tailwind is now a static file loaded first, so responsive visibility utilities need to win over theme rules */
@media (min-width: 768px) { .md\:hidden { display: none !important; } .md\:flex { display: flex !important; } .md\:inline-flex { display: inline-flex !important; } .md\:block { display: block !important; } }
@media (max-width: 767px) { .hidden { display: none !important; } }
