/* ============================================================
   Flayona — storefront components
   ============================================================ */

/* ---- Prominent delivery/region bar (below main header) ---- */
.delivery-bar { background: var(--charcoal); color: #f2ece6; border-bottom: 1px solid rgba(255,196,0,.2); }
.delivery-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; flex-wrap: wrap; }
.delivery-bar-text { font-size: .88rem; font-weight: 600; }
.delivery-bar-text strong { color: var(--yellow); }
.delivery-bar-change { position: relative; }
.delivery-bar-change summary {
    cursor: pointer; list-style: none; font-size: .82rem; font-weight: 700;
    color: var(--charcoal); background: var(--yellow); padding: .3rem .8rem; border-radius: 999px;
    display: inline-block;
}
.delivery-bar-change summary::-webkit-details-marker { display: none; }
.delivery-bar-change:hover summary { background: #e6b400; }
.delivery-bar-form {
    position: absolute; right: 0; top: calc(100% + .4rem); z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: .7rem; box-shadow: var(--shadow); min-width: 260px;
}
.region-select { width: 100%; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: .85rem; background:#fff; color: var(--ink); }

.nav-cart { position: relative; font-weight: 700 !important; color: #fff !important; }
.cart-badge { display: inline-block; min-width: 18px; padding: 0 5px; background: var(--yellow); color: var(--charcoal); border-radius: 999px; font-size: .72rem; line-height: 18px; text-align: center; font-weight: 800; }

/* ---- Hero ---- */
.hero {
    position: relative; overflow: hidden;
    border-radius: 22px; margin: 1rem 0 2.2rem;
    background:
        radial-gradient(900px 360px at 85% -10%, rgba(255,196,0,.22), transparent),
        linear-gradient(135deg, #1a1a1a 0%, #2a0507 55%, var(--red-dark) 100%);
    color: #fff; padding: 3.4rem 2.4rem;
}
.hero::after { content:''; position:absolute; inset:0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 39h40M39 0v40' stroke='%23ffffff0a' fill='none'/%3E%3C/svg%3E"); opacity:.4; pointer-events:none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0 0 .5rem; line-height: 1.04; color:#fff; }
.hero .tagline { font-family:'DM Sans',sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--yellow); margin: 0 0 1rem; }
.hero p { max-width: 640px; color: #ece6e0; font-size: 1.05rem; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-flags { display: flex; gap: .7rem; margin-top: 1.7rem; flex-wrap: wrap; }
.hero-flag { background: rgba(255,255,255,.1); border:1px solid rgba(255,196,0,.35); border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; font-weight: 600; }

/* ---- Trust badges ---- */
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 1rem; margin: 1.6rem 0; }
.trust-card { background: var(--surface); border-radius: 14px; padding: 1.2rem 1rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.trust-card .flag { font-size: 2.1rem; line-height: 1; }
.trust-card .country { font-weight: 700; margin-top: .4rem; font-family:'DM Serif Display',serif; }
.trust-card .sub { font-size: .76rem; color: var(--ink-soft); }

/* ---- Section heads ---- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.4rem 0 1.1rem; }
.section-head h2 { margin: 0; font-size: 1.6rem; }
.section-head h2::after { content:''; display:block; width:46px; height:3px; background: var(--red); border-radius:3px; margin-top:.4rem; }

/* ---- Toolbar + chips ---- */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin: 1rem 0 1.2rem; }
.shop-toolbar form { display: flex; gap: .5rem; flex-wrap: wrap; }
.shop-toolbar input[type=text], .shop-toolbar select { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.chips { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.chip { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); background:#fff; color: var(--ink-soft); font-weight: 600; font-size: .85rem; }
.chip.active, .chip:hover { background: var(--red); color:#fff; border-color: var(--red); text-decoration: none; }

.promo-strip { background: var(--red); color: #fff; padding: .75rem 1rem; border-radius: 12px; margin-bottom: 1.3rem; text-align: center; font-weight: 800; letter-spacing:.01em; }

/* ---- Product grid + cards (borderless) ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px,1fr)); gap: 1.3rem; }
.product-card { position: relative; background: var(--surface); border: none; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card .pc-media { aspect-ratio: 4/3; overflow: hidden; background: #f0efed; }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.product-card:hover .pc-media img { transform: scale(1.05); }
.pc-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pc-meta-row { display:flex; justify-content:space-between; align-items:center; gap:.4rem; }
.pc-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.pc-body h3 a { color: var(--ink); }
.pc-body h3 a:hover { color: var(--red); }
.pc-cat { font-size: .68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pc-brand { font-size: .8rem; color: var(--red); font-weight: 700; }
.pc-origin { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.pc-from { font-size:.72rem; color:var(--ink-soft); font-weight:600; }
.pc-price { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; padding-top:.3rem; }
.pc-price .now { font-size: 1.25rem; font-weight: 700; font-family:'DM Serif Display',serif; color: var(--ink); }
.pc-price .was { font-size: .85rem; color: #aaa5a0; text-decoration: line-through; }

.badge { position: absolute; top: .65rem; left: .65rem; background: var(--red); color: #fff; font-size: .66rem; font-weight: 800; padding: .28rem .6rem; border-radius: 7px; letter-spacing: .06em; z-index: 2; box-shadow: 0 4px 12px rgba(227,6,19,.35); }

/* ---- Homepage storytelling ---- */
.story-band { background: var(--surface); border-radius: 20px; padding: 2.2rem; margin: 2rem 0; box-shadow: var(--shadow-sm); }
.story-band-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; }
.story-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; counter-reset: step; }
.story-steps li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: .9rem; align-items: start; }
.story-steps .step-num {
    grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
    background: var(--red); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.15rem; font-family: 'DM Serif Display', serif;
    box-shadow: 0 4px 12px rgba(227,6,19,.3);
}
.story-steps strong { font-size: 1rem; }
.story-steps .muted { font-size: .86rem; }
@media (max-width: 760px) { .story-band-inner { grid-template-columns: 1fr; } .story-band { padding: 1.5rem; } }

.home-reviews { margin: 2.4rem 0; }
.home-review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.home-review { margin: 0; background: var(--surface); border-radius: 14px; padding: 1.2rem; box-shadow: var(--shadow-sm); }
.home-review p { margin: .5rem 0; font-style: italic; color: #4a4a4a; }
.home-review footer { font-size: .85rem; }

.brand-band {
    text-align: center; color: #fff; border-radius: 20px; margin: 2.4rem 0 1rem;
    padding: 3rem 2rem;
    background: radial-gradient(700px 280px at 50% -20%, rgba(255,196,0,.22), transparent),
                linear-gradient(135deg, #1a1a1a 0%, #2a0507 60%, var(--red-dark) 100%);
}
.brand-band h2 { color: #fff; }
.brand-band p { color: #ece6e0; }
.brand-band .btn { margin: 0 .25rem; }

/* ---- Reviews ---- */
.stars { color: var(--yellow); letter-spacing: .08em; }
.review-summary-link { display: inline-flex; gap: .4rem; align-items: center; font-size: .88rem; color: var(--ink-soft); text-decoration: none; margin-top: .3rem; }
.review-summary-link:hover { color: var(--red); }
.reviews-section { margin-top: 2.5rem; }
.review-form-box { background: var(--surface); border-radius: 14px; padding: 1.2rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-sm); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; margin: .3rem 0 .8rem; }
.star-input input { display: none; }
.star-input label { font-size: 1.7rem; color: #ddd; cursor: pointer; transition: color .1s ease; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--yellow); }
.review-list { display: flex; flex-direction: column; gap: 1rem; }
.review-item { background: var(--surface); border-radius: 12px; padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); }
.review-head { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.verified-pill { background: #eaf6ef; color: #145c39; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.review-comment { margin: .5rem 0 0; color: #4a4a4a; }

/* ---- Card action buttons (heart + quick view, top-right) ---- */
.card-actions { position: absolute; top: .55rem; right: .55rem; z-index: 3; display: flex; flex-direction: column; gap: .35rem; }
.card-actions .wish-form { position: static; margin: 0; }
.qv-btn { font-size: .85rem; }

/* ---- Quick-view dialog ---- */
.qv-dialog {
    border: none; border-radius: 18px; padding: 1.4rem;
    max-width: 620px; width: min(92vw, 620px);
    box-shadow: var(--shadow);
}
.qv-dialog::backdrop { background: rgba(31,31,31,.55); backdrop-filter: blur(3px); }
.qv-close {
    position: absolute; top: .6rem; right: .7rem;
    border: none; background: none; font-size: 1.5rem; cursor: pointer; color: var(--ink-soft);
}
.qv-close:hover { color: var(--ink); }
.qv-grid { display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem; align-items: start; }
.qv-img { width: 100%; border-radius: 12px; aspect-ratio: 1/1; object-fit: cover; background: #f0efed; }
@media (max-width: 560px) { .qv-grid { grid-template-columns: 1fr; } .qv-img { max-height: 220px; } }

/* ---- Wishlist button ---- */
.wish-form { z-index: 3; margin: 0; }
.wish-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--line); background: rgba(255,255,255,.92);
    font-size: 1.05rem; line-height: 1; cursor: pointer; color: #9a948d;
    display: flex; align-items: center; justify-content: center;
    transition: transform .12s ease, color .15s ease, border-color .15s ease;
}
.wish-btn:hover { transform: scale(1.12); color: var(--red); border-color: var(--red); }
.wish-btn.saved { color: var(--red); border-color: #f0c2c2; }
.badge.xmas { background: var(--red-dark); color:#fff; }
.badge.bulk { background: var(--success); color:#fff; }
.badge.promo { background: var(--charcoal); color:#fff; }

.stock-pill { font-size: .74rem; font-weight: 800; }
.stock-pill.in  { color: var(--success); }
.stock-pill.low { color: #b8860b; }
.stock-pill.out { color: var(--danger); }

/* ---- Single product ---- */
.breadcrumb { margin-bottom:1rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.product-gallery .main-img { width: 100%; border-radius: 18px; aspect-ratio: 1/1; object-fit: cover; background:#f0efed; box-shadow: var(--shadow-sm); }
.product-thumbs { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.product-thumbs img { width: 66px; height: 66px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.product-thumbs img:hover { border-color: var(--red); }
.product-info h1 { margin: 0 0 .3rem; font-size: 2rem; }
.big-price { font-size: 2.1rem; font-weight: 700; font-family:'DM Serif Display',serif; color: var(--ink); }
.big-was { font-size: 1.1rem; color: #aaa5a0; text-decoration: line-through; margin-left: .5rem; }
.region-note { background: #fff6e0; border:1px solid #ffe6a3; color:#6a5410; border-radius:12px; padding:.7rem .9rem; font-size:.86rem; margin:.9rem 0; }
.prod-desc { white-space: pre-line; margin: 1rem 0; color: #4a4a4a; }
.variant-select { width:100%; max-width:340px; padding:.6rem .7rem; border:1px solid var(--line); border-radius:10px; font:inherit; background:#fff; margin:.3rem 0 0; }
.qty-row { display: flex; align-items: center; gap: .6rem; margin: 1rem 0; }
.qty-row input { width: 74px; padding: .55rem; border: 1px solid var(--line); border-radius: 10px; }

@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ---- Cart / tables ---- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); }
.cart-table th, .cart-table td { padding: .75rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; }
.cart-total-row td { font-weight: 700; font-size: 1.1rem; font-family:'DM Serif Display',serif; }
.cart-qty { width: 68px; padding: .45rem; border: 1px solid var(--line); border-radius: 9px; }

/* ---- Invoice ---- */
.invoice-box { max-width: 730px; margin: 0 auto; background: var(--surface); border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow-sm); }
.invoice-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-bottom: 2px solid var(--red); padding-bottom: 1rem; }
.po-pill { font-size: 1.05rem; font-weight: 800; color: var(--red); }
.momo-box { background: #fff6e0; border: 1px dashed var(--yellow); border-radius: 14px; padding: 1.1rem 1.3rem; margin: 1.2rem 0; }
.momo-box .ref { font-size: 1.35rem; font-weight: 800; letter-spacing: .03em; color: var(--red-dark); }
.wa-btn { display: inline-block; background: #1f8f4d; color: #fff; padding: .72rem 1.3rem; border-radius: 12px; font-weight: 700; text-decoration: none; }
.wa-btn:hover { background: #19763f; text-decoration: none; color:#fff; }

.status-tag { display: inline-block; padding: .22rem .6rem; border-radius: 8px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing:.04em; }
.status-pending { background: #fdeecb; color: #7a5a07; }
.status-paid { background: #d8efe0; color: #145c39; }
.status-dispatched { background: #d9e6f7; color: #1c3f72; }
.status-cancelled { background: #f6d7d4; color: #8a201a; }

/* ---- Footer ---- */
.store-footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.2rem; }
.store-footer h4 { color:#fff; margin: 0 0 .7rem; font-size: .95rem; font-family:'DM Serif Display',serif; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.foot-links a { color: #c9c5c0; font-size: .88rem; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.social-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-link { color: #fff; padding: .45rem .8rem; border-radius: 10px; text-decoration: none; font-size: .82rem; font-weight: 700; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.08); }
.social-link:hover { background: var(--red); color:#fff; text-decoration:none; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.6rem; padding-top: 1.1rem; font-size: .82rem; color:#9c968a; }

@media (max-width: 900px) { .store-footer .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .store-footer .foot-grid { grid-template-columns: 1fr; } }

/* ---- Forms / misc ---- */
.store-form { max-width: 480px; }
.store-form label { display: block; margin: .85rem 0 .25rem; font-weight: 600; }
.store-form input, .store-form textarea, .store-form select { width: 100%; padding: .68rem .8rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.store-form input:focus, .store-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.low-stock-row { background: #fdf3e0; }
.profit-pos { color: var(--success); font-weight: 800; }
.profit-neg { color: var(--danger); font-weight: 800; }

/* ---- Responsive breakpoints (design spec) ---- */
@media (max-width: 1024px) { .container { width: min(1180px, 94%); } }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); } }
@media (max-width: 820px) { .story-band-inner { grid-template-columns: 1fr; } }

@media print { .site-header, .store-footer, .wa-btn, .no-print { display: none !important; } .invoice-box { border: none; box-shadow:none; } }
