/*
Theme Name:   Storefront Badbframes
Theme URI:    https://badbframes.co.uk
Description:  Badbframes child theme — platinum edition
Author:       Badbframes
Template:     storefront
Version:      2.0.0
*/

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500&display=swap');

/* ─── Design tokens ─── */
:root {
  --bg0:    #060504;
  --bg1:    #0c0a08;
  --text:   #f3efe6;
  --muted:  #8a8680;
  --line:   rgba(243,239,230,.07);
  --accent: #c8c4bc;
  --radius: 16px;
  --ease:   cubic-bezier(.2,.8,.2,1);
  --shadow: 0 14px 50px rgba(0,0,0,.42);
  --max:    1280px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(243,239,230,.10) transparent;
}
html::-webkit-scrollbar { width: 5px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  background: rgba(243,239,230,.10);
  border-radius: 999px;
}

/* ─── Body ─── */
body {
  background: var(--bg0) !important;
  color: var(--text) !important;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Grain overlay ─── */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6,
.woocommerce-loop-product__title,
.product_title,
.woocommerce-checkout h3,
.cart_totals h2,
.site-title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  letter-spacing: -.02em;
}

/* ─── Header ─── */
.site-header {
  background: rgba(6,5,4,.92) !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  position: sticky !important;
  top: 0;
  z-index: 100;
}

/* Logo */
.site-branding {
  padding: 14px 0 !important;
  display: flex !important;
  align-items: center !important;
}
.custom-logo {
  max-height: 36px !important;
  width: auto !important;
  display: block;
}
.site-title { margin: 0 !important; }
.site-title a {
  font-family: 'DM Serif Display', serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  letter-spacing: .20em !important;
  color: var(--text) !important;
  text-transform: uppercase;
  text-decoration: none !important;
}
.site-title a:hover { color: var(--accent) !important; }
.site-description { display: none; }

/* ─── Navigation ─── */
.main-navigation { background: transparent !important; }
.main-navigation ul li a {
  color: rgba(243,239,230,.48) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s var(--ease);
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--text) !important;
  background: transparent !important;
}
.main-navigation ul ul {
  background: rgba(8,7,5,.96) !important;
  border: 1px solid var(--line) !important;
  backdrop-filter: blur(24px);
  border-radius: 10px !important;
  box-shadow: var(--shadow) !important;
}

/* Cart icon */
.site-header-cart .cart-contents { color: rgba(243,239,230,.55) !important; }
.site-header-cart .cart-contents .count {
  background: rgba(243,239,230,.15) !important;
  color: var(--text) !important;
  border-radius: 999px !important;
  min-width: 20px;
  height: 20px;
  font-size: 10px !important;
  font-family: 'Inter', sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.site-header-cart .cart-contents:hover { color: var(--text) !important; }

/* Back-to-store link */
.bbf-back {
  display: block;
  text-align: center;
  padding: 5px 0;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(243,239,230,.32) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease);
}
.bbf-back:hover { color: rgba(243,239,230,.65) !important; }

/* ─── Main content ─── */
#main, .site-main, .content-area { background: transparent !important; }

/* ─── Shop page ─── */
.woocommerce-products-header { display: none; }
.woocommerce-result-count {
  color: rgba(243,239,230,.30) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.woocommerce-ordering select {
  background: rgba(243,239,230,.04) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  color: rgba(243,239,230,.52) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  padding: 7px 12px;
}

/* Remove sidebar */
.woocommerce-page .widget-area { display: none !important; }
.woocommerce-page .site-content .col-full { max-width: 100%; }
.woocommerce-page .site-main { width: 100% !important; }
.woocommerce .site-main { max-width: var(--max); margin: 0 auto; }

/* ─── Product grid — edge-to-edge editorial layout ─── */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* ─── Product cards ─── */
ul.products li.product {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease) !important;
}
ul.products li.product.bbf-visible {
  opacity: 1 !important;
  transform: none !important;
}
ul.products li.product a { display: block; }
ul.products li.product a img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
ul.products li.product:hover a img { transform: scale(1.05); }

ul.products li.product .woocommerce-loop-product__title {
  font-family: 'DM Serif Display', serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  padding: 11px 0 2px !important;
  color: var(--text) !important;
  letter-spacing: -.01em;
}
ul.products li.product .price {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 300;
  color: rgba(243,239,230,.38) !important;
  padding: 0 0 14px !important;
  letter-spacing: .04em;
}
ul.products li.product .price ins { text-decoration: none; color: rgba(243,239,230,.65) !important; }
ul.products li.product .price del { color: rgba(243,239,230,.22) !important; }
ul.products li.product .button.add_to_cart_button { display: none !important; }

/* ─── Single product ─── */
.single-product div.product {
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: 64px;
  align-items: start;
  padding: 52px 0 96px;
}

.woocommerce-product-gallery { position: sticky; top: 88px; }
.woocommerce-product-gallery__wrapper img { border-radius: 0 !important; }
.flex-viewport { border-radius: 0 !important; overflow: hidden; }
.woocommerce-product-gallery__trigger { display: none !important; }

/* Gallery thumbnails */
.woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  gap: 6px;
  margin-top: 6px !important;
  padding: 0 !important;
}
.woocommerce-product-gallery .flex-control-thumbs li {
  width: auto !important;
  flex: 1;
  list-style: none !important;
}
.woocommerce-product-gallery .flex-control-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  opacity: .38;
  transition: opacity .22s var(--ease);
  cursor: pointer;
  border-radius: 0 !important;
  width: 100% !important;
}
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; }
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: .72; }

/* Summary column */
.summary.entry-summary { padding-top: 4px; }

.summary .product_title {
  font-size: clamp(34px, 3.6vw, 58px) !important;
  line-height: 1.04;
  margin-bottom: 10px;
  letter-spacing: -.03em;
}
.summary .price {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  color: rgba(243,239,230,.45) !important;
  letter-spacing: .06em;
  margin-bottom: 30px !important;
}
.woocommerce-product-details__short-description {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 300;
  color: rgba(243,239,230,.42) !important;
  line-height: 1.85;
  margin-bottom: 36px;
}

/* Hide native WooCommerce variation select — swatches replace it */
.variations_form .variations { display: none !important; }
.woocommerce-variation-add-to-cart { margin-top: 0 !important; }
.woocommerce-variation-price { display: none !important; }
.woocommerce-variation-description {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  color: rgba(243,239,230,.36) !important;
  margin-bottom: 16px;
}

/* ─── Colour swatches ─── */
.bbf-swatches-wrap { margin: 0 0 32px; }

.bbf-swatches-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: rgba(243,239,230,.30);
  margin-bottom: 14px;
  display: block;
}

.bbf-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bbf-swatch {
  --tx: 50%;
  --ty: 35%;
  --hl-opacity: 0;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.11);
  background: transparent;
  color: rgba(243,239,230,.40);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}
.bbf-swatch::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    68% 95% at var(--tx) var(--ty),
    rgba(255,255,255,.14) 0%,
    transparent 70%
  );
  opacity: var(--hl-opacity);
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: -1;
}
.bbf-swatch:hover {
  border-color: rgba(255,255,255,.28);
  color: rgba(243,239,230,.72);
}
.bbf-swatch.active {
  border-color: rgba(255,255,255,.65);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.18);
}

/* ─── Liquid glass buttons ─── */

/* Base glass style applied to main CTAs */
.single_add_to_cart_button,
.wc-proceed-to-checkout .checkout-button,
.woocommerce a.button.wc-forward,
.glass-action-btn {
  --tx: 50%;
  --ty: 35%;
  --hl-opacity: 0;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow:
    0 14px 44px rgba(0,0,0,.52),
    0 4px 12px rgba(0,0,0,.30),
    inset 0 1.5px 0 rgba(255,255,255,.42),
    inset 0 -1px 0 rgba(0,0,0,.20),
    inset 0 0 20px rgba(255,255,255,.05) !important;
  color: rgba(255,255,255,.93) !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  white-space: nowrap;
  cursor: pointer !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease !important;
  will-change: transform;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 44px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.single_add_to_cart_button::before,
.wc-proceed-to-checkout .checkout-button::before,
.woocommerce a.button.wc-forward::before,
.glass-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.22) 0%,
      rgba(255,255,255,.08) 6px,
      rgba(255,255,255,.04) 38%,
      transparent 68%
    ),
    rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(24px) saturate(175%) brightness(112%);
  backdrop-filter: blur(24px) saturate(175%) brightness(112%);
}

.single_add_to_cart_button::after,
.wc-proceed-to-checkout .checkout-button::after,
.woocommerce a.button.wc-forward::after,
.glass-action-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    68% 95% at var(--tx) var(--ty),
    rgba(255,255,255,.32) 0%,
    rgba(255,255,255,.10) 42%,
    transparent 70%
  );
  opacity: var(--hl-opacity);
  transition: opacity .2s ease;
}

.single_add_to_cart_button.is-pressed,
.wc-proceed-to-checkout .checkout-button.is-pressed,
.glass-action-btn.is-pressed {
  box-shadow:
    0 6px 22px rgba(0,0,0,.46),
    0 2px 6px rgba(0,0,0,.24),
    inset 0 1.5px 0 rgba(255,255,255,.50),
    inset 0 -1px 0 rgba(0,0,0,.16),
    inset 0 0 14px rgba(255,255,255,.08) !important;
}

/* Chrome SVG warp override */
html.svg-bd .single_add_to_cart_button::before,
html.svg-bd .wc-proceed-to-checkout .checkout-button::before,
html.svg-bd .glass-action-btn::before {
  background: transparent;
  -webkit-backdrop-filter: url("#container-glass");
  backdrop-filter: url("#container-glass");
}

/* Add-to-cart states */
.single_add_to_cart_button.bbf-loading { pointer-events: none; opacity: .6; }
.single_add_to_cart_button.bbf-done { border-color: rgba(255,255,255,.45) !important; }

/* Full-width checkout CTA */
.wc-proceed-to-checkout { padding: 0 !important; }
.wc-proceed-to-checkout .checkout-button { width: 100% !important; margin: 0 !important; }

/* All other buttons — subtle secondary style */
.button, button, input[type="submit"] {
  background: rgba(243,239,230,.05) !important;
  border: 1px solid rgba(243,239,230,.09) !important;
  color: rgba(243,239,230,.60) !important;
  border-radius: 999px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  font-size: 10px !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  padding: 10px 22px !important;
  cursor: pointer !important;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}
.button:hover, button:hover, input[type="submit"]:hover {
  background: rgba(243,239,230,.09) !important;
  border-color: rgba(243,239,230,.16) !important;
  color: var(--text) !important;
}

/* ─── Product tabs ─── */
.woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--line) !important;
  padding: 0 !important;
  background: transparent !important;
}
.woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid transparent;
  border-radius: 0 !important;
  margin: 0 !important;
}
.woocommerce-tabs ul.tabs li.active { border-bottom-color: rgba(243,239,230,.55) !important; }
.woocommerce-tabs ul.tabs li a {
  color: rgba(243,239,230,.30) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px 18px !important;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--text) !important; }
.woocommerce-tabs .panel {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 32px 0 !important;
  color: rgba(243,239,230,.46) !important;
  line-height: 1.85;
  font-size: 13px;
  font-weight: 300;
}

/* Related products */
.related h2, .upsells h2 {
  font-size: clamp(26px, 3vw, 40px) !important;
  margin-bottom: 32px !important;
}

/* ─── Cart page ─── */

/* Transform WC table into a clean card list */
table.shop_table.cart {
  display: block !important;
  border: none !important;
  background: transparent !important;
  width: 100% !important;
}
table.shop_table.cart thead { display: none !important; }
table.shop_table.cart tfoot { display: none !important; }
table.shop_table.cart tbody {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

table.shop_table.cart tr.cart_item {
  display: grid !important;
  grid-template-columns: 88px 1fr auto auto 36px !important;
  grid-template-areas: "thumb name price qty remove" !important;
  align-items: center !important;
  gap: 0 20px !important;
  padding: 22px 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease) !important;
}
table.shop_table.cart tr.cart_item.bbf-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Force all td to lose default table behaviour */
table.shop_table.cart td {
  border: none !important;
  padding: 0 !important;
  display: block !important;
  background: transparent !important;
}

table.shop_table.cart td.product-remove { grid-area: remove !important; }
table.shop_table.cart td.product-thumbnail { grid-area: thumb !important; }
table.shop_table.cart td.product-name { grid-area: name !important; }
table.shop_table.cart td.product-price { grid-area: price !important; }
table.shop_table.cart td.product-quantity { grid-area: qty !important; }
table.shop_table.cart td.product-subtotal { display: none !important; }

table.shop_table.cart td.product-thumbnail img {
  width: 88px !important;
  height: 88px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  display: block;
}

table.shop_table.cart td.product-name a {
  font-family: 'DM Serif Display', serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  display: block;
  margin-bottom: 5px;
  letter-spacing: -.01em;
}
table.shop_table.cart td.product-name .variation {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
table.shop_table.cart td.product-name .variation dt,
table.shop_table.cart td.product-name .variation dd {
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  color: rgba(243,239,230,.32) !important;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin: 0 !important;
  display: inline !important;
}
table.shop_table.cart td.product-name .variation dt::after { content: ':'; margin-right: 2px; }

table.shop_table.cart td.product-price {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 300;
  color: rgba(243,239,230,.45) !important;
  text-align: right !important;
}

table.shop_table.cart td.product-remove a.remove {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  color: rgba(243,239,230,.20) !important;
  font-size: 18px !important;
  transition: color .18s ease, background .18s ease !important;
  text-decoration: none !important;
}
table.shop_table.cart td.product-remove a.remove:hover {
  color: rgba(243,239,230,.7) !important;
  background: rgba(243,239,230,.06) !important;
}

/* Quantity stepper */
.quantity {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.quantity input.qty {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  border-radius: 6px !important;
  padding: 6px 8px !important;
  width: 46px !important;
  text-align: center !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  -moz-appearance: textfield;
}
.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; }

.bbf-qty-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 1px solid var(--line) !important;
  background: transparent !important;
  color: rgba(243,239,230,.40) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-family: 'Inter', sans-serif !important;
  flex-shrink: 0;
  transition: border-color .18s ease, color .18s ease !important;
}
.bbf-qty-btn:hover {
  border-color: rgba(243,239,230,.28) !important;
  color: var(--text) !important;
  background: transparent !important;
}

/* Cart actions */
.woocommerce-cart-form .actions {
  padding: 16px 0 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  border-top: none !important;
}
.woocommerce-cart-form .actions .coupon { display: none !important; }
.woocommerce-cart-form .actions .button.update-cart {
  font-size: 9px !important;
  opacity: .42;
}

/* Cart totals */
.cart-collaterals { margin-top: 52px !important; }
.cart_totals {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 28px 0 0 !important;
  float: none !important;
  width: 100% !important;
  max-width: 360px !important;
  margin-left: auto !important;
}
.cart_totals h2 {
  font-family: 'Inter', sans-serif !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: rgba(243,239,230,.28) !important;
  margin-bottom: 20px !important;
}
.cart_totals table { width: 100% !important; }
.cart_totals table th,
.cart_totals table td {
  border-bottom: 1px solid var(--line) !important;
  padding: 12px 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  color: rgba(243,239,230,.45) !important;
}
.cart_totals table th { width: 44%; color: rgba(243,239,230,.28) !important; }
.cart_totals .order-total th,
.cart_totals .order-total td {
  color: var(--text) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  border-bottom: none !important;
  padding-top: 20px !important;
}
.cart_totals .wc-proceed-to-checkout { margin-top: 24px; }

/* ─── Checkout ─── */
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 { width: 48% !important; }

.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #payment h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: rgba(243,239,230,.30) !important;
  margin-bottom: 20px !important;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.woocommerce form .form-row label {
  font-family: 'Inter', sans-serif !important;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(243,239,230,.30) !important;
  font-weight: 400;
  margin-bottom: 7px !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: rgba(243,239,230,.035) !important;
  border: 1px solid rgba(243,239,230,.09) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  padding: 12px 14px !important;
  transition: border-color .2s var(--ease);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: rgba(200,196,188,.45) !important;
  outline: none !important;
  box-shadow: none !important;
}

#order_review {
  background: rgba(243,239,230,.02) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 24px !important;
}
#order_review table th,
#order_review table td {
  border-bottom: 1px solid var(--line) !important;
  padding: 10px 0 !important;
  color: rgba(243,239,230,.52) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 300 !important;
}
#order_review .order-total td { color: var(--text) !important; font-weight: 400; }

#payment {
  background: rgba(243,239,230,.02) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
}
#payment .payment_methods { border-bottom: 1px solid var(--line) !important; }
#payment .payment_methods li label {
  color: rgba(243,239,230,.65) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
}
#payment .payment_box {
  background: rgba(243,239,230,.03) !important;
  color: rgba(243,239,230,.45) !important;
}

/* ─── Order confirmation ─── */
.woocommerce-order-received h2 { font-size: clamp(28px, 3.5vw, 44px) !important; }
.woocommerce-order-details,
.woocommerce-customer-details {
  background: rgba(243,239,230,.02) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 24px !important;
  margin-bottom: 24px;
}
.woocommerce-order-details td,
.woocommerce-order-details th,
.woocommerce-customer-details address {
  color: rgba(243,239,230,.52) !important;
  border-bottom: 1px solid var(--line) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 300 !important;
}

/* ─── My Account ─── */
.woocommerce-MyAccount-navigation {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 10px !important;
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: rgba(243,239,230,.40) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .18s, color .18s;
}
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: rgba(243,239,230,.05) !important;
  color: var(--text) !important;
}
.woocommerce-MyAccount-content { color: rgba(243,239,230,.75) !important; font-family: 'Inter', sans-serif !important; }

/* ─── Notices ─── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius) !important;
  border: 1px solid var(--line) !important;
  background: rgba(243,239,230,.03) !important;
  color: rgba(243,239,230,.75) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 300 !important;
}
.woocommerce-message::before { color: var(--accent) !important; }
.woocommerce-error { border-top-color: rgba(210,70,70,.55) !important; }

/* ─── Breadcrumbs ─── */
.woocommerce-breadcrumb {
  color: rgba(243,239,230,.24) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.woocommerce-breadcrumb a { color: rgba(243,239,230,.32) !important; }
.woocommerce-breadcrumb a:hover { color: var(--text) !important; }

/* ─── Star ratings ─── */
.star-rating span::before,
.woocommerce-product-rating .star-rating span::before { color: var(--accent) !important; }

/* ─── Footer ─── */
.site-footer {
  background: transparent !important;
  border-top: 1px solid var(--line) !important;
  color: rgba(243,239,230,.25) !important;
  padding: 28px 0 22px !important;
}
.site-footer a { color: rgba(243,239,230,.30) !important; }
.site-footer a:hover { color: var(--text) !important; }
.site-footer .site-info {
  font-family: 'Inter', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: .08em;
}

/* ─── Handheld footer bar ─── */
.storefront-handheld-footer-bar {
  background: rgba(6,5,4,.97) !important;
  border-top: 1px solid var(--line) !important;
}
.storefront-handheld-footer-bar li a { color: rgba(243,239,230,.40) !important; }
.storefront-handheld-footer-bar li.active a { color: var(--text) !important; }
.storefront-handheld-footer-bar .cart .count {
  background: rgba(243,239,230,.14) !important;
  color: var(--text) !important;
}

/* ─── Keyframes ─── */
@keyframes bbf-bump {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.38); }
  100% { transform: scale(1); }
}
.bbf-bump { animation: bbf-bump .32s var(--ease); }

/* ─── Storefront layout overrides ─── */
.storefront-full-width-content .site-main { max-width: 100% !important; }
.col-full { max-width: var(--max) !important; padding: 0 24px !important; }

/* ─── Responsive breakpoints ─── */

/* Mobile portrait < 480px */
@media (max-width: 479px) {
  .col-full { padding: 0 16px !important; }
  ul.products { grid-template-columns: 1fr !important; gap: 0 !important; }

  .single-product div.product {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 24px 0 56px;
  }
  .woocommerce-product-gallery { position: static; }
  .summary .product_title { font-size: 32px !important; }
  .single_add_to_cart_button { width: 100% !important; }
  .bbf-swatches { gap: 6px; }

  table.shop_table.cart tr.cart_item {
    grid-template-columns: 72px 1fr 28px !important;
    grid-template-areas:
      "thumb name   remove"
      "thumb price  qty"   !important;
    gap: 6px 14px !important;
  }
  table.shop_table.cart td.product-price { text-align: left !important; }
  .cart_totals { max-width: 100% !important; }
  .woocommerce-checkout .col-1,
  .woocommerce-checkout .col-2 { width: 100% !important; }
}

/* Large mobile 480–767px */
@media (min-width: 480px) and (max-width: 767px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 2px !important; }
  .single-product div.product {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 28px 0 64px;
  }
  .woocommerce-product-gallery { position: static; }
  .woocommerce-checkout .col-1,
  .woocommerce-checkout .col-2 { width: 100% !important; }
}

/* Tablet 768–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .single-product div.product { grid-template-columns: 52% 1fr; gap: 40px; }
}

/* Desktop 1024–1599px — 3-col default set above */

/* Ultrawide ≥ 1600px */
@media (min-width: 1600px) {
  :root { --max: 1440px; }
  ul.products { grid-template-columns: repeat(4, 1fr) !important; }
  .single-product div.product { gap: 88px; }
  .col-full { padding: 0 40px !important; }
}

/* Logo mobile */
@media (max-width: 767px) {
  .custom-logo { max-height: 28px !important; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
  html { scroll-behavior: auto; }
  ul.products li.product { opacity: 1 !important; transform: none !important; }
  table.shop_table.cart tr.cart_item { opacity: 1 !important; transform: none !important; }
}
