:root{
  --bg:#ffffff;
  --text:#111;
  --muted:#666;
  --line:rgba(0,0,0,.08);
  --soft:rgba(0,0,0,.04);
  --accent:#111;
  --max:1200px;
  --radius:16px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.35;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.page{max-width:var(--max); margin:0 auto; padding:18px}
@media (min-width: 900px){ .page{padding:26px} }

/* Header */
.site-header{position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--line)}
.topbar{
  max-width:var(--max);
  margin:0 auto;
  padding:10px 18px;
  display:flex; gap:12px; align-items:center; justify-content:space-between;
}
.brand{display:flex; gap:10px; align-items:center; min-width:0}
.brand-logo{width:36px; height:36px; object-fit:contain}
.brand-text{display:flex; flex-direction:column; min-width:0}
.brand-name{font-weight:700; letter-spacing:.2px}
.brand-tagline{font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.nav{display:none; gap:14px}
.nav-link{font-weight:600; font-size:14px; color:#222; opacity:.9}
.nav-link.is-active{opacity:1; text-decoration:underline; text-underline-offset:6px}
@media (min-width: 980px){ .nav{display:flex} }

.actions{display:flex; gap:10px; align-items:center}
.search{display:none}
.search input{
  width:320px; max-width:42vw;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  outline:none;
}
@media (min-width: 900px){ .search{display:block} }

.icon-btn{
  position:relative;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
}
.badge{
  position:absolute;
  top:-6px; right:-6px;
  background:#111; color:#fff;
  font-size:11px; line-height:18px;
  padding:0 6px;
  border-radius:999px;
}
.pill{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  font-weight:600;
}

/* Hero */
.hero{border-radius:var(--radius); overflow:hidden; position:relative; background:#000; color:#fff}
.hero-media{
  min-height:250px;
  background-size:contain;
  background-position:center;
  filter:contrast(1.05) saturate(1.05);
}
.hero-content{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  justify-content:flex-end;
  padding:18px;
  background:linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05));
}
.hero h1{margin:0 0 6px; font-size:28px}
.hero p{margin:0 0 14px; color:rgba(255,255,255,.9); max-width:46ch}
.hero-cta{display:flex; gap:10px; flex-wrap:wrap}

.section{padding:26px 0}
.section-tight{padding:18px 0}
.section-head{display:flex; align-items:end; justify-content:space-between; gap:12px}
.h1{font-size:28px; margin:0 0 12px}
.h2{font-size:18px; margin:0 0 10px}

.btn{
  display:inline-flex; justify-content:center; align-items:center;
  padding:12px 14px;
  border-radius:999px;
  background:#111; color:#fff;
  font-weight:700;
}
.btn-ghost{
  background:#fff; color:#111;
  border:1px solid var(--line);
}
.btn-full{width:100%}

/* Category tiles (image-first, minimal) */
.cat-grid{display:grid; gap:12px; grid-template-columns:1fr}
@media (min-width: 720px){ .cat-grid{grid-template-columns:repeat(3,1fr)} }

.cat-tile{border-radius:var(--radius); overflow:hidden; background:var(--soft); position:relative; min-height:160px}
.cat-img{position:absolute; inset:0; background:linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.01))}
.cat-img--men{background:linear-gradient(135deg, rgba(0,0,0,.10), rgba(0,0,0,.02))}
.cat-img--kids{background:linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,.01))}
.cat-label{
  position:absolute; left:14px; bottom:14px;
  font-weight:800; font-size:18px;
  background:rgba(255,255,255,.85);
  padding:10px 12px;
  border-radius:999px;
}

/* Shop layout */
.shop-top{display:flex; align-items:center; justify-content:space-between; gap:12px}
.filter-btn{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:700;
}
.shop-layout{display:grid; grid-template-columns:1fr; gap:18px}
@media (min-width: 980px){
  .shop-layout{grid-template-columns:300px 1fr}
  .filter-btn{display:none}
}
.filters{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  background:#fff;
}
@media (max-width: 979px){
  .filters{position:fixed; left:0; right:0; bottom:-100%; z-index:60; max-width:var(--max); margin:0 auto; border-radius:18px 18px 0 0; transition:bottom .22s ease}
  body.filters-open .filters{bottom:0}
}
.filter-block{padding:10px 0; border-bottom:1px solid var(--line)}
.filter-block:last-child{border-bottom:0}
.filter-title{font-weight:800; margin-bottom:8px}
.radio{display:flex; gap:10px; align-items:center; padding:6px 0; color:#222}
.select, .input{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  outline:none;
}

.grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
}
@media (min-width: 860px){ .grid{grid-template-columns:repeat(3,1fr)} }
@media (min-width: 1180px){ .grid{grid-template-columns:repeat(4,1fr)} }

/* Product card: no border, image-first */
.product{display:block}
.product-img{
  width:100%;
  aspect-ratio: 3 / 4;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
}
.product-meta{padding:10px 2px 0}
.product-title{font-weight:700; font-size:14px}
.product-price{color:#222; font-weight:700; margin-top:4px}

/* Product page */
.product-page{display:grid; gap:18px; grid-template-columns:1fr}
@media (min-width: 980px){ .product-page{grid-template-columns:1.1fr .9fr; align-items:start} }
.product-hero{aspect-ratio:3/4; border-radius:18px; background:linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.02))}
.product-thumbs{display:flex; gap:10px; margin-top:10px}
.thumb{width:72px; aspect-ratio:1/1; border-radius:14px; background:linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.02))}
.price{font-size:20px; font-weight:900; margin:8px 0}
.muted{color:var(--muted)}
.buy{display:grid; gap:10px; margin-top:14px}
.label{font-weight:800}
.delivery-note{margin-top:12px; padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-weight:600}

/* Basket / Checkout */
.basket{display:grid; gap:18px; grid-template-columns:1fr}
.checkout{display:grid; gap:18px; grid-template-columns:1fr}
@media (min-width: 980px){
  .basket,.checkout{grid-template-columns:1fr 360px; align-items:start}
}
.basket-item{
  display:grid; grid-template-columns:84px 1fr auto;
  gap:12px; align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.basket-img{width:84px; aspect-ratio:1/1; border-radius:14px; background:linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.02))}
.basket-title{font-weight:800}
.basket-price{font-weight:900; margin-top:6px}
.link{color:#111; text-decoration:underline; text-underline-offset:4px}

.summary{
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
}
.summary-row{display:flex; justify-content:space-between; padding:8px 0; color:#222}
.summary-total{
  display:flex; justify-content:space-between;
  padding:12px 0;
  border-top:1px solid var(--line);
  font-weight:900;
}
.notice{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:rgba(0,0,0,.02);
}

/* Footer */
.site-footer{border-top:1px solid var(--line); margin-top:34px}
.footer-inner{max-width:var(--max); margin:0 auto; padding:22px 18px}
.footer-cols{display:grid; grid-template-columns:1fr; gap:16px}
@media (min-width: 900px){ .footer-cols{grid-template-columns:2fr 1fr 1fr} }
.footer-title{font-weight:900; margin-bottom:8px}
.footer-link{display:block; padding:6px 0; color:#222}
.footer-bottom{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:12px; margin-top:12px}

.panel{background:#fff;border:1px solid rgba(0,0,0,.10);border-radius:18px;box-shadow:0 10px 24px rgba(0,0,0,.06);padding:16px}
.form{display:grid;gap:10px}
.label{font-weight:800;font-size:13px}
.select{padding:12px;border-radius:14px;border:1px solid rgba(0,0,0,.10);width:100%}
.error{border:1px solid rgba(217,43,58,.25);background:rgba(217,43,58,.07);border-radius:14px;padding:10px 12px}

/* ===== Shop grid (premium, uniform images) ===== */
.shop-grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px){
  .shop-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap:18px; }
}
@media (min-width: 1100px){
  .shop-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.product-card{
  display:block;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease;
}
.product-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.10);
}

/* This is the key bit: same visual size for every image */
.product-media{
  width:100%;
  aspect-ratio: 3 / 4;      /* fashion ratio (Next-ish) */
  background: rgba(0,0,0,.03);
  overflow:hidden;
}
.product-media img{
  width:100%;
  height:100%;
  object-fit: cover;         /* crops to match the fixed box */
  display:block;
}

/* fallback when no image */
.product-placeholder{
  width:100%;
  height:100%;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(0,0,0,.06), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.02));
}

.product-meta{
  padding: 12px 12px 14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.product-title{
  font-weight: 800;
  line-height: 1.15;
  font-size: 14px;
  color: rgba(0,0,0,.86);
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* keeps titles aligned */
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.product-price{
  font-weight: 900;
  white-space: nowrap;
  font-size: 14px;
  color: rgba(0,0,0,.92);
}

/* ===== Premium Shop Listing (Next/River Island vibe) ===== */

.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.shop-head{display:grid;gap:12px;margin-bottom:12px}
.shop-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.shop-count{font-size:13px}

.shop-pills{
  display:flex;gap:10px;flex-wrap:wrap;
}
.pill{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 12px;border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  font-weight:800;font-size:13px;
  color:rgba(0,0,0,.78);
}
.pill:hover{border-color:rgba(0,0,0,.16)}
.pill.is-active{
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  color:#000;
}

/* Sticky controls */
.shop-sticky{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.08);
  border-left: 0;
  border-right: 0;
  padding: 10px 0;
  margin: 10px 0 14px;
}
.shop-controls{
  display:grid;
  grid-template-columns: 1fr 160px auto;
  gap:10px;
  align-items:center;
}
@media (max-width: 520px){
  .shop-controls{grid-template-columns: 1fr 1fr; }
  .shop-controls .btn{grid-column: 1 / -1;}
}
.ctrl .input, .ctrl .select{
  width:100%;
}

/* Grid */
.shop-grid{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px){
  .shop-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap:18px; }
}
@media (min-width: 1100px){
  .shop-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Card */
.product-card{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease;
}
.product-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,.10);
}
.product-link{display:block;color:inherit;text-decoration:none}

/* Uniform images (key part) */
.product-media{
  width:100%;
  aspect-ratio: 3 / 4;  /* fashion ratio */
  background: rgba(0,0,0,.03);
  overflow:hidden;
  position: relative;
}
.product-media img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit: cover;
  display:block;
  transition: opacity .18s ease;
}
.product-media .img-alt{opacity:0}
@media (hover:hover) and (pointer:fine){
  .product-card:hover .img-alt{opacity:1}
  .product-card:hover .img-main{opacity:0}
}

.product-placeholder{
  width:100%;height:100%;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(0,0,0,.06), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.02));
}

/* Badges */
.badge{
  position:absolute;
  left:10px;top:10px;
  padding:8px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.2px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
}
.badge-new{background: rgba(255,255,255,.92)}
.badge-low{background: rgba(255,212,0,.22); border-color: rgba(255,212,0,.30)}
.badge-sold{background: rgba(217,43,58,.12); border-color: rgba(217,43,58,.22)}

/* Wishlist */
.wish-form{position:absolute;right:10px;top:10px}
.wish-btn{
  width:38px;height:38px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  font-size:18px;
  line-height:1;
  color: rgba(0,0,0,.55);
}
.wish-btn:hover{border-color:rgba(0,0,0,.18)}
.wish-btn.is-on{color:#d92b3a;border-color:rgba(217,43,58,.25);background:rgba(217,43,58,.08)}

/* Meta */
.product-meta{
  padding: 12px 12px 14px;
  display:grid;
  gap:6px;
}
.product-title{
  font-weight: 850;
  line-height: 1.15;
  font-size: 14px;
  color: rgba(0,0,0,.86);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: 34px;
}
.product-price{
  font-weight: 950;
  white-space: nowrap;
  font-size: 14px;
  color: rgba(0,0,0,.92);
}
.product-sub{font-size: 12.5px}

/* Pagination */
.pager{
  margin-top: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.pager-btn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  font-weight:900;
  color: rgba(0,0,0,.85);
  text-decoration:none;
}
.pager-btn:hover{border-color: rgba(0,0,0,.16)}
.pager-btn.is-disabled{opacity:.45;pointer-events:none}
.pager-mid{font-size:13px}


/* ===== Header icon buttons (wishlist + basket) ===== */
.actions{display:flex;align-items:center;gap:10px}

.icon-btn{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  color:#111;
  text-decoration:none;
}

.icon-btn:hover{
  border-color: rgba(0,0,0,.16);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.icon-btn .icon{
  font-size:18px;
  line-height:1;
  display:block;
}

.icon-btn .badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
  background:#111;
  color:#fff;
  border:2px solid #fff;
}

/* ===== Quick Add button (shop grid) ===== */
.quickadd-btn{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.quickadd-btn:hover{
  border-color: rgba(0,0,0,.16);
}

/* ===== Quick Add modal ===== */
.qa-open{overflow:hidden}
.qa-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.42);
  z-index: 1000;
}
.qa-modal{
  position:fixed;
  left:50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: min(520px, calc(100% - 24px));
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  z-index: 1001;
  padding: 14px;
}
.qa-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}
.qa-title{font-weight:950;font-size:16px}
.qa-sub{font-size:13px}
.qa-close{
  width:42px;height:42px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  font-size:22px;
  cursor:pointer;
}
.qa-form{display:grid;gap:10px}

/* ===== Wishlist layout ===== */
.wish-grid{
  display:grid;
  gap:14px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px){
  .wish-grid{grid-template-columns: repeat(2, minmax(0, 1fr)); gap:18px;}
}
.wish-card{
  border-radius: 18px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}
.wish-link{display:block;color:inherit;text-decoration:none}
.wish-media{
  width:100%;
  aspect-ratio: 3 / 4;
  background: rgba(0,0,0,.03);
  position:relative;
  overflow:hidden;
}
.wish-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.wish-meta{padding: 12px 12px 10px; display:grid; gap:6px}
.wish-actions{
  padding: 0 12px 12px;
  display:grid;
  gap:10px;
}
.wish-row{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.wish-add .select{max-width: 160px}

/* ===== Product page ===== */
.product-shell{
  display:grid;
  gap:18px;
  grid-template-columns: 1fr;
}
@media (min-width: 980px){
  .product-shell{grid-template-columns: 1.05fr .95fr; gap:26px; align-items:start;}
}

.product-gallery{display:grid; gap:12px}
.product-main{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
}
.product-main img{width:100%;height:100%;object-fit:cover;display:block}

.product-thumbs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding-bottom: 2px;
}
.thumb-btn{
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  padding:0;
  cursor:pointer;
}
.thumb-btn img{width:100%;height:100%;object-fit:cover;display:block}
.thumb-btn.is-active{border-color: rgba(0,0,0,.30)}

.product-buy{
  border:1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background:#fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
  padding: 14px;
}
@media (min-width: 980px){ .product-buy{padding:18px;} }

.product-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.product-title{margin:0;font-size:22px;line-height:1.15;font-weight:950}
.product-price{font-weight:950;font-size:18px;margin: 10px 0}
.product-desc{margin: 0 0 6px}

.product-form{display:grid;gap:10px;margin-top: 10px}
.product-note{margin-top:12px}

.product-stockline{
  border:1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,.02);
  margin: 12px 0 10px;
  font-weight: 900;
}
.product-stockline.is-low{
  border-color: rgba(255,212,0,.55);
  background: rgba(255,212,0,.14);
}
.product-stockline.is-oos{
  border-color: rgba(217,43,58,.22);
  background: rgba(217,43,58,.07);
}

/* Lightbox */
.lb{
  position:fixed; inset:0;
  background: rgba(0,0,0,.72);
  z-index: 1200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
}
.lb-inner{
  width: min(980px, 100%);
  border-radius: 18px;
  overflow:hidden;
  background:#000;
}
.lb img{width:100%;height:auto;display:block}

/* Default: show main */
.product-media .img-main{opacity:1; transform:scale(1); transition:opacity .25s ease, transform .35s ease;}
.product-media .img-alt{opacity:0; transform:scale(1.02); transition:opacity .25s ease, transform .35s ease; position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}

/* Only swap if we actually have alt image */
.product-card.has-alt:hover .img-main{opacity:0;}
.product-card.has-alt:hover .img-alt{opacity:1;}

/* --- Product card footer: keep price visible above Quick add --- */
.p-card { display:flex; flex-direction:column; }
.p-card .p-body { display:flex; flex-direction:column; flex:1; }

.p-card .p-meta { 
  margin-top:auto; 
  padding-top:10px; 
}

/* If your Quick add is positioned absolute, stop it overlapping */
.p-card .p-quickadd,
.p-card .quick-add,
.p-card .btn-quickadd {
  position: static !important;
  width: 100%;
  margin-top: 10px;
}

/* Make sure price row always has space */
.p-card .p-price,
.p-card .price {
  display:block;
  margin-bottom: 6px;
  font-weight: 700;
}

/* --- Image hover swap only when a second image exists --- */
.p-media{
  position:relative;
  display:block;
  border-radius:16px;
  overflow:hidden;
  aspect-ratio: 4 / 5;
  background:#f3f3f3;
}

.p-media::before,
.p-media::after{
  content:"";
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  transition: opacity .25s ease, transform .45s ease;
}

.p-media::before{ background-image: var(--img1); opacity:1; transform:scale(1.01); }
.p-media::after { background-image: var(--img2); opacity:0; transform:scale(1.01); }

/* Only swap if has-alt */
.p-media.has-alt:hover::after{ opacity:1; }
.p-media.has-alt:hover::before{ opacity:0; }
.p-media:hover::before,
.p-media:hover::after{ transform:scale(1.04); }

/* Footer: force 4 columns in one row (desktop) */
.site-footer .footer-cols.footer-cols--4{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Keep links tidy */
.site-footer .footer-col .footer-link{
  display: block;
  padding: 6px 0;
}

/* Brand column spacing */
.site-footer .footer-credit{
  margin-top: 10px;
}

/* Responsive: stack to 2 cols then 1 col */
@media (max-width: 900px){
  .site-footer .footer-cols.footer-cols--4{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px){
  .site-footer .footer-cols.footer-cols--4{
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Pebble Island Announcement Bar
================================ */
.pi-announce{
  position: relative;
  z-index: 9999;
  width: 100%;
  background: #111;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.pi-announce__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .2px;
}

.pi-announce strong{
  font-weight: 700;
}

@media (min-width: 900px){
  .pi-announce__inner{
    padding: 11px 26px;
    font-size: 14px;
  }
}

.badge-offer{
  background:#111;
  color:#fff;
  font-size:12px;
}

.icon-btn svg{
  width:18px;
  height:18px;
  display:block;
}

/* Header layout helpers (won’t break desktop) */
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.desktop-nav{display:flex; gap:18px; align-items:center;}
.nav-link{font-weight:650; opacity:.9}
.nav-link:hover{opacity:1}

/* Burger button */
.burger{
  display:none;
  width:44px; height:44px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  background:#fff;
  align-items:center;
  justify-content:center;
  gap:5px;
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  background:#111;
  border-radius:2px;
}

/* Mobile menu dropdown */
.mobile-menu{
  border-top:1px solid rgba(0,0,0,.08);
  background:#fff;
}
.mobile-nav{
  display:grid;
  gap:6px;
  padding:12px 18px 16px;
}
.mobile-link{
  padding:12px 12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  font-weight:700;
  background:rgba(0,0,0,.02);
}
.mobile-link:hover{background:rgba(0,0,0,.04)}

/* Responsive switch */
@media (max-width: 860px){
  .desktop-nav{display:none;}
  .burger{display:inline-flex;}
}

/* =========================
   Account pages (clean UI)
   ========================= */
.account-wrap{max-width:1100px;margin:0 auto}
.account-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.account-title{margin:0}
.account-sub{margin:6px 0 0;color:var(--muted);max-width:820px}

.account-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.account-tab{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 14px;border:1px solid var(--line);border-radius:999px;
  background:rgba(0,0,0,.02);font-weight:800
}
.account-tab.is-active{background:#111;color:#fff;border-color:#111}

.card{background:#fff;border:1px solid var(--line);border-radius:16px}
.card-pad{padding:16px}
@media(min-width:900px){ .card-pad{padding:18px} }

.auth-shell{max-width:560px;margin:0 auto}
.auth-head{margin-bottom:10px}
.auth-head .muted{margin:6px 0 0}

.form-grid-2{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:760px){ .form-grid-2{grid-template-columns:1fr 1fr} }

.order-list{display:grid;gap:12px}
.order-row{
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:14px;border-radius:14px;border:1px solid var(--line);background:#fff
}
.order-left{min-width:240px}
.order-ref{font-weight:900}
.order-meta{margin-top:6px;color:var(--muted);font-size:13px;display:flex;gap:10px;flex-wrap:wrap}
.order-meta b{color:var(--text)}
.order-total{font-weight:900;white-space:nowrap}

.status-pill{
  display:inline-flex;align-items:center;
  padding:6px 10px;border-radius:999px;
  border:1px solid var(--line);background:rgba(0,0,0,.03);
  font-size:12px;font-weight:900
}
.status-pill.is-paid{background:rgba(16,185,129,.12);border-color:rgba(16,185,129,.28)}
.status-pill.is-pending{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.28)}
.status-pill.is-dispatched{background:rgba(59,130,246,.12);border-color:rgba(59,130,246,.28)}

.order-items{margin-top:10px;border-top:1px solid var(--line);padding-top:10px}
.order-item{display:flex;justify-content:space-between;gap:12px;padding:7px 0}
.order-item .muted{font-size:13px}

details.order-details summary{
  cursor:pointer;user-select:none;
  margin-top:10px;font-weight:900;
  display:inline-flex;align-items:center;gap:8px
}
details.order-details summary::-webkit-details-marker{display:none}
details.order-details summary:before{
  content:"▸";display:inline-block;transform:translateY(-1px)
}
details.order-details[open] summary:before{content:"▾"}

.account-actions{display:flex;gap:10px;flex-wrap:wrap}