/* ============================================================
   Chunky Creations By Jennifer — Theme CSS
   Exact match to Lovable source
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (overridden by Customizer inline style)
   ============================================================ */
:root {
  --color-primary:    #b5748a;
  --color-primary-fg: #faf8f5;
  --color-bg:         #faf8f5;
  --color-foreground: #2e2520;
  --color-secondary:  #ede9e3;
  --color-muted:      #ddd8d0;
  --color-muted-fg:   #7a726a;
  --color-border:     #dbd4cb;

  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;

  --shadow-soft:     0 4px 20px -4px hsl(20 20% 18% / 0.06);
  --shadow-elevated: 0 8px 40px -8px hsl(20 20% 18% / 0.1);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --radius: 0.5rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-foreground);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  border-color: var(--color-border);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

ul { list-style: none; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container-wide {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .container-wide {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.font-display { font-family: var(--font-display); }
.text-muted   { color: var(--color-muted-fg); }
.text-primary { color: var(--color-primary); }
.text-center  { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .section-heading { font-size: 2.25rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s var(--transition-smooth), background-color 0.2s var(--transition-smooth), border-color 0.2s var(--transition-smooth);
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background-color: transparent;
  color: var(--color-foreground);
  border-color: var(--color-border);
}
.btn-outline:hover { background-color: var(--color-secondary); }

.btn-outline-white {
  background-color: rgba(255,255,255,0.2);
  color: #fff;
  border-color: #fff;
}
.btn-outline-white:hover { background-color: rgba(255,255,255,0.4); }

.btn-disabled,
.btn[disabled] {
  background-color: var(--color-muted);
  color: var(--color-muted-fg);
  border-color: var(--color-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-icon { flex-shrink: 0; }
.w-full { width: 100%; }
.flex-1 { flex: 1; min-width: 0; }

/* ============================================================
   LINK UNDERLINE ANIMATION
   ============================================================ */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.animate-fade-in {
  animation: fadeIn 0.6s var(--transition-smooth) forwards;
}
.animate-slide-up {
  animation: slideUp 0.6s var(--transition-smooth) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.image-zoom {
  transition: transform 0.7s ease-out;
}
.image-zoom:hover { transform: scale(1.05); }

.card-hover {
  transition: all 0.5s var(--transition-smooth);
}
.card-hover:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 1024px) {
  .site-nav { height: 5rem; }
}

.site-logo--mobile { display: flex; align-items: center; }
.site-logo--desktop { display: none; }

@media (min-width: 1024px) {
  .site-logo--mobile { display: none; }
  .site-logo--desktop { display: flex; }
}

.logo-img--mobile { height: 3.5rem; width: auto; }
.logo-img--desktop { height: 4rem; width: auto; }

/* Ensure logo never grows larger than intended on any page (checkout, product, etc.) */
.site-header .logo-img,
.site-header .logo-img--mobile,
.site-header .logo-img--desktop {
  max-height: 4rem;
  width: auto;
  object-fit: contain;
}
.site-header .logo-img--mobile { max-height: 3.5rem; }
.site-header .logo-img--desktop { max-height: 4rem; }

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
}

.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.site-logo--desktop {
  margin-left: 4rem;
  margin-right: 4rem;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  color: var(--color-foreground);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-btn {
  position: relative;
  padding: 0.5rem;
  transition: opacity 0.2s;
  color: var(--color-foreground);
}
.cart-btn:hover { opacity: 0.6; }

.theme-cart-count {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 500;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border-radius: 9999px;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  transition: opacity 0.2s;
  color: var(--color-foreground);
}
.mobile-menu-btn:hover { opacity: 0.6; }

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  display: none;
}
.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.2s var(--transition-smooth);
}

.mobile-nav-link {
  font-size: 0.875rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  color: var(--color-foreground);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--color-muted-fg); }

/* ============================================================
   MAIN CONTENT OFFSET (for fixed header)
   ============================================================ */
.main-content {
  padding-top: 4rem;
}

@media (min-width: 1024px) {
  .main-content { padding-top: 5rem; }
}

/* Non-hero pages */
.theme-no-hero .main-content,
.main-content.about-page,
.main-content.faq-page,
.main-content.contact-page,
.main-content.single-product-page,
.main-content.shop-archive-page,
.main-content.checkout-page,
.main-content.thankyou-page {
  padding-top: 4rem;
}

@media (min-width: 1024px) {
  .theme-no-hero .main-content,
  .main-content.about-page,
  .main-content.faq-page,
  .main-content.contact-page,
  .main-content.single-product-page,
  .main-content.shop-archive-page,
  .main-content.checkout-page,
  .main-content.thankyou-page {
    padding-top: 5rem;
  }
}

.page-inner {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(46,37,32,0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 6rem;
  padding-bottom: 8rem;
}

@media (min-width: 1024px) {
  .hero-content { padding-top: 8rem; padding-bottom: 8rem; }
}

.hero-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #fff;
}

@media (min-width: 768px) { .hero-heading { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-heading { font-size: 4.5rem; } }

.hero-text {
  color: rgba(255,255,255,0.8);
  font-size: 1.25rem;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-btns { flex-direction: row; }
}

/* ============================================================
   VALUE STRIP
   ============================================================ */
.value-strip {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
}

.value-strip-inner {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 640px) {
  .value-strip-inner { flex-direction: row; gap: 3rem; }
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-separator {
  opacity: 0.4;
  display: none;
}

@media (min-width: 640px) {
  .value-separator { display: block; }
}

/* ============================================================
   ABOUT PREVIEW
   ============================================================ */
.about-preview {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-preview-image {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .about-preview-image { margin: 0; }
}

.about-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-preview-content .section-heading {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about-preview-content .section-heading { font-size: 2.25rem; }
}

.about-preview-text {
  color: var(--color-muted-fg);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-preview-content .btn { margin-top: 2rem; }

/* ============================================================
   SHOP SECTION (homepage + archive)
   ============================================================ */
.shop-section,
.shop-archive-section {
  background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.shop-header {
  text-align: center;
  margin-bottom: 3rem;
}

.shop-header .section-heading {
  font-size: 1.875rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .shop-header .section-heading { font-size: 2.25rem; }
}

.shop-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.shop-search-wrap {
  position: relative;
  max-width: 28rem;
  width: 100%;
}

.shop-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-fg);
  pointer-events: none;
}

.shop-search {
  width: 100%;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  padding-left: 2.25rem;
  padding-right: 2.25rem;
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  transition: box-shadow 0.2s;
}
.shop-search::placeholder { color: var(--color-muted-fg); }
.shop-search:focus { box-shadow: 0 0 0 2px var(--color-primary); }

.shop-search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted-fg);
  transition: color 0.2s;
}
.shop-search-clear:hover { color: var(--color-foreground); }

.shop-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.cat-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  border: none;
  background-color: var(--color-bg);
  color: rgba(46,37,32,0.7);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}
.cat-btn:hover { background-color: rgba(250,248,245,0.7); }
.cat-btn--active {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
  display: block;
  color: var(--color-foreground);
  text-decoration: none;
}

.product-card-img-wrap .product-card-img-link {
  display: block;
  height: 100%;
}

.product-card-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img-soldout { opacity: 0.6; }

.sold-out-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-foreground);
  color: var(--color-bg);
  border-radius: var(--radius);
}

.new-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
}

.quick-add-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(250,248,245,0.9);
  color: var(--color-foreground);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-soft);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.quick-add-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  transform: scale(1.1);
}
.quick-add-btn.just-added {
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  transform: scale(1.1);
}

.product-card-info { display: flex; flex-direction: column; gap: 0.25rem; }

.product-card-cat {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted-fg);
}

.product-card-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.product-card:hover .product-card-name { opacity: 0.7; }

.product-card-price {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

/* WooCommerce price overrides */
.product-card-price .woocommerce-Price-amount,
.product-card-price ins .woocommerce-Price-amount {
  font-size: inherit;
  color: inherit;
}

.shop-no-results {
  text-align: center;
  padding: 5rem 0;
}
.shop-no-results p { color: var(--color-muted-fg); margin-bottom: 1rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { padding-top: 5rem; padding-bottom: 5rem; }

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 62.5rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.testimonial-quote {
  margin: 0 auto 1rem;
  color: color-mix(in srgb, var(--color-primary) 40%, transparent);
}

.testimonial-text {
  color: rgba(46,37,32,0.7);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.star-icon { color: var(--color-primary); }
.star-empty { opacity: 0.3; }

.testimonial-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
}

/* ============================================================
   CUSTOM ORDER CTA
   ============================================================ */
.cta-section {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(250,248,245,0.8);
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.cta-icon {
  margin: 0 auto 1rem;
  color: var(--color-primary);
}

.cta-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-heading { font-size: 1.875rem; }
}

.cta-text {
  max-width: 32rem;
  margin: 0 auto 2rem;
  color: rgba(46,37,32,0.6);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  width: 100%;
  max-width: none;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-secondary);
}

/* Ensure footer is full-width on checkout, thank you, and single product (not constrained by page layout); avoid clipping from body overflow */
body.woocommerce-checkout .site-footer,
body.woocommerce-order-received .site-footer,
body.single-product .site-footer {
  width: 100%;
  max-width: none;
  overflow: visible;
}

.footer-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .footer-inner { padding-top: 4rem; padding-bottom: 4rem; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 3rem; }
}

.footer-brand {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .footer-brand { grid-column: span 2; }
}

.footer-logo {
  height: 6rem;
  width: auto;
}

/* Same logo size on all pages (product, checkout, home) */
.site-footer .footer-logo {
  height: 6rem;
  width: auto;
}

.footer-description {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  max-width: 24rem;
  line-height: 1.75;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  padding: 0.5rem;
  transition: opacity 0.2s;
  color: var(--color-foreground);
}
.footer-social-link:hover { opacity: 0.6; }

.footer-col-heading {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-link {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--color-foreground); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-copyright,
.footer-note {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
}

.footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .footer-bottom-right { flex-direction: row; gap: 1rem; }
}

.footer-built-by {
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-built-by:hover { color: var(--color-foreground); }

.footer-email-link { word-break: break-all; }

/* ============================================================
   BACK LINK
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--color-foreground); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .about-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .about-h1 { font-size: 3.125rem; } }

.about-paragraphs { display: flex; flex-direction: column; gap: 1rem; }
.about-paragraphs p { color: var(--color-muted-fg); line-height: 1.75; }

.about-hero-image {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .about-hero-image { margin: 0; }
}

.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-block {
  background-color: var(--color-secondary);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .mission-block { padding: 4rem; }
}

.mission-heading {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .mission-heading { font-size: 1.875rem; } }

.mission-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-muted-fg);
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  line-height: 1.75;
  font-style: italic;
}

@media (min-width: 768px) { .mission-quote { font-size: 1.5rem; } }

.mission-sub {
  color: var(--color-muted-fg);
  max-width: 32rem;
  margin: 0 auto;
}

.about-section2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .about-section2-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-section2-image {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 28rem;
  margin: 0 auto;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  order: 2;
}

@media (min-width: 1024px) {
  .about-section2-image { order: 1; margin: 0; }
}

.about-section2-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.about-section2-content {
  order: 1;
}

@media (min-width: 1024px) {
  .about-section2-content { order: 2; }
}

.section2-heading {
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.about-section2-content .btn { margin-top: 2rem; }

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-inner { max-width: 48rem; margin: 0 auto; }

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .faq-h1 { font-size: 3.125rem; } }

.faq-intro {
  color: var(--color-muted-fg);
  max-width: 32rem;
  margin: 0 auto;
}

.faq-contact-link {
  color: var(--color-primary);
  text-decoration: underline;
}

.faq-accordion { width: 100%; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  text-align: left;
  color: var(--color-foreground);
  cursor: pointer;
  gap: 1rem;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s var(--transition-smooth);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--transition-smooth);
}

.faq-content:not([hidden]) {
  max-height: 500px;
}

.faq-content[hidden] { display: block; max-height: 0; overflow: hidden; }

.faq-content p {
  padding-bottom: 1.5rem;
  color: var(--color-muted-fg);
  line-height: 1.75;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-h1 {
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .contact-h1 { font-size: 2.25rem; } }

.contact-intro { color: var(--color-muted-fg); }

.contact-layout {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr 2fr; gap: 2.5rem; }
}

.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-info-card {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card-heading {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.contact-info-list { display: flex; flex-direction: column; gap: 1rem; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.contact-icon { color: var(--color-primary); flex-shrink: 0; }

.contact-link {
  color: var(--color-foreground);
  transition: color 0.2s;
}
.contact-link:hover { color: var(--color-primary); }

.contact-follow-text {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-bottom: 0.75rem;
}

.contact-instagram-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  transition: text-decoration 0.2s;
}
.contact-instagram-link:hover { text-decoration: underline; }

/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-field { display: flex; flex-direction: column; margin-bottom: 0.75rem; }

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-foreground);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.form-input::placeholder { color: var(--color-muted-fg); }
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.form-textarea { resize: none; }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-success {
  text-align: center;
  padding: 5rem 0;
}

.success-icon-wrap {
  width: 4rem;
  height: 4rem;
  background-color: var(--color-primary);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-primary-fg);
}

.success-heading {
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.success-text { color: var(--color-muted-fg); margin-bottom: 0.5rem; }

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.single-product-page .container-wide { padding-top: 0; padding-bottom: 5rem; }

.product-breadcrumb { padding-top: 1.5rem; padding-bottom: 0; }

.single-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 0 0 5rem;
}

@media (min-width: 1024px) {
  .single-product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Product gallery */
.product-gallery { display: flex; flex-direction: column; gap: 1rem; }

.product-main-img-wrap {
  aspect-ratio: 3/4;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-thumb-btn {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.6;
  cursor: pointer;
}
.product-thumb-btn:hover { opacity: 1; }
.product-thumb-btn.is-active { border-color: var(--color-foreground); opacity: 1; }
.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.product-info { padding-top: 0; }

@media (min-width: 1024px) {
  .product-info { padding-top: 2.5rem; }
}

.product-cats {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  margin-bottom: 0.5rem;
}

.product-cats a { color: inherit; transition: color 0.2s; }
.product-cats a:hover { color: var(--color-primary); }

.product-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }

.product-price {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.product-price .woocommerce-Price-amount { font-size: inherit; }

.sold-out-inline {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-muted);
  color: var(--color-muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.product-description { color: var(--color-muted-fg); line-height: 1.75; margin-bottom: 2rem; }

/* Variable product */
.variable-product-form { margin-bottom: 1.5rem; }

.variation-field { margin-bottom: 1.5rem; }

.variation-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}

.variation-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.variation-btn {
  min-width: 3rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-bg);
  color: var(--color-foreground);
  cursor: pointer;
  transition: all 0.2s;
}
.variation-btn:hover { border-color: var(--color-foreground); }
.variation-btn.is-selected {
  border-color: var(--color-foreground);
  background-color: var(--color-foreground);
  color: var(--color-bg);
}

/* Single product add-to-cart link (disabled until variation selected) */
.single-product-add-to-cart.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hide "View cart" link on single product page (drawer opens instead) */
.single-product-page a.added_to_cart.wc-forward,
.single-product-page a.added_to_cart.wc-forward.theme-hide-view-cart {
  display: none !important;
}

/* Quantity control */
.add-to-cart-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  align-items: center;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-btn {
  padding: 0.75rem;
  background-color: var(--color-bg);
  color: var(--color-foreground);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.qty-btn:hover { background-color: var(--color-secondary); }

.qty-display {
  padding: 0.75rem;
  min-width: 2.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.product-handmade-note {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  text-align: center;
  margin-bottom: 1rem;
}

.product-details-section {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.product-details-heading {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-details-content { color: var(--color-muted-fg); font-size: 0.875rem; line-height: 1.75; }
.product-details-content ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.product-details-content li { display: flex; align-items: flex-start; gap: 0.75rem; }
.product-details-content li::before {
  content: '';
  display: block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--color-primary);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* Related products */
.related-products-section {
  padding-top: 5rem;
  border-top: 1px solid var(--color-border);
}

.related-products-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) { .related-products-heading { font-size: 1.5rem; } }

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .related-products-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* ============================================================
   CART DRAWER
   ============================================================ */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(46,37,32,0.2);
  z-index: 49;
  display: none;
}

body.cart-open #theme-cart-overlay {
  display: block;
  animation: fadeIn 0.2s var(--transition-smooth);
}

#theme-cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background-color: var(--color-bg);
  z-index: 50;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--transition-smooth);
}

body.cart-open #theme-cart-drawer {
  transform: translateX(0);
}

#theme-cart-drawer.is-updating {
  opacity: 0.6;
  pointer-events: none;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer-title-row { display: flex; align-items: center; gap: 0.75rem; }

.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
}

.cart-drawer-close {
  padding: 0.25rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.cart-drawer-close:hover { opacity: 0.6; }

.cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.cart-empty-icon { color: var(--color-muted-fg); margin-bottom: 1rem; }
.cart-empty-text { color: var(--color-muted-fg); margin-bottom: 1.5rem; }

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
}

.cart-item-img-link {
  width: 5rem;
  height: 6rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

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

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
  color: var(--color-foreground);
}
.cart-item-name:hover { opacity: 0.7; }

.cart-item-price {
  font-size: 0.875rem;
  color: var(--color-muted-fg);
  margin-top: 0.125rem;
}

.cart-item-price .woocommerce-Price-amount { font-size: inherit; color: inherit; }

.cart-item-variation {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  margin-top: 0.25rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cart-qty-btn {
  padding: 0.25rem;
  color: var(--color-foreground);
  background-color: var(--color-bg);
  border-radius: var(--radius);
  transition: background-color 0.2s;
}
.cart-qty-btn:hover { background-color: var(--color-secondary); }

.cart-item-qty {
  font-size: 0.875rem;
  min-width: 1.5rem;
  text-align: center;
}

.cart-remove-btn {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  transition: color 0.2s;
}
.cart-remove-btn:hover { color: var(--color-foreground); }

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
.cart-subtotal-label { color: var(--color-muted-fg); }
.cart-subtotal-value { font-weight: 500; }

.cart-shipping-note {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
}

.cart-checkout-btn { text-align: center; }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-inner { padding-top: 2.5rem; padding-bottom: 5rem; }

.checkout-empty {
  text-align: center;
  padding: 5rem 0;
}

.checkout-empty-icon { color: var(--color-muted-fg); margin: 0 auto 1.5rem; }

.checkout-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.checkout-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
}

@media (min-width: 768px) { .checkout-title { font-size: 2.25rem; } }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.checkout-col-form {
  order: 1;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

.checkout-col-order {
  order: 2;
  min-width: 0;
  width: 100%;
}

body.woocommerce-checkout {
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  .checkout-col-form { order: 2; }
  .checkout-col-order { order: 1; }
}

/* Form column uses full grid cell width; form fields fill the column */
.checkout-col-form .checkout-section,
.checkout-col-form .woocommerce-form-row,
.checkout-col-form p.form-row {
  max-width: 100%;
}

.checkout-section { margin-bottom: 2rem; }

.checkout-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.checkout-shipping-note {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.text-muted-sm { font-size: 0.875rem; color: var(--color-muted-fg); }

/* Checkout: hide labels, use placeholders only */
.checkout-col-form .woocommerce-form-row label,
.checkout-col-form p.form-row label {
  display: none !important;
}

/* Checkout: 1 row 2 cols for first/last name and city/state */
.checkout-col-form .form-row.form-row--2col.checkout-grid-2col {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: auto;
  gap: 0.75rem;
}

/* Grid children must not float and must fill their cell */
.checkout-col-form .form-row.form-row--2col.checkout-grid-2col > .form-row-first,
.checkout-col-form .form-row.form-row--2col.checkout-grid-2col > .form-row-last {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* WooCommerce form fields override - let grid control layout, no float */
.checkout-col-form .form-row-first,
.checkout-col-form .form-row-last {
  float: none;
}

/* Remove WooCommerce form-row clearfix pseudo-elements (break grid layout) */
.woocommerce form .form-row::before,
.woocommerce form .form-row::after,
.woocommerce-page form .form-row::before,
.woocommerce-page form .form-row::after {
  content: none !important;
  display: none !important;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
  margin-bottom: 0;
}

.woocommerce-input-wrapper { display: block; }

.woocommerce-form-row label,
p.form-row label {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.375rem;
  color: var(--color-foreground);
}

/* Force checkout field styles */
.checkout-col-form .woocommerce-form-row input.input-text,
.checkout-col-form .woocommerce-form-row textarea,
.checkout-col-form .woocommerce-form-row select,
.checkout-col-form p.form-row input.input-text,
.checkout-col-form p.form-row textarea,
.checkout-col-form p.form-row select {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  background-color: var(--color-bg) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  font-size: 0.875rem !important;
  font-family: var(--font-body) !important;
  color: var(--color-foreground) !important;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.checkout-col-form .woocommerce-form-row input.input-text:focus,
.checkout-col-form .woocommerce-form-row textarea:focus,
.checkout-col-form .woocommerce-form-row select:focus,
.checkout-col-form p.form-row input.input-text:focus,
.checkout-col-form p.form-row textarea:focus,
.checkout-col-form p.form-row select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 1px var(--color-primary) !important;
}

.woocommerce-form-row input.input-text,
.woocommerce-form-row textarea,
.woocommerce-form-row select,
p.form-row input.input-text,
p.form-row textarea,
p.form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.woocommerce-form-row input.input-text:focus,
.woocommerce-form-row textarea:focus,
.woocommerce-form-row select:focus,
p.form-row input.input-text:focus,
p.form-row textarea:focus,
p.form-row select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.woocommerce-form-row,
p.form-row {
  margin-bottom: 0.75rem;
}

/* Checkout cart items */
.checkout-cart-items { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }

.checkout-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.checkout-item-img-wrap {
  width: 5rem;
  height: 6rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

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

.checkout-item-details { flex: 1; min-width: 0; }

.checkout-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
  color: var(--color-foreground);
}
.checkout-item-name:hover { opacity: 0.7; }

.checkout-item-price,
.checkout-item-variation {
  font-size: 0.75rem;
  color: var(--color-muted-fg);
  margin-top: 0.125rem;
}

.checkout-item-qty-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.checkout-item-qty { font-size: 0.75rem; color: var(--color-muted-fg); }
.checkout-item-total { font-size: 0.875rem; font-weight: 500; }

/* Order review */
.woocommerce-checkout-review-order {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.woocommerce-checkout-review-order-table tfoot tr:empty { display: none; }

.woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout-review-order-table tfoot th {
  padding: 0.5rem 0;
  border-top: 1px solid var(--color-border);
}

.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th {
  font-weight: 600;
  font-size: 1rem;
}

/* Payment section */
.woocommerce-checkout-payment {
  margin-top: 1.5rem;
}

.woocommerce-checkout-payment .payment_methods {
  list-style: none;
  margin-bottom: 1rem;
}

.woocommerce-checkout-payment .payment_box {
  background-color: var(--color-secondary);
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  overflow-x: hidden;
}

/* Place Order button */
#place_order,
.checkout-place-order-btn {
  width: 100%;
  margin-top: 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border: 1px solid var(--color-primary);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
#place_order:hover,
.checkout-place-order-btn:hover { opacity: 0.9; }

/* Checkout notices */
.theme-checkout-notices .woocommerce-error,
.theme-checkout-notices .woocommerce-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.woocommerce-error { background-color: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }
.woocommerce-message { background-color: #f0fdf4; color: #166534; border: 1px solid #86efac; }

/* Select2 - prevent horizontal scroll, keep dropdowns working */
.select2-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.checkout-col-form .select2-container {
  max-width: 100% !important;
  min-width: 0 !important;
}

.checkout-col-form .woocommerce-input-wrapper {
  min-width: 0;
  overflow: hidden;
}

.select2-container .select2-selection--single {
  height: auto;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-sizing: border-box;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.4;
  color: var(--color-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
  max-width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
}

.select2-dropdown {
  position: absolute !important;
  max-width: calc(100vw - 2rem) !important;
  width: auto !important;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  z-index: 999999;
}

/* Checkout: dropdown width/position set by JS to align with trigger; keep within viewport */
body.woocommerce-checkout .select2-dropdown {
  max-width: min(400px, calc(100vw - 2rem)) !important;
}

.select2-results__option {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
}

/* Native select in checkout (Select2 disabled for stability) - overflow, arrow, focus */
.checkout-col-form select.input-text,
.checkout-col-form .woocommerce-form-row select,
.checkout-col-form p.form-row select {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 2.5rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%237a726a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 L6 7.5 L9 4.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 12px 12px !important;
}

/* Payment methods */
.payment_method_stripe .payment_box,
.wc-upe-form { overflow-x: hidden; }

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.thankyou-inner { max-width: 42rem; margin: 0 auto; text-align: center; }

.thankyou-success { padding: 3rem 0; }

.thankyou-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .thankyou-heading { font-size: 2.25rem; } }

.thankyou-text { color: var(--color-muted-fg); margin-bottom: 0.5rem; }

.thankyou-actions { margin-top: 2rem; }

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  padding: 5rem 0;
  text-align: center;
}

/* ============================================================
   PAGE CONTENT (generic)
   ============================================================ */
.theme-page-content { min-height: 50vh; }
.page-content-inner { padding-top: 2.5rem; padding-bottom: 5rem; }

/* ============================================================
   WOOCOMMERCE GLOBAL OVERRIDES
   ============================================================ */

/* Remove default WooCommerce notice styles */
.woocommerce-notices-wrapper { margin-bottom: 1rem; }

/* Price styling */
.woocommerce-Price-amount { font-weight: inherit; color: inherit; }

/* Stars */
.woocommerce-product-rating { display: none; }

/* Pagination */
.woocommerce-pagination {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.woocommerce-pagination ul { display: flex; gap: 0.5rem; list-style: none; }
.woocommerce-pagination li a,
.woocommerce-pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: all 0.2s;
}
.woocommerce-pagination li a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.woocommerce-pagination li span.current {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-fg);
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 640px) {
  .form-row--2col { grid-template-columns: 1fr; }
  .checkout-col-form .form-row.form-row--2col.checkout-grid-2col { grid-template-columns: 1fr !important; }
}

/* ============================================================
   CUSTOMIZER PREVIEW STABILITY
   ============================================================ */
.hero-section,
.about-preview,
.shop-section,
.testimonials-section,
.cta-section,
.site-footer {
  min-height: 1px;
}
