/* Styles for database-driven states (sale, sold out, loading). Shared by the public pages. */
.fcard .status-tag{position:absolute; top:12px; right:12px; font-size:0.68rem; font-weight:700; padding:5px 10px; border-radius:999px; z-index:2;}
.fcard .status-tag.soon{background:rgba(1,52,78,0.85); color:var(--gold);}
.was-price{color:var(--navy-soft); font-size:0.82em; font-weight:500; margin-right:2px;}
.sale-price{color:var(--coral-deep);}
.fcard .status-tag.sold, .card .status-tag.sold{background:rgba(1,52,78,0.78); color:#fff;}
.fcard .status-tag.sale, .card .sale-tag{background:var(--coral); color:#fff;}
.fcard.is-sold .photo img, .fcard.is-sold .icon-photo svg{filter:grayscale(0.85); opacity:0.7;}
.fcard.is-sold .price{color:var(--navy-soft);}
.card .sale-tag{
  position:absolute; top:12px; right:12px; font-size:0.72rem; padding:5px 10px; border-radius:999px;
  font-weight:700; letter-spacing:0.03em;
}
.card .status.sold{color:var(--navy-soft);}
.card .status.sold::before{background:var(--navy-soft);}
.cms-loading{color:var(--navy-soft); padding:40px 0; font-size:0.92rem;}
.cms-error{color:var(--coral-deep); padding:40px 0; font-size:0.92rem;}
.card .price .unit{font-size:0.72rem; color:var(--navy-soft); font-family:"Inter",sans-serif; font-weight:500;}
.lightbox-info .price .unit{font-size:0.62em; color:var(--navy-soft); font-family:"Inter",sans-serif; font-weight:500;}

/* ---------- Delivery days (one field: data-edit="delivery.days") ----------
   Shown on the homepage strip, the About page and the My List drawer.
   Text wraps freely so a longer sentence never breaks the layout on phones. */
.delivery-strip{display:block; background:var(--navy); color:#fff; position:relative; z-index:5; text-decoration:none;}
.delivery-strip .delivery-inner{display:flex; align-items:center; gap:10px; padding-top:11px; padding-bottom:11px; font-size:0.92rem; line-height:1.45;}
.delivery-strip svg{width:20px; height:20px; flex-shrink:0; color:var(--gold);}
.delivery-strip .delivery-label{color:var(--gold); font-weight:700; margin-right:4px;}
.delivery-strip:hover .ticker-link, .delivery-strip:focus-visible .ticker-link{color:#fff;}
.delivery-strip:focus-visible{outline:2px solid var(--gold); outline-offset:-2px;}

/* Scrolling text: one line, same height as before. js/cms.js copies the item and
   sets --ticker-duration so it moves at a steady pace whatever the length. */
.ticker{flex:1; min-width:0; overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
          mask-image:linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);}
.ticker-track{display:flex; width:max-content;}
.ticker-item{flex-shrink:0; margin:0; padding:0 0 0 14px; white-space:nowrap;}
.ticker-item::after{content:""; display:inline-block; width:64px;}
.ticker-run{display:none;}
.ticker-run.has-date{display:inline;}
.ticker-dot{color:var(--gold); opacity:.7; margin:0 12px;}
.ticker-link{color:var(--gold); font-weight:600; text-decoration:underline; text-underline-offset:2px;}
.ticker.is-ready .ticker-track{animation:ticker-scroll var(--ticker-duration, 30s) linear infinite;}
.delivery-strip:hover .ticker-track, .delivery-strip:focus-visible .ticker-track{animation-play-state:paused;}
@keyframes ticker-scroll{from{transform:translateX(0);} to{transform:translateX(-50%);}}
@media (prefers-reduced-motion: reduce){
  .ticker{-webkit-mask-image:none; mask-image:none;}
  .ticker.is-ready .ticker-track{animation:none;}
  .ticker-track{width:auto;}
  .ticker-item{white-space:normal; padding-left:0;}
  .ticker-item::after{display:none;}
  .ticker-item[aria-hidden]{display:none;}
}
@media (max-width: 860px){
  .delivery-strip .delivery-inner{padding:10px 16px; font-size:0.86rem;}
}

.delivery-callout{
  display:flex; gap:14px; align-items:flex-start; margin-top:28px;
  background:var(--navy); color:#fff; border-radius:16px; padding:18px 20px;
}
.delivery-callout svg{width:26px; height:26px; flex-shrink:0; color:var(--gold); margin-top:2px;}
.delivery-callout .delivery-copy{min-width:0; overflow-wrap:anywhere; line-height:1.5;}
.delivery-callout .delivery-label{display:block; color:var(--gold); font-size:0.75rem; letter-spacing:0.14em; text-transform:uppercase; font-weight:700; margin-bottom:4px;}
.delivery-callout [data-edit="delivery.days"]{font-family:'Petrona',serif; font-size:1.2rem; font-weight:600;}

.drawer-note.drawer-delivery{
  background:rgba(255,215,143,0.3); border:1px solid rgba(237,169,63,0.45); color:var(--navy);
  border-radius:10px; padding:8px 11px; overflow-wrap:anywhere;
}
.drawer-note.drawer-delivery strong{color:var(--navy);}

/* ---------- Page links on phones ----------
   Pages used to hide the nav links under 860px, leaving only "Message Us".
   Here the header becomes: logo + name + small button on one row, and the
   page links as a swipeable row of tabs underneath. (header-prefixed selectors
   so these win over each page's own nav rules.) */
html{scroll-padding-top:var(--header-h, 80px);} /* "Available Now" etc. don't land under the sticky header */
header nav.links a.is-current{color:var(--coral-deep);}
@media (max-width: 860px){
  header .nav{flex-wrap:wrap; padding:10px 16px 0; gap:0 12px;}
  header .brand{flex:1; min-width:0; gap:10px;}
  header .brand img{width:40px; height:40px; flex-shrink:0;}
  header .brand .word{font-size:0.95rem; line-height:1.2;}
  header .brand .word span{font-size:0.62rem; margin-top:1px;}
  header .nav > .btn{padding:8px 14px; font-size:0.8rem; flex-shrink:0;}

  header nav.links{
    display:flex; order:3; flex:0 0 calc(100% + 32px); margin:0 -16px; padding:10px 16px 12px; gap:6px;
    overflow-x:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; scrollbar-width:none;
  }
  /* Only when the tabs don't all fit (js/cms.js adds .scrolls): fade the right edge as a "swipe for more" hint */
  header nav.links.scrolls{
    -webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 28px), transparent);
            mask-image:linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  header nav.links::-webkit-scrollbar{display:none;}
  header nav.links a{
    flex:0 0 auto; padding:8px 12px; border-radius:999px; white-space:nowrap;
    background:var(--bg-card); border:1px solid var(--line); color:var(--navy); font-size:0.8rem; font-weight:600;
  }
  header nav.links.scrolls a:last-child{margin-right:20px;} /* last tab can scroll clear of the fade */
  header nav.links a.is-current{background:var(--navy); border-color:var(--navy); color:#fff;}
}

/* ---------- My List button vs Netlify's badge ----------
   js/cms.js sets --corner-offset to the badge's height (0 when there's no badge),
   so the button sits just above it instead of underneath. */
button.list-fab{bottom:max(26px, calc(var(--corner-offset, 0px) + 10px));}
@media (max-width: 860px){
  button.list-fab{bottom:max(18px, calc(var(--corner-offset, 0px) + 8px)); right:16px;}
}

/* ---------- "Message on Viber" in the My List drawer ---------- */
.drawer-actions .btn-viber{gap:10px; font-size:0.95rem; padding:13px 22px;}
.drawer-actions .btn-viber svg{width:20px; height:20px; flex-shrink:0;}
.viber-hint{font-size:0.74rem; color:var(--navy-soft); text-align:center; line-height:1.45; margin-top:2px;}
/* keep the drawer's last lines above the badge too */
div.drawer-foot{padding-bottom:calc(22px + var(--corner-offset, 0px));}

/* ---------- My List in two steps: items, then "Complete your order" ---------- */
.drawer-foot-list{padding-top:14px; padding-bottom:calc(14px + var(--corner-offset, 0px));}
div.drawer-foot.drawer-foot-list{padding-bottom:calc(14px + var(--corner-offset, 0px));}
.drawer-complete{width:100%; justify-content:center; font-size:0.98rem; padding:14px 22px;}
.drawer-complete .dc-count{font-weight:500; opacity:0.85;}
.drawer-checkout{display:none; flex:1; overflow-y:auto; border-top:none;}
.drawer.is-checkout .drawer-body, .drawer.is-checkout .drawer-foot-list{display:none;}
.drawer.is-checkout .drawer-checkout{display:block;}
.drawer-back{background:none; border:none; padding:0; margin-bottom:16px; color:var(--coral-deep); font:inherit; font-size:0.86rem; font-weight:600; cursor:pointer;}
.drawer-summary{list-style:none; margin:0 0 14px; padding:0 0 10px; border-bottom:1px solid var(--line);}
.drawer-summary li{display:flex; justify-content:space-between; gap:12px; font-size:0.86rem; color:var(--navy); padding:5px 0; line-height:1.4;}
.drawer-summary li small{color:var(--navy-soft); white-space:nowrap;}
.drawer-summary li b{font-weight:600; white-space:nowrap;}
.drawer-total-note{background:var(--bg); border:1px solid var(--line); border-left:3px solid var(--coral); border-radius:10px; padding:10px 12px; color:var(--navy); font-size:0.8rem;}

/* ---------- My List (shared on every page, built by js/cart.js) ---------- */
.list-fab{
  position:fixed; bottom:26px; right:26px; z-index:60; background:var(--navy); color:#fff; border-radius:999px;
  padding:15px 22px; display:flex; align-items:center; gap:10px; border:none; cursor:pointer;
  box-shadow:0 12px 30px -8px rgba(1,52,78,0.5); font-weight:600; font-size:0.9rem; transition:transform 0.2s;
}
.list-fab:hover{transform:translateY(-2px);}
.list-fab .count{background:var(--coral); border-radius:50%; width:22px; height:22px; display:flex; align-items:center; justify-content:center; font-size:0.75rem;}

.drawer-overlay{position:fixed; inset:0; background:rgba(1,32,48,0.5); z-index:70; opacity:0; pointer-events:none; transition:opacity 0.3s;}
.drawer-overlay.open{opacity:1; pointer-events:auto;}
.drawer{position:fixed; top:0; right:0; bottom:0; width:min(420px, 92vw); background:var(--bg); z-index:71; transform:translateX(100%); transition:transform 0.35s ease; display:flex; flex-direction:column; box-shadow:-20px 0 50px rgba(1,52,78,0.25);}
.drawer.open{transform:translateX(0);}
.drawer-head{padding:24px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between;}
.drawer-head h3{font-size:1.15rem; color:var(--navy);}
.drawer-head button{background:none; border:none; font-size:1.4rem; color:var(--navy-soft); cursor:pointer; line-height:1;}
.drawer-body{flex:1; overflow-y:auto; padding:20px 24px;}
.drawer-empty{text-align:center; padding:60px 20px; color:var(--navy-soft);}
.drawer-empty svg{width:44px; height:44px; color:var(--line); margin-bottom:14px;}
.drawer-item{display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); align-items:center;}
.drawer-item img{width:48px; height:48px; border-radius:10px; object-fit:cover; flex-shrink:0; background:var(--bg-card-alt);}
.drawer-item .di-icon{width:48px; height:48px; border-radius:10px; background:var(--bg-card-alt); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.drawer-item .di-icon svg{width:22px; height:22px; color:var(--navy);}
.drawer-item .di-info{flex:1;}
.drawer-item .di-type{font-size:0.68rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--coral-deep); font-weight:700;}
.drawer-item h5{font-size:0.88rem; color:var(--navy); font-weight:600; line-height:1.3;}
.drawer-item .di-meta{display:flex; justify-content:space-between; align-items:center; margin-top:6px;}
.drawer-item .di-price{font-size:0.85rem; color:var(--coral-deep); font-weight:600; font-family:'Petrona',serif;}
.drawer-item .di-price.poa{color:var(--navy-soft); font-size:0.76rem; font-family:'Inter',sans-serif;}
.drawer-item .di-remove{font-size:0.76rem; color:var(--navy-soft); text-decoration:underline; cursor:pointer; background:none; border:none;}
.drawer-foot{padding:22px 24px; border-top:1px solid var(--line); background:var(--bg-card);}
.subtotal-row{display:flex; justify-content:space-between; align-items:center; margin-bottom:6px;}
.subtotal-row span:first-child{color:var(--navy-soft); font-size:0.9rem;}
.subtotal-row strong{font-family:'Petrona',serif; font-size:1.3rem; color:var(--navy);}
.drawer-note{font-size:0.76rem; color:var(--navy-soft); margin-bottom:16px; line-height:1.5;}
.drawer-actions{display:flex; flex-direction:column; gap:10px;}
.drawer-actions .btn{width:100%; justify-content:center;}
.list-fab.has-items .count{animation:none;}
.drawer-item .di-qty{display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:999px; overflow:hidden; background:#fff;}
.drawer-item .di-qty button{width:30px; height:30px; border:none; background:var(--bg-card-alt); color:var(--navy); font-size:1rem; cursor:pointer;}
.drawer-item .di-qty button:disabled{opacity:0.35; cursor:default;}
.drawer-item .di-qty span{min-width:28px; text-align:center; font-size:0.85rem; font-weight:600; color:var(--navy);}
.drawer-item .di-deal{font-size:0.75rem; color:#2f8a5c; font-weight:600; margin-top:6px;}
.drawer-item .di-deal.hint{color:var(--coral-deep);}
.drawer-item .di-gone{font-size:0.78rem; color:var(--navy-soft); margin-top:4px;}
.drawer-item.is-gone{opacity:0.6;}
.drawer-note.drawer-saving{color:#2f8a5c; font-weight:600; font-size:0.8rem;}

/* ---------- Multi-buy deal + sale-ends badges (cards, pop-ups, homepage) ---------- */
.deal-tag{
  display:inline-flex; align-items:center; gap:5px; background:#2f8a5c; color:#fff; font-size:0.72rem; font-weight:700;
  padding:4px 10px; border-radius:999px; letter-spacing:0.02em; white-space:nowrap;
}
.photo .deal-tag, .icon-photo .deal-tag{position:absolute; left:12px; bottom:12px; z-index:2;}
.deal-line{font-size:0.8rem; color:#2f8a5c; font-weight:600; margin-top:4px;}
.sale-ends{font-size:0.74rem; color:var(--coral-deep); font-weight:600; margin-top:3px;}

/* ---------- Stars ---------- */
.stars{display:inline-flex; gap:1px; color:rgba(1,52,78,0.18); letter-spacing:0;}
.stars .on{color:#eda93f;}
.card-rating{display:flex; align-items:center; gap:6px; font-size:0.76rem; color:var(--navy-soft); margin-top:6px;}
@media (max-width: 860px){ .list-fab{padding:13px 18px; font-size:0.85rem;} }

/* ---------- Reviews (js/reviews.js) ---------- */
.reviews-section .section-head{align-items:flex-end;}
.reviews-summary{margin-top:10px; font-size:0.92rem; color:var(--navy-soft); display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
.reviews-summary .stars{font-size:1.15rem;}
.reviews-summary strong{color:var(--navy); font-size:1.05rem;}
.reviews-head-side{display:flex; flex-direction:column; align-items:flex-start; gap:12px; max-width:380px;}
.reviews-head-side p{margin:0;}
.reviews-grid{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px;}
.reviews-grid .review-wrap.is-more{display:none;}
.reviews-grid.show-all .review-wrap.is-more{display:block;}
.reviews-grid .reviews-more{grid-column:1 / -1; justify-self:center;}
.reviews-grid .reviews-empty, .reviews-grid .cms-loading{grid-column:1 / -1;}
.review{background:var(--bg-card); border:1px solid var(--line); border-radius:16px; padding:18px 18px 16px; height:100%;}
.reviews-grid .review-wrap{min-width:0;}
.review-top{display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap;}
.review-top .stars{font-size:1.05rem;}
.review .verified{font-size:0.7rem; font-weight:700; color:#2f8a5c; background:rgba(47,138,92,0.1); padding:3px 9px; border-radius:999px; white-space:nowrap;}
.review-text{margin:10px 0 0; color:var(--navy); font-size:0.9rem; line-height:1.55; overflow-wrap:anywhere; white-space:pre-line;}
.review-by{margin-top:10px; font-size:0.78rem; color:var(--navy-soft);}
.review-by strong{color:var(--navy);}
.review-item{color:var(--coral-deep); font-weight:600;}
.reviews-empty{color:var(--navy-soft); font-size:0.9rem;}
@media (max-width: 860px){
  .reviews-grid{grid-template-columns:1fr;}
  .reviews-head-side{max-width:none;}
}

/* reviews inside item pop-ups */
.lb-reviews{margin-top:22px; padding-top:16px; border-top:1px solid var(--line);}
.lb-reviews:empty{display:none;}
.lb-reviews-head{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:10px;}
.lb-reviews-head h4{font-family:'Petrona',serif; font-size:1.05rem; color:var(--navy); display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0;}
.lb-reviews-avg{font-family:'Inter',sans-serif; font-size:0.8rem; color:var(--navy-soft); font-weight:500; display:inline-flex; align-items:center; gap:5px;}
.lb-reviews .review{padding:12px 14px; margin-bottom:10px; height:auto;}
.review-write-link{background:none; border:1.5px solid rgba(255,101,75,0.45); color:var(--coral-deep); font-weight:600; font-size:0.8rem; padding:6px 12px; border-radius:999px; cursor:pointer;}
.review-write-link:hover{background:var(--coral); color:#fff; border-color:var(--coral);}

/* "Write a review" form */
.review-modal-overlay{position:fixed; inset:0; background:rgba(1,20,30,0.7); z-index:120; display:none; align-items:flex-start; justify-content:center; padding:5vh 14px; overflow-y:auto;}
.review-modal-overlay.open{display:flex;}
.review-modal{background:var(--bg); border-radius:20px; width:100%; max-width:460px; padding:26px 22px 24px; position:relative;}
.review-modal h3{font-family:'Petrona',serif; font-size:1.35rem; color:var(--navy); margin:0;}
.review-modal-note{font-size:0.85rem; color:var(--navy-soft); margin:6px 0 16px;}
.review-close{position:absolute; top:12px; right:14px; background:none; border:none; font-size:1.6rem; color:var(--navy-soft); cursor:pointer; line-height:1;}
.star-input{border:none; padding:0; margin:0 0 14px; display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:4px;}
.star-input legend{font-size:0.8rem; font-weight:600; color:var(--navy-soft); margin-bottom:4px; width:100%;}
.star-input input{position:absolute; opacity:0; width:1px; height:1px;}
.star-input label{font-size:2.1rem; line-height:1; color:rgba(1,52,78,0.2); cursor:pointer; padding:0 2px;}
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label{color:#eda93f;}
.star-input input:focus-visible + label{outline:2px solid var(--navy); outline-offset:2px; border-radius:4px;}
.rv-field{display:block; font-size:0.8rem; font-weight:600; color:var(--navy-soft); margin-bottom:12px;}
.rv-field span{font-weight:400;}
.rv-field input, .rv-field select, .rv-field textarea{
  display:block; width:100%; margin-top:5px; font:inherit; font-size:1rem; font-weight:400; color:var(--navy);
  background:#fff; border:1.5px solid var(--line); border-radius:10px; padding:10px 12px;
}
.rv-field input:focus, .rv-field select:focus, .rv-field textarea:focus{outline:none; border-color:var(--navy);}
.rv-hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}
.rv-msg{font-size:0.85rem; min-height:1.2em; margin:4px 0 12px;}
.rv-msg.ok{color:#2f8a5c;} .rv-msg.err{color:var(--coral-deep);}
#reviewSubmit{width:100%; justify-content:center;}

/* ---------- Site search (js/search.js) ---------- */
.search-btn{
  display:inline-flex; align-items:center; gap:7px; background:var(--bg-card); color:var(--navy);
  border:1px solid var(--line); border-radius:999px; padding:9px 15px; font:inherit; font-size:0.88rem; font-weight:600; cursor:pointer;
}
.search-btn:hover{border-color:var(--coral-deep); color:var(--coral-deep);}
.search-btn svg{width:17px; height:17px;}
header .nav > .search-btn{margin-left:auto; margin-right:12px;}
header nav.links + .search-btn{margin-left:18px;}
.search-overlay{position:fixed; inset:0; z-index:110; background:rgba(1,20,30,0.55); display:none; padding:12px; overflow-y:auto;}
.search-overlay.open{display:block;}
html.search-open{overflow:hidden;}
.search-panel{max-width:640px; margin:6vh auto 0; background:var(--bg); border-radius:18px; box-shadow:0 30px 70px -20px rgba(1,20,30,0.5); overflow:hidden;}
.search-bar{display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid var(--line); background:var(--bg-card);}
.search-bar svg{width:20px; height:20px; color:var(--navy-soft); flex-shrink:0;}
.search-bar input{flex:1; min-width:0; border:none; outline:none; background:transparent; font:inherit; font-size:1.05rem; color:var(--navy); padding:6px 0;}
.search-bar input::-webkit-search-cancel-button{display:none;}
.search-close{background:none; border:none; font-size:1.6rem; line-height:1; color:var(--navy-soft); cursor:pointer; padding:0 4px;}
.search-results{max-height:min(70vh, 560px); overflow-y:auto; padding:6px 8px 10px;}
.search-hint{padding:18px 12px; color:var(--navy-soft); font-size:0.9rem;}
.search-hint a{color:var(--coral-deep); font-weight:600;}
.search-group{font-size:0.7rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--coral-deep); font-weight:700; padding:12px 10px 6px;}
.search-item{display:flex; align-items:center; gap:12px; padding:9px 10px; border-radius:12px; color:var(--navy); text-decoration:none;}
.search-item:hover, .search-item:focus{background:var(--bg-card-alt); outline:none;}
.si-thumb{width:46px; height:46px; border-radius:10px; overflow:hidden; background:var(--bg-card-alt); flex-shrink:0; display:flex; align-items:center; justify-content:center;}
.si-thumb img{width:100%; height:100%; object-fit:cover;}
.si-thumb svg{width:18px; height:18px; color:var(--navy-soft);}
.si-text{flex:1; min-width:0; display:flex; flex-direction:column;}
.si-text strong{font-size:0.92rem; font-weight:600; line-height:1.3; overflow-wrap:anywhere;}
.si-text small{font-size:0.74rem; color:var(--navy-soft); margin-top:2px;}
.si-price{font-family:'Petrona',serif; font-weight:600; color:var(--coral-deep); font-size:0.95rem; white-space:nowrap;}
.si-arrow{color:var(--coral-deep); font-weight:700;}
.search-item.is-page{padding:11px 10px;}
@media (max-width: 860px){
  header .nav > .search-btn{display:none;}           /* phones: search is the first page tab instead */
  .search-overlay{padding:0;}
  .search-panel{margin:0; border-radius:0; min-height:100%;}
  .search-results{max-height:none;}
}
/* search tab: only in the phone page-tab row */
header nav.links .search-tab{display:none;}
@media (max-width: 860px){
  header nav.links .search-tab{
    display:inline-flex; align-items:center; gap:6px; flex:0 0 auto; padding:8px 12px; border-radius:999px; cursor:pointer;
    background:var(--coral); border:1px solid var(--coral); color:#fff; font:inherit; font-size:0.8rem; font-weight:600;
  }
  header nav.links .search-tab svg{width:15px; height:15px;}
}

/* ---------- Product pop-up for homepage cards (js/product-popup.js) ----------
   Same look as the Live Fish pop-up on aquariums.html */
html.pp-open{overflow:hidden;}
.pp-overlay{position:fixed; inset:0; background:rgba(1,20,30,0.88); z-index:80; display:none; align-items:center; justify-content:center; padding:20px;}
.pp-overlay.open{display:flex;}
.pp-box{background:var(--bg); border-radius:20px; max-width:920px; width:100%; max-height:88vh; overflow-y:auto; overflow-x:hidden; display:grid; grid-template-columns:1.1fr 0.9fr; position:relative;}
.pp-close{position:absolute; top:18px; right:18px; background:rgba(255,255,255,0.9); border:none; width:36px; height:36px; border-radius:50%; font-size:1.2rem; cursor:pointer; color:var(--navy); z-index:2;}
.pp-photo{background:var(--bg-card-alt); position:relative; min-height:280px;}
.pp-photo img#ppImage{width:100%; height:100%; object-fit:cover; max-height:88vh; display:block; cursor:zoom-in;}
.pp-photo.no-photo img#ppImage, .pp-photo.no-photo .pp-expand{display:none;}
.pp-expand{position:absolute; top:12px; left:12px; background:rgba(1,52,78,0.7); color:#fff; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.95rem; pointer-events:none;}
.pp-nav{position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.85); border:none; width:38px; height:38px; border-radius:50%; font-size:1.1rem; cursor:pointer; color:var(--navy); display:flex; align-items:center; justify-content:center; z-index:3;}
.pp-prev{left:12px;} .pp-next{right:12px;}
.pp-thumb{width:44px; height:44px; border-radius:8px; overflow:hidden; cursor:pointer; border:2px solid rgba(255,255,255,0.5); padding:0; background:none; flex-shrink:0;}
.pp-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.pp-thumb.active{border-color:var(--gold);}
.pp-info{padding:32px; display:flex; flex-direction:column; min-width:0;}
.pp-tag{font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--coral-deep); font-weight:700;}
.pp-info h2{font-size:1.4rem; color:var(--navy); margin-top:8px; font-family:'Petrona',serif; font-weight:600; padding-right:30px; overflow-wrap:anywhere;}
.pp-price{color:var(--coral-deep); font-family:'Petrona',serif; font-size:1.3rem; margin-top:8px; font-weight:600;}
.pp-price.poa{color:var(--navy-soft); font-size:1rem; font-family:'Inter',sans-serif;}
.pp-price .unit{font-size:0.62em; color:var(--navy-soft); font-family:'Inter',sans-serif; font-weight:500;}
.pp-desc{color:var(--navy-soft); font-size:0.92rem; line-height:1.7; margin-top:12px;}
.pp-desc p{margin:6px 0 0;}
.pp-desc ul{margin:10px 0 0 18px;}
.pp-desc li{margin-bottom:6px;}
.pp-actions{padding-top:22px; display:flex; align-items:center; gap:14px; flex-wrap:wrap;}
.pp-actions .pp-wide{width:100%; justify-content:center;}
.pp-qty{display:flex; align-items:center; border:1px solid var(--line); border-radius:999px; overflow:hidden;}
.pp-qty button{width:32px; height:32px; background:var(--bg-card-alt); border:none; color:var(--navy); font-size:1rem; cursor:pointer;}
.pp-qty span{width:30px; text-align:center; font-size:0.9rem; font-weight:600; color:var(--navy);}
.pp-one{font-size:0.8rem; color:var(--navy-soft);}
.pp-see-other{
  display:inline-flex; align-items:center; gap:6px; align-self:flex-start; margin-top:18px;
  color:var(--coral-deep); font-weight:700; font-size:0.92rem; text-decoration:none;
  border-bottom:2px solid rgba(255,101,75,0.35); padding-bottom:2px;
}
.pp-see-other:hover{border-bottom-color:var(--coral-deep);}
.pp-fs{position:fixed; inset:0; background:rgba(0,0,0,0.96); z-index:200; display:none; align-items:center; justify-content:center; touch-action:pan-y;}
.pp-fs.open{display:flex;}
.pp-fs img{max-width:92vw; max-height:88vh; object-fit:contain; user-select:none; -webkit-user-drag:none;}
.pp-fs-close{position:absolute; top:18px; right:18px; background:rgba(255,255,255,0.15); border:none; color:#fff; width:42px; height:42px; border-radius:50%; font-size:1.4rem; cursor:pointer; z-index:2;}
.pp-fs-nav{position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.15); border:none; color:#fff; width:48px; height:48px; border-radius:50%; font-size:1.5rem; cursor:pointer; z-index:2;}
.pp-fs-prev{left:16px;} .pp-fs-next{right:16px;}
.pp-fs-counter{position:absolute; bottom:20px; left:0; right:0; text-align:center; color:rgba(255,255,255,0.75); font-size:0.85rem;}
@media (max-width: 700px){
  .pp-overlay{padding:12px;}
  .pp-box{grid-template-columns:1fr; max-height:92vh;}
  .pp-photo{min-height:200px;}
  .pp-photo img#ppImage{max-height:44vh;}
  .pp-info{padding:22px 20px 24px;}
}

/* homepage "Available this week" cards open the pop-up */
#featuredCards .card{cursor:pointer;}
#featuredCards .card:focus-visible{outline:3px solid var(--coral); outline-offset:3px;}
.review-write-link.sold-review{margin-top:10px; align-self:flex-start;}

/* ---------- Reviews page (reviews.html) + review links ---------- */
.reviews-summary-lg{margin-top:18px; font-size:1rem;}
.reviews-summary-lg .stars{font-size:1.4rem;}
.reviews-page{padding-top:10px;}
.reviews-toolbar{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:22px;}
.filter-chips{display:flex; gap:8px; flex-wrap:wrap;}
.chip-btn{background:var(--bg-card); border:1.5px solid var(--line); color:var(--navy); border-radius:999px; padding:8px 14px; font:inherit; font-size:0.85rem; font-weight:600; cursor:pointer;}
.chip-btn:hover{border-color:var(--coral-deep);}
.chip-btn.active{background:var(--navy); border-color:var(--navy); color:#fff;}
a.review-item{color:var(--coral-deep); font-weight:600; text-decoration:none;}
a.review-item:hover{text-decoration:underline;}
.review-see-all{display:inline-block; margin-top:4px; color:var(--coral-deep); font-weight:700; font-size:0.85rem;}
a.reviews-more{text-decoration:none;}
.review-invite{background:linear-gradient(135deg, #fff, #fff3dd); border:2px solid rgba(255,101,75,0.4); border-radius:16px; padding:16px 18px; margin-bottom:22px; color:var(--navy); font-size:0.95rem;}
.review-invite[hidden]{display:none;}
.invite-items{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px;}
.invite-item{display:flex; align-items:center; gap:10px; background:#fff; border:1.5px solid var(--line); border-radius:12px; padding:8px 12px 8px 8px; cursor:pointer; font:inherit; color:var(--navy); text-align:left; max-width:100%;}
.invite-item:hover{border-color:var(--coral-deep);}
.invite-item img{width:40px; height:40px; border-radius:8px; object-fit:cover; flex-shrink:0;}
.invite-item span{display:flex; flex-direction:column; font-weight:600; font-size:0.88rem; min-width:0; overflow-wrap:anywhere;}
.invite-item small{font-weight:500; color:var(--navy-soft); font-size:0.74rem;}
.invite-item.done{border-color:#2f8a5c; background:rgba(47,138,92,0.06);}
.invite-item.done small{color:#2f8a5c;}
.rv-item-pick{display:flex; align-items:center; gap:10px; background:var(--bg-card); border:1px solid var(--line); border-radius:12px; padding:8px 10px; margin-bottom:14px; font-size:0.9rem; color:var(--navy);}
.rv-item-pick[hidden]{display:none;}
.rv-item-pick img{width:44px; height:44px; border-radius:8px; object-fit:cover; flex-shrink:0;}
.rv-item-pick small{color:var(--navy-soft);}
#reviewNext{width:100%; justify-content:center; margin-top:8px;}
#reviewSubmit[hidden], #reviewNext[hidden]{display:none;}
@media (max-width: 860px){
  .reviews-toolbar{align-items:stretch;}
  .reviews-toolbar .btn{justify-content:center;}
  .filter-chips{flex-wrap:nowrap; overflow-x:auto; margin:0 -16px; padding:2px 16px; scrollbar-width:none;}
  .filter-chips::-webkit-scrollbar{display:none;}
  .chip-btn{flex:0 0 auto;}
}

/* Mid-size screens (small laptops / tablets landscape): keep the menu on one line */
@media (min-width: 861px) and (max-width: 1180px){
  header .nav{padding-left:20px; padding-right:20px;}
  header nav.links{gap:16px;}
  header nav.links a{font-size:0.85rem;}
  header .nav > .search-btn{padding:9px 11px;}
  header .nav > .search-btn span{display:none;}
  header nav.links + .search-btn{margin-left:12px;}
  header .brand .word{font-size:1rem;}
}
@media (min-width: 861px) and (max-width: 940px){
  header nav.links{gap:11px;}
  header nav.links a{font-size:0.8rem;}
  header .nav > .btn{padding:9px 14px; font-size:0.82rem;}
}

/* Terms notice above "Message on Viber" in My List */
.drawer-terms{font-size:0.78rem; color:var(--navy); line-height:1.5; margin:0 0 12px; padding:9px 11px; border-radius:10px; background:var(--bg-card-alt); border:1px solid var(--line); overflow-wrap:anywhere;}
.drawer-terms a{color:var(--coral-deep); font-weight:700; text-decoration:underline; text-underline-offset:2px;}

/* Catalogue filter tabs: one swipeable row on phones instead of stacking */
@media (max-width: 860px){
  .filter-bar .filter-tabs{flex-wrap:nowrap; overflow-x:auto; margin:0 -28px; padding:2px 28px; scrollbar-width:none; -webkit-overflow-scrolling:touch;}
  .filter-bar .filter-tabs::-webkit-scrollbar{display:none;}
  .filter-bar .filter-tab{flex:0 0 auto; white-space:nowrap;}
}

/* ---------- "Waiting for more" (js/interest.js) ---------- */
.no-waiting .waiting{display:none;}
.waiting:empty{display:none;}
.waiting{margin-top:12px; display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
.wait-btn{
  display:inline-flex; align-items:center; gap:7px; cursor:pointer; font:inherit; font-size:0.8rem; font-weight:700;
  color:var(--navy); background:rgba(255,215,143,0.35); border:1.5px solid rgba(237,169,63,0.6);
  border-radius:999px; padding:7px 12px; line-height:1.2; transition:background 0.2s, border-color 0.2s, transform 0.15s;
}
.wait-btn:hover{background:rgba(255,215,143,0.6);}
.wait-btn:active{transform:scale(0.97);}
.wait-btn.on{background:#2f8a5c; border-color:#2f8a5c; color:#fff;}
.wait-btn small{font-weight:500; opacity:0.85;}
.wait-count{background:var(--coral); color:#fff; border-radius:999px; min-width:22px; height:22px; padding:0 6px; display:inline-flex; align-items:center; justify-content:center; font-size:0.75rem;}
.wait-btn.on .wait-count{background:rgba(255,255,255,0.25);}
.wait-hint{font-size:0.75rem; color:var(--coral-deep); font-weight:600;}
/* pop-up version */
.waiting[data-variant="full"]{flex-direction:column; align-items:stretch; gap:8px; margin-top:18px; padding:12px 14px; border-radius:14px; background:linear-gradient(135deg, #fff, #fff3dd); border:1.5px solid rgba(237,169,63,0.5);}
.waiting[data-variant="full"] .wait-line{margin:0; font-size:0.9rem; color:var(--navy); line-height:1.45;}
.waiting[data-variant="full"] .wait-line strong{color:var(--coral-deep);}
.waiting[data-variant="full"] .wait-btn{justify-content:center; font-size:0.9rem; padding:10px 14px;}

/* "How it works" step cards (About, Postage & Delivery): one per row on small phones */
@media (max-width: 560px){
  .step-grid{grid-template-columns:1fr !important; gap:14px !important;}
}

/* Menu has up to 7 links (homepage): tighten spacing per width so it stays on one line */
@media (min-width: 1181px){
  header nav.links{gap:22px;}
  header nav.links a{font-size:0.9rem;}
}
@media (min-width: 941px) and (max-width: 1080px){
  header nav.links{gap:11px;}
  header nav.links a{font-size:0.82rem;}
}
@media (min-width: 861px) and (max-width: 940px){
  header nav.links{gap:8px;}
  header nav.links a{font-size:0.77rem;}
  header .brand .word{font-size:0.92rem;}
  header .nav > .btn{padding:8px 12px; font-size:0.78rem;}
}

/* FAQ / Terms accordion (<details class="tc-item">) — shared so Contact, Terms and Postage & Delivery all match */
.tc-item{border-bottom:1px solid var(--line);}
.tc-item summary{
  list-style:none; cursor:pointer; padding:22px 4px; display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.tc-item summary::-webkit-details-marker{display:none;}
.tc-item summary .s-left{display:flex; align-items:baseline; gap:16px;}
.tc-item summary .s-num{font-family:'Petrona',serif; font-weight:700; color:var(--coral-deep); font-size:0.95rem; min-width:26px;}
.tc-item summary h4{font-size:1rem; font-weight:600; color:var(--navy);}
.tc-item summary .chev{
  width:22px; height:22px; flex-shrink:0; color:var(--navy-soft); transition:transform 0.25s; border:1px solid var(--line); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.tc-item[open] summary .chev{transform:rotate(45deg); color:var(--coral-deep); border-color:var(--coral-deep);}
.tc-item .tc-body{padding:0 4px 26px 42px; color:var(--navy-soft); font-size:0.92rem; line-height:1.75;}
.tc-item .tc-body p{margin-bottom:12px;}
.tc-item .tc-body p:last-child{margin-bottom:0;}
.tc-item .tc-body ul{margin:10px 0 14px; padding-left:20px;}
.tc-item .tc-body li{margin-bottom:6px;}
.tc-item .tc-body strong{color:var(--navy);}
@media (max-width: 860px){
  .tc-item .tc-body{padding-left:20px;}
  .tc-item summary .s-left{gap:10px;}
}

/* ---------- Sale name ("Xmas Sale") beside the crossed-out price ---------- */
.sale-name{display:inline-block; vertical-align:middle; background:var(--coral); color:#fff; font-size:0.62em; font-weight:700;
  letter-spacing:0.04em; text-transform:uppercase; line-height:1.2; padding:3px 7px; border-radius:999px; margin-right:4px;
  white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis;}

/* ---------- TikTok video in item pop-ups (tap to load the player) ---------- */
.tt-video{display:flex; align-items:center; gap:12px; width:100%; margin:16px 0 4px; padding:10px; border:1.5px solid rgba(1,52,78,0.14);
  border-radius:14px; background:var(--bg-card, #fff); color:var(--navy); font:inherit; text-align:left; cursor:pointer; transition:border-color .2s, transform .2s;}
.tt-video:hover, .tt-video:focus-visible{border-color:var(--coral); transform:translateY(-1px);}
.tt-video:focus-visible{outline:2px solid var(--coral); outline-offset:2px;}
.tt-cover{flex-shrink:0; width:54px; height:72px; border-radius:9px; background:#111 center/cover no-repeat;}
.tt-video:not(.has-cover) .tt-cover{background:linear-gradient(135deg, #25f4ee 0%, #111 45%, #111 55%, #fe2c55 100%);}
.tt-play{position:absolute; left:22px; top:50%; transform:translateY(-50%); width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,0.92); color:#111;
  display:grid; place-items:center; box-shadow:0 2px 8px rgba(0,0,0,0.3);}
.tt-video{position:relative;}
.tt-play svg{width:16px; height:16px; margin-left:2px;}
.tt-text{display:flex; flex-direction:column; gap:2px; min-width:0;}
.tt-text strong{font-size:0.95rem;}
.tt-text small{font-size:0.78rem; color:var(--navy-soft);}
.tt-frame{margin:16px auto 4px; width:100%; max-width:325px; aspect-ratio:9 / 16; max-height:72vh; border-radius:14px; overflow:hidden; background:#000;}
.tt-frame iframe{display:block; width:100%; height:100%; border:0;}

/* ---------- Item pop-up (Aquariums + Dogs & Cats) and full-screen photo viewer ---------- */
.lightbox-overlay{position:fixed; inset:0; background:rgba(1,20,30,0.88); z-index:80; display:none; align-items:center; justify-content:center; padding:20px;}
.lightbox-overlay.open{display:flex;}
.lightbox-box{background:var(--bg); border-radius:20px; max-width:920px; width:100%; max-height:88vh; overflow-y:auto; display:grid; grid-template-columns:1.1fr 0.9fr; position:relative;}
.lightbox-photo{background:var(--bg-card-alt); position:relative;}
.lightbox-photo img{width:100%; height:100%; object-fit:cover; max-height:88vh;}
#lbImage{cursor:zoom-in;}
.lb-expand-hint{position:absolute; top:12px; right:12px; background:rgba(1,52,78,0.7); color:#fff; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.95rem; z-index:3; pointer-events:none;}
.lightbox-photo.icon-mode{display:flex; align-items:center; justify-content:center; min-height:280px;}
.lightbox-photo.icon-mode svg{width:90px; height:90px; color:var(--navy); stroke-width:1;}
.lb-nav-btn{position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.85); border:none; width:38px; height:38px; border-radius:50%; font-size:1.1rem; cursor:pointer; color:var(--navy); display:flex; align-items:center; justify-content:center; z-index:3;}
.lb-nav-prev{left:12px;} .lb-nav-next{right:12px;}
.lightbox-info{padding:32px; display:flex; flex-direction:column;}
.lightbox-info .species-tag{font-size:0.72rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--coral-deep); font-weight:700;}
.lightbox-info h2{font-size:1.4rem; color:var(--navy); margin-top:8px; font-family:'Petrona',serif; font-weight:600;}
.lightbox-info .price{color:var(--coral-deep); font-family:'Petrona',serif; font-size:1.3rem; margin-top:8px; font-weight:600;}
.lightbox-info .price.poa{color:var(--navy-soft); font-size:1rem; font-family:'Inter',sans-serif;}
.lightbox-info p.desc{color:var(--navy-soft); font-size:0.92rem; line-height:1.7; margin-top:16px;}
.lightbox-close{position:absolute; top:18px; right:18px; background:rgba(255,255,255,0.9); border:none; width:36px; height:36px; border-radius:50%; font-size:1.2rem; cursor:pointer; color:var(--navy); z-index:2;}
.lightbox-info .lb-actions{margin-top:auto; padding-top:22px; display:flex; align-items:center; gap:14px;}
.lightbox-info .lb-qty{display:flex; align-items:center; border:1px solid var(--line); border-radius:999px; overflow:hidden;}
.lightbox-info .lb-qty button{width:32px; height:32px; background:var(--bg-card-alt); border:none; color:var(--navy); font-size:1rem; cursor:pointer;}
.lightbox-info .lb-qty span{width:30px; text-align:center; font-size:0.9rem; font-weight:600;}

.fs-overlay{position:fixed; inset:0; background:rgba(0,0,0,0.96); z-index:200; display:none; align-items:center; justify-content:center; touch-action:pan-y;}
.fs-overlay.open{display:flex;}
.fs-overlay img{max-width:92vw; max-height:88vh; object-fit:contain; user-select:none; -webkit-user-drag:none;}
.fs-close{position:absolute; top:18px; right:18px; background:rgba(255,255,255,0.15); border:none; color:#fff; width:42px; height:42px; border-radius:50%; font-size:1.4rem; cursor:pointer; z-index:2; display:flex; align-items:center; justify-content:center;}
.fs-nav-btn{position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.15); border:none; color:#fff; width:48px; height:48px; border-radius:50%; font-size:1.5rem; cursor:pointer; z-index:2; display:flex; align-items:center; justify-content:center;}
.fs-nav-prev{left:16px;} .fs-nav-next{right:16px;}
.fs-counter{position:absolute; bottom:20px; left:0; right:0; text-align:center; color:rgba(255,255,255,0.75); font-size:0.85rem; letter-spacing:0.05em;}
.lightbox-box{overflow-x:hidden;}
.lb-details{margin:12px 0 0 18px; color:var(--navy-soft); font-size:0.9rem; line-height:1.6;}
.lb-details:empty{display:none;}
.lb-details li{margin-bottom:6px;}
@media (max-width: 700px){
  .lightbox-box{grid-template-columns:1fr;}
  .lightbox-photo img{max-height:44vh;}
}
@media (max-width: 640px){
  .fs-nav-btn{width:40px; height:40px; font-size:1.3rem;}
}

/* Photo thumbnails along the bottom of a pop-up photo. Lots of photos scroll
   sideways inside the strip instead of pushing the pop-up wider. */
.lb-thumbs, .pp-thumbs{position:absolute; bottom:10px; left:10px; right:10px; display:flex; gap:8px; z-index:3;
  overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; -webkit-overflow-scrolling:touch; padding:2px;}
.lb-thumbs::-webkit-scrollbar, .pp-thumbs::-webkit-scrollbar{display:none;}
.lb-thumbs > :first-child, .pp-thumbs > :first-child{margin-left:auto;}   /* centred when they fit */
.lb-thumbs > :last-child, .pp-thumbs > :last-child{margin-right:auto;}
.lb-thumb{width:44px; height:44px; border-radius:8px; overflow:hidden; cursor:pointer; border:2px solid rgba(255,255,255,0.5); transition:border-color 0.2s; flex-shrink:0;}
.lb-thumb img{width:100%; height:100%; object-fit:cover;}
.lb-thumb.active{border-color:var(--gold);}

/* Next combined delivery run in "Complete your order" (only when a date is set in the admin) */
.drawer-run{display:none; background:var(--navy); color:#fff; border-radius:12px; padding:12px 14px; margin-bottom:16px;}
.drawer-run.has-date{display:block;}
.drawer-run .dr-label{display:block; color:var(--gold); font-size:0.7rem; letter-spacing:0.12em; text-transform:uppercase; font-weight:700; margin-bottom:3px;}
.drawer-run strong{display:block; font-family:'Petrona',serif; font-size:1.05rem; line-height:1.35;}
.drawer-run p{margin:6px 0 0; font-size:0.8rem; line-height:1.45; color:rgba(255,255,255,0.85);}

/* Full-screen controls: solid dark circles so they stay visible over white photos */
.fs-close, .fs-nav-btn, .pp-fs-close, .pp-fs-nav{
  background:rgba(1,20,30,0.78); border:1.5px solid rgba(255,255,255,0.75);
  box-shadow:0 2px 10px rgba(0,0,0,0.35);
}
.fs-close:hover, .fs-nav-btn:hover, .pp-fs-close:hover, .pp-fs-nav:hover{background:rgba(1,20,30,0.92);}
