/*
Theme Name:   Green Foods Import
Theme URI:    https://greenfoodsimport.com/
Author:       Green Foods Import
Author URI:   https://greenfoodsimport.com/
Description:  Custom WooCommerce theme for Green Foods Import — an English-language international food & supplements store. Built as a clean-room reconstruction of the original storefront design (Dawn-style layout, Poppins, cream/green palette). Requires WooCommerce.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  greenfoodsimport
Tags:         e-commerce, woocommerce, food, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
WC requires at least: 7.0
WC tested up to: 9.4
*/

/* ==========================================================================
   1. DESIGN TOKENS
   Values reconstructed 1:1 from the original storefront.
   ========================================================================== */

:root {
  /* Brand colours (RGB triplets so they can be used with alpha) */
  --color-foreground: 18, 18, 18;
  --color-background: 255, 255, 255;
  --color-background-contrast: 191, 191, 191;

  /* Solid brand colours */
  --color-cream: #f8f5ef;          /* header search bar, category pills, footer */
  --color-green: #16803b;          /* primary call to action */
  --color-green-dark: #0f672d;     /* CTA hover */
  --color-organic: #73be16;        /* organic mark badge */
  --color-sale: #b5121b;           /* sale badge + sale price */
  --color-media-bg: #f5f5f5;       /* product image backdrop */
  --color-footer-text: #151515;
  --color-footer-body: #242424;
  --color-star: 255, 169, 0;
  --color-border: rgba(18, 18, 18, .12);
  --color-scroll-track: #ededed;
  --color-scroll-thumb: #929292;
  --color-slider-button: rgba(115, 115, 115, .82);

  /* Buttons */
  --color-button: 18, 18, 18;
  --color-button-text: 255, 255, 255;

  /* Typography */
  --font-body-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body-weight: 400;
  --font-body-weight-bold: 700;
  --font-heading-weight: 600;

  /* Layout */
  --page-width: 120rem;
  --layout-max: 192rem;
  --grid-gap-desktop: 2rem;
  --grid-gap-mobile: 1.2rem;

  /* Radii — the original design is square-cornered for cards and media */
  --radius-card: 0rem;
  --radius-pill: 1.3rem;
  --radius-button: 0rem;

  --transition: .2s ease;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* The whole design system is expressed in rem against a 10px root. */
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  font-family: var(--font-body-family);
  font-size: 1.5rem;
  font-weight: var(--font-body-weight);
  line-height: 1.8;
  letter-spacing: .06rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

a { color: rgb(var(--color-foreground)); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .3rem; }

h1, h2, h3, h4, h5, h6,
.h0, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-heading-family);
  font-weight: var(--font-heading-weight);
  letter-spacing: .06rem;
  line-height: 1.3;
  margin: 0 0 1rem;
  word-break: break-word;
  color: rgb(var(--color-foreground));
}

h1, .h1 { font-size: 3rem; }
h2, .h2 { font-size: 2.4rem; }
h3, .h3 { font-size: 2rem; }
h4, .h4 { font-size: 1.8rem; }
h5, .h5 { font-size: 1.6rem; }

@media screen and (min-width: 750px) {
  h1, .h1 { font-size: 4rem; }
  h2, .h2 { font-size: 3rem; }
}

p { margin: 0 0 1.6rem; }
ul, ol { margin: 0 0 1.6rem; padding-left: 2rem; }
li { margin-bottom: .4rem; }

hr { border: 0; border-top: .1rem solid var(--color-border); margin: 2.4rem 0; }

table { width: 100%; border-collapse: collapse; font-size: 1.4rem; margin-bottom: 2rem; }
th, td { border: .1rem solid var(--color-border); padding: .8rem 1rem; text-align: left; }
th { background: var(--color-cream); font-weight: 700; }

blockquote {
  margin: 2rem 0;
  padding: 1.6rem 2rem;
  border-left: .3rem solid var(--color-green);
  background: var(--color-cream);
  font-style: italic;
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; }
pre { background: var(--color-cream); padding: 1.6rem; overflow: auto; }

::selection { background: rgba(22, 128, 59, .18); }

/* Focus visibility — accessibility */
:focus-visible { outline: .2rem solid rgb(var(--color-foreground)); outline-offset: .3rem; }

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */

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

.page-width--wide { max-width: var(--layout-max); padding: 0 3.2rem; }

@media screen and (min-width: 750px) {
  .page-width { padding: 0 3.2rem; }
}

.section { margin-bottom: 4rem; }
.section--tight { margin-bottom: 2.4rem; }

.list-unstyled { margin: 0; padding: 0; list-style: none; }
.list-unstyled li { margin: 0; }

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  word-wrap: normal !important;
}

.hidden { display: none !important; }
.text-center { text-align: center; }

.skip-to-content-link {
  position: absolute;
  top: -10rem; left: 1rem;
  z-index: 9999;
  padding: 1.2rem 2rem;
  background: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
  font-weight: 700;
}
.skip-to-content-link:focus { top: 1rem; }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 2rem 1.6rem 0; }
.alignright { float: right; margin: 0 0 1.6rem 2rem; }
.aligncenter { display: block; margin: 0 auto 1.6rem; }
.alignwide { max-width: 110rem; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption { font-size: 1.3rem; color: rgba(var(--color-foreground), .7); text-align: center; }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding: 1rem 2.4rem;
  border: .1rem solid transparent;
  border-radius: var(--radius-button);
  background: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
  background: #2b2b2b;
  color: #fff;
  text-decoration: none;
}

.button--green,
.button--primary { background: var(--color-green); color: #fff; }
.button--green:hover,
.button--primary:hover { background: var(--color-green-dark); color: #fff; }

.button--outline {
  background: #fff;
  color: #111;
  border: .15rem solid var(--color-green);
}
.button--outline:hover { background: var(--color-green); color: #fff; }

.button--full { width: 100%; }

.button[disabled],
button[disabled] { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   5. FORMS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 4.8rem;
  padding: 1.2rem;
  border: .1rem solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  color: rgb(var(--color-foreground));
  font-family: inherit;
  font-size: 1.4rem;
  line-height: 1.4;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--color-green);
  box-shadow: 0 0 0 .1rem var(--color-green);
}

textarea { min-height: 12rem; resize: vertical; }

label { display: block; margin-bottom: .6rem; font-size: 1.35rem; font-weight: 600; }

.field { position: relative; }
.field__input { padding: 1.4rem 1.2rem; }
.field__label {
  position: absolute;
  top: 1.4rem; left: 1.2rem;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(var(--color-foreground), .75);
  pointer-events: none;
  transition: top var(--transition), font-size var(--transition);
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  top: .5rem;
  font-size: 1rem;
}
.field__input:focus + .field__label { color: var(--color-green); }

.form-row { margin-bottom: 1.6rem; }

/* ==========================================================================
   6. BENEFITS BAR  (announcement strip)
   ========================================================================== */

.benefits-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
}
.benefits-bar--border { border-bottom: .1rem solid rgba(var(--color-foreground), .14); }

.benefits-bar__track {
  min-height: 6.4rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2.4rem;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.benefits-bar__item {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.2rem 0;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
a.benefits-bar__item { transition: opacity var(--transition); }
a.benefits-bar__item:hover { opacity: .72; text-decoration: none; }

.benefits-bar__icon {
  width: 2.1rem; height: 2.1rem;
  flex: 0 0 2.1rem;
  color: var(--color-green);
}
.benefits-bar__icon svg {
  width: 100%; height: 100%;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

@media screen and (max-width: 1100px) {
  .benefits-bar__track { gap: 1.4rem; }
  .benefits-bar__item { font-size: 1.3rem; }
}

@media screen and (max-width: 749px) {
  .benefits-bar__track {
    min-height: 4.8rem;
    justify-content: flex-start;
    gap: 0;
    padding-inline: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .benefits-bar__track::-webkit-scrollbar { display: none; }
  .benefits-bar__item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding: 1rem 2rem;
    font-size: 1.35rem;
  }
  .benefits-bar__icon { width: 1.9rem; height: 1.9rem; flex-basis: 1.9rem; }
}

/* ==========================================================================
   7. HEADER
   ========================================================================== */

.site-header { position: relative; z-index: 20; background: #fff; }

.header-promo-strip {
  width: 100%;
  min-height: 5.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  background: var(--color-green);
  color: #fff;
  text-align: center;
}
.header-promo-strip__text,
.header-promo-strip__link {
  margin: 0;
  color: inherit;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.4;
}
.header-promo-strip__link { text-decoration: none; transition: opacity var(--transition); }
.header-promo-strip__link:hover { opacity: .85; text-decoration: underline; text-underline-offset: .3rem; }

.header-wrapper { border-bottom: .1rem solid var(--color-border); }

.site-header__inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 1.5rem;
}

.site-header__heading { display: flex; align-items: center; }
.site-header__logo { width: clamp(13rem, 10vw, 19rem); }
.site-header__logo img { width: 100%; height: auto; }
.site-header__logo-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
  white-space: nowrap;
}

.header-search-bar { display: none; }

.site-header__icons { display: flex; align-items: center; gap: 1.2rem; }

.header-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.4rem; height: 4.4rem;
  color: rgb(var(--color-foreground));
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.header-icon:hover { text-decoration: none; opacity: .75; }
.header-icon svg {
  width: 2.6rem; height: 2.6rem;
  fill: none; stroke: currentColor;
  stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}

.header-icon__count {
  position: absolute;
  top: .2rem; right: .2rem;
  min-width: 2rem; height: 2rem;
  display: grid;
  place-items: center;
  padding: 0 .4rem;
  border-radius: 1rem;
  background: var(--color-green);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.header-icon__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Primary navigation */
.site-nav { border-top: .1rem solid var(--color-border); }
.site-nav__list {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  list-style: none;
}
.site-nav__list li { margin: 0; }
.site-nav__list a {
  display: block;
  padding: .8rem 1rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgb(var(--color-foreground));
  text-decoration: none;
}
.site-nav__list a:hover span,
.site-nav__list .current-menu-item > a span { text-decoration: underline; text-underline-offset: .5rem; text-decoration-thickness: .15rem; }

/* Dropdown submenus */
.site-nav__list .sub-menu {
  position: absolute;
  z-index: 30;
  min-width: 22rem;
  margin: 0;
  padding: .6rem 0;
  list-style: none;
  background: #fff;
  border: .1rem solid var(--color-border);
  box-shadow: 0 .4rem 1.6rem rgba(0, 0, 0, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(.4rem);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.site-nav__list li { position: relative; }
.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav__list .sub-menu a { padding: .8rem 1.6rem; font-weight: 500; font-size: 1.4rem; }

/* Mobile menu toggle */
.nav-toggle { display: grid; }
@media screen and (min-width: 990px) { .nav-toggle { display: none; } }

@media screen and (min-width: 990px) {
  .site-header__inner {
    grid-template-areas: "heading search icons";
    grid-template-columns: minmax(16rem, 1fr) minmax(42rem, 3.8fr) minmax(18rem, 1fr);
    column-gap: 4rem;
    padding: 2.8rem 4.8rem 1.4rem;
  }
  .site-header__heading { grid-area: heading; justify-self: start; }
  .header-search-bar {
    grid-area: search;
    align-self: center;
    display: flex;
    align-items: center;
    width: 100%;
    height: 6rem;
    background: var(--color-cream);
    border: .1rem solid transparent;
  }
  .header-search-bar__icon {
    width: 7rem;
    display: grid;
    place-items: center;
    flex: 0 0 7rem;
  }
  .header-search-bar__icon svg {
    width: 3rem; height: 3rem;
    fill: none; stroke: currentColor;
    stroke-width: 1.3; stroke-linecap: round;
  }
  .header-search-bar__input {
    width: 100%; height: 100%;
    min-height: 0;
    padding: 0 7rem 0 0;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 2rem;
  }
  .header-search-bar__input:focus { box-shadow: none; border: 0; }
  .header-search-bar__input::placeholder { color: rgba(var(--color-foreground), .9); opacity: 1; }
  .site-header__icons { grid-area: icons; }
  .header-icon { width: 4.8rem; height: 4.8rem; }
  .header-icon svg { width: 2.8rem; height: 2.8rem; }

  .site-nav { border-top: 0; padding-bottom: 1rem; }
  .site-nav__list { gap: clamp(.4rem, 1vw, 2rem); }
  .site-nav__list a { font-size: 1.65rem; }
}

@media screen and (min-width: 990px) and (max-width: 1200px) {
  .site-header__inner {
    grid-template-columns: 14rem minmax(36rem, 1fr) auto;
    column-gap: 2.4rem;
    padding-inline: 2.4rem;
  }
  .header-search-bar { height: 5.4rem; }
  .site-nav__list a { font-size: 1.45rem; padding-inline: .7rem; }
}

@media screen and (max-width: 989px) {
  /* Four controls (menu, account, wishlist, cart) plus the logo have to fit on
     a 360px screen, so the gaps and hit areas tighten up here. */
  .site-header__inner { padding: 1rem 1.2rem; gap: 1rem; }
  .site-header__logo { max-width: 9rem; }
  .site-header__icons { gap: .2rem; }
  .header-icon { width: 3.8rem; height: 3.8rem; }
  .header-icon svg { width: 2.4rem; height: 2.4rem; }
  .header-promo-strip { min-height: 4.6rem; padding: .9rem 1.5rem; }
  .header-promo-strip__text,
  .header-promo-strip__link { font-size: 1.35rem; }

  /* Collapsed mobile navigation */
  .site-nav {
    display: none;
    border-top: .1rem solid var(--color-border);
    padding: 1rem 0;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__list a { padding: 1.2rem 1.5rem; font-size: 1.6rem; }
  .site-nav__list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    padding-left: 1.6rem;
  }
}

/* Header promo strip is opt-in via the Customizer */
.header-promo-strip:empty { display: none; }

/* ==========================================================================
   8. CONTENT / PAGE
   ========================================================================== */

.site-main { display: block; min-height: 40vh; }

.page-header { margin: 2.4rem 0 3.2rem; text-align: center; }
.page-header__title { margin: 0; font-size: clamp(2.4rem, 2.4vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }

.entry-content { max-width: 80rem; margin: 0 auto; }
.entry-content h2 { margin-top: 3.2rem; font-weight: 800; }
.entry-content h3 { margin-top: 2.4rem; font-weight: 700; }
.entry-content ul { padding-left: 2.2rem; }
.entry-content img { margin: 1.6rem 0; }

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.6rem 1.5rem 0;
  font-size: 1.3rem;
  color: rgba(var(--color-foreground), .65);
}
.breadcrumbs a { color: inherit; }
.breadcrumbs span + span::before { content: " / "; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin: 3.2rem 0;
  list-style: none;
  padding: 0;
}
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 4rem; height: 4rem;
  padding: 0 .8rem;
  border: .1rem solid var(--color-border);
  color: rgb(var(--color-foreground));
  text-decoration: none;
  font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: rgb(var(--color-foreground)); color: #fff; }

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site-footer {
  margin-top: 6rem;
  background: var(--color-cream);
  color: var(--color-footer-text);
}
.site-footer a { color: var(--color-footer-body); }

.footer__content-top {
  display: flex;
  flex-direction: column;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 3.2rem 3.6rem;
}

.footer-block--newsletter {
  order: -1;
  width: calc(100% + 6.4rem);
  margin: 0 0 3.2rem -3.2rem;
  padding: 3rem 3.2rem;
  border-bottom: .1rem solid rgba(0, 0, 0, .08);
}

.footer-block__newsletter {
  display: grid;
  grid-template-columns: minmax(28rem, 1fr) minmax(40rem, 1.5fr);
  align-items: center;
  gap: 5rem;
  width: 100%;
  text-align: left;
}
.footer-block__newsletter .footer-block__heading { margin: 0; font-size: 1.9rem; font-weight: 800; }

.footer__newsletter { width: 100%; }
.newsletter-form__field-wrapper .field { display: grid; grid-template-columns: 1fr auto; }
.newsletter-form__field-wrapper .field__input {
  height: 4.8rem;
  padding: 1.2rem;
  border: .1rem solid #cfcfcf;
  background: #fff;
}
.newsletter-form__button {
  position: static;
  width: auto;
  min-width: 11rem;
  height: 4.8rem;
  min-height: 4.8rem;
  padding: 0 1.6rem;
  border: 0;
  background: var(--color-green);
  color: #fff;
  font-weight: 750;
}
.newsletter-form__button:hover { background: var(--color-green-dark); color: #fff; }

.footer__blocks-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 3fr;
  gap: 4rem;
}

.footer-block { width: 100%; text-align: left; }
.footer-block__heading { margin: 0 0 1.5rem; color: var(--color-footer-text); font-size: 1.35rem; font-weight: 800; }
.footer-block__details-content { color: var(--color-footer-body); font-size: 1.3rem; line-height: 1.55; }
.footer-block__details-content p { margin: 0 0 .8rem; }
.footer-block__details-content ul { list-style: none; margin: 0; padding: 0; }
.footer-block__details-content li { margin: 0; }
.footer-block__details-content a {
  display: inline-block;
  padding: .35rem 0;
  color: var(--color-footer-body);
  font-size: 1.3rem;
  text-decoration: none;
}
.footer-block__details-content a:hover { color: var(--color-green); text-decoration: underline; }

.footer-social-links { margin: 0; padding: 0; list-style: none; }
.footer-social-links li + li { margin-top: .8rem; }
.footer-social-links a { display: flex; align-items: center; gap: .7rem; color: var(--color-footer-body); font-size: 1.3rem; text-decoration: none; }
.footer-social-links a svg { width: 1.8rem; height: 1.8rem; flex: 0 0 1.8rem; color: var(--color-green); transition: transform var(--transition); }
.footer-social-links a:hover { color: var(--color-green); text-decoration: none; }
.footer-social-links a:hover svg { transform: scale(1.1); }

.footer__content-bottom {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 2.6rem 3.2rem 1.4rem;
  text-align: center;
}
.footer__payment { margin: 0 0 1.6rem; }
.footer__payment .list-payment {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__payment svg { height: 2.4rem; width: auto; }

.footer__copyright { margin-top: 1rem; font-size: 1.1rem; color: var(--color-footer-body); }
.footer__copyright a { color: inherit; }

@media screen and (max-width: 989px) {
  .footer__blocks-wrapper { grid-template-columns: repeat(2, 1fr); }
  .footer-block__newsletter { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media screen and (max-width: 749px) {
  .footer__content-top { padding: 0 2rem 2.5rem; }
  .footer-block--newsletter { width: calc(100% + 4rem); margin-left: -2rem; padding: 2.4rem 2rem; }
  .footer-block__newsletter { grid-template-columns: 1fr; text-align: center; }
  .footer__blocks-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .newsletter-form__field-wrapper .field { grid-template-columns: 1fr; gap: .8rem; }
  .newsletter-form__button { width: 100%; }
  .footer__content-bottom { padding-inline: 2rem; }
}

/* ==========================================================================
   10. PRODUCT CARDS, GRIDS & SLIDERS
   Used on the shop, category archives, related products and the homepage.
   Kept in the always-loaded stylesheet so every product card is identical.
   ========================================================================== */

/* --------------------------------------------------------------------------
   3. PRODUCT SLIDER / GRID SECTIONS
   -------------------------------------------------------------------------- */

.product-section { position: relative; margin-bottom: 5.6rem; }
.product-section__head { padding-inline: 2.4rem; }

.product-section__title {
  margin: 0 0 2.4rem;
  color: rgb(var(--color-foreground));
  font-size: clamp(2.2rem, 2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.product-section__viewport { overflow: hidden; }
.product-section--full { padding-inline: 2.4rem; }

/* Grid: 4 columns on desktop, matching the original */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 3.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-grid > li { margin: 0; }

/* Horizontal slider: same widths, scrolled */
.product-grid--slider {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: .4rem;
}
.product-grid--slider::-webkit-scrollbar { display: none; }
.product-grid--slider > li {
  flex: 0 0 calc((100% - 6rem) / 4);
  max-width: calc((100% - 6rem) / 4);
  scroll-snap-align: start;
}

@media screen and (max-width: 989px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid--slider > li { flex-basis: calc((100% - 4rem) / 3); max-width: calc((100% - 4rem) / 3); }
}

@media screen and (max-width: 749px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; row-gap: 2.4rem; }
  .product-section__head { padding-inline: 1.5rem; }
  .product-section--full { padding-inline: 1.5rem; }
  .product-grid--slider > li { flex-basis: calc(100% - 3rem); max-width: calc(100% - 3rem); }
}

/* Slider arrows */
.slider-button {
  position: absolute;
  z-index: 3;
  top: 42%;
  display: grid;
  place-items: center;
  width: 5.6rem; height: 5.6rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-slider-button);
  color: #fff;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color var(--transition), opacity var(--transition);
}
.slider-button:hover { background: rgba(90, 90, 90, .92); }
.slider-button[disabled] { opacity: .35; cursor: default; }
.slider-button--prev { left: 2.2rem; }
.slider-button--next { right: 2.2rem; }
.slider-button svg {
  width: 1.4rem; height: 1.4rem;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

@media screen and (max-width: 749px) {
  .slider-button { width: 4.2rem; height: 4.2rem; top: 38%; }
  .slider-button--prev { left: .8rem; }
  .slider-button--next { right: .8rem; }
}

/* "View all" button under a slider */
.product-section__view-all { margin-top: 2.4rem; text-align: center; }
.product-section__view-all .button { min-height: 4.4rem; padding: 1rem 2.2rem; }

/* --------------------------------------------------------------------------
   4. PRODUCT CARD
   -------------------------------------------------------------------------- */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
}

.product-card__media {
  position: relative;
  display: block;
  background: var(--color-media-bg);
  overflow: hidden;
}

.product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 2.2rem;
  transition: transform .35s ease;
}

.product-card:hover .product-card__media img { transform: scale(1.03); }

/* Sale badge — top left of the media box */
.product-card__badge {
  position: absolute;
  z-index: 2;
  top: 0; left: 0;
  display: inline-grid;
  place-items: center;
  min-width: 5.8rem;
  padding: .8rem 1rem;
  background: var(--color-sale);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

/* Organic mark — bottom left of the media box */
.product-card__organic {
  position: absolute;
  z-index: 2;
  left: 0; bottom: 0;
  display: grid;
  place-items: center;
  width: 6rem; height: 4.5rem;
  background: var(--color-organic);
  color: #fff;
}
.product-card__organic svg {
  width: 4.5rem; height: 3.2rem;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* Content */
.product-card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 17.5rem;
  padding: 1.4rem 0 5.4rem;
}

.product-card__title {
  min-height: 4rem;
  margin: 0 0 .7rem;
  font-family: var(--font-heading-family);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.product-card__title a { color: inherit; text-decoration: none; }
.product-card__title a:hover { text-decoration: underline; text-underline-offset: .3rem; }

.product-card__vendor {
  margin: 0;
  color: rgb(var(--color-foreground));
  font-size: 1.45rem;
  letter-spacing: 0;
}
.product-card__vendor a { color: inherit; text-decoration: none; }

/* Price — bottom left */
.product-card__price {
  margin: 1rem 0 0;
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.2;
}
.product-card__price del,
.product-card__price .price-item--regular {
  color: rgba(var(--color-foreground), .6);
  font-weight: 500;
  margin-right: .6rem;
}
.product-card__price ins,
.product-card__price .price-item--sale { color: var(--color-sale); text-decoration: none; font-weight: 750; }

/* Quick add — bottom right */
.product-card__quick-add {
  position: absolute;
  right: 0; bottom: 0;
  width: 42%;
  margin: 0;
}
.product-card__quick-add .button,
.product-card__quick-add button {
  width: 100%;
  min-height: 4.7rem;
  padding: .8rem 1.4rem;
  border: 0;
  border-radius: 0;
  background: var(--color-green);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}
.product-card__quick-add .button:hover,
.product-card__quick-add button:hover { background: var(--color-green-dark); color: #fff; }
.product-card__quick-add .added_to_cart { display: none; }

@media screen and (min-width: 990px) {
  .product-card__content { padding-bottom: 5.8rem; }
  .product-card__price {
    position: absolute;
    bottom: .2rem; left: 0;
    max-width: 55%;
    margin: 0;
  }
}

@media screen and (max-width: 749px) {
  .product-card__media img { padding: 1rem; }
  .product-card__organic { width: 4.6rem; height: 3.6rem; }
  .product-card__organic svg { width: 3.6rem; height: 2.7rem; }
  .product-card__content { min-height: 16rem; padding-bottom: 4.8rem; }
  .product-card__title { min-height: 4.6rem; font-size: 1.4rem; }
  .product-card__vendor { font-size: 1.25rem; }
  .product-card__quick-add { right: 0; left: 0; width: 100%; }
  .product-card__quick-add .button,
  .product-card__quick-add button { min-height: 4rem; padding-inline: 1.2rem; font-size: 1.2rem; }
}

/* ==========================================================================
   11. CURRENCY SWITCHER
   A plain GET <select> so it works without JavaScript.
   ========================================================================== */

.currency-switcher {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
}

.currency-switcher__select {
  width: auto;
  min-width: 8.6rem;
  min-height: 3.6rem;
  padding: .4rem 2.4rem .4rem .9rem;
  border: .1rem solid var(--color-border);
  border-radius: 0;
  background-color: transparent;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    right 1.2rem center,
    right .8rem center;
  background-size: .5rem .5rem, .5rem .5rem;
  background-repeat: no-repeat;
  color: rgb(var(--color-foreground));
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .04rem;
  cursor: pointer;
}

.currency-switcher__select:hover { border-color: rgb(var(--color-foreground)); }
.currency-switcher__select:focus { outline: .2rem solid rgb(var(--color-foreground)); outline-offset: .2rem; }

.currency-switcher__go {
  min-height: 3.6rem;
  padding: 0 1rem;
  font-size: 1.3rem;
}

/* Desktop shows the picker in the icon row; the copy inside the mobile menu
   stays hidden. Below 990px it is the other way round. */
.currency-switcher--nav { display: none; }

@media screen and (min-width: 990px) {
  .currency-switcher__select { min-height: 4rem; font-size: 1.4rem; }
  .currency-switcher--nav { display: none !important; }
}

@media screen and (max-width: 749px) {
  .currency-switcher__select { min-width: 7.6rem; min-height: 3.4rem; font-size: 1.2rem; }
}

@media screen and (max-width: 989px) {
  .currency-switcher--header { display: none; }

  .currency-switcher--nav {
    display: flex;
    margin: 1.4rem 1.5rem .4rem;
    padding-top: 1.2rem;
    border-top: .1rem solid var(--color-border);
  }

  .currency-switcher--nav .currency-switcher__select {
    width: 100%;
    min-height: 4.4rem;
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   12. MOBILE SAFETY NET
   Nothing should ever be wider than the viewport. This catches the odd long
   word or wide embed rather than letting the whole page scroll sideways.
   ========================================================================== */

@media screen and (max-width: 989px) {
  /* NOTE: deliberately no `overflow-x: hidden` here.
     It would hide the symptom while still clipping content, and it also makes
     documentElement.scrollWidth lie, which hides layout bugs from testing. */
  img, video, iframe { max-width: 100%; }
}

/* ==========================================================================
   13. "ADDED TO BASKET" NOTIFICATION
   A panel that slides down from under the header after an add-to-cart,
   mirroring the original storefront's cart notification. Offers the two
   actions that matter — View basket and Checkout — plus a quiet way out.
   ========================================================================== */

.cart-notification-wrapper { position: relative; }

.cart-notification {
  position: fixed;
  top: var(--gfi-notification-top, 8rem);
  right: 2.2rem;
  z-index: 70;
  width: min(36.8rem, calc(100vw - 3rem));
  padding: 2.5rem 3rem 2.8rem;
  border: .1rem solid rgba(var(--color-foreground), .1);
  background: rgb(var(--color-background));
  box-shadow: 0 .6rem 3rem rgba(0, 0, 0, .14);
  transform: translateY(-1.6rem);
  opacity: 0;
  visibility: hidden;
  transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s;
}

.cart-notification[hidden] { display: none; }

/* Opening: the panel drops in from above. */
.cart-notification.is-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .28s cubic-bezier(.2, .8, .3, 1), opacity .2s ease, visibility 0s;
}

.cart-notification:focus { outline: 0; }

/* --- Header row ---------------------------------------------------------- */

.cart-notification__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .4rem;
}

.cart-notification__heading {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .01rem;
}

.cart-notification__checkmark {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-notification__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: -.8rem -1.4rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(var(--color-foreground));
  cursor: pointer;
}

.cart-notification__close svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.cart-notification__close:hover { opacity: .6; }

/* --- Product ------------------------------------------------------------- */

.cart-notification-product {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0 1.8rem;
}

.cart-notification-product__image { flex: 0 0 6rem; }

.cart-notification-product__image img {
  display: block;
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  background: #f5f5f5;
}

.cart-notification-product__details { min-width: 0; }

.cart-notification-product__name {
  margin: 0 0 .3rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.35;
}

.cart-notification-product__meta,
.cart-notification-product__qty {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
  color: rgba(var(--color-foreground), .62);
}

/* --- Subtotal ------------------------------------------------------------ */

.cart-notification__subtotal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-top: 1.6rem;
  border-top: .1rem solid rgba(var(--color-foreground), .12);
  font-size: 1.4rem;
}

.cart-notification__subtotal span:last-child { font-weight: 800; }

/* --- Actions ------------------------------------------------------------- */

.cart-notification__links {
  display: grid;
  gap: .9rem;
  margin-top: 1.8rem;
  text-align: center;
}

/* These are scoped with the extra .cart-notification ancestor on purpose:
   assets/css/shop.css sets `.woocommerce a.button` (0,2,1) to the theme's dark
   button colour, which outranks a plain `.cart-notification__links .button`
   (0,2,0) on every WooCommerce page. Matching at (0,3,0) wins everywhere. */
.cart-notification .cart-notification__links .button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4.8rem;
  padding: 1.1rem 1.6rem;
  border-radius: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .1rem;
  text-transform: uppercase;
}

.cart-notification .cart-notification__links .button--outline {
  border: .1rem solid rgb(var(--color-foreground));
  background: transparent;
  color: rgb(var(--color-foreground));
}

.cart-notification .cart-notification__links .button--outline:hover {
  background: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
}

/* Checkout is the primary action, View basket the quiet alternative. */
.cart-notification .cart-notification__links .cart-notification__checkout {
  background: var(--color-green);
  color: #fff;
}

.cart-notification .cart-notification__links .cart-notification__checkout:hover {
  background: var(--color-green-dark);
  color: #fff;
}

.cart-notification__continue {
  justify-self: center;
  margin-top: .3rem;
  padding: .4rem;
  border: 0;
  background: none;
  color: rgba(var(--color-foreground), .72);
  font-size: 1.3rem;
  text-decoration: underline;
  text-underline-offset: .3rem;
  cursor: pointer;
}

.cart-notification__continue:hover { color: rgb(var(--color-foreground)); }

/* --- Mobile: full-width sheet under the header --------------------------- */

@media screen and (max-width: 749px) {
  .cart-notification {
    left: 1.2rem;
    right: 1.2rem;
    width: auto;
    padding: 2rem 1.8rem 2.2rem;
  }

  .cart-notification .cart-notification__links .button { min-height: 5rem; font-size: 1.3rem; }
}

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  .cart-notification { transition: none; }
  .cart-notification.is-active { transition: none; }
}
