/* ================================================================
   GALLERY NOIR CHIC — WooCommerce Styles
   Overrides all WooCommerce defaults to match the minimal theme.
   ================================================================ */

/* ═══════════════════════════════════════════════════════════════
   NAV OVERLAY — WooCommerce icons (Account + Cart)
   ═══════════════════════════════════════════════════════════════ */

.gnc-nav-overlay__woo-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 2.5rem;
  border-top: 1px solid rgba(250,250,250,0.12);
}

.gnc-nav-overlay__woo-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #FAFAFA;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.gnc-nav-overlay__woo-link:hover { opacity: 1; }

/* Cart count badge inside overlay */
.gnc-nav-overlay__woo-link .gnc-cart-count {
  position: static;
  transform: none;
  background: #FAFAFA;
  color: #0A0A0A;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  line-height: 1;
}
.gnc-nav-overlay__woo-link .gnc-cart-count--visible { opacity: 1; }

/* ── Shop wrapper — used for cart/checkout (not our custom shop) ─ */
.gnc-shop-wrap {
  padding-top: var(--gnc-header-h, 90px);
}
.gnc-shop-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 4rem 6rem;
}
@media (max-width: 1280px) { .gnc-shop-inner { padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (max-width: 768px)  { .gnc-shop-inner { padding-left: 1.25rem; padding-right: 1.25rem; } }

/* Hide WooCommerce's own page title — we render our own banner */
.woocommerce-products-header,
.woocommerce-page-title,
.woocommerce h1.page-title,
h1.woocommerce-products-header__title {
  display: none !important;
}

/* ── Shop archive section ─────────────────────────────────────── */
.gnc-archive {
  padding: 3rem 0 6rem;
}
.gnc-archive__inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 4rem;
}
@media (max-width: 1280px) { .gnc-archive__inner { padding: 0 2.5rem; } }
@media (max-width: 768px)  { .gnc-archive__inner { padding: 0 1.25rem; } }

/* ── Collection filter bar ────────────────────────────────────── */
.gnc-shop-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.gnc-shop-filter__btn {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(0,0,0,0.14);
  color: rgba(0,0,0,0.45);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.gnc-shop-filter__btn:hover,
.gnc-shop-filter__btn--active {
  background: #808080;
  color: #FAFAFA;
  border-color: #0A0A0A;
}

/* ── Toolbar (result count + sort) ───────────────────────────── */
.woocommerce-result-count {
  font-size: 10px !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35) !important;
  margin: 0 !important;
}
.woocommerce-ordering select {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  background: #FAFAFA;
  color: rgba(0,0,0,0.55);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%230A0A0A' stroke-opacity='.4' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

/* ── Product grid ─────────────────────────────────────────────── */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 2rem 1.75rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media (max-width: 1100px) { ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 540px)  { ul.products { grid-template-columns: 1fr !important; } }

/* ── Product card ─────────────────────────────────────────────── */
ul.products li.product {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  position: relative;
}

/* Thumbnail */
ul.products li.product a img,
ul.products li.product .woocommerce-loop-product__link img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 4 / 5 !important;
  object-fit: cover !important;
  margin-bottom: 1rem !important;
  outline: 1px solid rgba(0,0,0,0.04);
  outline-offset: -1px;
  transition: transform 0.65s cubic-bezier(.25,.46,.45,.94) !important;
}
ul.products li.product:hover a img { transform: scale(1.04); }

/* Collection badge on card */
.gnc-product__collection-badge {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: rgba(250,250,250,0.9);
  color: rgba(0,0,0,0.5);
  padding: 3px 8px;
  margin-bottom: 0.5rem;
  pointer-events: none;
}

/* Product title */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
  font-family: 'Forum', Georgia, serif !important;
  font-size: clamp(1rem, 1.8vw, 1.2rem) !important;
  font-weight: 400 !important;
  color: #808080 !important;
  margin: 0 0 0.3rem !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  font-synthesis: none;
}

/* Price */
ul.products li.product .price,
ul.products li.product .price .amount {
  font-size: clamp(0.875rem, 1.5vw, 1rem) !important;
  color: rgba(0,0,0,0.6) !important;
  font-weight: 400 !important;
  font-family: 'Inter', sans-serif !important;
}
ul.products li.product .price del { color: rgba(0,0,0,0.25) !important; }
ul.products li.product .price ins { text-decoration: none !important; }

/* Sale badge */
ul.products li.product .onsale {
  position: absolute !important;
  top: 0.75rem !important;
  left: 0.75rem !important;
  background: #808080 !important;
  color: #FAFAFA !important;
  font-size: 8px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  border-radius: 0 !important;
  padding: 3px 8px !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.6 !important;
}

/* Add to cart button on card */
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
  display: inline-block !important;
  margin-top: 0.75rem !important;
  font-size: 9px !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  padding: 0.6rem 1.5rem !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  background: transparent !important;
  color: rgba(0,0,0,0.55) !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
}
ul.products li.product .button:hover,
ul.products li.product .add_to_cart_button:hover {
  background: #808080 !important;
  color: #FAFAFA !important;
  border-color: #808080 !important;
}

/* ── Single product — uses gnc-work-single layout ─────────────── */
/* (All layout handled by gnc-work-single__* classes in components.css) */

/* WooCommerce price inside our template */
.gnc-work-single__price .woocommerce-Price-amount {
  font-family: 'Inter', sans-serif;
  font-size: inherit;
  color: inherit;
}
.gnc-work-single__price ins { text-decoration: none; }
.gnc-work-single__price del { color: rgba(0,0,0,0.3); font-size: 0.85em; }

/* Add to cart button styled as primary action */
.gnc-woo-cart-form { display: contents; }
.gnc-work-action--buy {
  background: #808080 !important;
  color: #FAFAFA !important;
  border-color: #808080 !important;
}
.gnc-work-action--buy:hover {
  background: transparent !important;
  color: #808080 !important;
}
.gnc-work-action--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Product image gallery */
.gnc-product-gallery { display: flex; flex-direction: column; gap: 1rem; width: 100%; }

.gnc-product-gallery__main {
  width: 100%;
  max-height: calc(100vh - var(--gnc-header-h, 90px) - 4rem);
  object-fit: contain;
  object-position: center;
  background: #F8F8F8;
  outline: 1px solid rgba(0,0,0,0.05);
  outline-offset: -1px;
  display: block;
  transition: opacity 0.25s ease;
}

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

.gnc-product-gallery__thumb {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0;
  background: #F8F8F8;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.gnc-product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gnc-product-gallery__thumb--active {
  border-color: #0A0A0A;
}
.gnc-product-gallery__thumb:hover { border-color: rgba(0,0,0,0.4); }

/* ── Cart & Checkout ──────────────────────────────────────────── */
.woocommerce-cart table.cart,
.woocommerce-checkout form.checkout {
  max-width: 90rem;
  margin: 0 auto;
}
.woocommerce table.shop_table {
  border: none !important;
  border-collapse: collapse !important;
}
.woocommerce table.shop_table th {
  font-size: 9px !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: rgba(0,0,0,0.35) !important;
  font-weight: 400 !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.1) !important;
  padding: 0.75rem 0 !important;
}
.woocommerce table.shop_table td {
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  padding: 1.25rem 0 !important;
  vertical-align: middle !important;
}

/* Checkout form fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid rgba(0,0,0,0.14) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  color: #808080 !important;
  background: #FAFAFA !important;
  font-family: 'Inter', sans-serif !important;
}
.woocommerce form .form-row label {
  font-size: 9px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(0,0,0,0.45) !important;
  font-weight: 400 !important;
}

/* Collection link on single product */
.gnc-product__collection-link {
  margin-top: 1.5rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid rgba(0,0,0,0.07) !important;
}

/* ── Masonry shop grid ────────────────────────────────────────── */
.gnc-masonry--shop {
  columns: 4;
  column-gap: 1.75rem;
}
@media (max-width: 1100px) { .gnc-masonry--shop { columns: 2; } }
@media (max-width: 540px)  { .gnc-masonry--shop { columns: 1; } }

.gnc-masonry__item {
  break-inside: avoid;
  margin-bottom: 2rem;
}

.gnc-masonry__card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.gnc-masonry__img-wrap {
  overflow: hidden;
  background: #F8F8F8;
  outline: 1px solid rgba(0,0,0,0.04);
  outline-offset: -1px;
}

.gnc-masonry__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.65s cubic-bezier(.25,.46,.45,.94);
}
.gnc-masonry__card--link:hover .gnc-masonry__img {
  transform: scale(1.04);
}

.gnc-masonry__placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(0,0,0,0.3);
  letter-spacing: 0.1em;
}

.gnc-masonry__meta {
  padding: 0.875rem 0 0;
}

.gnc-masonry__tag {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin-bottom: 0.35rem;
}

.gnc-masonry__title {
  font-family: 'Forum', Georgia, serif;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 400;
  line-height: 1.25;
  color: #0A0A0A;
  margin: 0 0 0.25rem;
  font-synthesis: none;
}

.gnc-masonry__artist {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.38);
  margin: 0 0 0.4rem;
}

.gnc-masonry__price {
  font-size: 0.875rem;
  color: rgba(0,0,0,0.55);
  font-family: 'Inter', sans-serif;
  margin: 0;
}
.gnc-masonry__price .woocommerce-Price-amount { color: inherit; }
.gnc-masonry__price del { color: rgba(0,0,0,0.25); }
.gnc-masonry__price ins { text-decoration: none; }

/* ── Pagination (custom loop) ─────────────────────────────────── */
.gnc-pagination {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin: 3.5rem 0 0;
  flex-wrap: wrap;
}
.gnc-pagination a,
.gnc-pagination span {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.45);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.gnc-pagination a:hover,
.gnc-pagination span.current {
  background: #808080;
  color: #FAFAFA;
  border-color: #0A0A0A;
}

/* ── Empty state ──────────────────────────────────────────────── */
.gnc-empty {
  text-align: center;
  padding: 6rem 0;
}
.gnc-empty__msg {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.45);
}
.gnc-empty__msg a { color: #0A0A0A; }

/* ── Single product action button — full width ────────────────── */
.gnc-work-action--full {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ── Single product — reset WooCommerce defaults ──────────────── */
.gnc-work-single .entry-summary,
.gnc-work-single .woocommerce-product-gallery,
.gnc-work-single .related.products,
.gnc-work-single .up-sells.upsells,
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  all: unset !important;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT PAGE — Quantity control + Buy/Cart buttons
   ═══════════════════════════════════════════════════════════════ */

/* Add to Cart button variant */
.gnc-work-action--buy {
  background: #808080;
  color: #FAFAFA;
  border-color: #0A0A0A;
}
.gnc-work-action--buy:hover {
  background: transparent;
  color: #0A0A0A;
  border-color: #0A0A0A;
}

/* Qty + buttons row */
.gnc-product-qty-row {
  margin-bottom: 0.75rem;
}

.gnc-product-cart-form {
  margin-bottom: 0.5rem;
}

/* Quantity stepper */
.gnc-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(0,0,0,0.15);
  height: 44px;
}

.gnc-qty__btn {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: rgba(0,0,0,0.6);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.gnc-qty__btn:hover { background: #808080; color: #FAFAFA; }

.gnc-qty__input {
  width: 56px;
  text-align: center;
  border: none;
  border-left: 1px solid rgba(0,0,0,0.1);
  border-right: 1px solid rgba(0,0,0,0.1);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #0A0A0A;
  background: transparent;
  -moz-appearance: textfield;
  outline: none;
}
.gnc-qty__input::-webkit-inner-spin-button,
.gnc-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ═══════════════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════════════ */

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: 90rem;
  margin: 0 auto;
  padding: calc(var(--gnc-header-h, 90px) + 3rem) 4rem 6rem;
}

@media (max-width: 1024px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce { padding-left: 2rem; padding-right: 2rem; }
}
@media (max-width: 600px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* Cart title */
.woocommerce-cart h1.entry-title,
.woocommerce-checkout h1.entry-title {
  font-family: 'Forum', Georgia, serif !important;
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  font-weight: 400 !important;
  margin-bottom: 2.5rem !important;
  color: #808080 !important;
}

/* Cart table */
.woocommerce table.cart,
.woocommerce table.shop_table {
  width: 100% !important;
  border: none !important;
  border-collapse: collapse !important;
  margin-bottom: 2rem !important;
}

.woocommerce table.cart th,
.woocommerce table.shop_table th {
  font-size: 9px !important;
  letter-spacing: 0.35em !important;
  text-transform: uppercase !important;
  color: rgba(0,0,0,0.35) !important;
  font-weight: 400 !important;
  border: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.1) !important;
  padding: 0 0 0.875rem !important;
  font-family: 'Inter', sans-serif !important;
}

.woocommerce table.cart td,
.woocommerce table.shop_table td {
  border: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  padding: 1.5rem 0.75rem 1.5rem 0 !important;
  vertical-align: middle !important;
  color: #808080 !important;
}

/* Cart product image */
.woocommerce table.cart td.product-thumbnail img {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover !important;
  display: block !important;
  outline: 1px solid rgba(0,0,0,0.06) !important;
  outline-offset: -1px !important;
}

/* Cart product name */
.woocommerce table.cart td.product-name a {
  font-family: 'Forum', Georgia, serif !important;
  font-size: 1.05rem !important;
  color: #808080 !important;
  text-decoration: none !important;
  font-weight: 400 !important;
}
.woocommerce table.cart td.product-name a:hover { text-decoration: underline !important; }

/* Cart qty input */
.woocommerce table.cart td.product-quantity .qty {
  width: 56px !important;
  text-align: center !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  padding: 0.4rem 0.5rem !important;
  font-size: 0.875rem !important;
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif !important;
}

/* Cart remove × */
.woocommerce table.cart td.product-remove a {
  color: rgba(0,0,0,0.25) !important;
  font-size: 1.1rem !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.woocommerce table.cart td.product-remove a:hover { color: #c0392b !important; }

/* Cart update + coupon row */
.woocommerce table.cart td.actions {
  border-bottom: none !important;
  padding-top: 1.5rem !important;
}
.woocommerce table.cart td.actions .coupon {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.woocommerce table.cart td.actions .coupon input#coupon_code {
  border: 1px solid rgba(0,0,0,0.15) !important;
  border-radius: 0 !important;
  padding: 0.6rem 1rem !important;
  font-size: 0.875rem !important;
  font-family: 'Inter', sans-serif !important;
}

/* Cart totals */
.woocommerce-cart-form + .cart-collaterals {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}
.cart_totals {
  width: 100%;
  max-width: 400px;
}
.cart_totals h2 {
  font-family: 'Forum', Georgia, serif !important;
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  margin-bottom: 1.25rem !important;
}
.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
  font-size: 0.875rem !important;
  padding: 0.75rem 0 !important;
  border-color: rgba(0,0,0,0.07) !important;
  color: #808080 !important;
}
.woocommerce .cart_totals table th { color: rgba(0,0,0,0.4) !important; }

/* Proceed to Checkout button */
.woocommerce a.checkout-button,
.woocommerce .wc-proceed-to-checkout a.button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background: #808080 !important;
  color: #FAFAFA !important;
  border: 1px solid #808080 !important;
  border-radius: 0 !important;
  padding: 1rem 2rem !important;
  font-size: 10px !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s !important;
  margin-top: 1rem !important;
}
.woocommerce a.checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a.button:hover {
  background: transparent !important;
  color: #808080 !important;
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════════════════════ */

/* Two-column layout */
.woocommerce-checkout .woocommerce form.checkout {
  display: grid !important;
  grid-template-columns: 1fr 380px !important;
  grid-template-areas:
    "billing  order"
    "payment  order" !important;
  gap: 2.5rem 4rem !important;
  align-items: start !important;
}

.woocommerce-checkout .woocommerce form.checkout #customer_details {
  grid-area: billing;
}
.woocommerce-checkout .woocommerce form.checkout #order_review_heading,
.woocommerce-checkout .woocommerce form.checkout #order_review {
  grid-area: order;
  position: sticky;
  top: calc(var(--gnc-header-h, 90px) + 1.5rem);
}
.woocommerce-checkout .woocommerce form.checkout #payment {
  grid-area: payment;
}

/* Section headings */
.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
  font-family: 'Forum', Georgia, serif !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  color: #808080 !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

/* Form fields */
.woocommerce-checkout .form-row {
  margin-bottom: 1rem !important;
}
.woocommerce-checkout .form-row label {
  font-size: 9px !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: rgba(0,0,0,0.4) !important;
  font-weight: 400 !important;
  margin-bottom: 0.4rem !important;
  display: block !important;
  font-family: 'Inter', sans-serif !important;
}
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100% !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.9rem !important;
  font-family: 'Inter', sans-serif !important;
  color: #808080 !important;
  background: #FAFAFA !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: #808080 !important;
}

/* Half-width fields side by side */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  width: calc(50% - 0.5rem) !important;
  display: inline-block !important;
  vertical-align: top !important;
}
.woocommerce-checkout .form-row-first { margin-right: 1rem !important; }

/* Order review table */
#order_review table.shop_table {
  border: none !important;
}
#order_review table.shop_table thead th {
  font-size: 9px !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: rgba(0,0,0,0.35) !important;
  font-weight: 400 !important;
  padding: 0 0 0.75rem !important;
  border-bottom: 1px solid rgba(0,0,0,0.1) !important;
  border-top: none !important;
}
#order_review table.shop_table tbody tr td {
  padding: 1rem 0 !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  font-size: 0.875rem !important;
  color: #808080 !important;
}
#order_review table.shop_table tfoot tr th,
#order_review table.shop_table tfoot tr td {
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: #808080 !important;
}
#order_review .order-total th,
#order_review .order-total td {
  font-family: 'Forum', Georgia, serif !important;
  font-size: 1.15rem !important;
  border-top: 1px solid rgba(0,0,0,0.12) !important;
  padding-top: 1rem !important;
}

/* Payment section */
#payment {
  background: #F8F8F8 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 2rem !important;
}
#payment ul.payment_methods {
  padding: 0 !important;
  margin: 0 0 1.5rem !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  list-style: none !important;
}
#payment ul.payment_methods li {
  padding: 0.875rem 0 !important;
  border-top: 1px solid rgba(0,0,0,0.06) !important;
}
#payment ul.payment_methods li label {
  font-size: 0.9rem !important;
  color: #808080 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}
#payment .payment_box {
  background: #EDEDED !important;
  padding: 1rem !important;
  margin-top: 0.75rem !important;
  font-size: 0.8rem !important;
  color: rgba(0,0,0,0.55) !important;
}

/* Place Order button */
#payment #place_order,
.woocommerce button[name=woocommerce_checkout_place_order] {
  display: block !important;
  width: 100% !important;
  background: #808080 !important;
  color: #FAFAFA !important;
  border: 1px solid #808080 !important;
  border-radius: 0 !important;
  padding: 1.1rem 2rem !important;
  font-size: 10px !important;
  letter-spacing: 0.35em !important;
  text-transform: uppercase !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s !important;
  margin-top: 1.5rem !important;
}
#payment #place_order:hover {
  background: transparent !important;
  color: #808080 !important;
}

/* Terms checkbox */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 1rem !important;
  font-size: 0.8rem !important;
  color: rgba(0,0,0,0.45) !important;
}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
  color: #808080 !important;
}

/* ═══════════════════════════════════════════════════════════════
   MY ACCOUNT PAGE
   ═══════════════════════════════════════════════════════════════ */

.woocommerce-account .woocommerce {
  max-width: 90rem;
  margin: 0 auto;
  padding: calc(var(--gnc-header-h, 90px) + 3rem) 4rem 6rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
    padding: calc(var(--gnc-header-h, 90px) + 2rem) 1.25rem 4rem;
  }
}

/* Nav sidebar */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.75rem 0;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover { color: #0A0A0A; }

/* Account content */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  font-family: 'Forum', Georgia, serif !important;
  font-weight: 400 !important;
  color: #808080 !important;
  margin-bottom: 1.25rem !important;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL WC BUTTON RESET
   ═══════════════════════════════════════════════════════════════ */

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input[type=submit] {
  border-radius: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  font-size: 9px !important;
  padding: 0.7rem 1.5rem !important;
  background: #808080 !important;
  color: #FAFAFA !important;
  border: 1px solid #808080 !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s !important;
}
.woocommerce .button:hover,
.woocommerce a.button:hover {
  background: transparent !important;
  color: #808080 !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — Responsive overrides for all WC pages
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  /* Checkout: stack columns */
  .woocommerce-checkout .woocommerce form.checkout {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "billing"
      "payment"
      "order" !important;
  }
  .woocommerce-checkout .woocommerce form.checkout #order_review_heading,
  .woocommerce-checkout .woocommerce form.checkout #order_review {
    position: static !important;
  }
}

@media (max-width: 600px) {
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100% !important;
    display: block !important;
    margin-right: 0 !important;
  }
  /* Cart table — simplify on mobile */
  .woocommerce table.cart thead { display: none !important; }
  .woocommerce table.cart tbody tr {
    display: grid !important;
    grid-template-columns: 72px 1fr auto !important;
    grid-template-areas: "thumb name price" "thumb qty remove" !important;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem 0 !important;
  }
  .woocommerce table.cart td {
    padding: 0 !important;
    border: none !important;
    border-bottom: none !important;
  }
  .woocommerce table.cart tr:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,0.07) !important; }
  .woocommerce table.cart td.product-thumbnail { grid-area: thumb; }
  .woocommerce table.cart td.product-name      { grid-area: name; }
  .woocommerce table.cart td.product-price     { grid-area: price; text-align: right !important; }
  .woocommerce table.cart td.product-quantity  { grid-area: qty; }
  .woocommerce table.cart td.product-remove    { grid-area: remove; text-align: right !important; }
  .woocommerce table.cart td.product-subtotal  { display: none !important; }
  /* Stack cart totals */
  .woocommerce-cart-form + .cart-collaterals { justify-content: stretch; }
  .cart_totals { max-width: 100%; }
}

/* ── Notices ──────────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: 2px solid #808080 !important;
  border-radius: 0 !important;
  background: #FAFAFA !important;
  color: #808080 !important;
  padding: 1rem 1.5rem !important;
  font-size: 0.875rem !important;
}

/* ── Pagination ───────────────────────────────────────────────── */
.woocommerce nav.woocommerce-pagination ul {
  display: flex !important;
  gap: 0.25rem !important;
  border: none !important;
  margin: 3rem 0 0 !important;
}
.woocommerce nav.woocommerce-pagination ul li { border: none !important; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
  padding: 0.5rem 0.875rem !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  color: rgba(0,0,0,0.45) !important;
  text-decoration: none !important;
  display: block !important;
  transition: background 0.2s, color 0.2s !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: #808080 !important;
  color: #FAFAFA !important;
  border-color: #808080 !important;
}
