/* ==========================================================================
   SALT CITY MACHINING — WooCommerce Custom Styles for GeneratePress
   Refactored — May 2026
   Paste into: Appearance, Customize, Additional CSS

   ORGANIZATION:
   This stylesheet is organized by page context, not by feature type. All
   rules that style a given page (e.g. cart, checkout) are grouped together
   so you can find what you're looking for by going to the relevant section.

   TABLE OF CONTENTS:
     1.  Design Tokens (CSS Variables)
     2.  Global / Foundations
     3.  Shared Components
     4.  Shop & Archive Pages
     5.  Single Product Page
     6.  Cart Page
     7.  Checkout Page
     8.  Order Confirmation Page
     9.  Footer
     10. Beaver Builder Enhancements

   BREAKPOINT STRATEGY:
     - 1024px  → tablet landscape and below
     - 768px   → tablet portrait / mobile boundary (most "mobile" rules)
     - 480px   → small phones
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS (CSS Variables)
   ==========================================================================
   Centralized color, spacing, and typography values. Change a token here
   and it propagates everywhere. NEVER hardcode a color in the rules below
   that has a token equivalent — it makes future theme tweaks painful.
   ========================================================================== */

:root {
  /* --- Backgrounds --- */
  --scm-bg-primary: #000000;
  --scm-bg-card: #1a1a1a;
  --scm-bg-card-hover: #1f1f1f;
  --scm-bg-input: #1a1a1a;

  /* --- Text colors --- */
  --scm-text-primary: #ffffff;
  --scm-text-secondary: #a0a0a0;
  --scm-text-muted: #666666;
  --scm-text-breadcrumb: #888888;
  --scm-text-breadcrumb-active: #cccccc;

  /* --- Brand accent (gold) --- */
  --scm-accent: #d4a843;
  --scm-accent-hover: #e0b94f;

  /* --- Borders --- */
  --scm-border-card: #2a2a2a;
  --scm-border-subtle: #333333;
  --scm-border-input: #333333;

  /* --- Status colors (success/error notices, confirmation states) --- */
  --scm-status-success: #27ae60;
  --scm-status-success-deep: #2d7a3a;  /* Used for solid backgrounds where #27ae60 is too bright */
  --scm-status-error: #c0392b;

  /* --- Layout --- */
  --scm-container-max: 1100px;
  --scm-gap-grid: 24px;
  --scm-card-radius: 6px;
  --scm-section-spacing: 60px;

  /* --- Typography --- */
  --scm-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --scm-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}


/* ==========================================================================
   2. GLOBAL / FOUNDATIONS
   ==========================================================================
   Site-wide overrides for WooCommerce containers, breadcrumbs, notices,
   and pagination. Anything that appears on multiple WooCommerce page
   types lives here.
   ========================================================================== */

/* --- 2.1 Page background and container reset ---
   GeneratePress wraps WooCommerce pages in .inside-article with default
   styling. We force a black background and remove the default article
   "card" treatment so our own card components (in Section 3) stand out. */

.woocommerce,
.woocommerce-page,
body.tax-product_cat,
body.tax-product_tag,
body.single-product,
body.post-type-archive-product {
  background-color: var(--scm-bg-primary) !important;
}

body.woocommerce .site-content,
body.woocommerce-page .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content,
body.single-product .site-content {
  background-color: var(--scm-bg-primary) !important;
}

body.woocommerce .inside-article,
body.woocommerce-page .inside-article,
body.tax-product_cat .inside-article,
body.tax-product_tag .inside-article,
body.single-product .inside-article {
  max-width: var(--scm-container-max);
  margin: 0 auto;
  padding: 0 24px;
}

body.woocommerce article,
body.woocommerce-page article,
body.tax-product_cat article,
body.tax-product_tag article,
body.single-product article {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}


/* --- 2.2 Breadcrumbs ---
   Hidden on shop and category archives (cleaner first-impression),
   visible on single product pages where they aid navigation. */

.woocommerce-breadcrumb,
.scm-breadcrumb {
  font-size: 13px;
  color: var(--scm-text-breadcrumb);
  padding: 20px 0 10px;
  margin-bottom: 0;
}

.woocommerce-breadcrumb a,
.scm-breadcrumb a {
  color: var(--scm-text-breadcrumb);
  text-decoration: none;
  transition: color 0.2s ease;
}

.woocommerce-breadcrumb a:hover,
.scm-breadcrumb a:hover {
  color: var(--scm-text-primary);
}

.woocommerce-breadcrumb .breadcrumb_last,
.scm-breadcrumb strong {
  color: var(--scm-text-breadcrumb-active);
  font-weight: 600;
}

.woocommerce-breadcrumb .separator {
  margin: 0 8px;
  color: var(--scm-text-muted);
}

body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb {
  display: none;
}


/* --- 2.3 WooCommerce notices (info, success, error) ---
   Standard notices get retheme'd to match dark UI. Status colors come
   from variables so brand updates only touch Section 1. */

.woocommerce-message,
.woocommerce-info {
  background: var(--scm-bg-card) !important;
  border-top-color: var(--scm-accent) !important;
  color: var(--scm-text-primary);
}

.woocommerce-error {
  background: var(--scm-bg-card) !important;
  border-top-color: var(--scm-status-error) !important;
  color: var(--scm-text-primary);
}

.woocommerce-message a,
.woocommerce-info a {
  color: var(--scm-accent);
}


/* --- 2.4 Pagination ---
   Used on shop, category, and tag archives. */

.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li {
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  background: var(--scm-bg-card);
  color: var(--scm-text-secondary);
  border: 1px solid var(--scm-border-card);
  border-radius: 4px;
  padding: 8px 14px;
  margin: 0 4px;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--scm-bg-card-hover);
  color: var(--scm-text-primary);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--scm-accent);
  color: #000000;
  border-color: var(--scm-accent);
  font-weight: 700;
}


/* ==========================================================================
   3. SHARED COMPONENTS
   ==========================================================================
   Reusable UI patterns that appear on multiple page types. Defined once
   here, then context-specific spacing tweaks live in the relevant page
   section below.
   ========================================================================== */

/* --- 3.1 CTA Banner ("Need something custom?") ---
   Currently used on archive pages but designed to drop in anywhere. */

.scm-cta-banner {
  background: var(--scm-bg-card);
  border: 1px solid var(--scm-border-card);
  border-radius: var(--scm-card-radius);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--scm-section-spacing) 0;
  flex-wrap: wrap;
  gap: 20px;
}

.scm-cta-banner__text h3 {
  font-family: var(--scm-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--scm-text-primary);
  margin: 0 0 6px;
}

.scm-cta-banner__text p {
  color: var(--scm-text-secondary);
  font-size: 14px;
  margin: 0;
}

.scm-cta-banner__button a {
  display: inline-block;
  border: 2px solid var(--scm-accent);
  color: var(--scm-text-primary);
  background: transparent;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.scm-cta-banner__button a:hover {
  background: var(--scm-accent);
  color: #000000;
}

@media (max-width: 600px) {
  .scm-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }
}


/* --- 3.2 Shipping Instructions Callout ---
   Base styles for the gold-bordered callout box. Used on:
     - Single product pages (between variations and Add to Cart)
     - Order confirmation page (inside "What Happens Next" Step 1)
   Context-specific spacing tweaks live with each consuming section. */

.scm-shipping-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(180deg, rgba(212, 168, 67, 0.08) 0%, rgba(212, 168, 67, 0.04) 100%);
  border: 1px solid var(--scm-accent);
  border-left: 4px solid var(--scm-accent);
  border-radius: var(--scm-card-radius);
  padding: 16px 18px;
  margin: 20px 0;
}

.scm-shipping-callout__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(212, 168, 67, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--scm-accent);
  margin-top: 2px;
}

.scm-shipping-callout__body {
  flex: 1;
  min-width: 0;
}

.scm-shipping-callout__title {
  font-family: var(--scm-font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--scm-text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.scm-shipping-callout__text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--scm-text-secondary);
  margin: 0 0 10px;
}

.scm-shipping-callout__text strong {
  color: var(--scm-text-primary);
  font-weight: 700;
}

.scm-shipping-callout__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--scm-accent);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.scm-shipping-callout__link:hover {
  color: var(--scm-accent-hover);
  gap: 9px;
}

.scm-shipping-callout__link svg {
  transition: transform 0.2s ease;
}

.scm-shipping-callout__link:hover svg {
  transform: translateX(2px);
}

@media (max-width: 480px) {
  .scm-shipping-callout {
    padding: 14px 16px;
  }

  .scm-shipping-callout__icon {
    width: 32px;
    height: 32px;
  }

  .scm-shipping-callout__title {
    font-size: 14px;
  }

  .scm-shipping-callout__text {
    font-size: 12.5px;
  }
}


/* ==========================================================================
   4. SHOP & ARCHIVE PAGES
   ==========================================================================
   Styles for the main shop, product category archives, and product tag
   archives. Layout: a sticky-on-desktop sidebar with collapsible filter
   accordions, and a responsive product grid.
   ========================================================================== */

/* --- 4.1 Page header (title, description, result count) --- */

.woocommerce-products-header__title,
body.tax-product_cat .entry-title,
body.tax-product_cat .page-title,
body.tax-product_cat .archive-title,
body.tax-product_tag .entry-title,
body.tax-product_tag .page-title {
  font-family: var(--scm-font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--scm-text-primary);
  margin: 20px 0 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

body.post-type-archive-product .woocommerce-products-header__title,
body.post-type-archive-product .page-title {
  font-size: 42px;
}

.term-description,
body.tax-product_cat .taxonomy-description,
body.tax-product_cat .archive-description,
.term-description p {
  color: var(--scm-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 10px;
}

.scm-shop-desc {
  font-size: 15px;
  color: var(--scm-text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 32px;
}

.woocommerce-result-count {
  color: var(--scm-text-muted);
  font-size: 14px;
  text-align: right;
  margin-bottom: 20px;
}

/* Hide default WooCommerce sorting outside of our layout wrapper.
   Inside .scm-shop-layout it gets re-enabled and styled (see 4.4). */
.woocommerce-ordering {
  display: none;
}


/* --- 4.2 Sidebar layout (2-column: sidebar + main on desktop) ---
   On mobile this collapses to a single column with the sidebar above
   the products. The sidebar's filter groups become collapsed accordions
   on mobile (see 4.3). */

.scm-shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.scm-shop-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

@media (max-width: 768px) {
  .scm-shop-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .scm-shop-sidebar {
    position: static;
    margin-bottom: 4px;
  }
}


/* --- 4.3 Filter accordions (Brands, Service Type) ---
   Uses native `details` and `summary`s. On desktop both groups
   are always expanded with no chevron; on mobile they collapse to
   tappable headers with a rotating chevron indicator.

   The "open by default" behavior on page load is set by the PHP
   element. A small JS snippet (in a separate wp_footer hook element)
   removes the open attribute on mobile only. */

.scm-filter-group {
  margin-bottom: 28px;
  border: none;
}

.scm-filter-group summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.scm-filter-group summary::-webkit-details-marker {
  display: none;
}

.scm-filter-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--scm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Custom CSS chevron — two borders rotated to form an arrow.
   Rotates 90° (-45 → +45) when the parent `details` element is open. */
.scm-filter-title::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--scm-text-muted);
  border-bottom: 2px solid var(--scm-text-muted);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}

.scm-filter-group[open] .scm-filter-title::after {
  transform: rotate(45deg);
}

.scm-filter-group[open] .scm-filter-title {
  margin-bottom: 14px;
}

/* Desktop: hide the chevron entirely since groups never collapse */
@media (min-width: 769px) {
  .scm-filter-title::after {
    display: none;
  }
  .scm-filter-title {
    cursor: default;
  }
}

/* Mobile: tappable header with separator between groups */
@media (max-width: 768px) {
  .scm-filter-group {
    margin-bottom: 8px;
    border-bottom: 1px solid var(--scm-border-card);
    padding-bottom: 12px;
  }

  .scm-filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 8px;
  }

  .scm-filter-title {
    padding: 14px;
    font-size: 13px;
  }

  .scm-filter-group[open] .scm-filter-title {
    margin-bottom: 6px;
  }
}


/* --- 4.4 Filter lists (Brands and Service Type items) --- */

.scm-brand-list,
.scm-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scm-brand-list {
  margin-bottom: 28px;
}

.scm-brand-list li {
  margin-bottom: 2px;
}

.scm-brand-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--scm-text-breadcrumb-active);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.scm-brand-list li a:hover {
  background: var(--scm-bg-card-hover);
  color: var(--scm-text-primary);
}

.scm-brand-list li.active a {
  background: var(--scm-bg-card);
  border: 1px solid var(--scm-border-card);
  color: var(--scm-text-primary);
  font-weight: 600;
}

.scm-brand-list li .count {
  font-size: 12px;
  color: var(--scm-text-muted);
  font-weight: 400;
}

.scm-brand-list li.active .count {
  color: var(--scm-accent);
}

.scm-service-list li a {
  display: block;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--scm-text-breadcrumb);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.scm-service-list li a:hover {
  color: var(--scm-accent);
  background: var(--scm-bg-card);
}


/* --- 4.5 Sorting dropdown (re-enabled inside .scm-shop-layout) --- */

.scm-shop-layout .woocommerce-ordering {
  display: block !important;
  float: none !important;
  margin: 0 0 20px;
  text-align: right;
}

.scm-shop-layout .woocommerce-ordering select {
  background: var(--scm-bg-card);
  border: 1px solid var(--scm-border-subtle);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--scm-text-secondary);
  font-size: 13px;
  -webkit-appearance: none;
  appearance: none;
}

.scm-shop-layout .woocommerce-result-count {
  display: inline-block !important;
  float: none !important;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--scm-text-breadcrumb);
}

.scm-shop-layout .woocommerce-pagination {
  text-align: center;
  margin-top: 16px;
}


/* --- 4.6 Product grid ---
   ONE consolidated grid definition. Previously this was scattered across
   four separate sections that fought each other. Now it lives in one
   place with three breakpoints:
     above 1024px → 3 columns
     768–1024px → 2 columns
     below 768px → 2 columns (compact)
     below 380px → 2 columns (very compact)

   The `minmax(0, 1fr)` prevents grid items from overflowing when their
   content (long product names) is wider than the column. */

ul.products,
.woocommerce ul.products,
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products,
.scm-shop-layout ul.products,
.scm-shop-layout .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--scm-gap-grid);
  padding: 0;
  margin: 30px 0 var(--scm-section-spacing);
  list-style: none;
}

/* Inside the sidebar layout, grid spacing is tighter */
.scm-shop-layout ul.products,
.scm-shop-layout .woocommerce ul.products {
  gap: 16px;
  margin: 0 0 32px;
}

@media (max-width: 1024px) {
  ul.products,
  .woocommerce ul.products,
  body.post-type-archive-product ul.products,
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products,
  .scm-shop-layout ul.products,
  .scm-shop-layout .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  ul.products,
  .woocommerce ul.products,
  body.post-type-archive-product ul.products,
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products,
  .scm-shop-layout ul.products,
  .scm-shop-layout .woocommerce ul.products {
    gap: 12px;
  }
}

@media (max-width: 380px) {
  ul.products,
  .woocommerce ul.products,
  body.post-type-archive-product ul.products,
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products,
  .scm-shop-layout ul.products,
  .scm-shop-layout .woocommerce ul.products {
    gap: 8px;
  }
}


/* --- 4.7 Product cards ---
   The card itself, image, title, excerpt, and price. The Add to Cart
   button and star rating are hidden globally because this site sells
   services that always require variation selection. */

ul.products li.product,
.woocommerce ul.products li.product {
  background: var(--scm-bg-card);
  border: 1px solid var(--scm-border-card);
  border-radius: var(--scm-card-radius);
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

ul.products li.product:hover {
  border-color: var(--scm-border-subtle);
  background: var(--scm-bg-card-hover);
}

ul.products li.product a img,
ul.products li.product .attachment-woocommerce_thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--scm-border-card);
  border-radius: 0;
  margin: 0;
  padding: 0;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product a.woocommerce-LoopProduct-link {
  text-decoration: none;
}

ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--scm-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--scm-text-primary);
  padding: 16px 18px 0;
  margin: 0;
  line-height: 1.3;
}

ul.products li.product .scm-product-excerpt {
  font-size: 13px;
  color: var(--scm-text-secondary);
  line-height: 1.5;
  padding: 6px 18px 0;
  margin: 0;
}

ul.products li.product .price,
ul.products li.product span.price {
  color: var(--scm-accent) !important;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 18px 18px;
  display: block;
}

ul.products li.product .price ins {
  text-decoration: none;
  color: var(--scm-accent);
}

ul.products li.product .price del {
  color: var(--scm-text-muted);
  font-weight: 400;
}

/* Hide buttons (services require variation selection from single product) */
ul.products li.product .button,
ul.products li.product a.add_to_cart_button,
ul.products li.product a.product_type_simple,
ul.products li.product a.product_type_variable,
ul.products li.product .star-rating {
  display: none !important;
}

body.post-type-archive-product ul.products li.product-category {
  display: none !important;
}

/* Sidebar layout uses smaller card image for tighter grid */
.scm-shop-layout ul.products li.product a img {
  height: 150px;
}


/* --- 4.8 Mobile-specific shop adjustments ---
   Smaller titles, smaller images, hidden descriptions, tighter padding.
   These rules also apply at the smaller 380px breakpoint. */

@media (max-width: 768px) {
  /* Tighter page title */
  .woocommerce-products-header__title,
  body.post-type-archive-product .woocommerce-products-header__title,
  body.post-type-archive-product .page-title,
  body.tax-product_cat .entry-title,
  body.tax-product_cat .page-title,
  body.tax-product_cat .archive-title,
  body.tax-product_tag .entry-title,
  body.tax-product_tag .page-title {
    font-size: 32px;
    margin: 12px 0 8px;
  }

  /* Tighter breadcrumb spacing */
  .woocommerce-breadcrumb,
  .scm-breadcrumb {
    padding: 12px 0 4px;
  }

  /* Sorting dropdown closer to filters */
  .scm-shop-layout .woocommerce-ordering {
    margin: 0 0 12px;
  }

  /* Compact product images */
  ul.products li.product a img,
  ul.products li.product .attachment-woocommerce_thumbnail {
    height: 140px;
  }

  /* Compact title */
  ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    padding: 12px 12px 0;
    line-height: 1.25;
  }

  /* Hide description on mobile to keep cards compact */
  ul.products li.product .scm-product-excerpt {
    display: none;
  }

  /* Compact price */
  ul.products li.product .price,
  ul.products li.product span.price {
    font-size: 14px;
    padding: 6px 12px 14px;
  }
}

@media (max-width: 380px) {
  ul.products li.product a img,
  ul.products li.product .attachment-woocommerce_thumbnail {
    height: 120px;
  }

  ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px;
  }
}


/* ==========================================================================
   5. SINGLE PRODUCT PAGE
   ==========================================================================
   The product detail page where customers select variations and add to
   cart. Includes the gallery, title, variation dropdowns, custom add-on
   dropdowns (WooCommerce Product Add-Ons), quantity selector, add-to-cart
   button, and shipping callout.
   ========================================================================== */

/* --- 5.1 Header (category label, title, price, short description) --- */

.single-product .scm-product-category-label,
.single-product .posted_in {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--scm-accent);
  margin-bottom: 8px;
}

.single-product .posted_in a {
  color: var(--scm-accent);
  text-decoration: none;
}

.single-product .product_title,
.single-product .entry-title {
  font-family: var(--scm-font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--scm-text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.single-product .price,
.single-product p.price {
  color: var(--scm-accent) !important;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-product-details__short-description p {
  color: var(--scm-text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.single-product .summary.entry-summary {
  color: var(--scm-text-primary);
}


/* --- 5.2 Gallery --- */

.single-product .woocommerce-product-gallery {
  background: var(--scm-bg-card);
  border: 1px solid var(--scm-border-card);
  border-radius: var(--scm-card-radius);
  overflow: hidden;
}

.single-product .woocommerce-product-gallery img {
  border-radius: 0;
}


/* --- 5.3 Variation dropdowns (Model / Slide Milling / etc.) ---
   Custom-styled `select` element with a dark background, gold chevron icon, and
   the standard browser arrow disabled via -webkit-appearance: none.

   The chevron SVG is inlined as a data URI (encoded as URL-safe text)
   so it doesn't require an HTTP request. The stroke color is hardcoded
   to #d4a843 because CSS variables can't be used inside data URIs. */

body.single-product table.variations {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

body.single-product table.variations td,
body.single-product table.variations th {
  padding: 10px 0;
  vertical-align: middle;
  border: none;
  background: transparent;
}

body.single-product table.variations th.label,
body.single-product table.variations label {
  color: var(--scm-text-primary) !important;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  padding-right: 16px;
  width: 30%;
}

body.single-product .variations select,
body.single-product table.variations select {
  background-color: var(--scm-bg-input) !important;
  color: var(--scm-text-primary) !important;
  border: 1px solid var(--scm-border-input);
  border-radius: 6px;
  padding: 10px 36px 10px 12px;
  font-size: 15px;
  width: 100%;
  max-width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a843' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

body.single-product .variations select:focus {
  border-color: var(--scm-accent);
  outline: none;
}

body.single-product .variations select option {
  background-color: var(--scm-bg-card);
  color: var(--scm-text-primary);
}

/* "Clear" link that appears after a variation is selected */
body.single-product .variations .reset_variations,
body.single-product .reset_variations {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--scm-accent);
  text-decoration: none;
}

body.single-product .variations .reset_variations:hover,
body.single-product .reset_variations:hover {
  text-decoration: underline;
}

/* Dynamic price display below variations (woocommerce-variation-price) */
body.single-product .single_variation_wrap .woocommerce-variation-price,
body.single-product .single_variation_wrap .price {
  margin: 12px 0;
  color: var(--scm-accent) !important;
}

body.single-product .single_variation_wrap .woocommerce-variation-availability {
  color: var(--scm-text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
}

/* Mobile: stack variation labels above their selects instead of side-by-side */
@media (max-width: 600px) {
  body.single-product table.variations,
  body.single-product table.variations tbody,
  body.single-product table.variations tr,
  body.single-product table.variations td,
  body.single-product table.variations th {
    display: block;
    width: 100%;
  }

  body.single-product table.variations th.label,
  body.single-product table.variations label {
    padding: 0 0 6px;
    width: 100%;
  }

  body.single-product table.variations td {
    padding: 0 0 14px;
  }
}


/* --- 5.4 Add-on dropdowns (WooCommerce Product Add-Ons plugin) ---
   These are non-variation dropdowns like "Custom Cerakote." Same visual
   treatment as variation dropdowns but a different selector chain. */

body.single-product .wc-pao-addon select,
body.single-product .product-addon select,
body.single-product form.cart select:not(.variations select) {
  background-color: var(--scm-bg-input);
  color: var(--scm-text-primary);
  border: 1px solid var(--scm-border-input);
  border-radius: 6px;
  padding: 10px 36px 10px 12px;
  font-size: 15px;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a843' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

body.single-product .wc-pao-addon-name,
body.single-product .product-addon-name {
  color: var(--scm-text-primary);
  font-weight: 700;
  font-size: 14px;
  margin: 16px 0 4px;
}

body.single-product .wc-pao-addon-description,
body.single-product .product-addon-description {
  color: var(--scm-text-secondary);
  font-size: 13px;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.5;
}


/* --- 5.5 Quantity selector and Add to Cart button --- */

.single-product .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--scm-border-input);
  border-radius: 6px;
  overflow: hidden;
  margin-right: 12px;
  vertical-align: middle;
}

.single-product .quantity .qty {
  background: var(--scm-bg-input);
  color: var(--scm-text-primary);
  border: none;
  width: 48px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.single-product .quantity .qty::-webkit-inner-spin-button,
.single-product .quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.single-product .quantity .scm-qty-btn {
  background: var(--scm-bg-input);
  color: var(--scm-text-secondary);
  border: none;
  width: 40px;
  height: 100%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.single-product .quantity .scm-qty-btn:hover {
  color: var(--scm-text-primary);
}

.single-product button.single_add_to_cart_button,
.single-product .single_add_to_cart_button {
  background: var(--scm-accent) !important;
  color: #000000 !important;
  border: none;
  border-radius: 6px;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  vertical-align: middle;
}

.single-product button.single_add_to_cart_button:hover {
  background: var(--scm-accent-hover) !important;
}

.scm-shipping-note {
  color: var(--scm-text-muted);
  font-size: 13px;
  font-style: italic;
  margin-top: 12px;
}


/* --- 5.6 Shipping callout (single product context) ---
   Tightens spacing between variations and the callout. Base styles
   come from Section 3.2. */

body.single-product .scm-shipping-callout {
  margin: 16px 0 20px;
}


/* --- 5.7 Related products ("You might also need") --- */

.single-product .related.products,
.single-product section.related,
.single-product section.up-sells {
  margin-top: var(--scm-section-spacing);
  padding-top: var(--scm-section-spacing);
  border-top: 1px solid var(--scm-border-card);
}

.single-product .related.products > h2,
.single-product section.related > h2,
.single-product section.up-sells > h2 {
  font-family: var(--scm-font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--scm-text-primary);
  margin-bottom: 30px;
}

.scm-view-all-link {
  float: right;
  font-size: 14px;
  color: var(--scm-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  margin-top: 8px;
}

.scm-view-all-link:hover {
  color: var(--scm-accent);
}


/* --- 5.8 Hidden default elements ---
   The .scm-specs-table is generated by a custom function but duplicates
   the variation dropdown options, so we hide it. WooCommerce's default
   tabs (description, additional info, reviews) are also hidden because
   the service-based shop doesn't need them. */

body.single-product .scm-specs-table,
body.single-product table.scm-specs-table,
.single-product .woocommerce-tabs {
  display: none !important;
}


/* ==========================================================================
   6. CART PAGE
   ==========================================================================
   Two-column layout (cart items + sticky order summary) on desktop,
   stacked on mobile. The cart table is heavily restructured into a
   flex-based card layout per row instead of the default `table` element layout.
   ========================================================================== */

/* --- 6.1 Page header --- */

body.woocommerce-cart .entry-title,
body.woocommerce-cart .page-title {
  font-family: var(--scm-font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--scm-text-primary);
  margin: 20px 0 4px;
  letter-spacing: -0.02em;
}

.scm-cart-item-count {
  font-size: 15px;
  color: var(--scm-text-secondary);
  margin-bottom: 8px;
}

.scm-continue-shopping {
  text-align: right;
  margin-bottom: 20px;
}

.scm-continue-shopping a {
  font-size: 14px;
  color: var(--scm-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.scm-continue-shopping a:hover {
  color: var(--scm-text-primary);
}


/* --- 6.2 Two-column layout ---
   Targets Beaver Builder's wrapper. The grid-row trick on .cart-collaterals
   is what aligns the order summary with the cart items vertically — it's
   specific to the default WooCommerce DOM order. Don't simplify without
   testing the actual rendered cart page. */

body.woocommerce-cart .fl-woocommerce-cart > .woocommerce,
body.woocommerce-cart .entry-content > .woocommerce {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-cart .woocommerce > .scm-cart-item-count,
body.woocommerce-cart .woocommerce > .scm-continue-shopping {
  grid-column: 1 / -1;
}

body.woocommerce-cart .woocommerce > .woocommerce-cart-form {
  grid-column: 1;
}

body.woocommerce-cart .woocommerce > .cart-collaterals {
  grid-column: 2;
  grid-row: 4 / 7;
}

@media (max-width: 900px) {
  body.woocommerce-cart .fl-woocommerce-cart > .woocommerce,
  body.woocommerce-cart .entry-content > .woocommerce {
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart .woocommerce > .cart-collaterals {
    grid-column: 1;
    grid-row: auto;
  }
}


/* --- 6.3 Cart line items ---
   Each `tr.cart_item` row is restructured into a flex card. The original
   table headers are hidden (display: none on thead) since we use
   visual hierarchy from the flex layout instead. */

body.woocommerce-cart table.shop_table {
  border: none;
  border-collapse: collapse;
  width: 100%;
}

body.woocommerce-cart table.shop_table thead {
  display: none;
}

body.woocommerce-cart table.shop_table tbody tr.cart_item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--scm-bg-card);
  border: 1px solid var(--scm-border-card);
  border-radius: var(--scm-card-radius);
  padding: 16px;
  margin-bottom: 16px;
}

body.woocommerce-cart table.shop_table tbody tr.cart_item td {
  display: block;
  border: none;
  padding: 0;
  background: transparent;
  color: var(--scm-text-primary);
  vertical-align: middle;
}

/* Remove (X) button — sits on the left */
body.woocommerce-cart table.shop_table td.product-remove {
  order: -1;
  flex-shrink: 0;
}

body.woocommerce-cart table.shop_table td.product-remove a {
  color: var(--scm-text-muted) !important;
  font-size: 20px;
  text-decoration: none;
  display: block;
  width: 24px;
  text-align: center;
}

body.woocommerce-cart table.shop_table td.product-remove a:hover {
  color: var(--scm-status-error) !important;
}

/* Product image */
body.woocommerce-cart table.shop_table td.product-thumbnail {
  flex-shrink: 0;
  width: 80px;
}

body.woocommerce-cart table.shop_table td.product-thumbnail a {
  display: block;
}

body.woocommerce-cart table.shop_table td.product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--scm-border-card);
  display: block;
}

/* Product name + selected variation attributes */
body.woocommerce-cart table.shop_table td.product-name {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
  min-width: 0;
}

body.woocommerce-cart table.shop_table td.product-name a {
  color: var(--scm-text-primary);
  text-decoration: none;
}

body.woocommerce-cart table.shop_table td.product-name dl.variation {
  margin: 4px 0 0;
}

body.woocommerce-cart table.shop_table td.product-name dl.variation dt,
body.woocommerce-cart table.shop_table td.product-name dl.variation dd {
  display: inline;
  font-size: 13px;
  color: var(--scm-text-secondary);
  font-weight: 400;
}

body.woocommerce-cart table.shop_table td.product-name dl.variation dd {
  margin: 0;
}

body.woocommerce-cart table.shop_table td.product-name dl.variation dd p {
  display: inline;
  margin: 0;
}

/* Price columns */
body.woocommerce-cart table.shop_table td.product-price,
body.woocommerce-cart table.shop_table td.product-subtotal {
  font-size: 15px;
  font-weight: 600;
  color: var(--scm-text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

body.woocommerce-cart table.shop_table td.product-subtotal {
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

/* Quantity stepper */
body.woocommerce-cart table.shop_table td.product-quantity {
  flex-shrink: 0;
}

body.woocommerce-cart table.shop_table td.product-quantity .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--scm-border-input);
  border-radius: 6px;
  overflow: hidden;
}

body.woocommerce-cart table.shop_table td.product-quantity .qty {
  background: var(--scm-bg-input);
  color: var(--scm-text-primary);
  border: none;
  width: 40px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

body.woocommerce-cart table.shop_table td.product-quantity .qty::-webkit-inner-spin-button,
body.woocommerce-cart table.shop_table td.product-quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide the bottom actions row (coupon code / update cart buttons) */
body.woocommerce-cart table.shop_table tbody tr td.actions {
  display: none;
}


/* --- 6.4 Order summary card --- */

body.woocommerce-cart .cart_totals {
  background: var(--scm-bg-card);
  border: 1px solid var(--scm-border-card);
  border-radius: var(--scm-card-radius);
  padding: 24px;
  width: 100% !important;
  float: none !important;
}

body.woocommerce-cart .cart_totals h2 {
  font-family: var(--scm-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--scm-text-primary);
  margin: 0 0 20px;
}

body.woocommerce-cart .cart_totals table,
body.woocommerce-cart .cart_totals table tr {
  border: none;
  width: 100%;
}

body.woocommerce-cart .cart_totals table th {
  color: var(--scm-text-secondary);
  font-weight: 400;
  font-size: 14px;
  padding: 8px 0;
  border: none;
  background: transparent;
  text-align: left;
}

body.woocommerce-cart .cart_totals table td {
  color: var(--scm-text-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 0;
  border: none;
  background: transparent;
  text-align: right;
}

body.woocommerce-cart .cart_totals table tr.order-total th,
body.woocommerce-cart .cart_totals table tr.order-total td {
  font-size: 18px;
  font-weight: 700;
  padding-top: 16px;
  border-top: 1px solid var(--scm-border-subtle);
}

body.woocommerce-cart .cart_totals table tr.order-total th {
  color: var(--scm-text-primary);
}

body.woocommerce-cart .cart_totals table tr.order-total td {
  color: var(--scm-accent);
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--scm-accent) !important;
  color: #000000 !important;
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: block;
  text-align: center;
  margin-top: 20px;
  transition: background-color 0.2s ease;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--scm-accent-hover) !important;
}

.scm-secure-note {
  text-align: center;
  font-size: 12px;
  color: var(--scm-text-muted);
  margin-top: 12px;
}

/* Hide cross-sells (we promote services, not bundling) */
body.woocommerce-cart .cross-sells {
  display: none;
}


/* --- 6.5 Mobile cart adjustments ---
   On narrow screens cart items wrap and the price/qty/subtotal columns
   show their pseudo-element labels so users know what each number is. */

@media (max-width: 768px) {
  body.woocommerce-cart table.shop_table tbody tr.cart_item {
    flex-wrap: wrap;
  }

  body.woocommerce-cart table.shop_table td.product-name {
    flex: 0 0 calc(100% - 40px) !important;
    min-width: 0 !important;
  }

  body.woocommerce-cart table.shop_table td.product-name::before {
    display: none;
  }

  body.woocommerce-cart table.shop_table td.product-price,
  body.woocommerce-cart table.shop_table td.product-quantity,
  body.woocommerce-cart table.shop_table td.product-subtotal {
    flex: 1 1 auto;
    text-align: center !important;
    font-size: 13px;
  }

  body.woocommerce-cart table.shop_table td.product-price::before,
  body.woocommerce-cart table.shop_table td.product-quantity::before,
  body.woocommerce-cart table.shop_table td.product-subtotal::before {
    float: none;
    display: block;
    text-align: center;
    font-size: 11px;
    margin-bottom: 2px;
  }
}


/* ==========================================================================
   7. CHECKOUT PAGE
   ==========================================================================
   Covers BOTH the classic shortcode checkout (form-based) and the newer
   WooCommerce Blocks Checkout. Different DOM structures, different
   selector chains — we style both because either could be active.
   ========================================================================== */

/* --- 7.1 Two-column layout (form + sticky order summary) --- */

body.woocommerce-checkout .woocommerce {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

body.woocommerce-checkout .woocommerce > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  body.woocommerce-checkout .woocommerce {
    grid-template-columns: 1fr;
  }
}

body.woocommerce-checkout form.checkout {
  grid-column: 1;
}

body.woocommerce-checkout .entry-title {
  display: none;
}


/* --- 7.2 Section headings (Billing details, Shipping, etc.) --- */

body.woocommerce-checkout h3,
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout #ship-to-different-address {
  font-family: var(--scm-font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--scm-text-primary);
  margin: 32px 0 16px;
}

body.woocommerce-checkout h3:first-child {
  margin-top: 0;
}


/* --- 7.3 Form fields (classic checkout) ---
   Inputs, textareas, native selects, and Select2 wrappers all share
   the same dark-input visual treatment. */

body.woocommerce-checkout .form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--scm-text-secondary);
  margin-bottom: 4px;
}

body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .select2-container--default .select2-selection--single {
  background: var(--scm-bg-input) !important;
  border: 1px solid var(--scm-border-input) !important;
  border-radius: 6px;
  color: var(--scm-text-primary);
  padding: 12px 14px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.2s ease;
}

body.woocommerce-checkout .form-row input.input-text:focus,
body.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--scm-accent) !important;
  outline: none;
}

body.woocommerce-checkout .form-row input.input-text::placeholder {
  color: var(--scm-text-muted);
}

body.woocommerce-checkout .form-row-first,
body.woocommerce-checkout .form-row-last {
  width: 48% !important;
}


/* --- 7.4 Select2 dropdowns (used for state/country fields) ---
   Select2 is a third-party JS library WooCommerce uses to enhance
   `select` elements. It renders its own DOM so we can't reuse the
   normal form-row select styling. */

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--scm-text-primary);
  line-height: 42px;
  padding-left: 14px;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

body.woocommerce-checkout .select2-dropdown {
  background: var(--scm-bg-card);
  border-color: var(--scm-border-subtle);
}

body.woocommerce-checkout .select2-results__option {
  color: var(--scm-text-primary);
  padding: 8px 14px;
}

body.woocommerce-checkout .select2-results__option--highlighted {
  background: var(--scm-accent) !important;
  color: #000000 !important;
}


/* --- 7.5 Order review table (sticky right column) --- */

body.woocommerce-checkout .woocommerce-checkout-review-order {
  background: var(--scm-bg-card);
  border: 1px solid var(--scm-border-card);
  border-radius: var(--scm-card-radius);
  padding: 24px;
  position: sticky;
  top: 80px;
}

body.woocommerce-checkout #order_review_heading {
  font-family: var(--scm-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--scm-text-primary);
  margin: 0 0 20px;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table {
  border: none;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
  border: none;
  padding: 8px 0;
  background: transparent;
  font-size: 14px;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table thead {
  display: none;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name {
  color: var(--scm-text-primary);
  font-weight: 600;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total {
  color: var(--scm-text-primary);
  font-weight: 600;
  text-align: right;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th {
  color: var(--scm-text-secondary);
  font-weight: 400;
  text-align: left;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td {
  color: var(--scm-text-primary);
  font-weight: 600;
  text-align: right;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
  font-size: 18px;
  font-weight: 700;
  padding-top: 16px;
  border-top: 1px solid var(--scm-border-subtle);
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total th {
  color: var(--scm-text-primary);
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
  color: var(--scm-accent);
}


/* --- 7.6 Payment methods --- */

body.woocommerce-checkout #payment {
  background: transparent;
  border: none;
  border-radius: 0;
}

body.woocommerce-checkout #payment ul.payment_methods {
  border: none;
  padding: 0;
  margin: 24px 0;
}

body.woocommerce-checkout #payment ul.payment_methods li {
  background: var(--scm-bg-input);
  border: 1px solid var(--scm-border-input);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 8px;
  color: var(--scm-text-primary);
}

body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
  color: var(--scm-text-primary);
  font-weight: 600;
  cursor: pointer;
}

body.woocommerce-checkout #payment div.payment_box {
  background: transparent !important;
  color: var(--scm-text-secondary);
  font-size: 13px;
  padding: 8px 0;
}

body.woocommerce-checkout #payment div.payment_box::before {
  display: none;
}


/* --- 7.7 Place Order button & terms --- */

body.woocommerce-checkout #place_order {
  background: var(--scm-accent) !important;
  color: #000000 !important;
  border: none;
  border-radius: 6px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

body.woocommerce-checkout #place_order:hover {
  background: var(--scm-accent-hover) !important;
}

body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-checkout .woocommerce-privacy-policy-text p {
  font-size: 12px;
  color: var(--scm-text-muted);
}

body.woocommerce-checkout .woocommerce-privacy-policy-text a {
  color: var(--scm-accent);
}


/* --- 7.8 WooCommerce Blocks Checkout overrides ---
   The newer block-based checkout uses different markup and ships its own
   defaults. We patch the parts that don't match our dark theme.

   The address card text was rendering in a near-invisible muted color
   on dark backgrounds before this fix. */

/* Address card on checkout step */
.wc-block-components-address-card__address-section--secondary {
  color: var(--scm-text-secondary) !important;
}

.wc-block-components-address-card__address-section--primary {
  color: var(--scm-text-primary);
  font-weight: 600;
}

.wc-block-components-address-card .wc-block-components-button.wc-block-components-address-card__edit {
  color: var(--scm-accent);
}

/* Floating-label inputs in the block checkout still have white backgrounds.
   These rules ensure the labels and typed text are dark/readable on those
   white inputs. If/when the block inputs are restyled to dark, these
   need to flip back to light text. */
.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label,
.wc-block-components-text-input.is-active label,
.wc-block-components-combobox.is-active .wc-block-components-combobox-control label {
  color: #555 !important;
}

.wc-block-components-text-input input,
.wc-block-components-text-input textarea {
  color: #2b2d2f !important;
}


/* ==========================================================================
   8. ORDER CONFIRMATION PAGE
   ==========================================================================
   Custom thank-you page rendered by a GP Element PHP hook on the
   order-received endpoint. Default WooCommerce confirmation elements
   are hidden because the custom layout replaces them entirely.
   ========================================================================== */

/* --- 8.1 Hide default WooCommerce confirmation content --- */

body.woocommerce-order-received .entry-title,
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-order-overview,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received .woocommerce-thankyou-order-details {
  display: none;
}


/* --- 8.2 Custom confirmation layout ---
   This is the legacy confirmation styling. The PHP hook for the
   order-received page also includes its own inline styles that
   complement these. */

.scm-order-confirmation {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}

.scm-order-checkmark {
  width: 64px;
  height: 64px;
  background: var(--scm-status-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.scm-order-checkmark svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scm-order-confirmation h2 {
  font-family: var(--scm-font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--scm-text-primary);
  margin: 0 0 10px;
}

.scm-order-confirmation .scm-order-subtitle {
  font-size: 15px;
  color: var(--scm-text-secondary);
  margin: 0 0 6px;
}

.scm-order-confirmation .scm-order-number {
  font-size: 14px;
  color: var(--scm-text-muted);
  margin: 0 0 30px;
}


/* --- 8.3 Order details card (line items + totals) --- */

.scm-order-card {
  background: var(--scm-bg-card);
  border: 1px solid var(--scm-border-card);
  border-radius: var(--scm-card-radius);
  padding: 28px;
  text-align: left;
  margin-bottom: 40px;
}

.scm-order-card h3 {
  font-family: var(--scm-font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--scm-text-primary);
  margin: 0 0 20px;
}

.scm-order-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--scm-border-card);
}

.scm-order-item:last-of-type {
  border-bottom: none;
}

.scm-order-item-img {
  width: 48px;
  height: 48px;
  background: var(--scm-bg-input);
  border: 1px solid var(--scm-border-card);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.scm-order-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scm-order-item-info {
  flex: 1;
}

.scm-order-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--scm-text-primary);
  margin: 0;
}

.scm-order-item-meta {
  font-size: 12px;
  color: var(--scm-text-secondary);
  margin: 2px 0 0;
}

.scm-order-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--scm-text-primary);
  flex-shrink: 0;
}

.scm-order-totals {
  padding-top: 16px;
  border-top: 1px solid var(--scm-border-card);
  margin-top: 8px;
}

.scm-order-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.scm-order-total-row .label {
  color: var(--scm-text-secondary);
}

.scm-order-total-row .value {
  color: var(--scm-text-primary);
  font-weight: 600;
}

.scm-order-total-row.total {
  border-top: 1px solid var(--scm-border-subtle);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 18px;
}

.scm-order-total-row.total .label {
  font-weight: 700;
  color: var(--scm-text-primary);
}

.scm-order-total-row.total .value {
  color: var(--scm-accent);
  font-weight: 700;
}


/* --- 8.4 "What Happens Next" steps --- */

.scm-next-steps {
  text-align: left;
  margin-bottom: 40px;
}

.scm-next-steps h3 {
  font-family: var(--scm-font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--scm-text-primary);
  margin: 0 0 24px;
}

.scm-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.scm-step-number {
  width: 32px;
  height: 32px;
  background: rgba(212, 168, 67, 0.15);
  color: var(--scm-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.scm-step-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--scm-text-primary);
  margin: 4px 0 2px;
}

.scm-step-content p {
  font-size: 13px;
  color: var(--scm-text-secondary);
  margin: 0;
  line-height: 1.5;
}


/* --- 8.5 Shipping callout (confirmation context) ---
   Tightens spacing because the callout is nested inside Step 1.
   Base styles come from Section 3.2. */

.scm-step .scm-shipping-callout {
  margin: 8px 0 0;
}


/* ==========================================================================
   9. FOOTER
   ==========================================================================
   Site-wide footer styles. Background matches body, with a thin top
   border separating it from page content.
   ========================================================================== */

.site-footer,
.footer-widgets-container {
  background: var(--scm-bg-primary) !important;
  color: var(--scm-text-muted);
  border-top: 1px solid var(--scm-border-card);
}

.site-footer a {
  color: var(--scm-text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--scm-text-primary);
}

.site-info {
  color: var(--scm-text-muted);
  font-size: 13px;
}


/* ==========================================================================
   10. BEAVER BUILDER ENHANCEMENTS
   ==========================================================================
   Lift-on-hover animation for Beaver Builder buttons. Applied globally
   wherever .fl-builder-content wraps button content.
   ========================================================================== */

.fl-builder-content .fl-button-wrap a.fl-button {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fl-builder-content .fl-button-wrap a.fl-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
/* Salt City — Platform Slider (Option A) v2 — mobile only */
@media (max-width: 768px) {

  /* Strip PowerPack's white card wrapper */
  .scm-platform-slider .pp-card-slider-container .pp-card-slider {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: none !important;
    display: block !important;
    overflow: visible !important;
    padding-bottom: 8px !important;
  }
  .scm-platform-slider .pp-card-slider-container { overflow: hidden; }

  /* Swiper wrapper as a real horizontal flex row */
  .scm-platform-slider .pp-card-slider-container .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
  }

  /* Each slide — column card layout, 78% width, peek visible */
  .scm-platform-slider .pp-card-slider-container .pp-card-slider-item,
  .scm-platform-slider .pp-card-slider-container .swiper-slide {
    flex: 0 0 78% !important;
    width: 78% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    margin-right: 10px !important;
    background: linear-gradient(180deg, #1a1a1a 0%, #0e0e0e 100%) !important;
    border-radius: 14px !important;
    padding: 22px 18px 18px !important;
    border: 1px solid transparent !important;
    opacity: 0.55;
    transition: opacity .3s ease, border-color .3s ease;
    box-sizing: border-box;
    overflow: hidden;
    text-align: left;
  }
  .scm-platform-slider .pp-card-slider-container .swiper-slide.swiper-slide-active {
    opacity: 1;
    border-color: #d4a843 !important;
  }

  /* Hide product image area (delete this rule to show images) */
  .scm-platform-slider .pp-card-slider-container .pp-card-slider-image { display: none !important; }

  /* Content wrapper */
  .scm-platform-slider .pp-card-slider-container .pp-card-slider-content-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Title — three-class selector to beat theme h-tag styles */
  .scm-platform-slider .pp-card-slider-container .pp-card-slider-content-wrap .pp-card-slider-title,
  .scm-platform-slider .pp-card-slider-container .pp-card-slider-content-wrap .pp-card-slider-title a {
    order: 1 !important;
    color: #fff !important;
    font-size: 26px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-align: left !important;
  }

  /* Subtitle / excerpt */
  .scm-platform-slider .pp-card-slider-container .pp-card-slider-content-wrap .pp-card-slider-content,
  .scm-platform-slider .pp-card-slider-container .pp-card-slider-content-wrap .pp-card-slider-content p {
    order: 3 !important;
    color: #888 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    text-align: left !important;
  }

  /* CTA button row */
  .scm-platform-slider .pp-card-slider-container .pp-card-slider-content-wrap .pp-card-slider-button-wrap {
    order: 4 !important;
    margin: 0 !important;
    width: 100%;
  }
  .scm-platform-slider .pp-card-slider-container .pp-card-slider-button {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    background: transparent !important;
    color: #d4a843 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
  }
.scm-platform-slider .pp-card-slider-container .pp-card-slider-button::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #d4a843;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  margin-left: 8px;
}

  /* Progress-bar pagination — boosted specificity */
  .scm-platform-slider .pp-card-slider-container .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    margin: 14px 2px 0 !important;
    background: #2a2a2a !important;
    border-radius: 1px !important;
  }
  .scm-platform-slider .pp-card-slider-container .swiper-pagination .swiper-pagination-progressbar-fill {
    background: #d4a843 !important;
  }

  /* Counter */
  .scm-platform-slider .scm-counter {
    color: #888;
    font-size: 11px;
    letter-spacing: 0.06em;
    margin: 8px 0 0;
    text-align: left;
  }
}
@media (max-width: 768px) {
  .scm-platform-slider .pp-card-slider-container .pp-card-slider-item,
  .scm-platform-slider .pp-card-slider-container .swiper-slide {
    position: relative !important;
  }
  .scm-platform-slider .pp-card-slider-container .pp-card-slider-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
  }
}