/*
Theme Name: DuPiT Bristlenose & Plecos
Theme URI: https://www.dupit.com.au
Author: DuPiT
Description: A premium WooCommerce theme for DuPiT Bristlenose & Plecos, Sunshine Coast QLD.
Version: 3.1
Requires at least: 6.0
Tested up to: 6.7
WC requires at least: 8.0
WC tested up to: 9.0
License: Proprietary
Text Domain: dupit
*/

/* =============================================================
   CSS CUSTOM PROPERTIES — DuPiT Blue + Amber Palette
   ============================================================= */
:root {
  /* ── Blues (replaces all green/teal) */
  --clr-navy:          #0B4C6E;   /* Deep Navy — primary brand */
  --clr-navy-dark:     #083A55;   /* Darker navy — hover/footer */
  --clr-navy-darker:   #052840;   /* Deepest navy — footer bg */
  --clr-ocean:         #1A88B8;   /* Ocean Blue — links, icons */
  --clr-ocean-light:   #3AAED4;   /* Light ocean — subtle accents */
  --clr-ocean-pale:    #D6EEF7;   /* Very pale blue — tag bg, chips */

  /* ── Amber (complementary to blue) */
  --clr-amber:         #D4882A;   /* Golden Amber — primary CTA */
  --clr-amber-light:   #E9A850;   /* Lighter amber — hover */
  --clr-amber-dark:    #B8721F;   /* Darker amber — active/pressed */
  --clr-amber-pale:    #FDF0DC;   /* Very pale amber — card highlights */

  /* ── Neutrals */
  --clr-sand:          #F2E8D5;   /* Soft Sand — section backgrounds */
  --clr-sand-light:    #FAF6EF;   /* Lightest sand — page background */
  --clr-sand-dark:     #E2D8C5;   /* Slightly darker sand — borders */
  --clr-charcoal:      #2E262E;   /* Deep Charcoal — body text */
  --clr-muted:         #6A6070;   /* Muted grey — secondary text */
  --clr-border:        #D8CFC0;   /* Border colour */
  --clr-white:         #FFFFFF;

  /* ── Typography */
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Raleway', sans-serif;

  /* ── Sizing */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 999px;

  --shadow-sm:   0 2px 8px rgba(11,76,110,0.08);
  --shadow-md:   0 6px 24px rgba(11,76,110,0.13);
  --shadow-lg:   0 16px 48px rgba(11,76,110,0.18);

  --max-w: 1280px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --transition: 0.22s ease;
}

/* =============================================================
   RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-charcoal);
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--clr-ocean); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-navy); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* =============================================================
   LAYOUT UTILITIES
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section--sand { background: var(--clr-sand); }
.section--navy { background: var(--clr-navy); color: var(--clr-white); }
.section--navy h2,
.section--navy h3 { color: var(--clr-white); }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-amber);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--clr-muted);
  max-width: 600px;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-amber);
  color: var(--clr-white);
  border-color: var(--clr-amber);
}
.btn--primary:hover {
  background: var(--clr-amber-light);
  border-color: var(--clr-amber-light);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212,136,42,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--clr-navy);
  border-color: var(--clr-navy);
}
.btn--outline:hover {
  background: var(--clr-navy);
  color: var(--clr-white);
}

.btn--outline-white {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
  background: var(--clr-white);
  color: var(--clr-navy);
}

.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* =============================================================
   HEADER
   ============================================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--clr-navy);
  box-shadow: 0 2px 16px rgba(8,58,85,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

/* PNG logo (if user places one in assets/images/) */
.site-logo img.logo-img,
.site-logo .custom-logo {
  height: 44px;
  width: auto;
  display: block;
}

/* SVG logo — built from brand guidelines */
.logo-svg-wrap {
  display: block;
  color: var(--clr-white);
  line-height: 1;
}

.logo-svg-wrap svg {
  height: 44px;
  width: auto;
  display: block;
  max-width: 220px;
}

/* Nav */
#site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  background: rgba(255,255,255,0.12);
  color: var(--clr-white);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Cart button */
.cart-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: var(--clr-white);
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
}

.cart-toggle:hover {
  background: rgba(255,255,255,0.2);
}

.cart-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.cart-count {
  min-width: 20px;
  height: 20px;
  background: var(--clr-amber);
  color: var(--clr-white);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 5px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--clr-white);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================================
   CART DRAWER
   ============================================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,58,85,0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(3px);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 95vw);
  height: 100vh;
  background: var(--clr-white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(8,58,85,0.2);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--clr-navy);
  color: var(--clr-white);
  flex-shrink: 0;
}

.cart-drawer__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
}

.cart-drawer__close {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.cart-drawer__close:hover { background: rgba(255,255,255,0.25); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cart-drawer__foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--clr-border);
  background: var(--clr-sand-light);
  flex-shrink: 0;
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--clr-navy);
}

.cart-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cart-drawer__actions .btn {
  width: 100%;
  justify-content: center;
}

/* Cart item */
.mini-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: start;
  padding-block: 1rem;
  border-bottom: 1px solid var(--clr-border);
}

.mini-cart-item:last-child { border-bottom: none; }

.mini-cart-item__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--clr-sand);
  flex-shrink: 0;
}

.mini-cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-cart-item__name {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.mini-cart-item__meta {
  font-size: 0.78rem;
  color: var(--clr-muted);
}

.mini-cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-muted);
  font-size: 1.1rem;
  padding: 0.2rem;
  line-height: 1;
  transition: color var(--transition);
}

.mini-cart-item__remove:hover { color: #C0392B; }

.cart-empty-msg {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--clr-muted);
}

.cart-empty-msg svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  stroke: var(--clr-ocean-pale);
  stroke-width: 1.5;
  fill: none;
}

/* =============================================================
   HOMEPAGE HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: min(85vh, 700px);
  background: var(--clr-navy);
  /* background-image injected by Customizer via inline style */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Wave decoration */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--clr-white);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 2;
}

/* Navy overlay — sits between photo and content */
/* opacity is set dynamically by Customizer CSS */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--clr-navy);
  opacity: 0;          /* default — no overlay when no photo set */
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s;
  display: none;       /* hidden until photo is set (see Customizer CSS) */
}

/* Underwater bubble effect */
.hero__bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero__bubbles span {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: rgba(26,136,184,0.12);
  animation: rise linear infinite;
  z-index: 1;
}

@keyframes rise {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 3;          /* above overlay and bubbles */
  padding-block: 5rem 6rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-amber-light);
  margin-bottom: 1.25rem;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--clr-amber);
}

.hero__heading {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero__heading em {
  font-style: normal;
  color: var(--clr-amber-light);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__scroll {
  position: absolute;
  bottom: 6rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.25);
}

/* =============================================================
   CATEGORY CARDS
   ============================================================= */
.categories {
  padding-block: 4rem;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cat-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-ocean-light);
}

.cat-card__img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--clr-navy);
}

.cat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-card:hover .cat-card__img img {
  transform: scale(1.06);
}

/* Gradient overlay on category image */
.cat-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11,76,110,0) 40%,
    rgba(11,76,110,0.55) 100%
  );
}

.cat-card__count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--clr-amber);
  color: var(--clr-white);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  z-index: 1;
}

.cat-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.cat-card__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-card__title .arrow {
  width: 20px;
  height: 20px;
  color: var(--clr-amber);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.cat-card:hover .cat-card__title .arrow {
  transform: translateX(4px);
}

.cat-card__desc {
  font-size: 0.88rem;
  color: var(--clr-muted);
  line-height: 1.6;
  margin: 0;
}

/* =============================================================
   PRODUCT CARDS & GRID
   ============================================================= */
.products-section {
  padding-block: 5rem;
}

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Product card */
.product-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-ocean-light);
}

/* Product image container — 4:3 ratio */
.product-card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--clr-sand);
  flex-shrink: 0;
}

.product-card__img a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__img img {
  transform: scale(1.07);
}

/* Placeholder if no photo uploaded */
.product-card__img .woocommerce-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
  background: var(--clr-sand);
  opacity: 0.4;
}

/* Stock badge */
.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

.product-card__badge--new {
  background: var(--clr-amber);
  color: var(--clr-white);
}

.product-card__badge--onsale {
  background: #2ECC71;
  color: var(--clr-white);
}

.product-card__badge--soldout {
  background: var(--clr-muted);
  color: var(--clr-white);
}

/* Quick view hover overlay */
.product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,76,110,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 3;
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

/* Product card body */
.product-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__cat {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-ocean);
  margin-bottom: 0.35rem;
}

.product-card__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.product-card__name a {
  color: inherit;
  text-decoration: none;
}

.product-card__name a:hover { color: var(--clr-ocean); }

.product-card__sci {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--clr-muted);
  margin-bottom: 0.75rem;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  margin-top: auto;
}

.product-card__tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-family: var(--font-head);
}

.product-card__tag--size {
  background: var(--clr-ocean-pale);
  color: var(--clr-navy);
}

.product-card__tag--avail {
  background: var(--clr-amber-pale);
  color: var(--clr-amber-dark);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--clr-border);
  margin-top: 0.85rem;
}

.product-card__price {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-navy);
  line-height: 1;
}

.product-card__price .from {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--clr-muted);
  display: block;
  margin-bottom: 0.1rem;
}

/* WooCommerce override for add to cart */
.product-card .add_to_cart_button,
.product-card .ajax_add_to_cart {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.6rem 1.1rem !important;
  background: var(--clr-amber) !important;
  color: var(--clr-white) !important;
  border: none !important;
  border-radius: var(--radius-full) !important;
  font-family: var(--font-head) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.product-card .add_to_cart_button:hover,
.product-card .ajax_add_to_cart:hover {
  background: var(--clr-amber-light) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 12px rgba(212,136,42,0.35) !important;
}

/* =============================================================
   SHOP PAGE — FILTER BAR
   ============================================================= */
.shop-header {
  background: var(--clr-navy);
  padding-block: 3rem;
  text-align: center;
}

.shop-header h1 {
  color: var(--clr-white);
  margin-bottom: 0.5rem;
}

.shop-header p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin: 0;
}

.filter-bar {
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 72px;
  z-index: 100;
}

.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.9rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar__inner::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 0.45rem 1.1rem;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-full);
  background: var(--clr-white);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-charcoal);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--clr-navy);
  border-color: var(--clr-navy);
  color: var(--clr-white);
}

.filter-btn.active {
  background: var(--clr-navy);
}

.shop-main {
  padding-block: 3rem;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.shop-count {
  font-size: 0.88rem;
  color: var(--clr-muted);
  font-family: var(--font-head);
  font-weight: 600;
}

.woocommerce-ordering select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--clr-charcoal);
  background: var(--clr-white);
  cursor: pointer;
  outline: none;
}

/* =============================================================
   SINGLE PRODUCT PAGE
   ============================================================= */
.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-block: 4rem;
}

.product-gallery {
  position: relative;
}

.product-gallery__main {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-sand);
  margin-bottom: 0.75rem;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
}

.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--clr-border);
  cursor: pointer;
  transition: border-color var(--transition);
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
  border-color: var(--clr-amber);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info__category {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-ocean);
  margin-bottom: 0.75rem;
}

.product-info__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--clr-navy);
  margin-bottom: 0.5rem;
}

.product-info__sci {
  font-style: italic;
  color: var(--clr-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.product-info__price {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-navy);
  margin-bottom: 1.5rem;
}

.product-info__price .woocommerce-Price-currencySymbol {
  font-size: 1.2rem;
  vertical-align: super;
}

.product-info__desc {
  font-size: 0.95rem;
  color: var(--clr-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--clr-amber);
  padding-left: 1rem;
}

.product-info__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.product-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-charcoal);
  background: var(--clr-sand-light);
}

.product-meta-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--clr-amber);
  fill: none;
  stroke-width: 2;
}

/* WooCommerce single product add to cart */
.single_add_to_cart_button {
  background: var(--clr-amber) !important;
  color: var(--clr-white) !important;
  border: none !important;
  border-radius: var(--radius-full) !important;
  padding: 1rem 2.5rem !important;
  font-family: var(--font-head) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
  letter-spacing: 0.02em !important;
}

.single_add_to_cart_button:hover {
  background: var(--clr-amber-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 18px rgba(212,136,42,0.35) !important;
}

.quantity input {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.5rem;
  font-family: var(--font-head);
  font-size: 1rem;
  text-align: center;
  width: 70px;
  color: var(--clr-charcoal);
}

/* =============================================================
   SHIPPING BANNER
   ============================================================= */
.shipping-banner {
  background: linear-gradient(135deg, var(--clr-navy-dark) 0%, var(--clr-navy) 100%);
  padding-block: 3rem;
}

.shipping-banner__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.shipping-item {
  text-align: center;
  color: var(--clr-white);
}

.shipping-item__icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.shipping-item__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--clr-amber-light);
  fill: none;
  stroke-width: 2;
}

.shipping-item__title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.3rem;
}

.shipping-item__desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin: 0;
}

/* =============================================================
   ABOUT SNIPPET
   ============================================================= */
.about-snippet {
  padding-block: 5rem;
}

.about-snippet__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-snippet__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--clr-sand);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-snippet__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative corner accent */
.about-snippet__img::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 3px solid var(--clr-amber);
  border-radius: calc(var(--radius-lg) + 12px);
  z-index: -1;
  opacity: 0.35;
}

.about-snippet__text .section-label { margin-bottom: 0.75rem; }

.about-snippet__text p {
  color: var(--clr-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* =============================================================
   SHIPPING POLICY PAGE
   ============================================================= */
.policy-page {
  max-width: 800px;
  margin: 0 auto;
  padding-block: 4rem;
}

.policy-page h1 {
  margin-bottom: 0.5rem;
}

.policy-page .lead {
  font-size: 1.1rem;
  color: var(--clr-muted);
  margin-bottom: 2.5rem;
}

.policy-block {
  background: var(--clr-sand-light);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-amber);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.policy-block h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--clr-navy);
}

.policy-block ul {
  list-style: none;
  padding: 0;
}

.policy-block ul li {
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--clr-charcoal);
}

.policy-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-amber);
  font-weight: 700;
}

/* =============================================================
   FOOTER
   ============================================================= */
#site-footer {
  background: var(--clr-navy-darker);
  color: rgba(255,255,255,0.7);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

/* Footer SVG logo — white colour */
.footer-logo-svg {
  display: block;
  color: var(--clr-white);
}

.footer-logo-svg svg {
  height: 40px;
  width: auto;
  display: block;
  max-width: 200px;
}

.footer-logo img { height: 40px; }

.footer-logo-text .logo-name {
  font-size: 1.1rem;
}

.footer-logo-text .logo-tagline {
  color: var(--clr-amber-light);
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--clr-amber-light);
}

.footer-contact p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--clr-amber-light);
}

.footer-contact a:hover {
  color: var(--clr-amber);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
}

/* =============================================================
   WOOCOMMERCE GLOBAL OVERRIDES
   ============================================================= */

/* Fix WooCommerce flash of unstyled content */
.woocommerce-product-gallery { opacity: 1 !important; }

/* Notices */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--clr-amber) !important;
  border-radius: var(--radius-sm) !important;
}

/* Pagination */
.woocommerce-pagination {
  text-align: center;
  margin-top: 3rem;
}

.woocommerce-pagination ul {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
}

.woocommerce-pagination ul li .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-charcoal);
  text-decoration: none;
  transition: all var(--transition);
}

.woocommerce-pagination ul li .page-numbers:hover,
.woocommerce-pagination ul li .page-numbers.current {
  background: var(--clr-navy);
  border-color: var(--clr-navy);
  color: var(--clr-white);
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
  font-size: 0.82rem;
  color: var(--clr-muted);
  margin-bottom: 1.5rem;
  font-family: var(--font-head);
}

.woocommerce-breadcrumb a { color: var(--clr-ocean); }

/* Tabs on single product */
.woocommerce-tabs .tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--clr-border);
  margin-bottom: 2rem;
}

.woocommerce-tabs .tabs li a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  text-decoration: none;
}

.woocommerce-tabs .tabs li.active a,
.woocommerce-tabs .tabs li a:hover {
  color: var(--clr-navy);
  border-bottom-color: var(--clr-amber);
}

/* =============================================================
   FORM ELEMENTS
   ============================================================= */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--clr-charcoal);
  background: var(--clr-white);
  transition: border-color var(--transition);
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: var(--clr-ocean);
  box-shadow: 0 0 0 3px rgba(26,136,184,0.12);
}

/* =============================================================
   PAGE HERO (inner pages)
   ============================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--clr-navy-dark) 0%, var(--clr-navy) 100%);
  padding-block: 3.5rem;
  text-align: center;
}

.page-hero h1 { color: var(--clr-white); }
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin: 0;
}

/* =============================================================
   NOTIFICATIONS & MESSAGES
   ============================================================= */
.site-notice {
  background: var(--clr-amber);
  color: var(--clr-white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* =============================================================
   ACCESSIBILITY
   ============================================================= */
:focus-visible {
  outline: 2px solid var(--clr-amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .single-product-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-snippet__grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid           { grid-template-columns: 1fr 1fr; }
  .categories__grid      { gap: 1rem; }
  .shipping-banner__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  #site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--clr-navy-dark);
    padding: 1.5rem var(--gutter);
    transform: translateY(-110%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 900;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  #site-nav.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .nav-menu a { padding: 0.75rem 0.5rem; font-size: 1rem; }

  .categories__grid     { grid-template-columns: 1fr; }
  .footer-grid          { grid-template-columns: 1fr; gap: 2rem; }
  .products-grid        { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .hero__scroll         { display: none; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .product-card__body { padding: 0.85rem; }
  .shipping-banner__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* =============================================================
   FAQ ACCORDION (used on FAQ page + homepage section)
   ============================================================= */
.faq-group { margin-bottom: 3rem; }

.faq-group__title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-amber-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--clr-border);
}

.faq-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  background: var(--clr-white);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--clr-ocean-light);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-navy);
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}

.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { background: var(--clr-sand-light); }
.faq-item[open] .faq-item__q { background: var(--clr-navy); color: var(--clr-white); }

.faq-arrow {
  flex-shrink: 0;
  color: var(--clr-amber);
  display: flex;
  transition: transform var(--transition);
}

.faq-item[open] .faq-arrow { transform: rotate(180deg); }
.faq-item[open] .faq-arrow svg { stroke: var(--clr-amber-light); }

.faq-item__a {
  padding: 1.1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--clr-border);
  background: var(--clr-sand-light);
}

.faq-item__a p {
  font-size: 0.95rem;
  color: var(--clr-muted);
  line-height: 1.75;
  margin: 0;
}

/* FAQ homepage section layout */
.faq-home { background: var(--clr-white); }

@media (max-width: 768px) {
  .faq-home .container > div {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* =============================================================
   VERSION
   ============================================================= */
/* Theme Version: 3.2 — Logo + pages + FAQ */

/* =============================================================
   HERO — two-column grid with fish illustration
   ============================================================= */

/* Override the single-column hero to a two-column grid */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 3;
  padding-block: 5rem 6rem;
  width: 100%;
}

/* Hero content stays on the left */
.hero__content {
  position: relative;
  z-index: 3;
  /* Remove previous padding/z-index from .hero__content */
  padding: 0;
}

/* Fish illustration — right column */
.hero__fish {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.hero__fish-img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  filter:
    drop-shadow(0 0 40px rgba(26,136,184,0.18))
    drop-shadow(0 4px 20px rgba(8,58,85,0.4));
  animation: heroFloat 7s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-10px) rotate(-0.5deg); }
  66%       { transform: translateY(-6px) rotate(0.3deg); }
}

/* Logo sizing */
.site-logo .logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-text-fallback {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--clr-white);
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--clr-ocean-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Footer logo */
.footer-logo-svg { display: block; color: var(--clr-white); }
.footer-logo-svg svg { height: 40px; width: auto; display: block; }
.footer-logo img { height: 40px; width: auto; }

/* Hero responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__fish { display: none; }  /* fish hides on narrow screens */
}

@media (max-width: 768px) {
  .hero__grid { padding-block: 3.5rem 5rem; }
}

/* =============================================================
   THEME VERSION: 3.3
   ============================================================= */
