/* African Beauty Tresses — multi-page preview theme (espresso & gold) */
:root{--espresso:#2b1a12;--espresso-2:#3d2417;--mocha:#5a3a26;--gold:#c9a227;--gold-2:#e3c766;--cream:#fdf8f1;--cream-2:#f6ead7;--line:#e8dcc8;--muted:#7a6353;--green:#2e7d4f;--red:#a33b2e}
*{box-sizing:border-box}
body{margin:0;font-family:Georgia,serif;background:var(--cream);color:#2a1d14;line-height:1.6}
a{color:var(--mocha)}
.preview-banner{background:#3d2417;color:#e9dcc4;text-align:center;font-size:13px;padding:8px 12px}
header.site{background:linear-gradient(160deg,#2b1a12,#3d2417);color:#fff;padding:22px 20px 18px}
.header-inner{max-width:1020px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
/* Same logo treatment as the live site: centered, large, and screen-blended
   so the logo's black background melts into the dark header. */
.header-inner img.logo{width:min(300px,68vw);height:auto;mix-blend-mode:screen}
.head-contact{font-size:13px;color:#e9dcc4;letter-spacing:.14em;text-transform:uppercase}
.head-contact a{color:#e9dcc4;text-decoration:none}
nav{display:flex;gap:4px;flex-wrap:wrap;align-items:center;justify-content:center}
nav a{color:#e8d9c4;text-decoration:none;padding:8px 12px;border-radius:999px;font-size:14.5px;letter-spacing:.14em;text-transform:uppercase}
nav a:hover,nav a.on{color:var(--gold-2);background:rgba(255,255,255,.08)}
nav a.book{background:var(--gold);color:#2b1a12;font-weight:700}
nav a.book:hover{background:var(--gold-2)}
.wrap{max-width:1020px;margin:0 auto;padding:24px 16px 48px}
.hero{border-radius:18px;overflow:hidden;box-shadow:0 10px 30px rgba(43,26,18,.18);margin-bottom:24px}
.hero img{width:100%;display:block;max-height:520px;object-fit:cover}
.hero-text{padding:24px}
.hero-text h1{font-size:34px;margin:0 0 8px;font-weight:400}
.hero-text p{color:var(--muted);margin:0 0 16px}
h2{font-size:26px;font-weight:400;margin:28px 0 6px}
p.sub{color:var(--muted);margin:0 0 16px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 6px 24px rgba(43,26,18,.08)}
.card h3{margin:0 0 6px;font-weight:400;font-size:20px}
.card p{margin:0 0 12px;color:#4a3628}
.price{color:var(--mocha);font-weight:700}
.price small{display:block;color:var(--muted);font-weight:400;font-size:13px}
.btn{display:inline-block;background:var(--espresso);color:#fff;text-decoration:none;padding:11px 20px;border-radius:999px;font-size:15px}
.btn.gold{background:var(--gold);color:#2b1a12;font-weight:700}
.btn.ghost{background:#fff;color:var(--espresso);border:1px solid var(--line)}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.gallery figure{margin:0;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 6px 24px rgba(43,26,18,.08)}
/* Whole photos, never cropped: contain fits each photo fully inside its
   box (cream bars fill the leftover space) instead of cover, which cut
   faces off whenever a photo's shape didn't match the box. */
.gallery img{width:100%;height:320px;object-fit:contain;background:var(--cream-2);display:block}
/* Paired front/back views share one card, side by side. */
.gallery figure.pair{display:grid;grid-template-columns:1fr 1fr}
.gallery figure.pair img{height:260px;object-fit:contain;background:var(--cream-2)}
.gallery figure.pair figcaption{grid-column:1/-1}
.gallery figcaption{padding:10px 12px;font-size:14px}
.gallery figure .gdesc{padding:0 12px;font-size:14px;line-height:1.55;margin:0 0 12px}
.gallery figure .btn{margin:0 12px 14px}
.stars{color:var(--gold);letter-spacing:2px}
blockquote{margin:0;font-style:italic}
footer{border-top:1px solid var(--line);padding:24px 16px;text-align:center;color:var(--muted);font-size:14px}
footer a{color:var(--mocha)}
.steps{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.step-num{font-size:28px;color:var(--gold)}
@media(max-width:600px){.hero-text h1{font-size:27px}.brand{font-size:19px}}
.card .product-photo{width:100%;aspect-ratio:3/4;overflow:hidden;background:#fff;border-radius:10px;margin:0 0 12px}
.card .product-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.grid .card:has(.product-photo){display:flex;flex-direction:column}
.grid .card:has(.product-photo) .price{margin-top:auto}
.slider-wrap{position:relative}
.slider-row{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 18px;scrollbar-width:none}
.slider-row::-webkit-scrollbar{display:none}
.slider-row .slider-card{flex:0 0 240px;scroll-snap-align:start;display:flex;flex-direction:column}
.slider-row .slider-card .price{margin-top:auto}
.slider-arrow{position:absolute;top:34%;z-index:2;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--espresso);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.slider-arrow.prev{left:-6px}
.slider-arrow.next{right:-6px}
@media(max-width:600px){.slider-row .slider-card{flex-basis:200px}}
h1.page-title{font-size:26px;font-weight:400;margin:28px 0 6px}

/* ==========================================================================
   FIX PACK 2026-10-25 — appended rules. Nothing above this line was changed
   except the :root line (added --espresso-2, --cream-2, --green, --red, which
   the gallery and booking page already use but were never defined here).
   ========================================================================== */

/* --- Shared footer (one rule instead of inline styles on every page) ----- */
footer.site{background:var(--espresso);color:#fdf8f1;text-align:center;padding:28px 16px;font-size:14px;line-height:1.7;border-top:0}
footer.site a{color:var(--gold-2)}
footer.site .social{display:flex;gap:18px;justify-content:center;align-items:center;margin-bottom:12px}

/* --- Header: cart link with live count (shop pages) ---------------------- */
nav a.cart{position:relative}
nav a.cart .cart-count{display:inline-block;min-width:20px;padding:0 6px;margin-left:6px;border-radius:999px;background:var(--gold);color:var(--espresso);font-size:12px;line-height:20px;text-align:center;font-weight:700;letter-spacing:0}
nav a.cart .cart-count:empty{display:none}

/* --- Product cards: photo first so every row lines up -------------------- */
/* Titles of different lengths used to sit ABOVE the photo, pushing photos
   to different heights across a row. The photo is now the first thing in
   the card, at a fixed 3:4 ratio, so all photo tops and bottoms align. */
.card.product{display:flex;flex-direction:column;padding:14px}
.card.product .product-photo{order:-1;margin:0 0 12px}
.card.product h3{min-height:2.6em;line-height:1.3;margin:0 0 6px}
.card.product .desc{flex:1;font-size:14.5px;line-height:1.55}
.card.product .price{font-size:19px;margin:0 0 12px}
.card.product .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.card.product .actions .btn{text-align:center;padding:11px 10px;font-size:14.5px;white-space:nowrap}
.card.product .actions button.btn{border:0;font-family:inherit;cursor:pointer}
.card.product .actions .btn.added{background:var(--green);color:#fff}
.card.product .in-cart{font-size:13px;color:var(--green);min-height:1.4em;margin:8px 0 0}
.card.product .in-cart a{color:var(--green)}
/* Desktop: fixed 3-across grid at wide widths so rows are predictable. */
@media(min-width:900px){.grid.products{grid-template-columns:repeat(3,1fr)}}
@media(max-width:420px){.card.product .actions{grid-template-columns:1fr}}

/* --- Sticky cart bar ------------------------------------------------------ */
#cartBar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:50;background:var(--espresso);color:#fff;padding:12px 16px;box-shadow:0 -4px 20px rgba(0,0,0,.25);padding-bottom:calc(12px + env(safe-area-inset-bottom))}
#cartBar.show{display:block}
#cartBar .inner{max-width:1020px;margin:0 auto;display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}
body.has-cart{padding-bottom:80px}

/* --- Cart drawer ---------------------------------------------------------- */
/* The drawer is a native <dialog>: showModal() makes the page behind it inert
   and Esc closes it. The dialog itself is a transparent full-screen layer
   (so a click outside the card closes it) and ::backdrop supplies the tint. */
#cartPanel{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:20px 12px;background:transparent;overflow:auto;z-index:60;color:inherit}
#cartPanel::backdrop{background:rgba(43,26,18,.6)}
#cartPanel .card{max-width:560px;margin:40px auto}
#cartPanel h2{margin-top:0}
.cart-line{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.cart-line img{width:52px;height:68px;object-fit:cover;border-radius:8px}
.cart-line .name{font-size:15px}
.cart-line .each{font-size:13px;color:var(--muted)}
.cart-line .line-total{font-weight:700;color:var(--mocha);text-align:right;min-width:48px}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden;margin-top:6px}
.qty button{width:34px;height:32px;border:0;background:#fff;color:var(--espresso);font-size:18px;cursor:pointer;font-family:inherit}
.qty button:hover{background:var(--cream-2)}
.qty span{min-width:28px;text-align:center;font-weight:700}
.cart-line .remove{background:none;border:0;color:var(--muted);font-size:13px;text-decoration:underline;cursor:pointer;font-family:inherit;padding:0;margin-left:10px}
.cart-summary{display:flex;justify-content:space-between;font-size:17px;margin:14px 0 4px}
.cart-note{font-size:13px;color:var(--muted);line-height:1.5;margin:0 0 14px}
.cart-actions{display:grid;gap:8px;grid-template-columns:1fr 1fr}
.cart-actions .btn{text-align:center;border:0;font-family:inherit;cursor:pointer;font-size:15px}
.cart-actions .btn:disabled{opacity:.6;cursor:wait}
.cart-error{color:var(--red);font-size:14px;margin:8px 0 0;min-height:1.2em}
.cart-empty{text-align:center;color:var(--muted);padding:18px 0}
.secure{font-size:12.5px;color:var(--muted);text-align:center;margin:10px 0 0}
.notice-card{border-left:4px solid var(--gold);background:#fff;border-radius:12px;padding:14px 16px;margin:0 0 16px;box-shadow:0 6px 24px rgba(43,26,18,.08)}
.notice-card.ok{border-left-color:var(--green)}

/* --- Booking page shell (so it can share the site header and footer) ---- */
.book-hero{background:linear-gradient(160deg,var(--espresso),var(--espresso-2) 60%,var(--mocha));color:#fff;padding:26px 20px 34px;text-align:center}
.book-hero h1{margin:0 0 6px;font-size:30px;font-weight:400;line-height:1.2}
.book-hero p{margin:0 auto;max-width:560px;color:#e9dcc4;font-size:15px;line-height:1.5}

/* --- cart.js on every page (2026-10-25, round 2) ------------------------- */
.card.product a.product-photo{display:block}
.card.product h3 a{color:inherit;text-decoration:none}
.card.product h3 a:hover{text-decoration:underline}
.slider-row .slider-card.product .product-photo{order:-1}
.slider-row .slider-card.product .btn{margin-top:auto;text-align:center;border:0;font-family:inherit;cursor:pointer}
.slider-row .slider-card.product .price{margin:0 0 10px}

/* --- Gallery cards: equal heights, buttons on one baseline (round 3) ------ */
/* Every card is a column; the caption area grows and the button is pushed to
   the bottom, so a short caption and a long caption end on the same line. */
.gallery figure{display:flex;flex-direction:column}
.gallery figure figcaption{flex:0 0 auto}
.gallery figure .gdesc{flex:1 1 auto}
.gallery figure .btn{margin-top:auto;align-self:flex-start;white-space:nowrap}
.gallery figure .btn{margin-left:12px;margin-right:12px;margin-bottom:14px}
/* Two-photo cards are the SAME size as single cards: one photo shows at a
   time in a 320px slot. Hover (mouse) crossfades to the other photo; on touch
   screens the arrows, the dots, or a swipe flip it. Markup: <div class="flip">
   with two <img>, built by the small script at the end of gallery.html. */
.gallery figure.pair{display:flex;flex-direction:column}
.gallery figure.pair figcaption,.gallery figure.pair .btn{grid-column:auto}
.flip{position:relative;height:320px;background:var(--cream-2);overflow:hidden;touch-action:pan-y}
.flip img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--cream-2);opacity:0;transition:opacity .35s ease}
.flip img.is-on{opacity:1}
@media(hover:hover){.flip:hover img.is-on{opacity:0}.flip:hover img:not(.is-on){opacity:1}}
.flip-btn{position:absolute;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;border:0;background:rgba(43,26,18,.75);color:#fff;font-size:20px;line-height:1;cursor:pointer;z-index:2;padding:0}
.flip-btn.prev{left:8px}.flip-btn.next{right:8px}
.flip-dots{position:absolute;left:0;right:0;bottom:8px;display:flex;gap:6px;justify-content:center;z-index:2}
.flip-dots i{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.7);border:1px solid rgba(43,26,18,.5)}
.flip-dots i.on{background:var(--gold)}
.flip-hint{position:absolute;top:8px;right:8px;z-index:2;background:rgba(43,26,18,.75);color:#fff;font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding:3px 8px;border-radius:999px}
/* Every gallery button identical: gold, full card width, one label. */
.gallery figure .btn{align-self:stretch;text-align:center;background:var(--gold);color:#2b1a12;font-weight:700;border:0}
.gallery figure .btn:hover{background:var(--gold-2)}
