/*
Theme Name: Viliya's Vintage
Theme URI: https://viliyasvintage.ca
Author: Olya Ianovskaia
Author URI: https://viliyasvintage.ca
Description: A warm, editorial vintage-shop theme for Viliya's Vintage. Built from scratch for WooCommerce with one-of-a-kind antique inventory (porcelain dolls, fine china, collectibles). Includes custom product meta for condition, era, maker, and provenance, plus an Etsy CSV importer.
Version: 1.5.2
Requires at least: 6.2
Requires PHP: 7.4
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viliyas-vintage
Tags: woocommerce, e-commerce, vintage, antiques, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
  /* Palette — bone, soft black, one muted wine accent */
  --vv-ivory:         #faf8f3;  /* page bg, bone */
  --vv-cream:         #f2eee5;  /* subtle section wash */
  --vv-parchment:     #ebe6da;  /* low-contrast surface / placeholders */
  --vv-burgundy:      #8a3a3a;  /* muted wine accent */
  --vv-burgundy-dark: #6b2828;
  --vv-burgundy-deep: #4d1c1c;
  --vv-gold:          #9a8871;  /* warm stone (no more gold) */
  --vv-gold-dark:     #74695a;
  --vv-gold-soft:     #c9bfaf;
  --vv-ink:           #1a1a1a;  /* near-black */
  --vv-ink-soft:      #3a3732;
  --vv-muted:         #6e6a63;
  --vv-rule:          #e3ddcf;  /* hairline */
  --vv-rule-soft:     #eeebe2;
  --vv-white:         #ffffff;
  --vv-shadow:        rgba(26, 26, 26, 0.06);
  --vv-shadow-deep:   rgba(26, 26, 26, 0.12);
  --vv-error:         #a22a2a;
  --vv-success:       #3f6b3f;

  /* Type scale — Fraunces display, Inter body */
  --vv-font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --vv-font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --vv-font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --vv-fs-xs:   0.75rem;
  --vv-fs-sm:   0.875rem;
  --vv-fs-base: 1rem;
  --vv-fs-md:   1.125rem;
  --vv-fs-lg:   1.375rem;
  --vv-fs-xl:   1.75rem;
  --vv-fs-2xl:  2.25rem;
  --vv-fs-3xl:  3rem;
  --vv-fs-4xl:  4rem;
  --vv-fs-5xl:  5.25rem;

  /* Spacing */
  --vv-sp-0:   0;
  --vv-sp-1:   0.25rem;
  --vv-sp-2:   0.5rem;
  --vv-sp-3:   0.75rem;
  --vv-sp-4:   1rem;
  --vv-sp-5:   1.5rem;
  --vv-sp-6:   2rem;
  --vv-sp-7:   2.5rem;
  --vv-sp-8:   3rem;
  --vv-sp-9:   5rem;
  --vv-sp-10:  6rem;
  --vv-sp-12:  8rem;
  --vv-sp-16:  10rem;

  /* Layout */
  --vv-container:      1240px;
  --vv-container-wide: 1440px;
  --vv-container-narrow: 760px;
  --vv-gutter:         clamp(1rem, 3vw, 2.25rem);

  /* Motion & surfaces */
  --vv-radius-sm: 2px;
  --vv-radius:    4px;
  --vv-radius-lg: 8px;
  --vv-ease:      cubic-bezier(0.4, 0.0, 0.2, 1);
  --vv-ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1);
  --vv-dur:       220ms;
  --vv-dur-slow:  420ms;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--vv-font-body);
  font-size: var(--vv-fs-base);
  line-height: 1.72;
  color: var(--vv-ink);
  background-color: var(--vv-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { font-style: italic; background-color: var(--vv-parchment); }

a {
  color: var(--vv-burgundy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--vv-dur) var(--vv-ease);
}
a:hover { color: var(--vv-gold-dark); }
a:focus-visible {
  outline: 2px solid var(--vv-gold);
  outline-offset: 3px;
  border-radius: var(--vv-radius);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--vv-font-display);
  color: var(--vv-ink);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--vv-sp-5);
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
h1 { font-size: var(--vv-fs-4xl); }
h2 { font-size: var(--vv-fs-3xl); }
h3 { font-size: var(--vv-fs-2xl); }
h4 { font-size: var(--vv-fs-xl); }
h5 { font-size: var(--vv-fs-lg); }
h6 { font-size: var(--vv-fs-md); }

p { margin: 0 0 var(--vv-sp-5); }
p:last-child { margin-bottom: 0; }

blockquote {
  margin: var(--vv-sp-7) 0;
  padding: var(--vv-sp-5) var(--vv-sp-6);
  border-left: 1px solid var(--vv-rule);
  font-family: var(--vv-font-display);
  font-size: var(--vv-fs-lg);
  font-style: italic;
  color: var(--vv-ink-soft);
}

hr {
  border: 0;
  border-top: 1px solid var(--vv-rule);
  margin: var(--vv-sp-8) 0;
}

::selection { background: var(--vv-gold-soft); color: var(--vv-ink); }

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.vv-container {
  width: 100%;
  max-width: var(--vv-container);
  margin: 0 auto;
  padding-left: var(--vv-gutter);
  padding-right: var(--vv-gutter);
}
.vv-container--wide   { max-width: var(--vv-container-wide); }
.vv-container--narrow { max-width: var(--vv-container-narrow); }

.vv-eyebrow {
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--vv-gold-dark);
  font-weight: 500;
}

.vv-screen-reader-text,
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.vv-skip-link {
  position: absolute;
  top: -100px; left: var(--vv-sp-4);
  padding: var(--vv-sp-3) var(--vv-sp-5);
  background: var(--vv-burgundy);
  color: var(--vv-white);
  z-index: 100;
  border-radius: var(--vv-radius);
  text-decoration: none;
}
.vv-skip-link:focus { top: var(--vv-sp-4); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.vv-btn,
.button,
button.alt,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.2;
  background: var(--vv-burgundy);
  color: var(--vv-white) !important;
  border: 1px solid var(--vv-burgundy);
  border-radius: var(--vv-radius);
  cursor: pointer;
  text-decoration: none !important;
  transition: background var(--vv-dur) var(--vv-ease), border-color var(--vv-dur) var(--vv-ease), transform var(--vv-dur) var(--vv-ease);
}
.vv-btn:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--vv-burgundy-dark);
  border-color: var(--vv-burgundy-dark);
  color: var(--vv-white) !important;
}

.vv-btn--ghost {
  background: transparent;
  color: var(--vv-burgundy) !important;
  border: 1px solid var(--vv-burgundy);
}
.vv-btn--ghost:hover {
  background: var(--vv-burgundy);
  color: var(--vv-white) !important;
}

.vv-btn--gold {
  background: var(--vv-gold);
  border-color: var(--vv-gold);
}
.vv-btn--gold:hover {
  background: var(--vv-gold-dark);
  border-color: var(--vv-gold-dark);
}

.vv-btn--block { display: block; width: 100%; text-align: center; }

/* ==========================================================================
   FORMS
   ========================================================================== */

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"],
textarea, select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--vv-white);
  border: 1px solid var(--vv-rule);
  border-radius: var(--vv-radius);
  font-family: var(--vv-font-body);
  font-size: var(--vv-fs-base);
  color: var(--vv-ink);
  transition: border-color var(--vv-dur) var(--vv-ease), box-shadow var(--vv-dur) var(--vv-ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--vv-ink);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

label {
  display: block;
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-sm);
  font-weight: 500;
  color: var(--vv-ink-soft);
  margin-bottom: var(--vv-sp-2);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

.vv-site-header {
  background: var(--vv-ivory);
  border-bottom: 1px solid var(--vv-rule-soft);
  position: sticky;
  top: 0;
  z-index: 200;
}
.vv-site-header.vv-is-scrolled { border-bottom-color: var(--vv-rule); }

.vv-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--vv-sp-4) 0;
  gap: var(--vv-sp-5);
}

.vv-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--vv-sp-5);
  line-height: 1;
  text-decoration: none;
  color: var(--vv-ink);
}
.vv-brand:hover { color: var(--vv-ink); }
.vv-brand__icon {
  width: 52px;
  height: 52px;
}
.vv-brand__name {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-style: italic;
  font-weight: 300;
}

.vv-nav {
  display: flex;
  align-items: center;
  gap: var(--vv-sp-6);
}
.vv-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: var(--vv-sp-5);
}
.vv-nav a {
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-sm);
  color: var(--vv-ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: var(--vv-sp-2) 0;
  position: relative;
}
.vv-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--vv-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--vv-dur) var(--vv-ease);
}
.vv-nav a:hover,
.vv-nav .current-menu-item a { color: var(--vv-burgundy); }
.vv-nav a:hover::after,
.vv-nav .current-menu-item a::after { transform: scaleX(1); }

/* Nav dropdown (Shop sub-menu) */
.vv-nav .menu-item-has-children {
  position: relative;
}
.vv-nav .menu-item-has-children > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--vv-white);
  border: 1px solid var(--vv-rule);
  box-shadow: 0 4px 20px var(--vv-shadow);
  padding: var(--vv-sp-3) 0;
  z-index: 100;
  flex-direction: column;
  gap: 0;
}
.vv-nav .menu-item-has-children:hover > .sub-menu {
  display: flex;
}
.vv-nav .sub-menu li {
  margin: 0;
}
.vv-nav .sub-menu a {
  display: block;
  padding: var(--vv-sp-2) var(--vv-sp-5);
  font-size: var(--vv-fs-xs);
  text-transform: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.vv-nav .sub-menu a:hover {
  background: var(--vv-parchment);
}

.vv-header-actions {
  display: flex;
  align-items: center;
  gap: var(--vv-sp-4);
}
.vv-icon-btn {
  background: transparent;
  border: 0;
  padding: var(--vv-sp-2);
  color: var(--vv-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--vv-sp-2);
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-sm);
  text-decoration: none;
}
.vv-icon-btn:hover { color: var(--vv-burgundy); }
.vv-cart-count {
  background: var(--vv-burgundy);
  color: var(--vv-white);
  font-size: 0.7rem;
  padding: 0 6px;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--vv-font-sans);
}

.vv-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: var(--vv-sp-2);
  cursor: pointer;
  color: var(--vv-ink);
}
.vv-menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--vv-ink);
  margin: 5px 0;
  transition: transform var(--vv-dur) var(--vv-ease), opacity var(--vv-dur) var(--vv-ease);
}

@media (max-width: 900px) {
  .vv-menu-toggle { display: block; }
  .vv-nav ul { flex-direction: column; gap: var(--vv-sp-4); width: 100%; }
  .vv-nav a { font-size: var(--vv-fs-md); }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.vv-hero {
  position: relative;
  padding: clamp(5rem, 12vw, 10rem) 0;
  background: var(--vv-ivory);
  border-bottom: 1px solid var(--vv-rule-soft);
  overflow: hidden;
}
.vv-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--vv-sp-8);
  align-items: center;
}
@media (min-width: 900px) {
  .vv-hero__inner { grid-template-columns: 1.1fr 1fr; gap: var(--vv-sp-10); }
}
.vv-hero__eyebrow { margin-bottom: var(--vv-sp-4); }
.vv-hero__title {
  font-size: clamp(2.5rem, 6vw, var(--vv-fs-5xl));
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--vv-sp-5);
}
.vv-hero__title em {
  font-style: italic;
  color: var(--vv-burgundy);
}
.vv-hero__lede {
  font-size: var(--vv-fs-md);
  color: var(--vv-ink-soft);
  max-width: 42ch;
  margin-bottom: var(--vv-sp-7);
}
.vv-hero__cta { display: flex; gap: var(--vv-sp-3); flex-wrap: wrap; }

.vv-hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--vv-parchment);
  border: 1px solid var(--vv-rule-soft);
  box-shadow: 0 30px 60px -24px var(--vv-shadow-deep);
}
.vv-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */

.vv-section { padding: var(--vv-sp-12) 0; }
.vv-section--tight { padding: var(--vv-sp-9) 0; }

.vv-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--vv-sp-9);
}
.vv-section-head__eyebrow { margin-bottom: var(--vv-sp-3); display: inline-block; }
.vv-section-head__title {
  font-size: clamp(2rem, 4vw, var(--vv-fs-3xl));
  margin-bottom: var(--vv-sp-4);
}
.vv-section-head__lede {
  font-size: var(--vv-fs-md);
  color: var(--vv-ink-soft);
  font-family: var(--vv-font-display);
  font-style: italic;
}
.vv-section-head--left { text-align: left; margin-left: 0; margin-right: 0; }

.vv-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--vv-sp-3);
  margin: var(--vv-sp-3) auto var(--vv-sp-5);
  color: var(--vv-rule);
}
.vv-ornament::before,
.vv-ornament::after {
  content: "";
  flex: 0 0 28px;
  height: 1px;
  background: var(--vv-rule);
}

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */

.vv-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--vv-sp-6);
}
@media (max-width: 960px) {
  .vv-categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .vv-categories { grid-template-columns: 1fr; }
}
.vv-category-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--vv-ink);
}
.vv-category-card__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--vv-parchment);
  margin-bottom: var(--vv-sp-4);
}
.vv-category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--vv-dur-slow) var(--vv-ease);
}
.vv-category-card:hover img { transform: scale(1.03); }
.vv-category-card__caption {
  text-align: left;
}
.vv-category-card__name {
  font-family: var(--vv-font-display);
  font-size: var(--vv-fs-lg);
  font-weight: 400;
  margin: 0 0 var(--vv-sp-1);
  color: var(--vv-ink);
  letter-spacing: -0.01em;
}
.vv-category-card__count {
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vv-muted);
}

/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */

.vv-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--vv-sp-7) var(--vv-sp-5);
  clear: both;
  width: 100%;
}
@media (min-width: 700px) {
  .vv-products { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

.vv-product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  text-decoration: none;
  color: var(--vv-ink);
}
.vv-product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--vv-parchment);
  overflow: hidden;
  margin-bottom: var(--vv-sp-4);
  border: 1px solid var(--vv-rule-soft);
}
.vv-product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--vv-dur-slow) var(--vv-ease);
}
.vv-product-card:hover .vv-product-card__media img { transform: scale(1.03); }

.vv-product-card__flag {
  position: absolute;
  top: var(--vv-sp-3); left: var(--vv-sp-3);
  padding: 4px 10px;
  background: var(--vv-burgundy);
  color: var(--vv-white);
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  z-index: 2;
}
.vv-product-card__flag--sold { background: var(--vv-ink); }
.vv-product-card__flag--gold { background: var(--vv-gold); color: var(--vv-ink); }

.vv-product-card__meta {
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vv-gold-dark);
  margin-bottom: var(--vv-sp-2);
}
.vv-product-card__title {
  font-family: var(--vv-font-display);
  font-size: var(--vv-fs-md);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 var(--vv-sp-2);
  color: var(--vv-ink);
}
.vv-product-card__price {
  font-family: var(--vv-font-body);
  font-size: var(--vv-fs-base);
  color: var(--vv-burgundy);
  font-weight: 500;
}
.vv-product-card__price del {
  color: var(--vv-muted);
  font-weight: 400;
  margin-right: var(--vv-sp-2);
}

/* ==========================================================================
   SHOP / ARCHIVE LAYOUT
   ========================================================================== */

.vv-shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--vv-sp-8);
}
@media (min-width: 900px) {
  .vv-shop-layout { grid-template-columns: 240px 1fr; gap: var(--vv-sp-9); }
}

.vv-shop-sidebar {
  font-family: var(--vv-font-body);
}
.vv-shop-sidebar h3 {
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vv-ink-soft);
  padding-bottom: var(--vv-sp-2);
  border-bottom: 1px solid var(--vv-rule);
  margin-bottom: var(--vv-sp-4);
  margin-top: var(--vv-sp-6);
}
.vv-shop-sidebar h3:first-child { margin-top: 0; }
.vv-shop-sidebar ul {
  list-style: none;
  padding: 0; margin: 0 0 var(--vv-sp-4);
}
.vv-shop-sidebar li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--vv-rule-soft);
}
.vv-shop-sidebar li:last-child { border-bottom: 0; }
.vv-shop-sidebar a {
  color: var(--vv-ink);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  font-size: var(--vv-fs-sm);
}
.vv-shop-sidebar a:hover { color: var(--vv-burgundy); }
.vv-shop-sidebar a .count { color: var(--vv-muted); font-size: var(--vv-fs-xs); }

.vv-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--vv-sp-4);
  padding-bottom: var(--vv-sp-5);
  margin-bottom: var(--vv-sp-7);
  border-bottom: 1px solid var(--vv-rule);
}
.vv-shop-toolbar__count {
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vv-muted);
}

/* ==========================================================================
   SINGLE PRODUCT
   ========================================================================== */

.vv-single-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--vv-sp-8);
  padding: var(--vv-sp-9) 0;
}
@media (min-width: 900px) {
  .vv-single-product { grid-template-columns: 1.15fr 1fr; gap: var(--vv-sp-10); }
}

.vv-single-product__gallery {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}
/* Force WooCommerce gallery into vertical stack: main image on top, thumbnails below */
.vv-single-product__gallery .woocommerce-product-gallery {
  display: flex !important;
  flex-direction: column !important;
  max-width: 100% !important;
  width: 100% !important;
}
/* The flexslider wrapper slides horizontally — do NOT constrain its width
   or the slider breaks. Only the viewport clips it. */
.vv-single-product__gallery .woocommerce-product-gallery .flex-viewport {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  order: 1;
}
.vv-single-product__gallery .woocommerce-product-gallery .flex-control-thumbs {
  order: 2;
  width: 100% !important;
}
.vv-single-product__gallery .woocommerce-product-gallery__image {
  border: 1px solid var(--vv-rule-soft);
  background: var(--vv-parchment);
  margin-bottom: var(--vv-sp-3);
  max-width: 100% !important;
  overflow: hidden;
}
.vv-single-product__gallery .woocommerce-product-gallery__image a {
  display: block;
  max-width: 100%;
}
/* Constrain gallery images to fit their slide container */
.vv-single-product__gallery .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}

.vv-single-product__summary { padding-top: var(--vv-sp-3); }
.vv-single-product__eyebrow { margin-bottom: var(--vv-sp-3); }
.vv-single-product__title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--vv-sp-4);
}
.vv-single-product__price {
  font-family: var(--vv-font-display);
  font-size: var(--vv-fs-2xl);
  color: var(--vv-burgundy);
  font-weight: 500;
  margin-bottom: var(--vv-sp-6);
}
.vv-single-product__price del {
  color: var(--vv-muted);
  font-size: var(--vv-fs-lg);
  font-weight: 400;
  margin-right: var(--vv-sp-3);
}

.vv-specs {
  border-top: 1px solid var(--vv-rule);
  border-bottom: 1px solid var(--vv-rule);
  margin: var(--vv-sp-6) 0;
  padding: var(--vv-sp-5) 0;
}
.vv-specs dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--vv-sp-2);
  margin: 0;
}
@media (min-width: 480px) {
  .vv-specs dl {
    grid-template-columns: minmax(130px, 1fr) 2fr;
    gap: var(--vv-sp-3) var(--vv-sp-5);
  }
}
.vv-specs dt {
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vv-muted);
  align-self: start;
  padding-top: 4px;
}
.vv-specs dd {
  margin: 0;
  color: var(--vv-ink);
  font-size: var(--vv-fs-base);
}

.vv-single-product__description {
  font-size: var(--vv-fs-md);
  color: var(--vv-ink-soft);
  line-height: 1.75;
  margin-bottom: var(--vv-sp-6);
}

.vv-rarity-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--vv-sp-2);
  padding: var(--vv-sp-2) var(--vv-sp-4);
  background: var(--vv-white);
  border: 1px solid var(--vv-gold-soft);
  color: var(--vv-gold-dark);
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: var(--vv-sp-5);
}
.vv-rarity-badge--one_of_a_kind {
  border-color: var(--vv-burgundy);
  color: var(--vv-burgundy);
}

/* ==========================================================================
   FEATURED STRIP / EDITORIAL
   ========================================================================== */

.vv-editorial {
  background: var(--vv-cream);
  padding: var(--vv-sp-12) 0;
  border-top: 1px solid var(--vv-rule-soft);
  border-bottom: 1px solid var(--vv-rule-soft);
}
.vv-editorial__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--vv-sp-8);
  align-items: center;
}
@media (min-width: 900px) {
  .vv-editorial__inner { grid-template-columns: 1fr 1fr; gap: var(--vv-sp-10); }
}
.vv-editorial__image {
  aspect-ratio: 5 / 6;
  background: var(--vv-parchment);
  border: 1px solid var(--vv-rule-soft);
  overflow: hidden;
}
.vv-editorial__image img { width: 100%; height: 100%; object-fit: cover; }
.vv-editorial__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--vv-sp-4);
}
.vv-editorial__lede {
  font-size: var(--vv-fs-md);
  color: var(--vv-ink-soft);
  margin-bottom: var(--vv-sp-6);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.vv-site-footer {
  background: var(--vv-ink);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--vv-sp-10) 0 var(--vv-sp-6);
  margin-top: var(--vv-sp-12);
}
.vv-site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.vv-site-footer a:hover { color: #ffffff; }

.vv-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--vv-sp-7);
  margin-bottom: var(--vv-sp-8);
}
.vv-footer-col h4 {
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--vv-sp-4);
  font-weight: 500;
}
.vv-footer-col ul { list-style: none; padding: 0; margin: 0; }
.vv-footer-col li { padding: 4px 0; font-size: var(--vv-fs-sm); }

.vv-newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vv-sp-2);
  margin-top: var(--vv-sp-3);
}
.vv-newsletter form input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
}
.vv-newsletter input[type="email"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.vv-newsletter input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.4); }
.vv-newsletter .vv-btn {
  background: var(--vv-burgundy);
  border-color: var(--vv-burgundy);
}
.vv-newsletter .vv-btn:hover {
  background: var(--vv-burgundy-dark);
  border-color: var(--vv-burgundy-dark);
}

.vv-footer-bottom {
  padding-top: var(--vv-sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--vv-sp-3);
  font-size: var(--vv-fs-xs);
  font-family: var(--vv-font-sans);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.woocommerce-breadcrumb,
.vv-breadcrumb {
  font-family: var(--vv-font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vv-muted);
  padding: var(--vv-sp-6) 0 var(--vv-sp-2);
  margin: 0;
}
.woocommerce-breadcrumb a,
.vv-breadcrumb a {
  color: var(--vv-muted);
  text-decoration: none;
}
.woocommerce-breadcrumb a:hover { color: var(--vv-burgundy); }

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

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { margin: 0; }

.woocommerce nav.woocommerce-pagination ul {
  border: 0;
  display: inline-flex;
  gap: var(--vv-sp-2);
}
.woocommerce nav.woocommerce-pagination ul li {
  border: 1px solid var(--vv-rule);
  margin: 0;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  padding: var(--vv-sp-3) var(--vv-sp-4);
  font-family: var(--vv-font-sans);
  color: var(--vv-ink);
  background: var(--vv-white);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--vv-burgundy);
  color: var(--vv-white);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--vv-white);
  border-top: 1px solid var(--vv-burgundy);
  color: var(--vv-ink);
  padding: var(--vv-sp-4) var(--vv-sp-5);
  border-radius: var(--vv-radius);
  font-family: var(--vv-font-body);
}
.woocommerce-error { border-top-color: var(--vv-error); }
.woocommerce-message { border-top-color: var(--vv-success); }

.woocommerce-tabs {
  margin-top: var(--vv-sp-9);
  border-top: 1px solid var(--vv-rule);
  padding-top: var(--vv-sp-7);
}
/* Hide empty tabs container (tabs removed via filter) */
.woocommerce-tabs:empty,
.woocommerce-tabs:not(:has(*)) {
  display: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--vv-rule);
  padding: 0; margin: 0 0 var(--vv-sp-6);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 var(--vv-sp-5) 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vv-muted);
  padding: var(--vv-sp-3) 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--vv-burgundy);
  border-bottom-color: var(--vv-burgundy);
}

/* ==========================================================================
   ADMIN NOTICES (importer)
   ========================================================================== */

.vv-admin-panel {
  max-width: 860px;
  margin: 24px 0;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #dcd5c2;
  border-radius: 4px;
}
.vv-admin-panel h2 { margin-top: 0; }
.vv-admin-panel .vv-import-log {
  max-height: 360px;
  overflow-y: auto;
  background: #fbf8f0;
  border: 1px solid #e8dfc9;
  padding: 16px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
}

/* ==========================================================================
   PRINT (for invoices / collector cards)
   ========================================================================== */

@media print {
  .vv-site-header, .vv-site-footer, .vv-nav, .vv-header-actions { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   SCROLL REVEAL + MICRO-INTERACTIONS
   ========================================================================== */

.vv-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--vv-dur-slow) var(--vv-ease-out),
              transform var(--vv-dur-slow) var(--vv-ease-out);
}
.vv-reveal.vv-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .vv-reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.vv-site-header.vv-is-scrolled {
  box-shadow: 0 4px 24px -12px var(--vv-shadow-deep);
}

/* Body lock when mobile nav open */
body.vv-nav-open { overflow: hidden; }

/* Provenance block (appended after specs table) */
.vv-provenance {
  margin: var(--vv-sp-5) 0;
  padding: var(--vv-sp-4) var(--vv-sp-5);
  background: var(--vv-cream);
  border-left: 1px solid var(--vv-rule);
}
.vv-provenance p {
  font-style: italic;
  color: var(--vv-ink-soft);
  font-family: var(--vv-font-display);
  font-size: var(--vv-fs-md);
  margin: 0;
}

.vv-spec-note {
  display: block;
  margin-top: 4px;
  color: var(--vv-muted);
  font-size: var(--vv-fs-sm);
  font-style: italic;
}

/* Woo "sold" availability styling */
.stock.sold, .woocommerce .stock.sold {
  color: var(--vv-muted);
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Woo add-to-cart spacing on single product */
.woocommerce div.product form.cart { margin: var(--vv-sp-5) 0 0; }

/* Single product gallery tweaks */
.woocommerce .product .images .woocommerce-product-gallery__trigger {
  position: absolute !important;
  top: var(--vv-sp-3);
  left: var(--vv-sp-3);
  z-index: 10;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  padding: var(--vv-sp-2);
  box-shadow: 0 2px 10px var(--vv-shadow);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.woocommerce .product .images .woocommerce-product-gallery__trigger:hover {
  opacity: 1;
}
.woocommerce .product .images .woocommerce-product-gallery__trigger img {
  width: 16px !important;
  height: 16px !important;
}

/* Woo related / upsells */
.related.products, .upsells.products {
  margin-top: var(--vv-sp-10);
  padding-top: var(--vv-sp-8);
  border-top: 1px solid var(--vv-rule);
}
.related.products > h2, .upsells.products > h2 {
  font-family: var(--vv-font-display);
  font-size: var(--vv-fs-2xl);
  text-align: center;
  margin-bottom: var(--vv-sp-7);
}
.related.products ul.products, .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--vv-sp-5);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 700px) {
  .related.products ul.products, .upsells.products ul.products {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--vv-sp-6);
  }
}
.related.products ul.products::before,
.related.products ul.products::after,
.upsells.products ul.products::before,
.upsells.products ul.products::after {
  content: none !important;
  display: none !important;
}
.related.products ul.products li, .upsells.products ul.products li {
  width: auto !important;
  float: none !important;
}

/* Cart & checkout */
.woocommerce table.shop_table {
  border-collapse: collapse;
  border: 1px solid var(--vv-rule);
  border-radius: 0;
  background: var(--vv-white);
}
.woocommerce table.shop_table th {
  background: var(--vv-parchment);
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vv-ink-soft);
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  font-size: var(--vv-fs-sm) !important;
  padding: var(--vv-sp-4) var(--vv-sp-6) !important;
}
/* Style the checkout form to match theme */
.woocommerce form .form-row {
  margin-bottom: var(--vv-sp-4);
}
.woocommerce form .form-row label {
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vv-ink-soft);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--vv-rule);
  padding: var(--vv-sp-3) var(--vv-sp-4);
  font-family: var(--vv-font-body);
  font-size: var(--vv-fs-base);
  transition: border-color var(--vv-dur) var(--vv-ease);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--vv-ink);
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}
#place_order {
  background: var(--vv-burgundy) !important;
  border-color: var(--vv-burgundy) !important;
  color: var(--vv-white) !important;
  font-family: var(--vv-font-sans) !important;
  font-size: var(--vv-fs-sm) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  padding: var(--vv-sp-4) var(--vv-sp-8) !important;
  transition: background var(--vv-dur) var(--vv-ease) !important;
}
#place_order:hover {
  background: var(--vv-burgundy-dark) !important;
}
/* Coupon form on cart page */
.woocommerce .cart .coupon input.input-text {
  min-width: 0;
  flex: 1;
}
@media (max-width: 600px) {
  .woocommerce .cart .coupon {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vv-sp-2);
  }
}

/* ==========================================================================
   WOOCOMMERCE SHORTCODE PRODUCT GRID (homepage, etc.)
   ========================================================================== */

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--vv-sp-6) var(--vv-sp-5);
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}
@media (min-width: 700px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr);
  }
}
.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--vv-rule-soft);
  margin-bottom: var(--vv-sp-3);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--vv-font-display);
  font-size: var(--vv-fs-md);
  font-weight: 500;
  color: var(--vv-ink);
  padding: 0;
}
.woocommerce ul.products li.product .price {
  color: var(--vv-burgundy);
  font-family: var(--vv-font-body);
  font-size: var(--vv-fs-base);
}
.woocommerce ul.products li.product .button {
  display: none; /* hide add-to-cart in grid for one-of-a-kind shop */
}

/* ==========================================================================
   BRAND LOGO
   ========================================================================== */

.vv-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--vv-sp-5);
  text-decoration: none;
  color: var(--vv-ink);
}
.vv-brand__icon {
  display: block;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.vv-brand__name {
  font-family: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   PROSE (content pages: About, Privacy, Terms, Shipping)
   ========================================================================== */

.vv-prose {
  font-size: var(--vv-fs-base);
  line-height: 1.8;
  color: var(--vv-ink-soft);
}
.vv-prose p { margin-bottom: var(--vv-sp-5); }
.vv-prose h2 {
  font-family: var(--vv-font-display);
  font-size: var(--vv-fs-xl);
  font-weight: 400;
  color: var(--vv-ink);
  margin: var(--vv-sp-8) 0 var(--vv-sp-4);
}
.vv-prose h2:first-of-type { margin-top: var(--vv-sp-6); }
.vv-prose strong { color: var(--vv-ink); }
.vv-prose a {
  color: var(--vv-burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vv-prose a:hover { color: var(--vv-gold); }
.vv-prose em { font-style: italic; }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.vv-contact-form {
  max-width: 560px;
  margin: 0 auto var(--vv-sp-9);
}
.vv-form-row {
  margin-bottom: var(--vv-sp-5);
}
.vv-form-row label {
  display: block;
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vv-ink-soft);
  margin-bottom: var(--vv-sp-2);
}
.vv-form-row input,
.vv-form-row textarea {
  width: 100%;
  padding: var(--vv-sp-3) var(--vv-sp-4);
  border: 1px solid var(--vv-rule);
  background: var(--vv-white);
  font-family: var(--vv-font-body);
  font-size: var(--vv-fs-base);
  color: var(--vv-ink);
  transition: border-color var(--vv-dur) var(--vv-ease);
}
.vv-form-row input:focus,
.vv-form-row textarea:focus {
  outline: none;
  border-color: var(--vv-ink);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}
.vv-form-row textarea {
  resize: vertical;
}

.vv-contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--vv-sp-6);
  padding-top: var(--vv-sp-8);
  border-top: 1px solid var(--vv-rule);
  text-align: center;
}
.vv-contact-links h3 {
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vv-muted);
  margin-bottom: var(--vv-sp-2);
}
.vv-contact-links a {
  color: var(--vv-burgundy);
  text-decoration: none;
}
.vv-contact-links a:hover {
  text-decoration: underline;
}
.vv-contact-links p {
  margin: 0;
  color: var(--vv-ink-soft);
}

/* ==========================================================================
   SINGLE PRODUCT GALLERY THUMBNAILS (horizontal carousel)
   ========================================================================== */

.woocommerce .product .images .flex-control-thumbs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: var(--vv-sp-2);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--vv-sp-2);
  margin: 0;
  list-style: none !important;
  scrollbar-width: none;
}
.woocommerce .product .images .flex-control-thumbs::-webkit-scrollbar {
  display: none;
}
.woocommerce .product .images .flex-control-thumbs li {
  flex: 0 0 72px;
  width: 72px !important;
  scroll-snap-align: start;
  margin: 0 !important;
  float: none !important;
}
.woocommerce .product .images .flex-control-thumbs li img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--vv-rule-soft);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity var(--vv-dur) var(--vv-ease), border-color var(--vv-dur) var(--vv-ease);
}
.woocommerce .product .images .flex-control-thumbs li img:hover,
.woocommerce .product .images .flex-control-thumbs li img.flex-active {
  opacity: 1;
  border-color: var(--vv-burgundy);
}

/* ==========================================================================
   SHOP SIDEBAR CLEANUP
   ========================================================================== */

.vv-shop-sidebar .widget_product_tag_cloud,
.vv-shop-sidebar .widget_recent_entries,
.vv-shop-sidebar .widget_recent_comments,
.vv-shop-sidebar .widget_meta,
.vv-shop-sidebar .widget_search,
.vv-shop-sidebar .widget_archives,
.vv-shop-sidebar .widget_calendar,
.vv-shop-sidebar .widget_pages,
.vv-shop-sidebar .widget_rss {
  display: none; /* hide non-shop widgets in shop sidebar */
}

/* Woo layered nav + price filter styling */
.vv-shop-sidebar .woocommerce-widget-layered-nav-list,
.vv-shop-sidebar .product-categories {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--vv-sp-4);
}
.vv-shop-sidebar .woocommerce-widget-layered-nav-list li,
.vv-shop-sidebar .product-categories li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--vv-rule-soft);
}
.vv-shop-sidebar .product-categories li:last-child,
.vv-shop-sidebar .woocommerce-widget-layered-nav-list li:last-child {
  border-bottom: 0;
}

/* ==========================================================================
   ETSY REVIEWS — Badge + Popup
   ========================================================================== */

/* Footer review row */
.vv-footer-reviews {
  text-align: center;
  padding: var(--vv-sp-6) 0;
  margin-top: var(--vv-sp-6);
  border-top: 1px solid rgba(236,227,209,0.15);
}

/* Badge trigger */
.vv-etsy-badge__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--vv-sp-2);
  background: none;
  border: 1px solid rgba(196,169,91,0.4);
  border-radius: 999px;
  padding: var(--vv-sp-2) var(--vv-sp-5);
  color: var(--vv-gold);
  cursor: pointer;
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-sm);
  transition: border-color var(--vv-dur) var(--vv-ease), background var(--vv-dur) var(--vv-ease);
}
.vv-etsy-badge__trigger:hover {
  border-color: var(--vv-gold);
  background: rgba(196,169,91,0.08);
}
.vv-etsy-badge__label {
  font-weight: 500;
  letter-spacing: 0.03em;
}
.vv-etsy-badge__stars { display: inline-flex; gap: 1px; line-height: 1; }
.vv-etsy-badge__rating { font-weight: 600; }
.vv-etsy-badge__count { opacity: 0.7; }
.vv-stars { display: inline-flex; align-items: center; gap: 1px; }

/* Reviews overlay */
.vv-reviews-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  padding: var(--vv-sp-5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.vv-reviews-overlay[hidden] {
  display: flex;
  opacity: 0;
  visibility: hidden;
}
.vv-reviews-overlay.vv-is-open {
  opacity: 1;
  visibility: visible;
}

/* Popup card */
.vv-reviews-popup {
  background: var(--vv-white);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.vv-reviews-overlay.vv-is-open .vv-reviews-popup {
  transform: translateY(0);
}

/* Popup header */
.vv-reviews-popup__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--vv-sp-6) var(--vv-sp-6) var(--vv-sp-4);
  border-bottom: 1px solid var(--vv-rule);
}
.vv-reviews-popup__header h2 {
  font-family: var(--vv-font-display);
  font-size: var(--vv-fs-xl);
  margin: 0 0 var(--vv-sp-2);
}
.vv-reviews-popup__summary {
  display: flex;
  align-items: center;
  gap: var(--vv-sp-2);
  font-size: var(--vv-fs-sm);
  color: var(--vv-muted);
}
.vv-reviews-popup__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--vv-muted);
  padding: 0 var(--vv-sp-1);
}
.vv-reviews-popup__close:hover { color: var(--vv-ink); }

/* Popup body — scrollable review list */
.vv-reviews-popup__body {
  overflow-y: auto;
  padding: var(--vv-sp-4) var(--vv-sp-6);
  flex: 1;
}

/* Individual review card */
.vv-review-card {
  padding: var(--vv-sp-4) 0;
  border-bottom: 1px solid var(--vv-rule-soft);
}
.vv-review-card:last-child { border-bottom: 0; }
.vv-review-card__header {
  display: flex;
  align-items: baseline;
  gap: var(--vv-sp-3);
  margin-bottom: var(--vv-sp-1);
}
.vv-review-card__name {
  font-weight: 600;
  font-size: var(--vv-fs-sm);
}
.vv-review-card__date {
  font-size: 0.7rem;
  color: var(--vv-muted);
}
.vv-review-card__stars { margin-bottom: var(--vv-sp-2); }
.vv-review-card__text {
  font-size: var(--vv-fs-sm);
  line-height: 1.6;
  margin: 0;
  color: var(--vv-ink);
}

/* Popup footer */
.vv-reviews-popup__footer {
  padding: var(--vv-sp-4) var(--vv-sp-6);
  border-top: 1px solid var(--vv-rule);
  text-align: center;
}
.vv-reviews-popup__etsy-link {
  font-size: var(--vv-fs-sm);
  color: var(--vv-burgundy);
  text-decoration: none;
  font-weight: 500;
}
.vv-reviews-popup__etsy-link:hover { text-decoration: underline; }

/* ==========================================================================
   GLOBAL RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 520px) {
  /* Footer grid: single column on small screens */
  .vv-footer-grid {
    grid-template-columns: 1fr;
  }

  /* Footer bottom: stack copyright & email */
  .vv-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Contact links: single column */
  .vv-contact-links {
    grid-template-columns: 1fr;
  }

  /* Single product: tighten padding */
  .vv-single-product {
    padding: var(--vv-sp-6) 0;
  }

  /* Hero: smaller vertical padding */
  .vv-hero {
    padding: clamp(3rem, 8vw, 5rem) 0;
  }

  /* Ensure no horizontal overflow on any element */
  .vv-container {
    overflow-x: hidden;
  }
}

/* Ensure WooCommerce product images never overflow.
   The viewport clips; the wrapper must stay wide for flexslider to slide. */
.woocommerce div.product div.images {
  max-width: 100% !important;
  overflow: hidden;
}
.woocommerce div.product div.images .flex-viewport {
  max-width: 100% !important;
  overflow: hidden !important;
}
/* Individual slide images fill their slide */
.woocommerce div.product div.images .woocommerce-product-gallery__image {
  max-width: 100%;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
}

/* Woo cart table responsive */
@media (max-width: 600px) {
  .woocommerce table.shop_table_responsive tr td::before {
    font-family: var(--vv-font-sans);
    font-size: var(--vv-fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
}

/* ==========================================================================
   MOBILE FILTER PANEL (collapsible sidebar)
   ========================================================================== */

.vv-filter-toggle {
  display: none; /* hidden on desktop */
}

@media (max-width: 899px) {
  .vv-filter-toggle {
    display: flex;
    align-items: center;
    gap: var(--vv-sp-2);
    width: 100%;
    padding: var(--vv-sp-3) var(--vv-sp-4);
    background: var(--vv-cream);
    border: 1px solid var(--vv-rule);
    border-radius: var(--vv-radius);
    cursor: pointer;
    font-family: var(--vv-font-sans);
    font-size: var(--vv-fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--vv-ink-soft);
    transition: background var(--vv-dur) var(--vv-ease);
  }
  .vv-filter-toggle:hover {
    background: var(--vv-parchment);
  }
  .vv-filter-toggle__arrow {
    margin-left: auto;
    transition: transform var(--vv-dur) var(--vv-ease);
    font-size: 0.7em;
  }
  .vv-filter-toggle[aria-expanded="true"] .vv-filter-toggle__arrow {
    transform: rotate(180deg);
  }

  .vv-filter-body {
    display: none;
    padding-top: var(--vv-sp-4);
  }
  .vv-filter-body.is-open {
    display: block;
  }

  /* Tighter sidebar spacing on mobile */
  .vv-shop-sidebar {
    margin-bottom: var(--vv-sp-4);
  }
}

/* ==========================================================================
   HAMBURGER MENU — SMOOTH ANIMATION + OVERLAY
   ========================================================================== */

/* Overlay behind mobile menu — sits above header stacking context */
.vv-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.vv-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Mobile nav panel — positioned OUTSIDE header stacking context via very high z-index */
@media (max-width: 900px) {
  .vv-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #ffffff !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px var(--vv-sp-6) var(--vv-sp-6);
    border-left: 1px solid var(--vv-rule);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 10001;
    box-shadow: -8px 0 40px rgba(0,0,0,0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .vv-nav.is-open {
    transform: translateX(0);
  }

  /* Animate hamburger to X */
  .vv-menu-toggle span {
    transition: transform 0.3s var(--vv-ease),
                opacity 0.2s var(--vv-ease);
    transform-origin: center;
  }
  .vv-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .vv-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .vv-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* ==========================================================================
   ADD-TO-CART TOAST NOTIFICATION
   ========================================================================== */

.vv-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--vv-ink);
  color: #fff;
  padding: var(--vv-sp-3) var(--vv-sp-6);
  border-radius: var(--vv-radius-lg);
  font-family: var(--vv-font-sans);
  font-size: var(--vv-fs-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--vv-sp-2);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  white-space: nowrap;
}
.vv-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.vv-toast svg {
  color: var(--vv-success);
  flex-shrink: 0;
}
.vv-toast a {
  color: var(--vv-gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: var(--vv-sp-2);
}
.vv-toast a:hover {
  color: #fff;
}

/* ==========================================================================
   SINGLE PRODUCT — MOBILE: SMALL BREADCRUMB + TITLE ABOVE GALLERY
   ========================================================================== */

@media (max-width: 899px) {
  /* Tiny breadcrumb on mobile — single line */
  .woocommerce-breadcrumb,
  .vv-breadcrumb {
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    padding: var(--vv-sp-3) 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Mobile header: h1 title above the gallery */
  .vv-single-product__mobile-header {
    display: block;
    padding: var(--vv-sp-2) 0 var(--vv-sp-4);
  }
  .vv-single-product__mobile-header .vv-single-product__title {
    font-family: var(--vv-font-display);
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--vv-ink);
    margin: 0;
  }

  /* Hide title from the desktop summary block on mobile
     (it's shown in the mobile-header instead) */
  .vv-single-product__summary > .vv-single-product__title {
    display: none;
  }
}
/* Mobile header: hidden on desktop, visible on mobile (set above) */
@media (min-width: 900px) {
  .vv-single-product__mobile-header {
    display: none !important;
  }
}
