/*
Theme Name: Stitch PRO USA
Theme URI: https://stitchprousa.com
Author: StitchPROUSA
Description: Custom WooCommerce theme for StitchAmerica custom embroidery store
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stitchamerica
Tags: woocommerce, responsive, custom-embroidery, e-commerce
*/

/* ==========================================
   CSS VARIABLES & RESET
   ========================================== */
:root {
  --navy: #0a1f3d;
  --navy-light: #1a3560;
  --navy-dark: #060f1e;
  --blue: #1565c0;
  --gold: #f5c518;
  --gold-dark: #d4a30e;
  --gold-light: #ffe066;
  --red: #c0392b;
  --green: #27ae60;
  --white: #ffffff;
  --off-white: #f8f9fb;
  --light-gray: #e8ecf1;
  --mid-gray: #b0bac6;
  --dark-gray: #4a5568;
  --text: #1a202c;
  --text-muted: #6b7280;
  --border: #dde3eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 6px;
  --radius-lg: 12px;
  --font-body: 'Open Sans', 'Segoe UI', sans-serif;
  --font-heading: 'Montserrat', 'Arial Black', sans-serif;
  --transition: 0.2s ease;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
ul { list-style: none; }

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }

/* ==========================================
   LAYOUT HELPERS
   ========================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 60px 0; }
.section--gray { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,197,24,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-green {
  background: #2ecc71;
  color: var(--white);
  border-color: #2ecc71;
  font-size: 0.8rem;
  padding: 9px 16px;
}
.btn-green:hover {
  background: #27ae60;
  border-color: #27ae60;
  color: var(--white);
  transform: translateY(-1px);
}
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* ==========================================
   TOP BAR
   ========================================== */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  padding: 7px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--gold); }
.top-bar-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.top-bar-contact { display: flex; gap: 16px; align-items: center; }
.top-bar-contact a { 
  display: flex; align-items: center; gap: 5px; 
  background: var(--navy-light); 
  padding: 4px 10px; 
  border-radius: 3px;
}
.top-bar-contact a:hover { background: var(--navy); }

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.site-logo {
  flex-shrink: 0;
}
.site-logo img { height: 44px; width: auto; }
.site-logo .logo-text {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}
.site-logo .logo-text span { color: var(--gold); }
.logo-tagline { color: rgba(255,255,255,0.6); font-size: 0.7rem; display: block; }

.header-search {
  flex: 1;
  max-width: 480px;
}
.header-search form {
  display: flex;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
}
.header-search input {
  flex: 1;
  padding: 9px 14px;
  border: none;
  font-size: 0.9rem;
  outline: none;
  font-family: var(--font-body);
}
.header-search button {
  background: var(--gold);
  border: none;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--navy-dark);
  transition: background var(--transition);
}
.header-search button:hover { background: var(--gold-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-actions a {
  color: var(--white);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.header-actions a:hover { color: var(--gold); }
.cart-count {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.main-nav {
  background: var(--gold);
}
.main-nav .container {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: visible;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}
.main-nav > .container > ul > li {
  position: relative;
}
.main-nav > .container > ul > li > a {
  display: block;
  padding: 11px 16px;
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.main-nav > .container > ul > li > a:hover,
.main-nav > .container > ul > li.current-menu-item > a {
  background: var(--navy);
  color: var(--white);
}
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  z-index: 9999;
  border-radius: 0 0 var(--radius) var(--radius);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li:hover > .sub-menu,
.main-nav li.dropdown-open > .sub-menu { display: block; }
.main-nav .sub-menu li a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.main-nav .sub-menu li a:hover {
  background: var(--off-white);
  color: var(--navy);
}

/* ==========================================
   QUICK NAV BAR (Secondary nav strip)
   ========================================== */
.quick-nav {
  background: var(--navy-light);
  padding: 0;
}
.quick-nav ul {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-nav ul::-webkit-scrollbar { display: none; }
.quick-nav li a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.quick-nav li a:hover { 
  background: rgba(255,255,255,0.12); 
  color: var(--gold);
}

/* ==========================================
   HERO / BANNER
   ========================================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(245,197,24,0.08) 0%, transparent 70%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}
.hero-content { }
.hero-label {
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 6px;
}
.hero h1 span { color: var(--gold); }
.hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.hero-minimum {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 24px;
  font-style: italic;
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  max-height: 280px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}

/* ==========================================
   NOTICE BAR
   ========================================== */
.notice-bar {
  background: #1565c0;
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.875rem;
}
.notice-bar a { color: var(--gold); font-weight: 700; }

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 6px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.section-header--navy {
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 0;
}
.section-header--navy h2 { color: var(--white); font-size: 1.1rem; margin: 0; }
.section-header--navy p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin: 4px 0 0; }

.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ==========================================
   STAR RATINGS
   ========================================== */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
  font-size: 0.85rem;
}
.rating-text {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================
   PRODUCT CARDS
   ========================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.products-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
}
.product-card__badge--sale { background: var(--red); }
.product-card__badge--new { background: var(--green); }

.product-card__img {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--off-white);
}
.product-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.05); }

.product-card__body {
  padding: 14px;
}
.product-card__brand {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.product-card__sku {
  font-size: 0.7rem;
  color: #1565c0;
  font-weight: 600;
}
.product-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin: 5px 0 6px;
  line-height: 1.3;
}
.product-card__colors {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.product-card__price {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.product-card__price del {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
  margin-right: 4px;
}
.product-card__price ins {
  text-decoration: none;
  color: var(--red);
}
.product-card__price-low {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.product-card__color-badge {
  display: inline-block;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  color: var(--navy);
  margin-left: 4px;
  vertical-align: middle;
}
.product-card__os-badge {
  display: inline-block;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  color: var(--text-muted);
  margin-left: 4px;
  vertical-align: middle;
}
.product-card__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.product-card__actions {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card__sku-badge {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 3px;
}

/* ==========================================
   CUSTOMERS SPEAK / TESTIMONIALS
   ========================================== */
.testimonials-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.testimonials-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
}
.testimonials-header h2 { color: var(--white); font-size: 1.2rem; margin-bottom: 3px; }
.testimonials-header p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 0; }
.composite-rating {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}
.composite-rating .stars { font-size: 1rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.testimonial-card {
  padding: 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonial-card:nth-child(4n) { border-right: none; }
.testimonial-card:nth-last-child(-n+4) { border-bottom: none; }

.testimonial-card__quote {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
  position: relative;
  padding-left: 16px;
}
.testimonial-card__quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card__author {
  font-size: 0.8rem;
}
.testimonial-card__name {
  font-weight: 700;
  color: var(--navy);
  font-style: italic;
}
.testimonial-card__date {
  color: var(--text-muted);
  font-size: 0.72rem;
  display: block;
  margin-top: 2px;
}

/* ==========================================
   HOW TO ORDER
   ========================================== */
.how-to-order-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); }
.step-number {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.how-to-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.how-to-list ul li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text);
}
.how-to-list ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ==========================================
   PRICING PROMISE
   ========================================== */
.pricing-promise {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0;
}
.pricing-promise h2 { color: var(--white); }
.pricing-promise h3 { color: var(--gold); font-size: 1rem; margin-bottom: 12px; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}
.pricing-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.pricing-note::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--gold);
}

/* ==========================================
   BREADCRUMBS
   ========================================== */
.breadcrumb {
  padding: 10px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: #1565c0; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--mid-gray); }

/* ==========================================
   CATEGORY PAGE / ARCHIVE
   ========================================== */
.archive-header {
  margin-bottom: 28px;
}
.archive-header h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 8px;
}
.archive-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 700px;
}

.filter-bar {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.filter-bar select {
  padding: 7px 32px 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  outline: none;
}
.filter-bar select:focus { border-color: var(--navy); }
.filter-sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-clear {
  font-size: 0.82rem;
  color: var(--red);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  padding: 0;
  text-decoration: underline;
}

/* ==========================================
   SINGLE PRODUCT
   ========================================== */
.single-product-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.product-gallery { }
.gallery-main {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--off-white);
  position: relative;
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 20px;
}
.gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
}
.gallery-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--off-white);
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--navy);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb-label {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.gallery-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.gallery-actions .btn { flex: 1; justify-content: center; display: flex; }

/* Product Info */
.product-info { }
.product-info .breadcrumb { margin-bottom: 8px; }
.product-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--navy);
  margin-bottom: 8px;
}
.product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.product-sku-tag {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
}

.product-price-box {
  margin-bottom: 20px;
}
.product-price-from {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.product-price-main {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.product-price-main .currency { font-size: 1.3rem; vertical-align: super; }
.product-price-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Color swatches */
.product-option-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--white);
}
.product-option-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.product-option-section h4 span {
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.color-swatch {
  width: 52px;
  cursor: pointer;
  text-align: center;
}
.color-swatch__circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  margin: 0 auto 4px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.color-swatch:hover .color-swatch__circle,
.color-swatch.active .color-swatch__circle {
  border-color: var(--navy);
  transform: scale(1.05);
}
.color-swatch__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.color-swatch__name {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Size / Quantity table */
.qty-section { overflow-x: auto; }
.size-qty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.size-qty-table th {
  background: var(--navy);
  color: var(--white);
  padding: 8px 10px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.size-qty-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.size-qty-table input[type="number"] {
  width: 52px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
}
.size-qty-table input[type="number"]:focus { border-color: var(--navy); }

.add-to-cart-box {
  margin: 16px 0;
}
.add-to-cart-box .btn { font-size: 1rem; padding: 14px 28px; }
.order-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.order-info strong { color: var(--text); }
.trust-badges {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
}

/* Quantity discounts table */
.qty-discounts {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 14px;
}
.qty-discounts-header {
  background: #1565c0;
  color: var(--white);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qty-discounts-header .best-value {
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 3px;
}
.qty-discount-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.qty-discount-table th {
  background: var(--off-white);
  padding: 8px 12px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
}
.qty-discount-table td {
  padding: 9px 12px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}
.qty-discount-table tr:last-child td { border-bottom: none; }

/* Product details panel */
.product-details-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 24px;
}
.product-details-panel h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.product-detail-item {
  margin-bottom: 8px;
  font-size: 0.875rem;
}
.product-detail-item strong {
  color: var(--navy);
  min-width: 120px;
  display: inline-block;
}

/* Reviews */
.reviews-section { margin: 40px 0; }
.reviews-section h2 {
  font-size: 1.3rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  background: var(--white);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.review-title { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.review-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.review-verified {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 600;
}
.review-text {
  font-size: 0.875rem;
  color: var(--text);
  margin: 8px 0 0;
}

/* Related products */
.related-products { margin: 40px 0; }
.related-products h2 {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* ==========================================
   CHATBOT WIDGET
   ========================================== */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}
.chat-bubble {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 12px;
  padding: 12px 14px;
  font-size: 0.8rem;
  box-shadow: var(--shadow-lg);
  max-width: 200px;
  margin-bottom: 8px;
  position: relative;
  color: var(--text);
  line-height: 1.4;
}
.chat-trigger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: block;
  margin-left: auto;
}
.chat-trigger img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================
   FOOTER
   ========================================== */
.footer-cta {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-dark));
  color: var(--white);
  text-align: center;
  padding: 36px 20px;
}
.footer-cta h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.footer-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.footer-cta .footer-cta-logo {
  margin: 0 auto 16px;
  max-width: 140px;
}

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-contact-block {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.footer-contact-block p { font-size: 0.85rem; margin-bottom: 8px; }
.footer-contact-block .phone {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}
.footer-contact-block .hours {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.footer-expert-quote {
  font-style: italic;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 12px !important;
}

.footer-social {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* ==========================================
   WOOCOMMERCE OVERRIDES
   ========================================== */
/* Hide default WooCommerce result count and sort dropdown */
p.woocommerce-result-count {
  display: none !important;
}
form.woocommerce-ordering {
  display: none !important;
}

.woocommerce .woocommerce-result-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.woocommerce .woocommerce-ordering select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.woocommerce ul.products li.product .price {
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
}
.woocommerce ul.products li.product .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: #2ecc71;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  padding: 9px 16px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.woocommerce ul.products li.product .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: #27ae60;
  transform: translateY(-1px);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background: var(--gold);
  color: var(--navy-dark);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--gold-dark);
}
.woocommerce .star-rating { color: var(--gold); }
.woocommerce .woocommerce-message {
  border-top-color: var(--navy);
  background: var(--off-white);
}
.woocommerce-cart table.cart td.actions .coupon .input-text {
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.woocommerce-checkout #payment { background: var(--off-white); border-radius: var(--radius-lg); }

/* Quantity input */
.quantity .qty {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 0.95rem;
  width: 72px;
}

/* ==========================================
   PAGINATION
   ========================================== */
.woocommerce-pagination,
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 32px 0;
}
.woocommerce-pagination ul,
.pagination ul {
  display: flex;
  gap: 6px;
  align-items: center;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  transition: all var(--transition);
}
.woocommerce-pagination ul li a:hover,
.pagination a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.woocommerce-pagination ul li span.current,
.pagination span.current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }

/* ==========================================
   MOBILE MENU
   ========================================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 1.4rem;
  padding: 4px 8px;
}
#mobile-menu {
  display: none;
  background: var(--navy);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  overflow-y: auto;
  padding: 24px;
}
#mobile-menu.open { display: block; }
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}
#mobile-menu ul li a {
  display: block;
  padding: 14px 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
#mobile-menu ul li a:hover { color: var(--gold); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1100px) {
  .products-grid--5 {
    grid-template-columns: repeat(4, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card:nth-child(4n) { border-right: 1px solid var(--border); }
  .testimonial-card:nth-child(2n) { border-right: none; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .products-grid--5, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .how-to-order-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .single-product-layout { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .mobile-menu-toggle { display: block; }
  .main-nav { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .section { padding: 36px 0; }
  .products-grid--5, .products-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card:nth-child(2n) { border-right: 1px solid var(--border); }
  .how-to-order-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
  .top-bar-links { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gallery-thumbs { flex-wrap: wrap; }
}

/* ============================================================
   HERO SLIDER  (matches screenshot: white bg, img left, text right)
   ============================================================ */
/* Old hero slider removed — see SA_Hero_Animated plugin class */

.sa-slider-btn--prev { left: 14px; }
.sa-slider-btn--next { right: 14px; }

/* Dot indicators */
.sa-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.sa-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.25);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}
.sa-slider-dot--active {
  background: var(--navy);
  border-color: var(--navy);
}

/* Responsive slider */
@media (max-width: 768px) {
  .hero-slide__inner {
    grid-template-columns: 1fr;
    padding: 30px 20px 52px;
    gap: 0;
    min-height: auto;
  }
  .hero-slide__inner .hero-image {
    padding: 20px 20px 0;
    order: -1;
  }
  .hero-slide__inner .hero-image img { max-height: 200px; }
  .hero-slide__inner .hero-content {
    padding: 16px 20px 20px;
    align-items: center;
    text-align: center;
  }
  .sa-slider-btn { width: 36px; height: 36px; font-size: 1rem; }
}

/* ============================================================
   DECORATION PAGE — outer wrapper only; two-column grid is
   handled by .sa-decoration-layout inside the plugin template.
   Do NOT add display:grid here — it would conflict with the
   plugin's inner .sa-decoration-layout grid and cause overlaps.
   ============================================================ */
.sa-decoration-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}
.sa-decoration-main { min-width: 0; }
.sa-decoration-main h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}
.sa-deco-notice {
  background: #f0f7f0;
  border: 1px solid #c3e6c3;
  border-radius: var(--radius);
  padding: 12px 18px;
  color: #2d5a2d;
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.sa-deco-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
}
.sa-deco-accordion__header {
  background: #eef2f7;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.sa-deco-accordion__body {
  padding: 18px;
  background: #fff;
}
.sa-deco-select {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 14px;
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-color: #fff;
  cursor: pointer;
}
.sa-deco-label {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.sa-deco-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ORDER SUMMARY SIDEBAR — matches screenshot */
.sa-order-summary-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.sa-order-summary-sidebar__header {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  text-transform: uppercase;
}
.sa-order-summary-sidebar__body { padding: 16px 18px; }
.sa-order-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.sa-order-item:last-child { border-bottom: none; }
.sa-order-item__img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.sa-order-item__info { flex: 1; min-width: 0; }
.sa-order-item__brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.sa-order-item__sku {
  color: #1565c0;
  font-weight: 700;
  font-size: 0.85rem;
}
.sa-order-item__meta { font-size: 0.8rem; color: var(--text-muted); }
.sa-order-totals {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.sa-order-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 3px 0;
}
.sa-order-totals__row strong { color: var(--navy); }
.sa-deco-section-header {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  margin: 12px -18px;
  letter-spacing: 0.04em;
}

/* Chat tooltip — matches real site bubble */
.sa-chat-tooltip {
  position: fixed;
  bottom: 105px;
  right: 100px;
  background: #e9ecef;
  color: #1c1c1c;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 200px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  z-index: 9999;
}

/* ============================================================
   SINGLE PRODUCT — matches live site layout
   All rules scoped under .sa-container so they cannot bleed
   into the plugin's decoration/cart pages which share some
   of the same class names (e.g. .sa-step, .sa-card, .sa-grid,
   .sa-btn, .sa-size-label, .sa-breadcrumb).
   ============================================================ */

/* Outer wrapper — safe to keep global, just sizing */
.sa-container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* Everything else scoped under .sa-container */
.sa-container .sa-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
}

/* Breadcrumb — scoped so it doesn't override plugin breadcrumb */
.sa-container .sa-breadcrumb { font-size: .82rem; color: #666; margin-bottom: 10px; }
.sa-container .sa-breadcrumb a { color: var(--navy); text-decoration: none; }
.sa-container .sa-breadcrumb a:hover { text-decoration: underline; }

/* Title */
.sa-container .sa-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 6px;
  line-height: 1.2;
}

/* Meta row */
.sa-container .sa-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: .85rem;
}
.sa-container .sa-stars      { color: #f59e0b; letter-spacing: 2px; }
.sa-container .sa-review-count { color: #555; }
.sa-container .sa-prodno-badge,
.sa-container .sa-brand-badge {
  background: var(--navy);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: .04em;
}
.sa-container .sa-brand-badge { background: #e9ecef; color: var(--navy); }

/* Hero image */
.sa-container .sa-hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fafafa;
  margin-bottom: 10px;
  aspect-ratio: 1 / 1;
}
.sa-container .sa-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sa-container .sa-hero-inner { position: absolute; top: 10px; left: 10px; z-index: 2; }
.sa-container .sa-hero-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  z-index: 2;
}
.sa-container .sale-tag {
  background: var(--red, #d32f2f);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
}

/* Thumbnail strip */
.sa-container .sa-thumbs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sa-container .sa-thumb {
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  width: 72px;
  text-align: center;
  transition: border-color .18s;
}
.sa-container .sa-thumb.active,
.sa-container .sa-thumb:hover { border-color: var(--navy); }
.sa-container .sa-thumb-img { width: 68px; height: 60px; object-fit: cover; display: block; }
.sa-container .sa-thumb-label { font-size: .65rem; color: #555; display: block; padding: 2px 0; }

/* Embroidery examples */
.sa-container .sa-examples-title { font-weight: 700; font-size: .85rem; color: var(--navy); margin: 10px 0 6px; }
.sa-container .sa-examples { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sa-container .sa-ex-item { text-align: center; }
.sa-container .sa-ex-img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.sa-container .sa-ex-caption { font-size: .65rem; color: #666; margin-top: 4px; max-width: 90px; }

/* Details panel */
.sa-container .sa-panel.sa-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.sa-container .sa-body { font-size: .875rem; line-height: 1.55; color: #333; }

/* "As low as" price */
.sa-container .sa-price-as-low-as {
  text-align: left;
  font-weight: 800;
  font-size: 1.95em;
  color: var(--red, #c0392b);
  margin-bottom: 8px;
}
.sa-container .sa-price-asl-label { font-weight: 500; font-size: .5em; color: #000; }
.sa-container .sa-price-asl-ea    { font-weight: 500; font-size: .7em; color: #000; }

/* Cards — scoped so they don't override plugin panel cards */
.sa-container .sa-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

/* Section title */
.sa-container .sa-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sa-container .sa-section-left { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: .9rem; }

/* Step badge — scoped so it doesn't override the plugin's full-width .sa-step divs */
.sa-container .sa-step {
  background: var(--navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sa-container .sa-section-note { font-size: .75rem; color: #666; }

/* Color chips */
.sa-container .sa-colorchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.sa-container .sa-colorchip {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 4px 4px 2px;
  cursor: pointer;
  background: #fff;
  text-align: center;
  width: 72px;
  transition: border-color .18s, box-shadow .18s;
  overflow: hidden;
}
.sa-container .sa-colorchip.active,
.sa-container .sa-colorchip:hover { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.sa-container .sa-colorchip img { width: 64px; height: 64px; object-fit: cover; display: block; border-radius: 4px; }
.sa-container .sa-chip-label { font-size: .6rem; color: #333; display: block; margin-top: 3px; line-height: 1.2; word-break: break-word; }
.sa-container .sa-chip-badge {
  position: absolute;
  top: 3px; left: 3px;
  background: var(--red, #d32f2f);
  color: #fff;
  font-size: .55rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  z-index: 2;
}
.sa-container .sa-chip-no-img {
  display: block;
  width: 64px; height: 64px;
  background: #e9ecef;
  border-radius: 4px;
  line-height: 64px;
  font-size: .8rem;
  font-weight: 700;
  color: #666;
}

/* Dropdown "View N more" */
.sa-container .sa-dropdown { margin-top: 6px; }
.sa-container .sa-dd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
}
.sa-container .sa-dd-btn:hover { background: #e5e7eb; }
.sa-container .sa-dd-menu {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #fff;
}
.sa-container .sa-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: .82rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background .12s;
}
.sa-container .sa-dd-item:hover,
.sa-container .sa-dd-item.active { background: #eef2f7; }
.sa-container .sa-dd-img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); flex-shrink: 0; }

/* Live price header */
.sa-container .sa-price-header-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.sa-container .sa-price-label { font-size: .8rem; color: #555; }
.sa-container .sa-price-pill {
  display: inline-block;
  background: var(--red, #d32f2f);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin: 3px 0;
}
.sa-container .sa-price-large { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.sa-container .sa-price-large.on-sale { color: var(--red, #d32f2f); }
.sa-container .sa-cart-label { font-size: .8rem; color: #555; }
.sa-container .sa-cart-shipping-info { font-size: .75rem; color: #555; line-height: 1.4; margin-top: 4px; }
.sa-container .sa-selected-red { color: var(--red, #d32f2f); }

/* Size grid — scoped so it doesn't override plugin's .sa-size-label span styling */
.sa-container .sa-size-grid-wrap { overflow-x: auto; margin-bottom: 14px; }
.sa-container .sa-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
  gap: 8px;
}
.sa-container .sa-size-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sa-container .sa-size-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  background: #0abecf;
  padding: 10px 4px;
  border-radius: 6px;
  text-align: center;
  letter-spacing: .02em;
  min-height: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-container .sa-size-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  min-height: 52px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .9rem;
  outline: none;
}
.sa-container .sa-size-input:focus { border-color: #0abecf; box-shadow: 0 0 0 2px rgba(10,190,207,.2); }
.sa-container .sa-price-each { font-size: .75rem; font-weight: 500; color: #555; margin-left: 4px; vertical-align: middle; }

/* Add to cart button — scoped to not override plugin .sa-btn */
.sa-container .sa-btn.primary.full {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  margin-bottom: 4px;
  transition: background .18s;
}
.sa-container .sa-btn.primary.full:hover { background: var(--gold-dark); }
.sa-container .sa-subtle { font-size: .82rem; color: #666; }
.sa-container .sa-strong { font-weight: 700; }

/* Quantity discount table */
.sa-container .sa-price-chart-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.sa-container .sa-tier-nudge {
  background: #f8f9fa;
  padding: 10px 16px;
  font-size: .85rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-container .sa-tier-sep { color: #ccc; }
.sa-container .sa-break-table-scroll { overflow-x: auto; }
.sa-container .sa-break-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.sa-container .sa-break-table th {
  background: var(--navy);
  color: #fff;
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}
.sa-container .sa-break-table td {
  padding: 8px 10px;
  text-align: center;
  border-right: 1px solid #f0f0f0;
}
.sa-container .sa-sale-price { color: var(--red, #c0392b); font-weight: 700; }

/* Reviews */
.sa-container .sa-review-summary { margin-bottom: 10px; }
.sa-container .sa-review-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: #555;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: middle;
}
.sa-container .sa-review-title { font-weight: 600; font-size: 13px; margin: 3px 0 2px; }
.sa-container .sa-review-toggle {
  display: block;
  margin-top: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: .82rem;
  color: var(--navy);
  width: 100%;
  text-align: center;
}
.sa-container .sa-review-toggle:hover { background: #f0f4f8; }

/* Related products */
.sa-container .prod-related-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.sa-container .prod-related-multiple { width: calc(25% - 9px); min-width: 120px; }
.sa-container .prod-var a { display: block; text-align: center; text-decoration: none; color: inherit; }
.sa-container .prod-var img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--border); margin-bottom: 4px; }
.sa-container .prod-desc-width-restricted { font-size: .75rem; color: var(--navy); display: block; }

/* Hide native WC variation form when we have our own UI */
.single-product .variations_form { display: none !important; }

/* ============================================================
   SINGLE PRODUCT + PLUGIN — RESPONSIVE
   ============================================================ */

/* Prevent ANY element from busting out of viewport */
.sa-container,
.sa-cart-wrap,
.sa-decoration-wrap {
  max-width: 100%;
  overflow-x: hidden;
}
.sa-container .sa-grid,
.sa-container .sa-left-col,
.sa-container .sa-right-col {
  min-width: 0;
}

/* ── Tablet: ≤900px ── */
@media (max-width: 900px) {

  /* Single product grid collapses */
  .sa-container .sa-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Left col (image + details) comes first on mobile */
  .sa-container .sa-left-col  { order: 1; }
  .sa-container .sa-right-col {
    order: 2;
    position: static !important;
    width: 100%;
    max-width: 100%;
    padding: 14px;
    background: var(--off-white);
    border-radius: 8px;
    border: 1px solid var(--border, #dde3eb);
    box-sizing: border-box;
  }

  /* Plugin decoration layout */
  .sa-decoration-layout {
    grid-template-columns: 1fr;
  }
  .sa-cart-sidebar {
    order: -1;
  }
  .sa-order-summary {
    position: static !important;
  }

  /* Cart table */
  .sa-cart-layout {
    grid-template-columns: 1fr;
  }

  /* Related products */
  .sa-container .prod-related-multiple { width: calc(33.33% - 8px); }

  /* Price display */
  .sa-container .sa-price-container { flex-wrap: wrap; }
}

/* ── Mobile: ≤600px ── */
@media (max-width: 600px) {

  /* Force full-width containers */
  .sa-container { padding: 0 12px; overflow-x: hidden; }

  /* Right col tighter padding */
  .sa-container .sa-right-col { padding: 10px; }

  /* Color chips shrink */
  .sa-container .sa-colorchips { gap: 4px; }
  .sa-container .sa-colorchip  { width: 56px; }
  .sa-container .sa-colorchip img { width: 48px; height: 48px; }
  .sa-container .sa-chip-no-img { width: 48px; height: 48px; line-height: 48px; }

  /* Thumbnail strip wraps properly */
  .sa-container .sa-thumbs-row { gap: 6px; }
  .sa-container .sa-thumb      { width: 62px; }
  .sa-container .sa-thumb-img  { width: 58px; height: 52px; }

  /* Size grid auto-fills smaller cols */
  .sa-container .sa-size-grid {
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 6px;
  }
  .sa-container .sa-size-label { font-size: .72rem; padding: 8px 2px; min-height: 34px; }
  .sa-container .sa-size-input { min-height: 44px; font-size: .85rem; }

  /* Price */
  .sa-container .sa-price-large { font-size: 1.25rem; }
  .sa-container .sa-price-as-low-as { font-size: .82rem; }

  /* Buttons stack — plugin decoration actions also get this */
  .sa-cart-actions,
  .sa-decoration-actions { flex-direction: column; }
  .sa-cart-actions .sa-btn,
  .sa-decoration-actions .sa-btn { width: 100%; text-align: center; }

  /* Related products */
  .sa-container .prod-related-multiple { width: calc(50% - 6px); }
  .sa-container .prod-related-wrap { gap: 8px; }

  /* Discount table scrolls */
  .sa-container .sa-break-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Quantity discount tiers nowrap handled by scroll */
  .sa-container .sa-tier-nudge { font-size: .78rem; flex-wrap: wrap; }

  /* Cart table */
  .sa-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sa-cart-table th,
  .sa-cart-table td { padding: 6px 8px; font-size: .8rem; white-space: nowrap; }

  /* Order summary sidebar */
  .sa-order-summary { position: static !important; }

  /* Decoration selects */
  .sa-select { font-size: .88rem; }
  .sa-panel__body { padding: 14px 12px; }

  /* Hero image stays square but full width */
  .sa-container .sa-hero { margin-bottom: 8px; }
}


/* ══════════════════════════════════════════════════════════════
   HEADER ICON-ONLY ACTIONS (replaces text links)
══════════════════════════════════════════════════════════════ */
.header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #1a2a4a;
    text-decoration: none;
    padding: 6px;
    border-radius: 6px;
    transition: color .18s, background .18s;
}
.header-action-btn:hover {
    color: #0a1a3a;
    background: rgba(0,0,0,0.06);
}
.sa-header-icon {
    width: 26px;
    height: 26px;
    display: block;
    flex-shrink: 0;
}
.header-cart-btn {
    position: relative;
}
.header-cart-btn .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f5c518;
    color: #1a2a4a;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
}
/* Hide any legacy cart-count that was inside an <a> as plain text */
.header-actions > a > .cart-count:not(.header-cart-btn .cart-count) {
    display: none;
}
