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

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Exact colours from the WordPress theme */
  --bg: #f7f7f9;
  --berry: #5f021f;
  --berry-light: #8a1b3d;
  --pink: #f1d4e0;
  --white: #ffffff;
  --text: #333333;
  --text-light: #6B6B6B;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1200px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
}

a { color: var(--berry); text-decoration: none; }
a:hover { color: var(--berry-light); }

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

strong, b { font-weight: 700; }

/* ===== Header ===== */
.site-header {
  background: var(--berry);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0 0 12px 12px;
  overflow: visible;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
}

.header-top { display: none; }
.header-bottom { display: contents; }

/* Navigation — left side */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 400;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.main-nav a:hover {
  opacity: 0.7;
  color: var(--white);
}
.main-nav a.active {
  color: var(--white);
  font-weight: 600;
}

/* Site logo — centred */
.site-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.3px;
  line-height: 1.15;
  text-align: center;
  margin: 0 auto;
  transition: opacity var(--transition);
}
.site-logo:hover {
  color: var(--white);
  opacity: 0.8;
}
.site-logo small {
  display: none;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Header right — FB + cart */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Cart button in header */
.cart-toggle {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  position: relative;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}
.cart-toggle:hover { opacity: 0.7; }
.cart-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--pink);
  color: var(--berry);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 50%;
  min-width: 1.1rem;
  text-align: center;
  line-height: 1.2;
}

/* ===== Hero ===== */
.hero {
  background: var(--bg);
  color: var(--berry);
  text-align: center;
  padding: 2rem 1.5rem 1rem;
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}
.hero p {
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}
.hero .tagline {
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

/* ===== Notice Banner ===== */
.notice-banner {
  background: var(--white);
  border-left: 4px solid var(--berry);
  max-width: var(--max-width);
  margin: 1.5rem auto;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.notice-banner strong { color: var(--berry); }

/* ===== Category Navigation ===== */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.category-btn {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  background: var(--white);
  color: var(--berry);
  border: 2px solid var(--berry);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.category-btn:hover,
.category-btn.active {
  background: var(--berry);
  color: var(--white);
}

/* ===== Product Grid ===== */
.section-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--berry);
  margin: 2rem 0 1rem;
  padding: 0 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--pink);
  cursor: pointer;
}

.product-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-code {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.3;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--berry);
  margin-top: auto;
  margin-bottom: 0.75rem;
}

.add-to-cart {
  width: 100%;
  padding: 0.6rem;
  background: var(--berry);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
.add-to-cart:hover { background: var(--berry-light); }
.add-to-cart:active { transform: scale(0.98); }

/* Sold out products */
.product-card.sold-out { opacity: 0.7; }
.product-card.sold-out .product-image { filter: grayscale(30%); }
.sold-out-label {
  display: block;
  width: 100%;
  padding: 0.6rem;
  background: var(--text-light);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  font-family: inherit;
}

/* ===== Cart Drawer ===== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}
.cart-overlay.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.cart-drawer.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eee;
}
.cart-header h2 { font-size: 1.25rem; color: var(--berry); }

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.25rem;
}

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

.cart-empty {
  text-align: center;
  color: var(--text-light);
  padding: 3rem 1rem;
  font-size: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--pink);
}

.cart-item-details { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; }
.cart-item-price { color: var(--berry); font-weight: 600; font-size: 0.85rem; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: var(--bg);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.qty-btn:hover { background: #e5e0e5; }

.cart-item-remove {
  background: none;
  border: none;
  color: #cc0000;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.25rem;
  font-family: inherit;
}

.cart-footer {
  border-top: 2px solid var(--berry);
  padding: 1.25rem 1.5rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--berry);
}

.checkout-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--berry);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
.checkout-btn:hover { background: var(--berry-light); }
.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#paypal-button-container {
  margin-top: 0.75rem;
}

/* ===== About / Info Page ===== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.page-content h1 {
  color: var(--berry);
  margin-bottom: 1rem;
}
.page-content h2 {
  color: var(--berry);
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
}
.page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}
.page-content .heritage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.page-content .heritage-grid figure {
  text-align: center;
}
.page-content .heritage-grid figure img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.page-content .heritage-grid figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
}
.page-content .dale-photo {
  max-width: 300px;
  margin: 1.5rem auto;
  border-radius: var(--radius);
}
.page-content .dale-caption {
  text-align: center;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Contact form */
.contact-form {
  max-width: 500px;
  margin: 1rem 0;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  background: var(--white);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  padding: 0.75rem 2rem;
  background: var(--berry);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}
.contact-form button:hover { background: var(--berry-light); }

/* ===== Facebook icon in header ===== */
.fb-link {
  display: flex;
  align-items: center;
}
.fb-link img {
  width: 28px;
  height: 28px;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.fb-link:hover img { opacity: 1; }

/* ===== Footer ===== */
.footer-fish {
  display: block;
  max-width: 280px;
  margin: 0 auto 1rem;
}
.site-footer {
  background: var(--bg);
  color: var(--text-light);
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: auto;
  font-size: 0.85rem;
  border-top: 1px solid #ddd;
}
.site-footer a { color: var(--berry); }
.site-footer .tagline {
  font-style: italic;
  font-weight: 300;
  margin-top: 0.25rem;
}

/* ===== Toast notification ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--berry);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 300;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== Placeholder image ===== */
.placeholder-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--berry);
  font-size: 0.85rem;
  font-weight: 400;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .header-inner {
    padding: 0.65rem 0.75rem;
  }

  .site-logo {
    font-size: 1.1rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--berry);
    flex-direction: column;
    padding: 0.5rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .header-right { gap: 0.5rem; }
  .fb-link img { width: 24px; height: 24px; }
  .cart-toggle svg { width: 22px; height: 22px; }

  .hero { padding: 1.5rem 1rem !important; }
  .hero h1 { font-size: 1.5rem; }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 0.75rem 1.5rem;
  }

  .product-info { padding: 0.75rem; }
  .product-name { font-size: 0.82rem; }
  .product-code { font-size: 0.7rem; }
  .product-price { font-size: 0.95rem; }
  .add-to-cart { padding: 0.5rem; font-size: 0.82rem; }

  .category-nav { gap: 0.4rem; padding: 1rem 0.75rem; }
  .category-btn { padding: 0.4rem 0.8rem; font-size: 0.78rem; }

  .notice-banner { margin: 1rem 0.75rem; font-size: 0.88rem; }

  .section-title { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }

  .page-content { padding: 1.5rem 1rem; }
  .page-content h2 { font-size: 1.2rem; }

  .float-left {
    float: none;
    display: block;
    max-width: 200px;
    margin: 1rem auto;
  }

  .heritage-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .slideshow { max-width: 100%; }

  .blog-feed { padding: 1rem 0.75rem 2rem; }
  .blog-post-header { padding: 1rem 1rem 0.5rem; }
  .blog-post-header h2 { font-size: 1rem; }
  .blog-post-body { padding: 0.5rem 1rem 1rem; }

  .cart-drawer { width: 100%; max-width: 100vw; right: -100%; }

  .contact-form { max-width: 100%; }

  .footer-fish { max-width: 180px; }
}

/* ===== Loading ===== */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

/* Image modal */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 300;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.image-modal.open { display: flex; }
.image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
}

/* ===== Slideshow ===== */
.slideshow {
  position: relative;
  max-width: 700px;
  margin: 1.5rem auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--pink);
  aspect-ratio: 4/3;
}
.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.slideshow img.active { opacity: 1; }

/* ===== Float image (Dale photo) ===== */
.float-left {
  float: left;
  max-width: 235px;
  margin: 0 1.5rem 1rem 0;
  border-radius: var(--radius);
}
.page-content::after {
  content: '';
  display: table;
  clear: both;
}

/* ===== Blog ===== */
.blog-feed {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
}

.blog-post {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.blog-post-header {
  padding: 1.25rem 1.5rem 0.5rem;
}
.blog-post-header time {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}
.blog-post-header h2 {
  font-size: 1.15rem;
  color: var(--berry);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.blog-post-body {
  padding: 0.5rem 1.5rem 1.5rem;
  line-height: 1.7;
}
.blog-post-body p {
  margin-bottom: 0.75rem;
}
.blog-post-body img {
  width: 100%;
  border-radius: var(--radius);
  margin: 0.75rem 0;
}
