/* =========================================================
   Fleurs d'Élégance — Boutique, panier, espace client
   (complète style.css + fleurs.css, mêmes couleurs)
   ========================================================= */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.center { text-align: center; }
.container.narrow { max-width: 860px; }
.small-note { font-size: 0.86rem; color: var(--text-soft); margin: 0.75rem 0; }
.small-note a, .notice a, .text-link, .auth-sub a, .check-line a { color: var(--eucalyptus); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-link { display: inline-block; margin-top: 0.75rem; font-size: 0.9rem; text-decoration: none; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-soft); font-size: 0.85em; }
main { display: block; }

/* Boutons supplémentaires */
.btn-sm { padding: 8px 16px !important; font-size: 0.85rem !important; }
.btn-danger { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--error); color: #fff; font-weight: 600; border: 0; cursor: pointer; }
.btn-danger:hover { filter: brightness(0.92); }
.btn-primary[disabled] { opacity: 0.6; pointer-events: none; }
.card-actions, .form-actions, .thanks-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.25rem; align-items: center; }
.form-actions { justify-content: flex-end; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text-soft); transition: var(--transition); }
.icon-btn:hover { background: rgba(183, 88, 88, 0.1); color: var(--error); }

/* Messages d'information */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--border-radius-sm); margin-bottom: 1.25rem; font-size: 0.95rem; line-height: 1.5; border: 1px solid; }
.notice i { margin-top: 3px; }
.notice-success { background: rgba(74, 140, 110, 0.08); border-color: rgba(74, 140, 110, 0.3); color: #2f6b50; }
.notice-error { background: rgba(183, 88, 88, 0.08); border-color: rgba(183, 88, 88, 0.3); color: #8f3f3f; }
.notice-info { background: var(--primary-tint); border-color: var(--primary-soft); color: var(--text-color); }

/* Pastilles de statut */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill-green { background: rgba(74, 140, 110, 0.12); color: #2f6b50; border-color: rgba(74, 140, 110, 0.3); }
.pill-amber { background: rgba(196, 148, 84, 0.14); color: #8a6224; border-color: rgba(196, 148, 84, 0.35); }
.pill-blue { background: rgba(84, 128, 196, 0.12); color: #34588f; border-color: rgba(84, 128, 196, 0.3); }
.pill-violet { background: rgba(139, 101, 180, 0.12); color: #5f3f86; border-color: rgba(139, 101, 180, 0.3); }
.pill-red { background: rgba(183, 88, 88, 0.1); color: #8f3f3f; border-color: rgba(183, 88, 88, 0.3); }
.pill-gray { background: rgba(107, 116, 112, 0.1); color: var(--text-muted); border-color: rgba(107, 116, 112, 0.25); }
.count-badge { background: var(--error); color: #fff; font-size: 0.72rem; font-weight: 700; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }

/* Images manquantes */
.img-fallback { width: 100%; height: 100%; min-height: 160px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-tint), var(--rose)); color: var(--eucalyptus); font-size: 2.4rem; }
.img-fallback.big { min-height: 380px; font-size: 4rem; }

/* Textes enrichis (À propos, pages légales) */
.rich-text h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
.rich-text h3 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; }
.rich-text p, .rich-text li { color: var(--text-color); }
.rich-text ul, .rich-text ol { margin: 0 0 1rem 1.4rem; list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text a { color: var(--eucalyptus); text-decoration: underline; }
.rich-text blockquote { border-left: 3px solid var(--rose-fonce); padding: 0.25rem 1rem; margin: 1rem 0; font-style: italic; }
.legal-content { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 2.5rem; box-shadow: var(--shadow-card); }
.legal-content > h2:first-child { margin-top: 0; }

/* Boutique */
.shop-section { padding: 3rem 0 4.5rem; }
.shop-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--border-color); background: var(--bg-card); font-size: 0.9rem; font-weight: 500; color: var(--text-color); }
.chip:hover { border-color: var(--eucalyptus); color: var(--eucalyptus); }
.chip.active { background: var(--eucalyptus); border-color: var(--eucalyptus); color: var(--bg-body); }
.shop-search { display: flex; gap: 8px; align-items: center; }
.shop-search input, .shop-search select { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--border-color); background: var(--bg-card); font-family: inherit; font-size: 0.9rem; color: var(--text-color); }
.shop-search input { width: 240px; }
.shop-search input:focus, .shop-search select:focus { outline: none; border-color: var(--eucalyptus); }
.result-count { color: var(--text-soft); font-size: 0.9rem; margin: 1rem 0; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); transition: var(--transition); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: var(--primary-soft); }
.product-card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-media .img-fallback { position: absolute; inset: 0; }
.product-flag { position: absolute; top: 14px; left: 14px; background: var(--bg-card); color: var(--eucalyptus); font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; box-shadow: var(--shadow-card); }
.product-flag.flag-out { color: var(--error); }
.product-flag.flag-promo { background: var(--rose-fonce); color: #fff; }
.product-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { font-size: 1.35rem; margin-bottom: 6px; }
.product-card-body p { font-size: 0.9rem; margin-bottom: 14px; flex: 1; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--eucalyptus); }
.price s, .product-price s { color: var(--text-soft); font-size: 0.8em; margin-right: 6px; }

.empty-box { text-align: center; padding: 4rem 1.5rem; background: var(--bg-card); border: 1px dashed var(--border-strong); border-radius: var(--border-radius); }
.empty-box > i { font-size: 2.6rem; color: var(--primary-soft); margin-bottom: 1rem; }
.empty-box h3 { margin-bottom: 0.5rem; }

/* Fiche produit */
.breadcrumb { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--eucalyptus); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.gallery-main { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-alt); box-shadow: var(--shadow-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gallery-thumbs .thumb { width: 78px; height: 78px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; opacity: 0.7; transition: var(--transition); }
.gallery-thumbs .thumb.active, .gallery-thumbs .thumb:hover { border-color: var(--eucalyptus); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 0.5rem; }
.product-price { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--eucalyptus); margin-bottom: 0.25rem; }
.product-price small { font-family: 'Jost', sans-serif; font-size: 0.85rem; color: var(--text-soft); }
.stock-line { font-size: 0.9rem; font-weight: 500; }
.stock-line.in { color: var(--success); }
.stock-line.out { color: var(--error); }
.product-lead { font-size: 1.05rem; color: var(--text-color); }
.product-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 24px; padding: 24px; margin: 1.5rem 0; box-shadow: var(--shadow-card); }
.option-group { border: 0; margin-bottom: 1.25rem; }
.option-group legend { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--eucalyptus); font-weight: 600; margin-bottom: 0.6rem; }
.option-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.option-choice input { position: absolute; opacity: 0; pointer-events: none; }
.option-choice span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--border-color); cursor: pointer; font-size: 0.92rem; transition: var(--transition); }
.option-choice span small { color: var(--text-soft); }
.option-choice input:checked + span { border-color: var(--eucalyptus); background: var(--primary-tint); color: var(--primary-deep); font-weight: 600; }
.option-choice input:focus-visible + span { outline: 2px solid var(--eucalyptus); outline-offset: 2px; }
.add-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.qty-field label { display: block; }
.qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--border-color); border-radius: 999px; overflow: hidden; background: #fff; }
.qty-control button { width: 42px; height: 46px; font-size: 1.2rem; color: var(--eucalyptus); }
.qty-control button:hover { background: var(--primary-tint); }
.modern-form .qty-control input { width: 56px; border: 0; text-align: center; padding: 10px 0; border-radius: 0; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-btn { flex: 1; min-height: 48px; }
.product-desc { margin-top: 1.5rem; }
.product-desc h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.product-details { margin-top: 1rem; border-top: 1px solid var(--border-color); padding-top: 1rem; }
.product-details summary { cursor: pointer; font-weight: 600; color: var(--eucalyptus); margin-bottom: 0.6rem; }
.related { margin-top: 2rem; }

/* Panier */
.cart-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 8px 24px; box-shadow: var(--shadow-card); }
.cart-line { display: grid; grid-template-columns: 84px 1fr 90px 100px 40px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border-color); }
.cart-thumb { width: 84px; height: 84px; border-radius: 16px; overflow: hidden; display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .img-fallback { min-height: 84px; font-size: 1.4rem; }
.cart-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--text-color); }
.cart-meta { font-size: 0.85rem; color: var(--text-muted); }
.cart-qty input { width: 76px; padding: 9px 10px; border: 1.5px solid var(--border-color); border-radius: 12px; font-family: inherit; text-align: center; }
.cart-total { font-weight: 600; text-align: right; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; gap: 12px; flex-wrap: wrap; }
.cart-subtotal { font-size: 1.1rem; }
.cart-subtotal strong { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--eucalyptus); margin-left: 10px; }
.cart-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 1.5rem; flex-wrap: wrap; align-items: center; }

/* Commande */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.checkout-step, .checkout-summary, .account-card, .auth-card, .thanks-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 28px; box-shadow: var(--shadow-card); }
.checkout-step { margin-bottom: 24px; }
.checkout-step h2, .checkout-summary h2, .account-card h2 { font-size: 1.35rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.checkout-step h2 span { width: 32px; height: 32px; border-radius: 50%; background: var(--eucalyptus); color: #fff; font-family: 'Jost', sans-serif; font-size: 0.95rem; display: inline-flex; align-items: center; justify-content: center; }
.account-card h2 i { color: var(--rose-fonce); font-size: 1rem; }
.checkout-summary { position: sticky; top: 110px; }
.contact-recap { color: var(--text-color); margin: 0; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.25rem; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1.5px solid var(--border-color); border-radius: 16px; cursor: pointer; transition: var(--transition); height: 100%; }
.choice-card > span i { color: var(--eucalyptus); }
.choice-card small { color: var(--text-muted); font-size: 0.82rem; }
.choice-card input:checked + span { border-color: var(--eucalyptus); background: var(--primary-tint); box-shadow: 0 0 0 3px rgba(91, 117, 102, 0.12); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 0 18px; }
.modern-form .form-group { margin-bottom: 1.1rem; }
.modern-form label { font-size: 0.78rem; margin-bottom: 0.5rem; }
.modern-form input[type=checkbox], .modern-form input[type=radio] { width: auto; }
.check-line { display: flex !important; gap: 10px; align-items: flex-start; text-transform: none !important; letter-spacing: 0 !important; font-size: 0.92rem !important; font-weight: 400 !important; color: var(--text-color) !important; margin: 0.75rem 0 1rem !important; cursor: pointer; }
.check-line input { margin-top: 4px; accent-color: var(--eucalyptus); width: 18px !important; height: 18px; flex-shrink: 0; }
.form-section-title { font-weight: 600; color: var(--text-color); margin: 0.5rem 0 1rem; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border-color); font-size: 0.95rem; }
.sum-line small { display: block; color: var(--text-soft); font-size: 0.82rem; }
.sum-line.muted { color: var(--text-muted); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; font-weight: 600; }
.sum-total strong { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--eucalyptus); }

/* Remerciements */
.thanks-card { text-align: center; padding: 3rem 2rem; }
.thanks-icon { font-size: 3.5rem; color: var(--success); margin-bottom: 1rem; }
.thanks-icon.pending { color: var(--warning); }
.thanks-card .lead { font-size: 1.05rem; max-width: 560px; margin: 0 auto 1.5rem; }
.thanks-details { display: grid; gap: 10px; max-width: 520px; margin: 0 auto 1rem; text-align: left; }
.thanks-details div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--bg-alt); border-radius: 12px; }
.thanks-details span { color: var(--text-muted); }
.thanks-actions { justify-content: center; }

/* Connexion / inscription */
.auth-section { padding: 4rem 0 5rem; }
.auth-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; max-width: 980px; margin: 0 auto; }
.auth-card { padding: 36px; }
.auth-section > .container > .auth-card { max-width: 520px; margin: 0 auto; }
.auth-section > .container > .auth-card.auth-wide { max-width: 760px; }
.auth-card h1 { font-size: 2.1rem; margin-bottom: 0.4rem; }
.auth-card-alt { background: var(--primary-tint); border-color: var(--primary-soft); }
.auth-card-alt h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.auth-sub { margin-bottom: 1.5rem; }
.auth-links { margin-top: 1.25rem; text-align: center; font-size: 0.92rem; }
.auth-links a { color: var(--eucalyptus); font-weight: 600; }
.check-list { margin: 0 0 1.5rem; }
.check-list li { padding: 6px 0 6px 28px; position: relative; color: var(--text-color); }
.check-list li::before { content: '✓'; position: absolute; left: 4px; color: var(--eucalyptus); font-weight: 700; }
.password-field { position: relative; }
.password-field input { padding-right: 52px !important; }
.toggle-password { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; color: var(--text-soft); border-radius: 50%; }
.toggle-password:hover { color: var(--eucalyptus); }

/* Espace client */
.account-section { padding: 3rem 0 5rem; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.account-head h1 { font-size: clamp(32px, 4vw, 46px); }
.account-head .fl-kicker { margin-bottom: 8px; }
.account-head .fl-kicker a { color: inherit; }
.account-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 999px; margin-bottom: 1.75rem; box-shadow: var(--shadow-card); }
.account-nav a, .account-logout button { padding: 9px 18px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; }
.account-nav a:hover, .account-logout button:hover { color: var(--eucalyptus); background: var(--primary-tint); }
.account-nav a.active { background: var(--eucalyptus); color: #fff; }
.account-logout { margin-left: auto; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 1.75rem; }
.dash-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-card); transition: var(--transition); }
.dash-card:hover { transform: translateY(-3px); border-color: var(--primary-soft); }
.dash-card i { color: var(--rose-fonce); font-size: 1.3rem; }
.dash-card strong { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--eucalyptus); }
.dash-card span { color: var(--text-muted); font-size: 0.9rem; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.account-card { margin-bottom: 24px; }
.account-grid .account-card { margin-bottom: 0; }
.account-card hr { border: 0; border-top: 1px solid var(--border-color); margin: 1.25rem 0; }
.order-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--border-color); color: var(--text-color); }
.order-row:last-of-type { border-bottom: 0; }
.order-row > span:first-child { flex: 1; display: flex; flex-direction: column; }
.order-row small { color: var(--text-soft); }
.order-row > i { color: var(--text-soft); }
.order-row:hover { background: var(--bg-alt); }
.orders-list { display: grid; gap: 18px; }
.order-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 22px 24px; box-shadow: var(--shadow-card); }
.order-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-card-head small { display: block; color: var(--text-soft); }
.order-card-items { margin: 0.75rem 0; color: var(--text-color); }
.order-card-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px dashed var(--border-color); padding-top: 14px; }
.order-card-foot > span:first-child { flex: 1; color: var(--text-muted); font-size: 0.92rem; }
.order-card-foot strong { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--eucalyptus); }
.pills, .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0 0 1.75rem; padding: 0; counter-reset: step; }
.timeline li { position: relative; text-align: center; font-size: 0.88rem; color: var(--text-soft); padding-top: 56px; }
.timeline li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; z-index: 1; }
.timeline li::before { content: ''; position: absolute; top: 22px; left: -50%; right: 50%; height: 2px; background: var(--border-color); }
.timeline li:first-child::before { display: none; }
.timeline li.done { color: var(--text-color); font-weight: 500; }
.timeline li.done span { background: var(--eucalyptus); border-color: var(--eucalyptus); color: #fff; }
.timeline li.done::before { background: var(--eucalyptus); }
.timeline li.current span { box-shadow: 0 0 0 6px rgba(91, 117, 102, 0.18); }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 1rem; }
.star-input input { position: absolute; opacity: 0; }
.modern-form .star-input label { font-size: 1.8rem; color: var(--border-strong); cursor: pointer; text-transform: none; letter-spacing: 0; margin: 0; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--warning) !important; }

/* Messagerie */
.conv-list { padding: 8px 20px; }
.conv-row { display: flex; align-items: center; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--border-color); color: var(--text-color); }
.conv-row:last-child { border-bottom: 0; }
.conv-row:hover { background: var(--bg-alt); }
.conv-row.unread strong { color: var(--eucalyptus); }
.conv-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.conv-main small { color: var(--text-soft); }
.conv-preview { color: var(--text-muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 1rem; }
.thread-head h2 { margin: 0.4rem 0 0.2rem; }
.thread-head small { color: var(--text-soft); }
.thread-head small a { color: var(--eucalyptus); }
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 520px; overflow-y: auto; padding: 6px 4px 12px; }
.bubble { max-width: 78%; padding: 12px 16px 8px; border-radius: 18px; font-size: 0.95rem; line-height: 1.55; }
.bubble time { display: block; font-size: 0.72rem; opacity: 0.7; margin-top: 6px; }
.bubble-author { display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.75; margin-bottom: 2px; }
.bubble.from-me { align-self: flex-end; background: var(--eucalyptus); color: #fff; border-bottom-right-radius: 6px; }
.bubble.from-shop { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--border-color); color: var(--text-color); border-bottom-left-radius: 6px; }
.reply-form { display: flex; gap: 12px; align-items: flex-end; border-top: 1px solid var(--border-color); padding-top: 1rem; margin-top: 0.5rem; }
.reply-form textarea { flex: 1; }
.danger-zone { margin-top: 1.25rem; border-top: 1px solid var(--border-color); padding-top: 1rem; }
.danger-zone summary { cursor: pointer; color: var(--error); font-weight: 500; margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 1100px) and (min-width: 769px) {
}
@media (max-width: 960px) {
    .product-layout, .checkout-layout, .auth-grid, .account-grid { grid-template-columns: 1fr; gap: 28px; }
    .checkout-summary { position: static; }
    .dash-cards { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
    .dash-card { padding: 16px; }
}
@media (max-width: 768px) {
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .shop-toolbar > * { min-width: 0; max-width: 100%; }
    .shop-search input { width: auto; flex: 1; min-width: 0; }
    .shop-search select { width: 110px; flex-shrink: 0; }
    .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
    .chip { white-space: nowrap; }
    .cart-line { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info del" "img qty total"; gap: 8px 14px; }
    .cart-thumb { grid-area: img; width: 64px; height: 64px; }
    .cart-info { grid-area: info; }
    .cart-qty { grid-area: qty; }
    .cart-total { grid-area: total; }
    .cart-line .icon-btn { grid-area: del; }
    .cart-next { flex-direction: column-reverse; align-items: stretch; }
    .cart-next .btn-primary, .cart-next .btn-quote { justify-content: center; }
    .form-grid-2, .form-grid-3, .choice-cards { grid-template-columns: 1fr; }
    .account-nav { border-radius: 20px; }
    .account-nav a, .account-logout button { padding: 8px 12px; font-size: 0.86rem; }
    .account-logout { margin-left: 0; }
    .dash-cards { grid-template-columns: 1fr; }
    .timeline li { font-size: 0.75rem; }
    .bubble { max-width: 92%; }
    .reply-form { flex-direction: column; align-items: stretch; }
    .legal-content, .checkout-step, .checkout-summary, .account-card, .auth-card { padding: 22px 18px; }
}
