/* ============================================================
   style.css - The Creative Print
   Every page except the homepage: base, header, banner, policy pages, newsletter, footer
   ============================================================ */

/* ------------------------------------------------------------
   1. Custom properties
   ------------------------------------------------------------ */
:root {
  --orange:       #fc9828;
  --orange-dark:  #e8820f;
  --red:          #f15b5b;
  --text:         #1f1f1f;
  --mid:          #4a4a4a;
  --muted:        #8a8a8a;
  --light:        #f6f6f6;
  --line:         #e6e6e6;
  --white:        #ffffff;
  --dark:         #2f2e2e;
  --footer-bg:    #1e1e1e;
  --font-main:    'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container:    1200px;
  --radius:       3px;
  --transition:   0.2s ease;
}

/* ------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }
ul, ol { padding-left: 1.25rem; }
ul[role="list"], ol[role="list"] { list-style: none; padding-left: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.25; color: var(--text); }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ------------------------------------------------------------
   3. Accessibility
   ------------------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--orange); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Anti-spam honeypot (php/antispam.php) */
.as-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* ------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .7rem 1.4rem; border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-main); font-size: .9rem; font-weight: 500; line-height: 1.2;
  text-align: center; cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn svg { flex-shrink: 0; transition: transform var(--transition); }
.btn--arrow:hover svg { transform: translateX(3px); }
.btn--sm { padding: .55rem 1.2rem; font-size: .82rem; }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dark); color: #fff; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #d94848; color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: #fff; }
.btn--outline:hover { background: #fff; color: var(--text); }
.btn--dark { background: #161616; color: var(--orange); }
.btn--dark:hover { background: var(--orange); color: #fff; }
.btn:disabled { opacity: .65; cursor: wait; }

/* ------------------------------------------------------------
   5. Header & navigation
   ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.tcp-nav-inner { display: flex; align-items: center; min-height: 80px; gap: 2rem; }
.tcp-logo { flex-shrink: 0; display: block; }
.tcp-logo img { width: 200px; height: auto; }

.nav-menu { display: flex; align-items: center; gap: .25rem; margin-left: 2.5rem; margin-right: auto; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: .35rem;
  padding: .6rem .75rem; color: var(--text); font-size: .9rem; font-weight: 400;
}
.nav-menu > li > a:hover, .nav-menu > li > a.is-active { color: var(--orange); }
.nav-chevron { transition: transform var(--transition); }

.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 210px; padding: .4rem 0;
  background: #fff; border-top: 2px solid var(--orange); box-shadow: 0 8px 24px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav-dropdown a { display: block; padding: .55rem 1.1rem; color: var(--text); font-size: .88rem; }
.nav-dropdown a:hover { color: var(--orange); background: var(--light); }
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown,
.nav-has-dropdown.is-open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-has-dropdown:hover .nav-chevron,
.nav-has-dropdown.is-open .nav-chevron { transform: rotate(180deg); }

.tcp-nav-actions { display: flex; align-items: center; gap: 1.1rem; color: var(--orange); }

.nav-search { position: relative; }
.nav-search summary { list-style: none; cursor: pointer; display: flex; padding: .3rem; color: var(--orange); }
.nav-search summary::-webkit-details-marker { display: none; }
.nav-search-form {
  position: absolute; right: 0; top: calc(100% + .9rem); width: 260px; padding: .6rem;
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); border-top: 2px solid var(--orange);
}
.nav-search-form input { width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); }

.tcp-cart { position: relative; display: flex; color: var(--red); padding: .3rem; }
.tcp-cart:hover { color: var(--orange); }
.tcp-cart-count {
  position: absolute; top: -4px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: .68rem; font-weight: 500; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; flex-direction: column; gap: 6px; }
.hamburger-bar { display: block; width: 30px; height: 3px; background: var(--orange); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.nav-overlay { display: none; }

@media (max-width: 921px) {
  .tcp-nav-inner { min-height: 84px; gap: 1rem; }
  .tcp-logo img { width: 230px; }
  .nav-toggle { display: flex; }
  .nav-search { display: none; }
  .tcp-nav-actions { margin-left: auto; gap: .9rem; }

  .nav-menu {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 210;
    width: min(320px, 85vw); margin: 0; padding: 5rem 0 2rem;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
  }
  .nav-menu.is-open { transform: translateX(0); visibility: visible; box-shadow: -8px 0 30px rgba(0,0,0,.15); }
  .nav-menu > li { border-bottom: 1px solid var(--line); }
  .nav-menu > li > a { padding: .95rem 1.5rem; font-size: 1rem; justify-content: space-between; }
  .nav-dropdown {
    position: static; min-width: 0; padding: 0 0 .5rem; box-shadow: none;
    border-top: 0; border-left: 3px solid var(--orange); margin: 0 1.5rem .5rem;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav-has-dropdown:hover .nav-dropdown { display: none; }
  .nav-has-dropdown.is-open .nav-dropdown { display: block; }
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }
  .nav-toggle { position: relative; z-index: 220; }
}
@media (max-width: 480px) {
  .tcp-logo img { width: 190px; }
}

/* ------------------------------------------------------------
   6. Page banner (every page except the homepage) - flat colour
   ------------------------------------------------------------ */
.page-banner {
  min-height: 220px; display: flex; align-items: center;
  background: var(--dark); color: #fff; padding: 2.5rem 0;
}
.breadcrumbs { font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: .6rem; }
.breadcrumbs a { color: var(--orange); }
.breadcrumbs span[aria-hidden] { margin: 0 .35rem; }
.page-banner-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: #fff; }

/* ------------------------------------------------------------
   7. Legal / policy pages
   ------------------------------------------------------------ */
.legal-page { padding: 3.5rem 0 4.5rem; }
.legal-content { max-width: 820px; }
.legal-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.75rem; }
.legal-lead { font-size: 1.08rem; color: var(--text); margin-bottom: .5rem; }
.legal-content h2 { font-size: 1.45rem; margin: 2.25rem 0 .8rem; }
.legal-content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.6rem 0 .6rem; }
.legal-content p { margin-bottom: 1rem; color: var(--mid); }
.legal-content ul, .legal-content ol { margin: 0 0 1.1rem 1.1rem; color: var(--mid); }
.legal-content li { margin-bottom: .45rem; }
.legal-content li ul { margin-top: .45rem; }
.legal-content strong { color: var(--text); }
.legal-content a { text-decoration: underline; text-underline-offset: 2px; }

.legal-table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .75rem .9rem; border: 1px solid var(--line); }
.legal-table th { background: var(--light); font-family: var(--font-heading); font-weight: 700; }

.share-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .9rem; }
.share-list li { padding: 1rem 1.1rem; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--radius); }
.share-list strong { display: block; margin-bottom: .25rem; }
.share-list span { display: block; font-size: .92rem; }

.ship-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0 1rem; }
.ship-step { padding: 1.5rem; background: var(--light); border-top: 3px solid var(--orange); }
.ship-step h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.ship-step .ship-days { display: block; color: var(--orange); font-weight: 500; margin-bottom: .6rem; }
.ship-step p { margin: 0; }

/* 404 */
.notfound { padding: 5rem 0; text-align: center; }
.notfound-code { font-family: var(--font-main); font-weight: 100; color: var(--orange); font-size: 7rem; line-height: 1; }
.notfound h1 { font-size: 1.8rem; margin: 1rem 0 .75rem; }
.notfound p { color: var(--mid); margin-bottom: 1.75rem; }

@media (max-width: 768px) {
  .page-banner { min-height: 170px; }
  .ship-steps { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Newsletter band
   ------------------------------------------------------------ */
.newsletter-band { background: var(--dark); color: #fff; padding: 4rem 0 6rem; text-align: center; }
.newsletter-band-label {
  display: inline-block; font-size: .92rem; letter-spacing: .32em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 5px; margin-bottom: 1.2rem;
}
.newsletter-band-title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: #fff; margin-bottom: 2.75rem; }

.nl-form input[type="text"], .nl-form input[type="email"] {
  padding: .6rem .8rem; border: 1px solid #d9d9d9; border-radius: 2px; background: #fff; color: var(--text); font-size: .85rem;
}
.nl-form--inline { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.nl-form--inline input { width: 190px; }
.nl-form--stack { display: grid; gap: .75rem; max-width: 200px; }
.nl-form--stack .btn { justify-self: start; }
.nl-note { margin-top: .9rem; font-size: .88rem; }
.nl-note--ok { color: #8fe08f; }
.nl-note--err { color: #ffb3b3; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer { background: var(--footer-bg); color: #e9e9e9; }
.footer-top { padding: 3.5rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 2.5rem; max-width: 1100px; }
.footer-logo { display: inline-block; margin-bottom: .9rem; }
.footer-logo-img { width: 180px; height: auto; }
.footer-col-body { font-size: .82rem; line-height: 1.7; margin-bottom: 1.1rem; max-width: 230px; }
.footer-social { display: flex; gap: .6rem; }
.footer-social-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); }
.footer-social-icon:hover { background: var(--orange-dark); }
.footer-col-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 400; color: var(--orange); margin: .4rem 0 1rem; }
.footer-nav-list li { margin-bottom: .45rem; }
.footer-nav-list a { color: #e9e9e9; font-size: .82rem; }
.footer-nav-list a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #3a3a3a; padding: 1.4rem 0; text-align: center; font-size: .82rem; }

/* Cookie bar */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: #fff; color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.25); border-top: 3px solid var(--orange); font-size: .85rem;
}
.cookie-bar[hidden] { display: none; }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.cookie-btn { border: 0; padding: .5rem .9rem; border-radius: var(--radius); font-size: .82rem; }
.cookie-btn--accept { background: var(--orange); color: #fff; }
.cookie-btn--decline { background: var(--light); color: var(--text); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nl-form--inline { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
  .nl-form--inline input { width: 100%; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
}

/* ------------------------------------------------------------
   Shop: shop, category, product, cart, order complete
   (product cards copy the homepage's featured cards in style-home.css)
   ------------------------------------------------------------ */
.section { padding: 3.5rem 0; }
.shop-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.shop-cats a { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--text); }
.shop-cats a:hover, .shop-cats a.is-active { border-color: var(--orange); background: var(--orange); color: #fff; }
.shop-count { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.shop-intro { max-width: 760px; color: var(--mid); margin-bottom: 2rem; }
.shop-empty { padding: 2rem 0; color: var(--mid); }
.shop-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.shop-pages a, .shop-pages span { min-width: 2.4rem; padding: .45rem .7rem; border: 1px solid var(--line); text-align: center; font-size: .9rem; }
.shop-pages span { background: var(--orange); border-color: var(--orange); color: #fff; }
.shop-pages a:hover { border-color: var(--orange); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.25rem; list-style: none; }
.product-card { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.product-card-img { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; margin-bottom: .9rem; background: var(--light); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 400; margin-bottom: .35rem; }
.product-card-title a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.product-card-price { font-size: .8rem; margin-bottom: .85rem; }
.product-card .btn { margin-top: auto; }

/* Toolbar, slide-in filter, chips, list view (php/shop-list.php + the shop filter in js/main.js) */
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1.75rem; }
.shop-toolbar .shop-count { margin: 0; color: var(--text); font-size: .95rem; }
.sf-open { gap: .5rem; font-weight: 500; padding: .65rem 1.1rem; }
.sf-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; background: #fff; color: var(--orange-dark); font-size: .75rem; font-weight: 700; }
.shop-sort { margin-left: auto; }
.shop-sort select { font: inherit; font-size: .95rem; color: var(--mid); border: 0; background: transparent; padding: .4rem 1.6rem .4rem .4rem; cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .2rem center; }
.shop-view { display: flex; gap: .3rem; }
.shop-view button { display: flex; padding: .25rem; border: 0; background: none; cursor: pointer; fill: #1f1f1f; border-radius: var(--radius); }
.shop-view button[aria-pressed="true"] { fill: var(--orange); }
.shop-view button:hover { fill: var(--orange-dark); }

.sf-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: -.75rem 0 1.75rem; }
.sf-chips a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--text); background: var(--light); }
.sf-chips a span { color: var(--muted); font-size: 1rem; line-height: 1; }
.sf-chips a:hover { border-color: var(--orange); }
.sf-chips .sf-chip-clear { background: none; border-color: transparent; color: var(--orange); text-decoration: underline; }

.sf-overlay { position: fixed; inset: 0; z-index: 990; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s ease; }
.sf-overlay.is-on { opacity: 1; }
.sf { position: fixed; top: 0; left: 0; bottom: 0; z-index: 991; width: min(360px, 88vw); background: #fff; box-shadow: 4px 0 24px rgba(0,0,0,.18);
  transform: translateX(-105%); transition: transform .25s ease; visibility: hidden; }
.sf.is-open, .sf:target { transform: none; visibility: visible; }
.sf:focus { outline: none; }
.sf-form { height: 100%; display: flex; flex-direction: column; }
.sf-body { flex: 1; overflow-y: auto; padding: 2.75rem 1.75rem 1.5rem; overscroll-behavior: contain; }
.sf-close { position: absolute; top: .6rem; right: .7rem; display: flex; padding: .3rem; color: var(--text); }
.sf-close:hover { color: var(--orange); }
.sf-label { display: block; font-size: .9rem; margin-bottom: .4rem; }
.sf-search { display: flex; gap: .6rem; }
.sf-search input { flex: 1; min-width: 0; font: inherit; font-size: .95rem; padding: .6rem .7rem; border: 1px solid #ccc; border-radius: var(--radius); }
.sf-search .btn { padding: .6rem 1.1rem; }
.sf-title { font-size: 2.1rem; margin: 2rem 0 1.25rem; }
.sf-group { border: 0; margin: 0 0 1.75rem; }
.sf-group legend { font-family: var(--font-heading); font-size: 1.35rem; margin-bottom: .8rem; }
.sf-check { display: flex; align-items: center; gap: .6rem; font-size: .9rem; padding: .3rem 0; cursor: pointer; }
.sf-check input { width: 17px; height: 17px; accent-color: var(--orange); flex-shrink: 0; }
.sf-range { position: relative; height: 26px; margin: 0 9px 1rem; }
.sf-range::before, .sf-range::after { content: ''; position: absolute; top: 12px; height: 3px; border-radius: 2px; }
.sf-range::before { left: 0; right: 0; background: var(--line); }
.sf-range::after { left: var(--lo, 0%); right: calc(100% - var(--hi, 100%)); background: var(--text); }
.sf-range input { position: absolute; left: -9px; width: calc(100% + 18px); top: 0; height: 26px; margin: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none; z-index: 1; }
.sf-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--text); cursor: pointer; }
.sf-range input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--text); cursor: pointer; }
.sf-range input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--orange); outline-offset: 2px; }
.sf-range input::-webkit-slider-runnable-track { background: none; }
.sf-prices { display: flex; justify-content: space-between; gap: 1rem; }
.sf-prices label { position: relative; }
.sf-sym { position: absolute; left: .55rem; top: 50%; transform: translateY(-50%); color: var(--mid); font-size: .9rem; pointer-events: none; }
.sf-prices input { width: 5.2rem; font: inherit; font-size: .9rem; padding: .55rem .5rem .55rem 1.3rem; border: 1px solid #ccc; border-radius: var(--radius); -moz-appearance: textfield; }
.sf-prices input::-webkit-inner-spin-button { opacity: .4; }
.sf-actions { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.75rem; border-top: 1px solid var(--line); background: #fff; }
.sf-actions .btn { flex: 1; justify-content: center; }
.sf-actions .btn:disabled { opacity: .55; cursor: default; }
.sf-clear { font-size: .9rem; text-decoration: underline; }
html.sf-locked { overflow: hidden; }

.product-card-short { display: none; }
.shop-grid.is-list { grid-template-columns: 1fr; gap: 1.25rem; }
.shop-grid.is-list .product-card { display: grid; grid-template-columns: 180px 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 1.5rem; align-items: start; text-align: left; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.shop-grid.is-list .product-card-img { grid-row: 1 / 5; margin: 0; }
.shop-grid.is-list .product-card-title { font-size: 1.15rem; }
.shop-grid.is-list .product-card-short { display: block; font-size: .88rem; color: var(--mid); margin-bottom: .6rem; }
.shop-grid.is-list .product-card .btn { justify-self: start; margin-top: 0; }

.shop-note { padding: .9rem 1.1rem; margin-bottom: 1.5rem; border-left: 3px solid var(--orange); background: var(--light); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.shop-note--ok { border-left-color: #3a9a5b; }
.shop-note--err { border-left-color: var(--red); }

.product-crumbs { margin-bottom: 1.5rem; font-size: .85rem; color: var(--muted); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-main-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--light); }
.product-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; list-style: none; }
.product-thumb { border: 2px solid transparent; padding: 0; background: none; cursor: pointer; line-height: 0; }
.product-thumb.is-active, .product-thumb:hover { border-color: var(--orange); }
.product-thumb img { width: 72px; height: 72px; object-fit: cover; }
.product-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.product-price { font-size: 1.3rem; color: var(--orange); margin-bottom: 1rem; }
.product-short { color: var(--mid); margin-bottom: 1.5rem; }
.product-unavail { color: var(--red); font-size: .9rem; margin: -.5rem 0 1rem; }
.product-buy .btn:disabled { cursor: not-allowed; }
.product-field { margin-bottom: 1rem; }
.product-field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .35rem; }
.product-field select, .product-field textarea { width: 100%; max-width: 420px; padding: .65rem .75rem; border: 1px solid #cfcfcf; border-radius: var(--radius); font: inherit; background: #fff; }
.product-photos-note { font-size: .88rem; color: var(--mid); background: var(--light); padding: .75rem .9rem; margin-bottom: 1rem; max-width: 420px; }
.product-buy { display: flex; gap: .75rem; align-items: center; margin: 1.25rem 0; }
.product-qty { width: 4.5rem; padding: .6rem .5rem; border: 1px solid #cfcfcf; border-radius: var(--radius); font: inherit; text-align: center; }
.product-delivery { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--mid); margin: 0 0 .7rem; }
.product-delivery svg { color: var(--orange); flex: none; }
.product-delivery b { color: var(--text); font-weight: 500; }
.product-perks { display: flex; flex-wrap: wrap; gap: .3rem 0; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .8rem; color: var(--muted); }
.product-perks li { display: inline-flex; align-items: center; }
.product-perks li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); margin: 0 .6rem; }
.size-guide-open { display: flex; align-items: center; gap: .55rem; background: none; border: 0; padding: 0; margin: -.25rem 0 .6rem; font: inherit; font-size: .92rem; color: var(--mid); cursor: pointer; }
.size-guide-open svg { color: var(--orange); flex: none; }
.size-guide-open span { text-decoration: underline; text-underline-offset: 3px; }
.size-guide-open:hover span { color: var(--text); }
.size-guide-open[hidden] { display: none; }
.size-guide { margin: auto; border: 0; border-radius: 6px; padding: 0;   /* margin: the site reset removes the browser's centring */ width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 12px 40px rgba(0,0,0,.25); color: var(--text); }
.size-guide::backdrop { background: rgba(0,0,0,.45); }
.size-guide-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.size-guide-head h2 { font-size: 1.25rem; margin: 0; }
.size-guide-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 .25rem; }
.size-guide-close:hover { color: var(--text); }
.size-guide-tabs { display: flex; gap: .25rem; padding: .9rem 1.25rem 0; }
.size-guide-tabs button { background: var(--light); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .95rem; font: inherit; font-size: .88rem; cursor: pointer; color: var(--mid); }
.size-guide-tabs button[aria-selected="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.size-guide-panel { padding: 1rem 1.25rem 0; }
.size-guide-panel h3 { font-size: 1rem; margin-bottom: .6rem; }
.size-guide-panel h3 span { font-weight: 400; color: var(--muted); font-size: .9rem; }
.size-guide-scroll { overflow-x: auto; }
.size-guide table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.size-guide th, .size-guide td { padding: .55rem .6rem; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-guide thead th { background: var(--light); font-weight: 500; font-size: .82rem; }
.size-guide thead th span { color: var(--muted); font-weight: 400; }
.size-guide tbody th { font-weight: 500; text-align: left; }
.size-guide thead th:first-child { text-align: left; }
.size-guide tbody tr:hover { background: #fffaf2; }
.size-guide-note { font-size: .82rem; color: var(--muted); padding: 1rem 1.25rem 1.25rem; margin: 0; }
.product-meta { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.product-desc { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 820px; }
.product-desc h2, .product-related h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.product-desc p, .product-desc ul { margin-bottom: 1rem; color: var(--mid); }
.product-desc ul { padding-left: 1.25rem; }
.product-fabric { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 820px; }
.product-fabric h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.product-fabric-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.25rem; }
.product-fabric-tabs button { background: var(--light); border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font: inherit; font-size: .9rem; cursor: pointer; color: var(--mid); }
.product-fabric-tabs button[aria-selected="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.product-fabric-tabs button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.product-fabric-panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem 2.5rem; }
.product-fabric-panel[hidden] { display: none; }
.product-fabric-panel h3 { font-size: 1rem; margin-bottom: .55rem; }
.product-fabric-panel ul { padding-left: 1.15rem; margin: 0; color: var(--mid); }
.product-fabric-panel li { margin-bottom: .35rem; }
@media (max-width: 700px) { .product-fabric-panel { grid-template-columns: 1fr; } }
.product-related { margin-top: 3.5rem; }
.muted { color: var(--muted); font-weight: 400; }

.cart-empty { text-align: center; padding: 3rem 0; }
.cart-empty p { margin-bottom: 1.25rem; color: var(--mid); }
.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.cart-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: .6rem; border-bottom: 2px solid var(--line); }
.cart-table td { padding: .9rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-product { display: flex; gap: .9rem; align-items: center; }
.cart-product img { width: 70px; height: 70px; object-fit: cover; flex-shrink: 0; }
.cart-opt { display: block; font-size: .8rem; color: var(--muted); }
.cart-remove { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--red); cursor: pointer; padding: .2rem .5rem; }
.cart-enter { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.cart-totals { max-width: 440px; margin-left: auto; background: var(--light); padding: 1.5rem; }
.cart-totals h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.cart-totals dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin-bottom: 1rem; }
.cart-totals dd { text-align: right; }
.cart-total { font-weight: 700; font-size: 1.1rem; }
.cart-checkout { width: 100%; margin: .5rem 0; }
.cart-small { font-size: .82rem; color: var(--mid); margin-top: .5rem; }
.order-lead { font-size: 1.15rem; margin-bottom: 1.5rem; }
.order-table { margin: 1.5rem 0; }
.order-done p { margin-bottom: 1rem; }

@media (max-width: 921px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .shop-toolbar { gap: .6rem .75rem; }
  .shop-toolbar .shop-count { flex-basis: 100%; font-size: .88rem; }
  .shop-sort { margin-left: 0; }
  .shop-sort select { font-size: .88rem; max-width: 12.5rem; }
  .shop-view { margin-left: auto; }
  .shop-grid.is-list .product-card { grid-template-columns: 110px 1fr; column-gap: 1rem; }
  .cart-table thead { position: absolute; left: -9999px; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border-bottom: 1px solid var(--line); padding: .5rem 0; position: relative; }
  .cart-table td { border: 0; padding: .35rem 0; display: flex; justify-content: space-between; gap: 1rem; }
  .cart-table td[data-label]:not(.cart-product)::before { content: attr(data-label); color: var(--muted); font-size: .85rem; }
  .cart-table td.cart-product { justify-content: flex-start; padding-right: 2.5rem; }
  .cart-table td:last-child:not([data-label]) { position: absolute; top: .5rem; right: 0; width: auto; }
  .cart-totals { max-width: none; }
}

/* Shop assistant bubble (the panel's own styles are inside js/bot.js, loaded on the first tap).
   Sits above the sticky header, below the mobile menu (200), cookie bar (300) and shop filter (990). */
.tcpb { position: fixed; right: 1rem; bottom: 1rem; z-index: 190; }
.tcpb-launch {
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
  background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform var(--transition), background var(--transition);
}
.tcpb-launch:hover { background: var(--orange-dark); transform: translateY(-2px); }
.tcpb-launch:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.tcpb-launch-close { display: none; }
.cookie-bar:not([hidden]) ~ .tcpb { bottom: 6.5rem; }
@media (min-width: 900px) { .cookie-bar:not([hidden]) ~ .tcpb { bottom: 1rem; } }
@media (max-width: 560px) { .cookie-bar:not([hidden]) ~ .tcpb { bottom: 11.5rem; } }
@media (prefers-reduced-motion: reduce) { .tcpb-launch { transition: none; } }
