/* Garden Route Fishing — shop, cart, checkout, My orders and admin shop pages.
   Loaded only on those pages (header.php $extraCss). */
/* ── Store v2: categories, options, cart, checkout ───────────────────── */
.shop-layout { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); }
.shop-layout > * { min-width: 0; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 230px minmax(0, 1fr); align-items: start; } .shop-side { position: sticky; top: 84px; } }
.shop-tree-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .6rem; }
.shop-tree-box h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .3rem .5rem .5rem; }
@media (max-width: 899px) {
  .shop-tree-box { background: none; border: 0; padding: 0; margin: 0 -1rem; }
  .shop-tree-box h2 { display: none; }
  .shop-tree { display: flex; gap: .4rem; overflow-x: auto; padding: 0 1rem .4rem !important; scrollbar-width: none; }
  .shop-tree li { flex: none; }
  .shop-tree a, .shop-tree .d1 a, .shop-tree .d2 a { padding: .45rem .85rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-weight: 700; font-size: .88rem; }
  .shop-tree li.sub { display: none; }
}
.shop-tree { list-style: none; margin: 0; padding: 0 0 .3rem; }
.shop-tree a { display: flex; justify-content: space-between; gap: .5rem; padding: .38rem .5rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.shop-tree a span { color: var(--muted); font-size: .8rem; }
.shop-tree a:hover { background: var(--soft); }
.shop-tree a[aria-current] { background: var(--blue-dark); color: #fff; font-weight: 700; }
.shop-tree a[aria-current] span { color: rgba(255,255,255,.8); }
.shop-tree .d1 a { padding-left: 1.3rem; } .shop-tree .d2 a { padding-left: 2.1rem; font-size: .88rem; }
.shop-cat-title { margin: .2rem 0 .4rem; }
.shop-cat-desc { margin: 0 0 1rem; max-width: 70ch; color: var(--muted); }
.shop-subcats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.shop-chip { display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .9rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; }
.shop-chip span { color: var(--muted); font-weight: 600; font-size: .8rem; }
.shop-chip:hover { border-color: var(--teal); color: var(--teal); }
.shop-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .6rem; }
.shop-toolbar input[type=search] { flex: 1 1 220px; min-width: 0; }
.shop-toolbar select { flex: 0 1 auto; width: auto; }
@media (max-width: 560px) { .shop-toolbar input[type=search] { flex-basis: 100%; } .shop-toolbar select { flex: 1 1 40%; min-width: 0; } .shop-toolbar .btn { margin-left: auto; } }
.shop-toolbar input[type=search], .shop-toolbar select { margin: 0; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: .92rem; color: var(--ink); }
.shop-toolbar input[type=search]:focus, .shop-toolbar select:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.shop-toolbar .tick { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; white-space: nowrap; margin: 0; }
.shop-toolbar .tick input { width: auto; display: inline; margin: 0; }
.shop-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 520px) { .shop-grid { grid-template-columns: 1fr 1fr; gap: .7rem; } .shop-card .shop-img { height: 150px; } .shop-card h3 { font-size: .9rem; } }
.shop-card .shop-img { position: relative; background: #fff; }
.shop-card .shop-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .6rem; }
.shop-card .price small, .price.big small { font-size: .7em; font-weight: 600; color: var(--muted); }
.shop-cta { margin-top: auto; font-weight: 700; color: var(--teal); font-size: .9rem; }
.shop-card:hover .shop-cta { text-decoration: underline; }
.shop-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-swatches { display: flex; gap: .3rem; align-items: center; margin: .15rem 0 .1rem; }
.card-swatches .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.card-swatches .more { font-size: .75rem; color: var(--muted); }
.ribbon-out { background: #6b7a82; }
.shop-promises { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 2rem 0 0; }
.shop-promises div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.shop-promises strong { display: block; } .shop-promises span { color: var(--muted); font-size: .88rem; }

/* Product page */
.pg-main { display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.pg-main img { width: 100%; height: 100%; object-fit: contain; }
.pg-thumb { padding: 0; overflow: hidden; background: #fff; }
.pg-thumb img { width: 100%; height: 100%; object-fit: contain; }
.opt-group { border: 0; padding: 0; margin: 0 0 1rem; }
.opt-group legend { font-weight: 700; padding: 0; margin-bottom: .45rem; }
.opt-group legend strong { font-weight: 600; color: var(--muted); }
.opt-values { display: flex; flex-wrap: wrap; gap: .45rem; }
.opt-val { position: relative; margin: 0; cursor: pointer; font-weight: 600; }
.opt-val input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-val .tx { display: inline-block; min-width: 3rem; padding: .5rem .8rem; text-align: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.opt-val .sw { display: block; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); box-shadow: inset 0 0 0 3px #fff; outline: 2px solid transparent; outline-offset: 1px; }
.opt-val:hover .tx { border-color: var(--teal); }
.opt-val input:checked + .tx { border-color: var(--blue-dark); background: var(--blue-dark); color: #fff; }
.opt-val input:checked + .sw { outline-color: var(--blue-dark); }
.opt-val input:focus-visible + .tx, .opt-val input:focus-visible + .sw { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt-val.is-out .tx { color: #9aa7ad; background: linear-gradient(to top right, transparent calc(50% - 1px), #c9d3d7, transparent calc(50% + 1px)), #fafbfc; }
.opt-val.is-out .sw { opacity: .35; }
.buy-row { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; margin: .4rem 0 .3rem; }
.buy-row .btn { flex: 1 1 200px; }
.qty-step { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-step button { width: 2.4rem; border: 0; background: var(--soft); font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty-step input { width: 3.2rem; border: 0; text-align: center; margin: 0; -moz-appearance: textfield; font-weight: 700; }
.qty-step input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock-note { min-height: 1.4em; font-weight: 600; font-size: .9rem; margin: .2rem 0 1rem; }
.stock-note.in { color: #1d7a52; } .stock-note.out { color: #b3361f; }
.delivery-box { list-style: none; padding: 0; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.delivery-box li { padding: .65rem .9rem; border-bottom: 1px solid var(--line); }
.delivery-box li:last-child { border-bottom: 0; }
.delivery-box strong { display: block; font-size: .92rem; } .delivery-box span { color: var(--muted); font-size: .86rem; }
.related-products { margin: 2.4rem 0 1rem; }

/* Cart */
.cart-layout { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 360px; align-items: start; } .cart-layout .cart-summary { position: sticky; top: 84px; } }
.cart-layout .cart-summary { max-width: none; margin: 0; }
.cart-lines { list-style: none; margin: 0 0 1rem; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: .8rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .cart-thumb { width: 64px; height: 64px; flex: none; position: relative; display: block; }
.cart-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cl-info a { font-weight: 700; color: var(--ink); text-decoration: none; }
.cl-info small { display: block; }
.cl-qty input { width: 4rem; margin: 0; text-align: center; }
.cl-remove { border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: .3rem; }
.cl-remove:hover { color: #b3361f; }
@media (max-width: 560px) { .cart-line { grid-template-columns: 56px 1fr auto; } .cart-line .cl-total { grid-column: 2; } .cart-line .cl-qty { grid-row: 1; grid-column: 3; } .cart-line .cl-remove { grid-column: 3; justify-self: end; } }
.cart-empty { text-align: center; padding: 2rem; }
.free-bar p { margin: 0 0 .35rem; font-size: .9rem; }
.fb-track { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-bottom: .9rem; }
.fb-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #2fb38f); border-radius: 99px; }
.cs-discount strong { color: #1d7a52; }
.coupon-form { display: flex; gap: .4rem; margin: .8rem 0; }
.coupon-form input { margin: 0; flex: 1; min-width: 0; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; text-transform: uppercase; }
.coupon-form .btn { white-space: nowrap; }

/* Checkout */
.checkout-form h2 { font-size: 1.1rem; margin: .4rem 0 .7rem; }
.checkout-form h2:not(:first-of-type) { margin-top: 1.4rem; }
.ship-options { display: grid; gap: .5rem; margin: 0 0 1rem; }
.ship-opt { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0; font-weight: 400; }
.ship-opt input { width: auto; margin: 0; accent-color: var(--blue-dark); }
.ship-opt:has(input:checked) { border-color: var(--blue-dark); background: #f3f7f9; }
.so-body strong { display: block; } .so-body small { color: var(--muted); }
.so-price { font-weight: 800; }
.os-line { align-items: center; }
.os-thumb { position: relative; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.os-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.os-thumb b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--blue-dark); color: #fff; font-size: .7rem; display: grid; place-items: center; padding: 0 4px; }
.os-name { flex: 1; }
.thanks-summary { text-align: left; margin: 1rem auto; max-width: 420px; }

/* Admin shop */
.shop-admin-nav { display: flex; flex-wrap: wrap; gap: .3rem; margin: .6rem 0 1.2rem; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.shop-admin-nav a { padding: .5rem .85rem; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.shop-admin-nav a:hover { background: var(--soft); }
.shop-admin-nav a[aria-current] { background: var(--blue-dark); color: #fff; }
.shop-admin-nav .sa-view { margin-left: auto; color: var(--teal); }
.shop-admin-nav .nav-count { position: static; }
.sa-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin: 0 0 1rem; }
.sa-filters input, .sa-filters select { margin: 0; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .9rem; background: #fff; }
.sa-filters input[type=search] { min-width: 220px; flex: 1; }
.sa-thumb { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; vertical-align: middle; }
.stock-low { color: #b3361f; font-weight: 700; }
.sa-grid { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .sa-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.sa-section { margin: 0 0 1.2rem; }
.sa-section h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.sa-section .hint { color: var(--muted); font-size: .85rem; font-weight: 400; margin: -.4rem 0 .8rem; }
.sa-row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sa-checks label { display: flex; align-items: center; gap: .45rem; font-weight: 600; margin: 0 0 .5rem; }
.sa-checks input { width: auto !important; display: inline !important; margin: 0 !important; }
.opt-editor { border: 1px solid var(--line); border-radius: 10px; padding: .8rem; margin: 0 0 .8rem; }
.opt-editor table { width: 100%; border-collapse: collapse; }
.opt-editor td { padding: .2rem .25rem; vertical-align: middle; }
.opt-editor input[type=text] { width: 100%; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 7px; font: inherit; margin: 0; }
.opt-editor input[type=color] { width: 2.4rem; height: 2.1rem; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.opt-editor .swatch-on { display: flex; align-items: center; gap: .3rem; font-size: .8rem; white-space: nowrap; }
.variant-grid { width: 100%; }
.variant-grid input[type=text], .variant-grid input[type=number] { width: 100%; min-width: 4.5rem; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 7px; font: inherit; font-size: .9rem; margin: 0; }
.variant-grid td { padding: .35rem .4rem; }
.variant-grid tr.off td:not(:first-child) { opacity: .45; }
.vg-fill { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .6rem 0; font-size: .88rem; }
.vg-fill input { width: 6rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 7px; margin: 0; }
.status-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .8rem; }
.status-tabs a { padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 700; }
.status-tabs a[aria-current] { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.status-tabs a span { opacity: .7; font-weight: 600; }
.badge-paid { background: #e3f6ec; color: #1a6b40; } .badge-processing { background: #e4eefb; color: #1f4e8a; }
.badge-shipped { background: #e7f3f1; color: #0c6b5e; } .badge-delivered { background: #dff3ee; color: #075c50; }
.badge-cancelled, .badge-refunded { background: #fdecea; color: #a4342a; }
.badge-dropship { background: #f3ecfb; color: #5b3a8a; }
.order-addr { white-space: pre-line; }
@media print {
  body.slip header, body.slip footer, body.slip .no-print, body.slip .cookie-notice { display: none !important; }
  body.slip { background: #fff; }
}
.packing-slip { max-width: 760px; margin: 1rem auto; background: #fff; padding: 1.5rem; border: 1px solid var(--line); }
.packing-slip table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.packing-slip th, .packing-slip td { border-bottom: 1px solid #ccc; padding: .45rem; text-align: left; }
.packing-slip .tick-box { width: 1.2rem; height: 1.2rem; border: 1.5px solid #333; display: inline-block; }
.my-orders { margin: 0 0 1.4rem; }
.my-order { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin: 0 0 .5rem; }
.my-order summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.my-order .mo-total { margin-left: auto; font-weight: 700; }
.my-order[open] summary { margin-bottom: .5rem; }
.type-own[hidden], .type-affiliate[hidden], .sa-section[hidden] { display: none !important; }
.opt-editor td.nowrap { white-space: nowrap; width: 1%; }
.opt-editor label.swatch-on { display: inline-flex; margin: 0 .5rem 0 0; font-weight: 600; vertical-align: middle; }
.opt-editor td.nowrap input[type=color] { vertical-align: middle; }
