/* ============================================================
   VELLUM — WooCommerce layer
   Restyles WC pages using the same custom properties as the
   parent theme. Loads only on WC screens. No !important
   unless needed to beat WC's own scoped overrides.
   ============================================================ */

/* ── PAGE FRAME ───────────────────────────────────────────────
   WC-templated screens (shop archive / single product / product
   taxonomy) are wrapped by this layer in `.container.vellum-shop__wrap`
   (see vellum-woocommerce.php → wrapper_start), which inherits the
   site gutter + max-width. Nav clearance comes from `.vellum-main`
   (parent), so here we only add vertical breathing room. Shortcode
   pages (cart / checkout / account) already render inside page.php's
   `.container`, so they need nothing extra. */
.vellum-shop__wrap {
  padding-top: clamp(8px, 2vw, 32px);
  padding-bottom: clamp(64px, 9vw, 120px);
  color: var(--page-text);
}
/* Belt-and-suspenders: Vellum is sidebar-less. The PHP layer unhooks the
   WooCommerce sidebar; this guarantees nothing widget-y survives on a
   WC screen even if a plugin re-adds it. */
.vellum-shop #sidebar,
.vellum-shop #secondary,
.vellum-shop .woocommerce-sidebar,
.vellum-shop .widget-area {
  display: none;
}

.vellum-shop h1, .vellum-shop h2, .vellum-shop h3 {
  font-family: var(--font-display);
}

/* ── PRODUCT GRID ─────────────────────────────────────────── */
.vellum-shop ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
  list-style: none;
  margin: 0 0 var(--gap-lg);
  padding: 0;
}
.vellum-shop ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.vellum-shop ul.products li.product a img {
  margin: 0 0 12px;
}
.vellum-shop ul.products li.product .woocommerce-loop-product__title {
  font-size: var(--type-h4);
  font-weight: 600;
  margin: 0 0 4px;
  padding: 0;
  color: var(--page-text);
}
.vellum-shop ul.products li.product .price {
  font-size: var(--type-small);
  color: var(--page-text-muted);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.vellum-shop .button,
.vellum-shop a.button,
.vellum-shop button.button,
.vellum-shop input.button,
.vellum-shop #respond input#submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--page-accent);
  border-radius: 0;
  background: var(--page-accent);
  color: var(--page-bg);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  -webkit-appearance: none; appearance: none;
  transition: background var(--dur-sm) var(--ease),
              color      var(--dur-sm) var(--ease),
              border-color var(--dur-sm) var(--ease);
}
.vellum-shop .button:hover,
.vellum-shop a.button:hover,
.vellum-shop button.button:hover {
  background: transparent;
  color: var(--page-accent);
}
.vellum-shop .button.alt {
  background: var(--page-text);
  border-color: var(--page-text);
  color: var(--page-bg);
}

/* ── SINGLE PRODUCT ──────────────────────────────────────── */
.vellum-shop div.product .product_title {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 16px;
}
.vellum-shop div.product .price {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--page-text);
  margin: 0 0 24px;
}
.vellum-shop div.product .woocommerce-product-details__short-description {
  font-size: var(--type-body);
  line-height: 1.65;
  color: var(--page-text-muted);
  margin: 0 0 28px;
  max-width: 60ch;
}

/* ── FORM INPUTS — match Vellum's "square modern" look ──── */
.vellum-shop input[type="text"],
.vellum-shop input[type="email"],
.vellum-shop input[type="tel"],
.vellum-shop input[type="number"],
.vellum-shop input[type="password"],
.vellum-shop input[type="search"],
.vellum-shop textarea,
.vellum-shop select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--page-line);
  border-radius: 0;
  background: transparent;
  color: var(--page-text);
  font-size: 16px;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur-sm) var(--ease);
}
.vellum-shop input:focus,
.vellum-shop textarea:focus,
.vellum-shop select:focus {
  outline: none;
  border-color: var(--page-accent);
}

/* ── CART + CHECKOUT TABLES ──────────────────────────────── */
.vellum-shop .shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-small);
}
.vellum-shop .shop_table th,
.vellum-shop .shop_table td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--page-line);
}
.vellum-shop .shop_table th {
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--page-text-muted);
}

/* ── MESSAGES / NOTICES ──────────────────────────────────── */
.vellum-shop .woocommerce-message,
.vellum-shop .woocommerce-info,
.vellum-shop .woocommerce-error {
  border-left: 3px solid var(--page-accent);
  background: var(--color-accent-dim);
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: var(--type-small);
}

/* ── ACCOUNT NAV ─────────────────────────────────────────── */
.vellum-shop .woocommerce-MyAccount-navigation ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  border-top: 1px solid var(--page-line);
}
.vellum-shop .woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid var(--page-line);
  margin: 0;
}
.vellum-shop .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 14px 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--page-text-muted);
}
.vellum-shop .woocommerce-MyAccount-navigation a:hover,
.vellum-shop .woocommerce-MyAccount-navigation .is-active a {
  color: var(--page-text);
}
