/* Glastonferry Shop - monochrome poster styling. Scoped to WooCommerce pages. */
:root{
  --gf-ink:#0f0f0f; --gf-paper:#ffffff; --gf-mute:#6f6f6f;
  --gf-line:#e2e2e2; --gf-tile:#111111;
}

.woocommerce,.woocommerce-page{ font-family:'Manrope',sans-serif; color:var(--gf-ink); }
.woocommerce h1,.woocommerce h2,.woocommerce div.product .product_title,
.woocommerce ul.products li.product h2,.woocommerce-products-header__title{
  font-family:'Anton',sans-serif; font-weight:400; letter-spacing:.5px;
  text-transform:uppercase; line-height:1.02; color:var(--gf-ink);
}

/* Layout: breathing room under header, sensible width */
.woocommerce-page #primary.content-area,.woocommerce-page #main.site-main{
  width:100%; max-width:1180px; margin:0 auto; float:none;
  padding:52px 24px 72px; box-sizing:border-box;
}
.woocommerce-products-header{ margin:0 0 28px; }

/* Shop grid - kill the clearfix phantoms that break the grid, force clean 4-up */
.woocommerce ul.products{ display:grid!important; grid-template-columns:repeat(4,1fr)!important;
  gap:34px 24px!important; margin:0!important; padding:0!important; list-style:none; }
.woocommerce ul.products::before,.woocommerce ul.products::after{ content:none!important; display:none!important; }
.woocommerce ul.products li.product{ width:auto!important; margin:0!important; float:none!important;
  clear:none!important; text-align:left; padding:0!important; }
.woocommerce ul.products li.product a img{ margin:0 0 12px; border:1px solid var(--gf-line);
  aspect-ratio:1/1; object-fit:cover; background:var(--gf-tile); width:100%; }
.woocommerce ul.products li.product h2,.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:19px!important; margin:0 0 2px; padding:0!important; }
.woocommerce ul.products li.product .price{ color:var(--gf-ink); font-weight:600; font-size:15px; }
.woocommerce ul.products li.product .price del{ color:var(--gf-mute); font-weight:400; }
.woocommerce ul.products li.product .button{ margin-top:10px; }
@media(max-width:1024px){ .woocommerce ul.products{ grid-template-columns:repeat(3,1fr)!important; } }
@media(max-width:768px){ .woocommerce ul.products{ grid-template-columns:repeat(2,1fr)!important; } }
@media(max-width:480px){ .woocommerce ul.products{ grid-template-columns:1fr!important; } }

/* Remove clutter: empty star ratings + product meta (SKU / category / tags) */
.woocommerce .star-rating,.woocommerce .woocommerce-product-rating,
.woocommerce div.product .product_meta{ display:none!important; }

/* Sale flash -> minimal outline */
.woocommerce span.onsale{ background:var(--gf-paper); color:var(--gf-ink); border:1px solid var(--gf-ink);
  border-radius:0; min-height:0; min-width:0; padding:3px 10px; font-family:'Manrope'; font-weight:600;
  font-size:11px; letter-spacing:1px; text-transform:uppercase; top:8px; left:8px; margin:0; line-height:1.4; }

/* Buttons */
.woocommerce a.button,.woocommerce button.button,.woocommerce .single_add_to_cart_button,
.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt{
  background:var(--gf-ink); color:var(--gf-paper); border:1px solid var(--gf-ink); border-radius:0;
  font-family:'Manrope'; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  padding:12px 22px; transition:all .15s ease; }
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce .single_add_to_cart_button:hover,
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce #respond input#submit:hover{
  background:var(--gf-paper); color:var(--gf-ink); }

/* Single product */
.woocommerce div.product .product_title{ font-size:40px; margin:0 0 6px; }
.woocommerce div.product p.price,.woocommerce div.product span.price{ color:var(--gf-ink); font-weight:600; font-size:23px; }
.woocommerce div.product form.cart{ margin-top:18px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{ border-bottom-color:var(--gf-ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a{ font-family:'Manrope'; font-weight:600;
  text-transform:uppercase; letter-spacing:.5px; font-size:13px; }
.woocommerce .quantity .qty{ border:1px solid var(--gf-ink); border-radius:0; }
.woocommerce div.product .stock{ color:var(--gf-mute); font-weight:500; }

/* Size selector -> buttons */
.woocommerce div.product form.cart .variations label{ font-family:'Manrope'; font-weight:700;
  text-transform:uppercase; letter-spacing:1px; font-size:12px; }
.gf-size-buttons{ display:flex; flex-wrap:wrap; gap:10px; margin:4px 0; }
.gf-size-btn{ min-width:58px; padding:12px 16px; border:1px solid var(--gf-ink); background:var(--gf-paper);
  color:var(--gf-ink); font-family:'Manrope'; font-weight:600; font-size:14px; cursor:pointer;
  border-radius:0; text-transform:uppercase; letter-spacing:.5px; transition:all .12s ease; }
.gf-size-btn:hover{ background:#f2f2f2; }
.gf-size-btn.is-active{ background:var(--gf-ink); color:var(--gf-paper); }
.gf-size-btn.is-oos{ color:var(--gf-mute); border-color:var(--gf-line); cursor:not-allowed; opacity:.55; position:relative; }
.gf-size-btn.is-oos::after{ content:""; position:absolute; left:8px; right:8px; top:50%; height:1px; background:var(--gf-mute); }

/* Cart + block checkout */
.woocommerce table.shop_table{ border-radius:0; border-color:var(--gf-line); }
.woocommerce table.shop_table th{ font-family:'Manrope'; text-transform:uppercase; letter-spacing:.5px; font-size:12px; }
.wc-block-components-title,.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title{
  font-family:'Anton'!important; text-transform:uppercase; letter-spacing:.5px; font-weight:400!important; }
.wc-block-components-button,.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{
  background:var(--gf-ink)!important; color:var(--gf-paper)!important; border-radius:0!important;
  font-family:'Manrope'!important; font-weight:700!important; text-transform:uppercase!important; letter-spacing:1px!important; }

.woocommerce-message,.woocommerce-info,.woocommerce-error{ border-top-color:var(--gf-ink); border-radius:0; }

@media(max-width:600px){ .woocommerce div.product .product_title{ font-size:30px; } }

/* Colour swatches (M&S-style) */
.gf-colour-row{ margin:20px 0 4px; }
.gf-colour-label{ font-family:'Manrope'; font-weight:700; text-transform:uppercase; letter-spacing:1px; font-size:12px; }
.gf-colour-current{ font-family:'Manrope'; font-weight:500; font-size:13px; color:var(--gf-mute); margin-left:6px; }
.gf-colour-swatches{ display:flex; gap:14px; margin-top:10px; }
.gf-swatch{ width:32px; height:32px; border-radius:50%; border:1px solid rgba(0,0,0,.18);
  display:inline-block; cursor:pointer; transition:box-shadow .12s ease; }
.gf-swatch:hover{ box-shadow:0 0 0 2px var(--gf-paper),0 0 0 3px var(--gf-line); }
.gf-swatch.is-active{ box-shadow:0 0 0 2px var(--gf-paper),0 0 0 3px var(--gf-ink); cursor:default; }

/* Shop policy/legal footer strip */
.gf-shop-footer{ max-width:1180px; margin:48px auto 0; padding:24px; border-top:1px solid var(--gf-line); text-align:center; font-family:'Manrope'; }
.gf-shop-footer__links{ display:flex; gap:22px; justify-content:center; flex-wrap:wrap; margin-bottom:12px; }
.gf-shop-footer__links a{ font-weight:600; text-transform:uppercase; letter-spacing:.5px; font-size:12px; color:var(--gf-ink); text-decoration:none; }
.gf-shop-footer__links a:hover{ text-decoration:underline; }
.gf-shop-footer__legal{ font-size:12px; color:var(--gf-mute); margin:0; line-height:1.6; }
.gf-shop-footer__legal a{ color:var(--gf-mute); }

/* Live basket bar */
.gf-basket-bar{ position:sticky; top:0; z-index:60; display:flex; align-items:center; justify-content:space-between;
  gap:16px; background:var(--gf-ink); color:var(--gf-paper); padding:12px 24px; margin:0 0 28px;
  font-family:'Manrope'; }
.gf-basket-bar__brand{ font-family:'Anton'; text-transform:uppercase; letter-spacing:.5px; font-size:16px; }
.gf-basket-bar__link{ color:var(--gf-paper)!important; text-decoration:none; font-weight:700; text-transform:uppercase;
  letter-spacing:.5px; font-size:13px; }
.gf-basket-bar__link:hover{ text-decoration:underline; }
.gf-basket-count{ opacity:.8; }
.gf-basket-total{ opacity:.8; }

/* Arrival pill + dispatch note */
.gf-arrival{ margin:4px 0 12px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.gf-arrival__pill{ background:var(--gf-ink); color:var(--gf-paper); font-family:'Manrope'; font-weight:700;
  text-transform:uppercase; letter-spacing:.5px; font-size:11px; padding:6px 13px; border-radius:999px; white-space:nowrap; }
.gf-arrival__note{ font-family:'Manrope'; font-size:12px; color:var(--gf-mute); }

/* Basket bar - boxed + separated from header */
.gf-basket-bar{ background:var(--gf-paper); color:var(--gf-ink); border:1px solid var(--gf-line);
  padding:12px 16px 12px 20px; margin:0 0 30px; top:0; }
.gf-basket-bar__brand{ color:var(--gf-ink); font-size:15px; }
.gf-basket-bar__link{ background:var(--gf-ink); color:var(--gf-paper)!important; text-decoration:none;
  padding:10px 16px; font-size:12px; transition:background .15s ease; }
.gf-basket-bar__link:hover{ background:#333; text-decoration:none; }

/* Basket bar - black, white text + white button (final) */
.gf-basket-bar{ background:var(--gf-ink); color:var(--gf-paper); border:none;
  padding:14px 16px 14px 22px; margin:0 0 30px; top:0; }
.gf-basket-bar__brand{ color:var(--gf-paper); }
.gf-basket-bar__link{ background:var(--gf-paper); color:var(--gf-ink)!important; text-decoration:none;
  padding:10px 16px; font-size:12px; }
.gf-basket-bar__link:hover{ background:#e8e8e8; text-decoration:none; }
.gf-basket-count,.gf-basket-total{ opacity:.85; }

/* MERCH SHOP - bigger outlined pill, links to shop */
.gf-basket-bar__brand{ display:inline-block; color:var(--gf-paper)!important; text-decoration:none;
  font-family:'Anton'; text-transform:uppercase; letter-spacing:1px; font-size:20px;
  border:1.5px solid var(--gf-paper); border-radius:999px; padding:5px 20px; transition:all .15s ease; }
.gf-basket-bar__brand:hover{ background:var(--gf-paper); color:var(--gf-ink)!important; }

/* Add to basket: black when enabled, grey when no size selected */
.woocommerce div.product .single_add_to_cart_button{ background:var(--gf-ink)!important; color:var(--gf-paper)!important; border-color:var(--gf-ink)!important; }
.woocommerce div.product .single_add_to_cart_button:not(.disabled):not(.wc-variation-selection-needed):hover{ background:var(--gf-paper)!important; color:var(--gf-ink)!important; }
.woocommerce div.product .single_add_to_cart_button.disabled,
.woocommerce div.product .single_add_to_cart_button.wc-variation-selection-needed{ background:#c9c9c9!important; color:#fff!important; border-color:#c9c9c9!important; cursor:not-allowed; opacity:1!important; }
.woocommerce div.product .single_add_to_cart_button.disabled:hover,
.woocommerce div.product .single_add_to_cart_button.wc-variation-selection-needed:hover{ background:#bdbdbd!important; color:#fff!important; }

/* Block cart/checkout - mirror shop styling */
.wc-block-cart .wc-block-components-title, .wc-block-checkout .wc-block-components-title,
.wp-block-woocommerce-cart-order-summary-heading-block, .wc-block-cart__totals-title,
.wc-block-cart-items__header{ font-family:'Anton'!important; text-transform:uppercase; letter-spacing:.5px; font-weight:400!important; color:var(--gf-ink)!important; }
.wc-block-cart-items__header{ font-size:13px; }
.wc-block-components-product-name{ font-family:'Manrope'!important; font-weight:600!important; color:var(--gf-ink)!important; }
.gf-basket-bar{ margin-bottom:34px; }

/* Hide the default page title on checkout */
.woocommerce-checkout .entry-title, .woocommerce-checkout h1.entry-title,
.woocommerce-checkout .page-title, .page-id-2195 .entry-title, .page-id-2195 .page-title,
.woocommerce-checkout h1.wp-block-post-title{ display:none!important; }

/* Gap under site header on cart/checkout banner */
.woocommerce-cart .gf-basket-bar, .woocommerce-checkout .gf-basket-bar{ margin-top:34px; }

/* Hide default page title on basket + checkout (banner does the job) */
.woocommerce-cart .page-header, .woocommerce-cart .entry-title,
.woocommerce-checkout .page-header, .woocommerce-checkout .entry-title,
.page-id-2194 .page-header, .page-id-2195 .page-header{ display:none!important; }

/* Express checkout divider on the product page */
.single-product #wc-stripe-express-checkout-element{ margin-top:20px; padding-top:22px; border-top:1px solid var(--gf-line); position:relative; }
.single-product #wc-stripe-express-checkout-element::before{ content:"EXPRESS CHECKOUT"; position:absolute; top:-8px; left:50%; transform:translateX(-50%); background:var(--gf-paper); padding:0 14px; font-family:'Manrope'; font-weight:700; text-transform:uppercase; letter-spacing:1px; font-size:11px; color:var(--gf-mute); white-space:nowrap; }

/* Pre-order pill (outlined, distinct from the solid arrival pill) */
.gf-arrival__pill--pre{ background:var(--gf-paper)!important; color:var(--gf-ink)!important; border:1.5px solid var(--gf-ink); }

/* Remove the order-note field on checkout */
.wp-block-woocommerce-checkout-order-note-block, .wc-block-checkout__add-note{ display:none!important; }

/* Branded order-received thank-you */
.gf-thankyou{ max-width:720px; margin:0 0 34px; }
.gf-thankyou__hero{ background:var(--gf-ink); color:var(--gf-paper); padding:34px 28px; text-align:center; }
.gf-thankyou__kicker{ font-family:'Manrope'; font-weight:700; text-transform:uppercase; letter-spacing:2px; font-size:11px; color:#bcbcbc; }
.gf-thankyou__title{ font-family:'Anton'!important; color:var(--gf-paper)!important; font-size:30px!important; text-transform:uppercase; margin:8px 0 6px!important; line-height:1.05; }
.gf-thankyou__intro{ color:#d0d0d0; font-family:'Manrope'; font-size:14px; margin:0; }
.gf-thankyou__next{ border:1px solid var(--gf-line); border-top:none; padding:24px 28px; }
.gf-thankyou__next h3{ font-family:'Anton'!important; text-transform:uppercase; font-size:16px!important; margin:0 0 8px!important; color:var(--gf-ink)!important; }
.gf-thankyou__next p{ font-family:'Manrope'; font-size:14px; color:var(--gf-ink); margin:0 0 10px; line-height:1.6; }
.gf-thankyou__event{ font-weight:600; }

.gf-thankyou__next strong{ font-weight:700; color:var(--gf-ink); }

/* Product gallery: tidy square thumbnails + contained main image */
.woocommerce div.product .flex-control-thumbs{ display:grid !important; grid-template-columns:repeat(4,1fr); gap:8px; margin:12px 0 0 !important; padding:0 !important; list-style:none; }
.woocommerce div.product .flex-control-thumbs::before,
.woocommerce div.product .flex-control-thumbs::after{ content:none !important; display:none !important; }
.woocommerce div.product .flex-control-thumbs li{ width:auto !important; margin:0 !important; float:none !important; list-style:none; }
.woocommerce div.product .flex-control-thumbs img{ width:100% !important; aspect-ratio:1/1; object-fit:cover; display:block; cursor:pointer; opacity:.55; border:1px solid transparent; transition:opacity .15s ease,border-color .15s ease; }
.woocommerce div.product .flex-control-thumbs img:hover{ opacity:1; }
.woocommerce div.product .flex-control-thumbs img.flex-active{ opacity:1; border-color:var(--gf-ink); }

/* Contain the main gallery image so tall portrait shots don't dominate the page */
.woocommerce div.product .woocommerce-product-gallery__image img{ max-height:620px !important; width:auto !important; margin-left:auto !important; margin-right:auto !important; }
.woocommerce div.product .woocommerce-product-gallery{ text-align:center; }

/* Shop landing hero */
.woocommerce-shop .woocommerce-products-header{ display:none !important; }
.gf-hero{ position:relative; background-size:cover; background-position:center 28%; margin:0 0 36px; overflow:hidden; }
.gf-hero::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(15,15,15,.5),rgba(15,15,15,.72)); }
.gf-hero__inner{ position:relative; z-index:1; text-align:center; padding:70px 24px; }
.gf-hero__kicker{ display:block; font-family:'Manrope'; font-weight:700; text-transform:uppercase; letter-spacing:3px; font-size:12px; color:rgba(255,255,255,.82); margin-bottom:12px; }
.gf-hero__title{ font-family:'Anton' !important; color:#ffffff !important; text-transform:uppercase; font-size:66px !important; line-height:1 !important; margin:0 !important; letter-spacing:1px; }
.gf-hero__sub{ font-family:'Manrope'; color:rgba(255,255,255,.9); font-size:15px; margin:14px 0 0; }
@media(max-width:600px){ .gf-hero__title{ font-size:42px !important; } .gf-hero__inner{ padding:48px 18px; } }

/* Hero: left-aligned text over a left-dark gradient (suits centre/right subjects); centre on mobile */
.gf-hero::before{ background:linear-gradient(90deg,rgba(15,15,15,.9) 0%,rgba(15,15,15,.62) 42%,rgba(15,15,15,.12) 100%) !important; }
.gf-hero__inner{ text-align:left !important; max-width:600px; padding:66px 44px !important; }
@media(max-width:600px){
  .gf-hero::before{ background:linear-gradient(180deg,rgba(15,15,15,.45),rgba(15,15,15,.78)) !important; }
  .gf-hero__inner{ text-align:center !important; max-width:100%; padding:48px 18px !important; }
}

/* Hero mobile: heavy flat overlay so text reads clearly over the busy image */
@media(max-width:600px){
  .gf-hero{ background-position:center center; }
  .gf-hero::before{ background:rgba(15,15,15,.72) !important; }
  .gf-hero__inner{ text-align:center !important; max-width:100%; padding:52px 22px !important; }
  .gf-hero__title{ font-size:44px !important; }
  .gf-hero__kicker{ letter-spacing:2px; font-size:11px; }
  .gf-hero__sub{ font-size:14px; }
}

/* Basket bar mobile: stop the pill + basket link wrapping, shrink to fit */
@media(max-width:600px){
  .gf-basket-bar{ padding:10px 14px; gap:10px; }
  .gf-basket-bar__brand{ font-size:14px !important; letter-spacing:.5px; padding:6px 14px; white-space:nowrap; }
  .gf-basket-bar__link{ padding:8px 12px; font-size:11px; white-space:nowrap; }
  .gf-basket-bar__inner{ white-space:nowrap; }
}
@media(max-width:400px){
  .gf-basket-bar__brand{ font-size:13px !important; padding:5px 11px; }
  .gf-basket-bar__total{ display:none; }
}

/* Product description (moved above price) */
.gf-product-desc{ font-family:'Manrope'; font-size:14px; line-height:1.6; color:var(--gf-ink); margin:8px 0 16px; max-width:560px; }
.gf-product-desc p{ margin:0 0 8px; }
.gf-product-desc p:last-child{ margin-bottom:0; }

/* Fix: the removed tabs used to clear the product's floated columns — clear them explicitly now */
.woocommerce div.product::after{ content:""; display:block; clear:both; }
.gf-shop-footer{ clear:both; }

/* Hero: full-bleed edge-to-edge on mobile only (desktop stays boxed) */
@media(max-width:600px){
  .gf-hero{ width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); }
}

/* Cart/checkout mobile: stack the block columns, contain overflow, add page padding */
@media(max-width:768px){
  body.woocommerce-cart .page-content, body.woocommerce-cart .entry-content,
  body.woocommerce-cart main.site-main, body.woocommerce-cart #content,
  body.woocommerce-checkout .page-content, body.woocommerce-checkout .entry-content,
  body.woocommerce-checkout main.site-main, body.woocommerce-checkout #content{
    padding-left:16px !important; padding-right:16px !important; max-width:100% !important; box-sizing:border-box !important;
  }
  .wc-block-cart, .wc-block-checkout{ flex-wrap:wrap !important; }
  .wc-block-cart__main, .wc-block-cart__sidebar,
  .wc-block-checkout__main, .wc-block-checkout__sidebar{
    flex:0 0 100% !important; max-width:100% !important; width:100% !important; min-width:0 !important;
    padding-left:0 !important; padding-right:0 !important;
  }
  .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout{ max-width:100% !important; overflow-x:hidden; }
  #wc-stripe-express-checkout-element, .wc-block-components-express-payment{ max-width:100% !important; }
  .gf-basket-bar{ max-width:100%; }
}

/* Cart/checkout mobile: kill sideways scroll + clamp the express-pay element */
@media(max-width:768px){
  body.woocommerce-cart, body.woocommerce-checkout{ overflow-x:clip; }
  .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout{ overflow-x:clip; max-width:100%; }
  #wc-stripe-express-checkout-element, #wc-stripe-express-checkout-element iframe,
  .wc-block-components-express-payment, .wc-block-components-express-payment__event-buttons{
    max-width:100% !important; width:100% !important; overflow-x:clip;
  }
}

/* Cart/checkout mobile: undo any full-width/negative-margin break-out that shifts the block left */
@media(max-width:768px){
  body.woocommerce-cart .wp-block-woocommerce-cart,
  body.woocommerce-checkout .wp-block-woocommerce-checkout,
  body.woocommerce-cart .wc-block-cart,
  body.woocommerce-checkout .wc-block-checkout{
    margin-left:0 !important; margin-right:0 !important; width:auto !important; max-width:100% !important;
    left:auto !important; right:auto !important; transform:none !important; inset-inline:auto !important;
  }
}
