/**
 * Unicroma Brand Core Stylesheet — v1.5.1
 * Luxury Artisanal Handmade Crochet Handbags — Crafted in Switzerland
 */

:root {
  /* Light Mode (Default) */
  --uc-bg-primary: #FAF8F5;       /* Soft warm off-white */
  --uc-bg-secondary: #EFECE6;     /* Card & section background */
  --uc-text-primary: #121212;     /* Crisp charcoal/black */
  --uc-text-muted: #887868;       /* Logo Warm Taupe */
  --uc-border: #E4DAC7;           /* Logo Oatmeal Sand */
  
  /* Brand Accents (From Logo Facets) */
  --uc-bordeaux: #691C2B;         /* Primary CTA / Buttons */
  --uc-bordeaux-hover: #4E1420;
  --uc-denim: #385774;            /* Secondary Accent / Links */
  --uc-olive: #3E4F08;            /* Trust / Stock / Handmade Badge */
  --uc-taupe: #887868;            /* Neutral Accent */
  --uc-sand: #E4DAC7;             /* Warm Highlight */
  --uc-blush: #F2C6D4;            /* Soft Accent / Tag Badge */
  
  /* Typography & Geometry */
  --uc-font-heading: 'Comfortaa', 'Quicksand', sans-serif;
  --uc-font-body: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --uc-radius-sm: 8px;
  --uc-radius-md: 16px;
  --uc-radius-pill: 9999px;
}

[data-theme="dark"], .dark-mode {
  --uc-bg-primary: #121212;
  --uc-bg-secondary: #1E1E1E;
  --uc-text-primary: #FAF8F5;
  --uc-text-muted: #B5A899;
  --uc-border: #2E2B28;
  --uc-bordeaux: #8F283C;         /* Lightened for dark mode contrast */
  --uc-denim: #527CA3;
}

/* ==========================================================================
   1. Global Base, Typography & Theme Header/Footer/Gap Overrides
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  background-color: var(--uc-bg-primary);
  color: var(--uc-text-primary);
}

body {
  margin: 0;
  background-color: var(--uc-bg-primary) !important;
  color: var(--uc-text-primary) !important;
  font-family: var(--uc-font-body);
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

p,
input,
button,
select,
textarea {
  font-family: var(--uc-font-body);
}

h1,
h2,
h3,
h4,
.site-title,
.woocommerce-loop-product__title,
.product_title {
  font-family: var(--uc-font-heading);
  color: var(--uc-text-primary);
  letter-spacing: -0.01em;
}

a {
  color: var(--uc-denim);
  transition: color 0.2s ease;
}

/* Hide default theme headers & footers (Blocksy, Twenty Twenty-Five, Storefront) */
.wp-block-template-part[area="header"],
header.wp-block-template-part,
.wp-site-blocks > header,
#masthead,
#header,
.ct-header,
.site-header:not(.uc-site-header),
.wp-block-template-part[area="footer"],
footer.wp-block-template-part,
.wp-site-blocks > footer,
#colophon,
#footer,
.ct-footer,
.site-footer:not(.uc-site-footer) {
  display: none !important;
}

/* Hide all duplicate theme page titles & grey/blue Blocksy hero banners */
header.entry-header,
.entry-header,
.ct-page-title,
.hero-section:not(.uc-hero-section),
.page-header,
.page-title,
.woocommerce-products-header,
.home #comments,
.page #comments,
.wp-block-post-title,
.wp-block-spacer {
  display: none !important;
}

/* Remove all extra bottom margins/padding/min-heights from Blocksy & WordPress containers */
#main,
.site-main,
#main-container,
.ct-container,
.ct-container-full,
article.page,
.entry-content,
.wp-site-blocks,
.wp-block-post-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
}

/* Completely collapse Blocksy's #main-container & Block Theme wrappers on Front Page & Shop Page
   so #uc-frontpage-main / #uc-shop-main sit flush against .uc-site-footer with ZERO white gap */
body.home #main-container,
body.uc-frontpage-view #main-container,
body.uc-shop-view #main-container,
body.home .wp-site-blocks,
body.uc-frontpage-view .wp-site-blocks,
body.uc-shop-view .wp-site-blocks,
body.home #page,
body.uc-frontpage-view #page,
body.uc-shop-view #page,
body.home #content,
body.uc-frontpage-view #content,
body.uc-shop-view #content {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Ensure WordPress wrappers match dark/light mode background */
.site,
.site-content,
main,
#main-container {
  background-color: var(--uc-bg-primary) !important;
  color: var(--uc-text-primary);
}

.uc-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   2. 4-Language Swiss Legal Pages (Impressum, Datenschutz nDSG, AGB OR)
   ========================================================================== */

.uc-legal-wrapper {
  background-color: var(--uc-bg-secondary);
  padding: 4rem 0 5rem;
  margin: 0;
  border-bottom: 1px solid var(--uc-border);
}

.uc-legal-card {
  max-width: 880px;
  margin: 0 auto;
  background-color: var(--uc-bg-primary);
  border: 1px solid var(--uc-border);
  border-top: 4px solid var(--uc-bordeaux);
  border-radius: var(--uc-radius-md);
  padding: 3.25rem 3.5rem;
  box-shadow: 0 16px 40px rgba(18, 18, 18, 0.05);
}

.uc-legal-title {
  font-family: var(--uc-font-heading);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--uc-text-primary);
  margin: 0.25rem 0 0.85rem;
}

.uc-legal-lead {
  font-size: 1.05rem;
  color: var(--uc-text-muted);
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--uc-border);
}

.uc-legal-card h3 {
  font-family: var(--uc-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--uc-text-primary);
  margin: 2rem 0 0.65rem;
}

.uc-legal-card p,
.uc-legal-card li {
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--uc-text-primary);
}

.uc-legal-card ul {
  margin: 0.5rem 0 1.25rem 1.25rem;
  padding: 0;
}

.uc-legal-card li {
  margin-bottom: 0.45rem;
}

.uc-legal-contact-box {
  background-color: var(--uc-bg-secondary);
  border: 1px solid var(--uc-border);
  border-left: 4px solid var(--uc-olive);
  border-radius: var(--uc-radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
}

.uc-legal-contact-box h3 {
  margin-top: 0;
}

.uc-legal-contact-box p:last-child {
  margin-bottom: 0;
}

/* Language Visibility Rules for [data-uc-lang-block] */
.uc-lang-section {
  display: none;
}

html:not([data-uc-lang]) .uc-lang-section[data-uc-lang-block="de"],
html[data-uc-lang="de"] .uc-lang-section[data-uc-lang-block="de"],
html[data-uc-lang="it"] .uc-lang-section[data-uc-lang-block="it"],
html[data-uc-lang="fr"] .uc-lang-section[data-uc-lang-block="fr"],
html[data-uc-lang="en"] .uc-lang-section[data-uc-lang-block="en"] {
  display: block;
}

@media (max-width: 767px) {
  .uc-legal-wrapper {
    padding: 2.25rem 0 3rem;
  }

  .uc-legal-card {
    padding: 2rem 1.35rem;
  }
}

/* ==========================================================================
   3. Upgraded /shop Page (Luxury Shop Header & Interactive Filter Pills)
   ========================================================================== */

.uc-shop-boutique-wrap {
  width: 100%;
  background-color: var(--uc-bg-primary);
}

.uc-shop-hero {
  background-color: var(--uc-bg-secondary);
  border-bottom: 1px solid var(--uc-border);
  padding: 3.75rem 0 3.25rem;
  text-align: center;
}

.uc-shop-hero__title {
  font-family: var(--uc-font-heading);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 700;
  color: var(--uc-text-primary);
  margin: 0.35rem 0 0.85rem;
}

.uc-shop-hero__subtitle {
  max-width: 660px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--uc-text-muted);
  line-height: 1.65;
}

.uc-shop-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.uc-filter-pill {
  appearance: none;
  background-color: var(--uc-bg-primary) !important;
  color: var(--uc-text-primary) !important;
  border: 1px solid var(--uc-border) !important;
  border-radius: var(--uc-radius-pill) !important;
  padding: 0.6rem 1.35rem !important;
  font-family: var(--uc-font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.uc-filter-pill:hover {
  border-color: var(--uc-taupe) !important;
  transform: translateY(-1px);
}

.uc-filter-pill.is-active {
  background-color: var(--uc-bordeaux) !important;
  color: #FAF8F5 !important;
  border-color: var(--uc-bordeaux) !important;
  box-shadow: 0 6px 16px rgba(105, 28, 43, 0.2);
}

.uc-shop-catalog-section {
  padding: 4rem 0 5rem;
  background-color: var(--uc-bg-primary);
}

.is-hidden-by-filter {
  display: none !important;
}

/* ==========================================================================
   4. Pixel-Perfect Vector Geometric Logo & Adaptive Logos (Zero Boxes)
   ========================================================================== */

.uc-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  line-height: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.uc-geo-svg {
  display: block;
  color: #121212;
  background: transparent !important;
  overflow: visible;
  transition: color 0.25s ease, transform 0.2s ease;
}

[data-theme="dark"] .uc-geo-svg,
.dark-mode .uc-geo-svg {
  color: #FFFFFF;
}

.uc-header-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.uc-header-brand__icon {
  width: 42px;
  height: 32px;
  flex-shrink: 0;
}

.uc-header-brand__wordmark {
  font-family: var(--uc-font-heading);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--uc-text-primary);
  text-transform: lowercase;
  line-height: 1;
}

.uc-vertical-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: transparent !important;
}

.uc-vertical-lockup__icon {
  width: 150px;
  height: auto;
}

.uc-vertical-lockup__wordmark {
  font-family: var(--uc-font-heading);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--uc-text-primary);
  text-transform: lowercase;
  line-height: 1;
}

.uc-logo-img {
  display: block;
  width: var(--uc-logo-width, 220px);
  max-width: 100%;
  height: auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.uc-logo-link:hover .uc-logo-img,
.uc-logo-link:hover .uc-geo-svg {
  transform: translateY(-1px);
}

.uc-logo-img.uc-logo-light {
  display: block !important;
}

.uc-logo-img.uc-logo-dark {
  display: none !important;
}

[data-theme="dark"] .uc-logo-img.uc-logo-light,
.dark-mode .uc-logo-img.uc-logo-light {
  display: none !important;
}

[data-theme="dark"] .uc-logo-img.uc-logo-dark,
.dark-mode .uc-logo-img.uc-logo-dark {
  display: block !important;
}

/* ==========================================================================
   5. Custom Boutique Header, Language Switcher & Sticky Navigation Bar
   ========================================================================== */

.uc-site-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  width: 100%;
  background-color: var(--uc-bg-primary);
  border-bottom: 1px solid var(--uc-border);
  box-shadow: 0 4px 20px rgba(18, 18, 18, 0.04);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

body.admin-bar .uc-site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .uc-site-header {
    top: 46px;
  }
}

.uc-header-facet-bar {
  height: 3px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #691C2B 0%,
    #691C2B 16.66%,
    #385774 16.66%,
    #385774 33.33%,
    #3E4F08 33.33%,
    #3E4F08 50%,
    #887868 50%,
    #887868 66.66%,
    #E4DAC7 66.66%,
    #E4DAC7 83.33%,
    #F2C6D4 83.33%,
    #F2C6D4 100%
  );
}

.uc-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.uc-header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.uc-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.uc-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.uc-nav-link {
  font-family: var(--uc-font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--uc-text-primary);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.uc-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--uc-bordeaux);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.uc-nav-link:hover {
  color: var(--uc-bordeaux);
}

.uc-nav-link:hover::after {
  width: 100%;
}

.uc-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.uc-lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--uc-bg-secondary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-pill);
  padding: 2px;
  gap: 2px;
}

.uc-lang-btn {
  appearance: none;
  background: transparent !important;
  border: none !important;
  color: var(--uc-text-muted) !important;
  font-family: var(--uc-font-body) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  padding: 0.32rem 0.55rem !important;
  border-radius: var(--uc-radius-pill) !important;
  cursor: pointer;
  line-height: 1 !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.uc-lang-btn:hover {
  color: var(--uc-text-primary) !important;
}

.uc-lang-btn.is-active {
  background-color: var(--uc-bordeaux) !important;
  color: #FAF8F5 !important;
}

.uc-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  background-color: var(--uc-bordeaux);
  color: #FAF8F5 !important;
  border-radius: var(--uc-radius-pill);
  text-decoration: none !important;
  font-family: var(--uc-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.uc-cart-btn:hover {
  background-color: var(--uc-bordeaux-hover);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(105, 28, 43, 0.25);
}

.uc-cart-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.uc-cart-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background-color: rgba(250, 248, 245, 0.2);
  color: #FAF8F5;
  border-radius: var(--uc-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.uc-mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--uc-bg-secondary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  color: var(--uc-text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.uc-hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--uc-text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.uc-mobile-menu-toggle[aria-expanded="true"] .uc-hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.uc-mobile-menu-toggle[aria-expanded="true"] .uc-hamburger-line:nth-child(2) {
  opacity: 0;
}

.uc-mobile-menu-toggle[aria-expanded="true"] .uc-hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.uc-mobile-drawer {
  display: none;
  background-color: var(--uc-bg-primary);
  border-top: 1px solid var(--uc-border);
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 12px 28px rgba(18, 18, 18, 0.12);
}

.uc-mobile-drawer.is-open {
  display: block;
}

.uc-mobile-lang-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.uc-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.uc-mobile-nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-family: var(--uc-font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--uc-text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--uc-border);
}

.uc-mobile-nav-link:hover {
  color: var(--uc-bordeaux);
}

.uc-mobile-drawer-footer {
  margin-top: 1rem;
  padding-top: 0.5rem;
  text-align: center;
}

.uc-mobile-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--uc-olive);
}

[data-theme="dark"] .uc-mobile-tagline,
.dark-mode .uc-mobile-tagline {
  color: var(--uc-sand);
}

@media (max-width: 767px) {
  .uc-header-inner {
    padding: 0.7rem 0.9rem;
    gap: 0.4rem;
  }

  .uc-mobile-menu-toggle {
    display: inline-flex;
  }

  .uc-header-nav {
    display: none;
  }

  .uc-header-brand {
    flex: 1;
    justify-content: center;
  }

  .uc-header-brand__icon {
    width: 34px;
    height: 26px;
  }

  .uc-header-brand__wordmark {
    font-size: 1.25rem;
  }

  .uc-lang-switcher--header .uc-lang-btn {
    padding: 0.26rem 0.38rem !important;
    font-size: 0.65rem !important;
  }

  .uc-theme-toggle--header .uc-theme-toggle__label {
    display: none;
  }

  .uc-theme-toggle--header {
    padding: 0.48rem !important;
  }
}

/* ==========================================================================
   6. Boutique Homepage Storefront ([unicroma_homepage])
   ========================================================================== */

.uc-homepage-storefront {
  width: 100%;
  overflow-x: hidden;
  margin-bottom: 0;
}

.uc-hero-section {
  background-color: var(--uc-bg-secondary);
  border-bottom: 1px solid var(--uc-border);
  padding: 4.5rem 0 5rem;
  position: relative;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.uc-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.uc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background-color: rgba(62, 79, 8, 0.1);
  color: var(--uc-olive);
  border: 1px solid rgba(62, 79, 8, 0.25);
  border-radius: var(--uc-radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .uc-hero-eyebrow,
.dark-mode .uc-hero-eyebrow {
  background-color: rgba(62, 79, 8, 0.28);
  color: var(--uc-sand);
  border-color: var(--uc-olive);
}

.uc-hero-title {
  font-family: var(--uc-font-heading);
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--uc-text-primary);
  margin: 0 0 1.25rem;
}

.uc-hero-subtitle {
  font-family: var(--uc-font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--uc-text-muted);
  margin: 0 0 2.25rem;
  max-width: 580px;
}

.uc-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.uc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--uc-radius-pill);
  font-family: var(--uc-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.uc-btn--primary {
  background-color: var(--uc-bordeaux);
  color: #FAF8F5 !important;
  border: 1px solid transparent;
}

.uc-btn--primary:hover {
  background-color: var(--uc-bordeaux-hover);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(105, 28, 43, 0.25);
}

.uc-btn--secondary {
  background-color: transparent;
  color: var(--uc-text-primary) !important;
  border: 1px solid var(--uc-border);
}

.uc-btn--secondary:hover {
  border-color: var(--uc-taupe);
  background-color: var(--uc-bg-primary);
  transform: translateY(-1px);
}

.uc-btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.uc-hero-facets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.uc-facet-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(18, 18, 18, 0.15);
  display: inline-block;
}

.uc-hero-facets__caption {
  font-size: 0.82rem;
  color: var(--uc-text-muted);
  margin-left: 0.4rem;
  font-weight: 500;
}

.uc-hero-visual {
  display: flex;
  justify-content: center;
}

.uc-lookbook-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--uc-bg-primary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-md);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 45px rgba(18, 18, 18, 0.06);
  position: relative;
  text-align: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.uc-lookbook-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--uc-taupe);
  background-color: var(--uc-bg-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--uc-radius-pill);
  margin-bottom: 1.5rem;
}

.uc-lookbook-card__logo-frame {
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

.uc-lookbook-card__caption {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--uc-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--uc-text-muted);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --- The 3 Pillars Bar --- */
.uc-pillars-section {
  padding: 3.25rem 0;
  background-color: var(--uc-bg-primary);
  border-bottom: 1px solid var(--uc-border);
}

.uc-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.uc-pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.5rem;
  background-color: var(--uc-bg-secondary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-md);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.uc-pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--uc-taupe);
}

.uc-pillar-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--uc-bg-primary);
  border: 1px solid var(--uc-border);
  color: var(--uc-bordeaux);
  display: flex;
  align-items: center;
  justify-content: center;
}

.uc-pillar-title {
  font-family: var(--uc-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--uc-text-primary);
}

.uc-pillar-text {
  font-size: 0.9rem;
  color: var(--uc-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Collection Section (#uc-collection) --- */
.uc-collection-section {
  padding: 5rem 0;
  background-color: var(--uc-bg-primary);
}

.uc-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.uc-section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--uc-bordeaux);
  margin-bottom: 0.6rem;
}

[data-theme="dark"] .uc-section-kicker,
.dark-mode .uc-section-kicker {
  color: var(--uc-sand);
}

.uc-section-title {
  font-family: var(--uc-font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--uc-text-primary);
}

.uc-section-Lead {
  font-size: 1.05rem;
  color: var(--uc-text-muted);
  margin: 0;
}

.uc-preview-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  padding: 0.85rem 1.35rem;
  background-color: var(--uc-bg-secondary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--uc-text-muted);
  text-align: center;
}

.uc-preview-notice__dot {
  color: var(--uc-olive);
  font-size: 1rem;
}

.uc-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.uc-product-card {
  background-color: var(--uc-bg-secondary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.uc-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--uc-taupe);
  box-shadow: 0 16px 36px rgba(18, 18, 18, 0.1);
}

.uc-product-card__media {
  position: relative;
  height: 250px;
  background: radial-gradient(circle at 50% 50%, var(--uc-bg-primary) 0%, var(--uc-bg-secondary) 100%);
  border-bottom: 1px solid var(--uc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.uc-product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--uc-sand);
  color: var(--uc-olive);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.32rem 0.8rem;
  border-radius: var(--uc-radius-pill);
  letter-spacing: 0.02em;
}

.uc-product-card__badge--mto {
  background-color: rgba(56, 87, 116, 0.14);
  color: var(--uc-denim);
  border: 1px solid rgba(56, 87, 116, 0.28);
}

[data-theme="dark"] .uc-product-card__badge--unikat,
.dark-mode .uc-product-card__badge--unikat {
  background-color: rgba(62, 79, 8, 0.35);
  color: var(--uc-sand);
}

[data-theme="dark"] .uc-product-card__badge--mto,
.dark-mode .uc-product-card__badge--mto {
  background-color: rgba(82, 124, 163, 0.24);
  color: #FAF8F5;
  border-color: var(--uc-denim);
}

.uc-product-card__art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.uc-yarn-swatch {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.18), 0 12px 28px rgba(18, 18, 18, 0.18);
  transition: transform 0.25s ease;
}

.uc-product-card:hover .uc-yarn-swatch {
  transform: scale(1.05);
}

.uc-yarn-swatch--bordeaux {
  background: radial-gradient(circle at 30% 30%, #8F283C, #691C2B 65%, #4E1420);
}

.uc-yarn-swatch--denim {
  background: radial-gradient(circle at 30% 30%, #527CA3, #385774 65%, #263C50);
}

.uc-yarn-swatch--olive {
  background: radial-gradient(circle at 30% 30%, #5B7310, #3E4F08 65%, #293505);
}

.uc-card-emblem-svg {
  width: 64px;
  height: auto;
  color: #FFFFFF !important;
}

.uc-product-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.uc-product-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--uc-text-muted);
  margin-bottom: 0.4rem;
}

.uc-product-card__title {
  font-family: var(--uc-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--uc-text-primary);
}

.uc-product-card__desc {
  font-size: 0.92rem;
  color: var(--uc-text-muted);
  margin: 0 0 1rem;
  flex: 1;
}

.uc-product-card__mini-swatches {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.uc-mini-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.uc-product-card__footer,
.uc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--uc-border);
}

.uc-product-card__price,
.uc-card-price {
  font-family: var(--uc-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--uc-text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.uc-card-btn,
.uc-product-card__footer .uc-btn {
  height: 42px;
  padding: 0 18px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.88rem !important;
  border-radius: 9999px !important;
}

/* Live WooCommerce Product Grid Refinements */
.uc-wc-products-wrap ul.products li.product {
  background-color: var(--uc-bg-secondary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-md);
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.uc-wc-products-wrap ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(18, 18, 18, 0.08);
}

.uc-wc-products-wrap ul.products li.product img {
  border-radius: var(--uc-radius-sm);
}

.uc-wc-products-wrap ul.products li.product .price {
  color: var(--uc-text-primary) !important;
  font-family: var(--uc-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.uc-loop-mode-pill {
  display: inline-block;
  margin: 0.35rem 0 0.65rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--uc-radius-pill);
}

.uc-loop-mode-pill--unikat,
.uc-loop-mode-pill--hybrid {
  background-color: var(--uc-sand);
  color: var(--uc-olive);
}

.uc-loop-mode-pill--mto {
  background-color: rgba(56, 87, 116, 0.14);
  color: var(--uc-denim);
}

/* --- Interactive Quick-View Modal (#uc-quickview-modal) --- */
.uc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(18, 18, 18, 0.68);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.uc-modal-backdrop.is-open {
  display: flex;
}

.uc-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  overflow-y: auto;
  background-color: var(--uc-bg-primary);
  color: var(--uc-text-primary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-md);
  padding: 2.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.uc-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--uc-border);
  background-color: var(--uc-bg-secondary);
  color: var(--uc-text-primary);
  padding: 0 !important;
  line-height: 1 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.uc-modal-close svg {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.uc-modal-close:hover {
  background-color: var(--uc-bordeaux);
  color: #FFFFFF;
}

.uc-modal-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.25rem;
  align-items: start;
}

.uc-modal-visual,
.uc-modal-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--uc-bg-secondary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-md);
  padding: 2.25rem 1.5rem;
  text-align: center;
  min-width: 0;
}

.uc-modal-details,
.uc-modal-right-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.55rem !important;
  min-width: 0 !important;
  position: relative !important;
}

.uc-modal-yarn-preview {
  width: 185px;
  height: 185px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.22), transparent 55%), var(--uc-orb-color, #691C2B);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.16), 0 18px 38px rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease;
  margin-bottom: 1.25rem;
}

.uc-modal-yarn-texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.06) 0px,
    rgba(255, 255, 255, 0.06) 4px,
    transparent 4px,
    transparent 9px
  );
  pointer-events: none;
}

.uc-modal-emblem-svg {
  width: 92px;
  height: auto;
  color: #FFFFFF !important;
  position: relative;
  z-index: 2;
}

.uc-modal-details .uc-product-card__category {
  position: static !important;
  display: block !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.uc-modal-title,
#uc-qv-title {
  position: static !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
  font-family: var(--uc-font-heading) !important;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem) !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  color: var(--uc-text-primary) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.uc-modal-price,
#uc-qv-price {
  position: static !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
  font-family: var(--uc-font-heading) !important;
  font-size: 1.32rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--uc-bordeaux) !important;
  margin: 0.1rem 0 0.25rem !important;
  padding: 0 !important;
}

[data-theme="dark"] .uc-modal-price,
.dark-mode .uc-modal-price,
[data-theme="dark"] #uc-qv-price,
.dark-mode #uc-qv-price {
  color: var(--uc-sand) !important;
}

.uc-modal-desc,
#uc-qv-desc {
  position: static !important;
  float: none !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
  font-family: var(--uc-font-body) !important;
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
  color: var(--uc-text-muted) !important;
  margin: 0 0 0.55rem !important;
  padding: 0 !important;
}

.uc-modal-mode-selector {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.uc-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background-color: var(--uc-bg-secondary);
  border: 1.5px solid var(--uc-border);
  border-radius: var(--uc-radius-sm);
  color: var(--uc-text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.uc-mode-option.is-active {
  border-color: var(--uc-bordeaux);
  background-color: rgba(105, 28, 43, 0.06);
}

[data-theme="dark"] .uc-mode-option.is-active,
.dark-mode .uc-mode-option.is-active {
  border-color: var(--uc-sand);
  background-color: rgba(228, 218, 199, 0.08);
}

.uc-mode-option__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--uc-taupe);
  margin-top: 3px;
  flex-shrink: 0;
  position: relative;
}

.uc-mode-option.is-active .uc-mode-option__dot {
  border-color: var(--uc-bordeaux);
  background-color: var(--uc-bordeaux);
}

[data-theme="dark"] .uc-mode-option.is-active .uc-mode-option__dot,
.dark-mode .uc-mode-option.is-active .uc-mode-option__dot {
  border-color: var(--uc-sand);
  background-color: var(--uc-sand);
}

.uc-mode-option__content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.uc-mode-option__content strong {
  font-size: 0.88rem;
}

.uc-mode-option__content small {
  font-size: 0.78rem;
  color: var(--uc-text-muted);
}

.uc-modal-actions {
  margin-top: 1.25rem;
}

.uc-modal-cta {
  width: 100%;
}

/* --- Atelier & Mother's Craft Story Section (#uc-story) --- */
.uc-story-section {
  padding: 5rem 0;
  background-color: var(--uc-bg-secondary);
  border-top: 1px solid var(--uc-border);
  margin-bottom: 0 !important;
}

.uc-story-card {
  max-width: 820px;
  margin: 0 auto;
  background-color: var(--uc-bg-primary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-md);
  padding: 3.5rem 3rem;
  text-align: center;
  box-shadow: 0 16px 40px rgba(18, 18, 18, 0.04);
}

.uc-story-seal {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: transparent !important;
}

.uc-story-seal__svg {
  width: 84px;
  height: auto;
}

.uc-story-title {
  font-family: var(--uc-font-heading);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: var(--uc-text-primary);
  margin: 0 0 1.25rem;
}

.uc-story-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--uc-text-muted);
  margin: 0 auto 1.25rem;
  max-width: 660px;
}

.uc-story-signature {
  margin-top: 1.75rem;
}

@media (max-width: 960px) {
  .uc-hero-grid,
  .uc-modal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .uc-pillars-grid,
  .uc-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .uc-story-card {
    padding: 2.5rem 1.5rem;
  }
}

/* ==========================================================================
   7. Custom Boutique Footer
   ========================================================================== */

.uc-site-footer {
  background-color: var(--uc-bg-secondary);
  border-top: 1px solid var(--uc-border);
  color: var(--uc-text-primary);
  padding: 4rem 0 2rem;
  margin-top: 0 !important;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.uc-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--uc-border);
}

.uc-footer-wordmark {
  display: inline-block;
  font-family: var(--uc-font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--uc-text-primary);
  text-transform: lowercase;
  margin-bottom: 0.85rem;
}

.uc-footer-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--uc-text-muted);
  margin: 0;
  max-width: 360px;
}

.uc-footer-heading {
  font-family: var(--uc-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--uc-text-primary);
  margin: 0 0 1.1rem;
}

.uc-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, auto));
  gap: 0.55rem 1.5rem;
}

.uc-footer-links a {
  font-size: 0.92rem;
  color: var(--uc-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.uc-footer-links a:hover {
  color: var(--uc-bordeaux);
}

.uc-footer-bottom {
  padding-top: 1.75rem;
  text-align: center;
}

.uc-footer-copyright {
  font-size: 0.85rem;
  color: var(--uc-text-muted);
  margin: 0;
}

@media (max-width: 820px) {
  .uc-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   8. WooCommerce & WordPress Primary Buttons
   ========================================================================== */

.woocommerce a.button,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt,
.woocommerce #respond input#submit.alt,
.wp-block-button__link,
.wc-block-components-button,
.single_add_to_cart_button {
  background-color: var(--uc-bordeaux) !important;
  color: #FAF8F5 !important;
  border-radius: var(--uc-radius-pill) !important;
  font-family: var(--uc-font-body) !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.75rem !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
  transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease !important;
  cursor: pointer;
}

.woocommerce a.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.wp-block-button__link:hover,
.wc-block-components-button:hover,
.single_add_to_cart_button:hover {
  background-color: var(--uc-bordeaux-hover) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(105, 28, 43, 0.22);
}

/* ==========================================================================
   9. Hybrid Product System: Unikat / Made-to-Order Badges & Yarn Color Picker
   ========================================================================== */

.uc-product-atelier-box {
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.uc-atelier-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  border-radius: var(--uc-radius-md);
  font-family: var(--uc-font-body);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.uc-atelier-status-badge--unikat {
  background-color: rgba(62, 79, 8, 0.12);
  color: var(--uc-olive);
  border: 1px solid rgba(62, 79, 8, 0.28);
}

[data-theme="dark"] .uc-atelier-status-badge--unikat,
.dark-mode .uc-atelier-status-badge--unikat {
  background-color: rgba(62, 79, 8, 0.26);
  color: var(--uc-sand);
  border-color: var(--uc-olive);
}

.uc-atelier-status-badge--mto {
  background-color: rgba(56, 87, 116, 0.12);
  color: var(--uc-denim);
  border: 1px solid rgba(56, 87, 116, 0.28);
}

[data-theme="dark"] .uc-atelier-status-badge--mto,
.dark-mode .uc-atelier-status-badge--mto {
  background-color: rgba(82, 124, 163, 0.22);
  color: #FAF8F5;
  border-color: var(--uc-denim);
}

.uc-yarn-picker {
  background-color: var(--uc-bg-secondary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-md);
  padding: 1.1rem 1.2rem;
}

.uc-yarn-picker__header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  color: var(--uc-text-muted);
}

.uc-yarn-picker__selected-name {
  color: var(--uc-text-primary);
  font-weight: 700;
}

.uc-yarn-picker__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 188px;
  overflow-y: auto;
  padding: 2px;
}

.uc-yarn-swatch-btn {
  appearance: none;
  width: 32px !important;
  height: 32px !important;
  padding: 2px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: 2px solid var(--uc-border) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  flex-shrink: 0;
}

.uc-yarn-swatch-btn.is-hidden-by-color-filter {
  display: none !important;
}

.uc-yarn-swatch-btn:hover {
  transform: scale(1.1);
  border-color: var(--uc-taupe) !important;
}

.uc-yarn-swatch-btn.is-selected {
  border-color: var(--uc-bordeaux) !important;
  box-shadow: 0 0 0 2px rgba(105, 28, 43, 0.22) !important;
  transform: scale(1.1);
}

[data-theme="dark"] .uc-yarn-swatch-btn.is-selected,
.dark-mode .uc-yarn-swatch-btn.is-selected {
  border-color: var(--uc-sand) !important;
  box-shadow: 0 0 0 2px rgba(228, 218, 199, 0.25) !important;
}

.uc-yarn-swatch-btn__circle {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--uc-swatch-color, #691C2B);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   10. Handmade Trust Badge & Header Theme Toggle Pill
   ========================================================================== */

.uc-handmade-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.65rem 0 1rem;
  padding: 0.55rem 1.1rem;
  background-color: var(--uc-sand);
  color: var(--uc-olive);
  border: 1px solid rgba(62, 79, 8, 0.22);
  border-radius: var(--uc-radius-pill);
  font-family: var(--uc-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.uc-handmade-trust-badge__star {
  color: var(--uc-olive);
  font-size: 0.95rem;
  line-height: 1;
}

[data-theme="dark"] .uc-handmade-trust-badge,
.dark-mode .uc-handmade-trust-badge {
  background-color: rgba(62, 79, 8, 0.24);
  color: var(--uc-sand);
  border-color: var(--uc-olive);
}

[data-theme="dark"] .uc-handmade-trust-badge__star,
.dark-mode .uc-handmade-trust-badge__star {
  color: var(--uc-sand);
}

.uc-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.88rem !important;
  background-color: var(--uc-bg-secondary) !important;
  color: var(--uc-text-primary) !important;
  border: 1px solid var(--uc-border) !important;
  border-radius: var(--uc-radius-pill) !important;
  font-family: var(--uc-font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
  user-select: none;
}

.uc-theme-toggle:hover {
  border-color: var(--uc-taupe) !important;
  transform: translateY(-1px);
}

.uc-theme-toggle:focus-visible {
  outline: 2px solid var(--uc-bordeaux);
  outline-offset: 2px;
}

.uc-theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.uc-theme-toggle__icon--sun {
  display: none;
}

.uc-theme-toggle__icon--moon {
  display: inline-flex;
  color: var(--uc-bordeaux);
}

[data-theme="dark"] .uc-theme-toggle__icon--sun,
.dark-mode .uc-theme-toggle__icon--sun {
  display: inline-flex;
  color: var(--uc-sand);
}

[data-theme="dark"] .uc-theme-toggle__icon--moon,
.dark-mode .uc-theme-toggle__icon--moon {
  display: none;
}

/* ==========================================================================
   11. Badge Star Alignment, Instagram Buttons, Empty Cart & Populated Cart (v1.5.0)
   ========================================================================== */

/* 11.1 Single Star Alignment on All Badges (Never Double Stars) */
.uc-badge::before,
.uc-hero-badge::before,
.uc-hero-eyebrow::before,
.uc-modal-badge::before,
.uc-story-badge::before,
.uc-handmade-trust-badge::before {
  content: none !important;
  display: none !important;
}

.uc-badge,
.uc-hero-badge,
.uc-hero-eyebrow,
.uc-modal-badge,
.uc-story-badge,
.uc-handmade-trust-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.uc-star,
.uc-handmade-trust-badge__star,
.uc-hero-eyebrow__star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

/* 11.2 Header Circular Instagram Button & Footer Instagram Pill Button */
.uc-instagram-btn--header {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--uc-bg-secondary);
  color: var(--uc-text-primary) !important;
  border: 1px solid var(--uc-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.uc-instagram-btn--header:hover {
  background-color: var(--uc-bordeaux);
  border-color: var(--uc-bordeaux);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.uc-footer-social {
  margin-top: 1.25rem;
}

.uc-instagram-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.25rem;
  background-color: var(--uc-bg-primary);
  color: var(--uc-text-primary) !important;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-pill);
  font-family: var(--uc-font-body);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.uc-instagram-pill-btn:hover {
  background-color: var(--uc-bordeaux);
  border-color: var(--uc-bordeaux);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* 11.3 Luxury Empty Cart Card & Constrained 72x72px SVG Icon */
.woocommerce-cart .cart-empty.woocommerce-info,
.woocommerce-cart .wc-empty-cart-message,
.woocommerce-cart p.return-to-shop {
  display: none !important;
}

.uc-empty-cart-wrapper {
  padding: 3.5rem 1.25rem 4.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.uc-empty-cart-card {
  max-width: 560px;
  width: 100%;
  background-color: var(--uc-bg-secondary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-md);
  padding: 3.25rem 2.5rem;
  text-align: center;
  box-shadow: 0 18px 42px rgba(18, 18, 18, 0.05);
}

.uc-empty-cart-card__icon,
.uc-empty-cart-icon {
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto 20px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--uc-text-primary);
}

.uc-empty-cart__svg,
.uc-empty-cart-svg,
.uc-empty-cart-wrapper svg.uc-geo-svg {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  margin: 0 auto 20px !important;
  display: block !important;
}

.uc-empty-cart-card__title,
.uc-empty-cart-title {
  font-family: var(--uc-font-heading);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--uc-text-primary);
  margin: 0 0 0.75rem;
}

.uc-empty-cart-card__subtitle,
.uc-empty-cart-subtitle {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--uc-text-muted);
  margin: 0 auto 1.85rem;
  max-width: 440px;
}

.uc-empty-cart-card__actions,
.uc-empty-cart-actions {
  display: flex;
  justify-content: center;
}

/* 11.4 Populated Cart Page (/warenkorb) & Checkout (/kasse) Boutique Redesign */

/* Hide redundant "Warenkorb anzeigen" / Added-to-Cart notice banner when already on Cart page */
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce-message,
.uc-cart-view .woocommerce-notices-wrapper,
.uc-cart-view .woocommerce-message {
  display: none !important;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: 1180px;
  margin: 2.5rem auto 4.5rem;
  padding: 0 1.5rem;
}

.woocommerce table.shop_table {
  background-color: var(--uc-bg-secondary) !important;
  border: 1px solid var(--uc-border) !important;
  border-radius: var(--uc-radius-md) !important;
  overflow: hidden;
  color: var(--uc-text-primary) !important;
  box-shadow: 0 10px 30px rgba(18, 18, 18, 0.04);
}

.woocommerce table.shop_table th {
  font-family: var(--uc-font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(228, 218, 199, 0.25);
  border-color: var(--uc-border) !important;
  color: var(--uc-text-primary) !important;
  padding: 1rem 1.25rem !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.cart_totals th,
.woocommerce .cart_totals table.shop_table th {
  white-space: nowrap !important;
  width: 45% !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

[data-theme="dark"] .woocommerce table.shop_table th,
.dark-mode .woocommerce table.shop_table th {
  background-color: rgba(255, 255, 255, 0.04);
}

.woocommerce table.shop_table td {
  border-color: var(--uc-border) !important;
  color: var(--uc-text-primary) !important;
  padding: 1.25rem !important;
  vertical-align: middle !important;
}

/* Quantity Selector: Clean Rounded Pill Borders Instead of Bright Blue Outline */
.woocommerce div.quantity,
.woocommerce-page div.quantity,
.woocommerce .quantity,
.ct-quantity {
  border: 1px solid var(--uc-border) !important;
  border-radius: 9999px !important;
  background-color: var(--uc-bg-primary) !important;
  box-shadow: none !important;
  outline: none !important;
  overflow: hidden;
}

.woocommerce div.quantity input.qty,
.woocommerce .quantity .qty {
  border: none !important;
  background: transparent !important;
  color: var(--uc-text-primary) !important;
  box-shadow: none !important;
  outline: none !important;
  font-weight: 600;
}

/* 64x64px Rounded Yarn Color Swatch Thumbnail in Cart */
.uc-cart-swatch-thumb {
  width: 64px !important;
  height: 64px !important;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 60%), var(--uc-cart-swatch-bg, #691C2B);
  border: 1px solid var(--uc-border);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.16), 0 6px 14px rgba(18, 18, 18, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}

.uc-cart-swatch-thumb__svg {
  width: 38px !important;
  height: 38px !important;
  color: #FFFFFF !important;
  display: block;
}

/* Format Cart Item Meta (Ausführung, Garn-Wunschfarbe, Lieferzeit) cleanly */
.woocommerce td.product-name dl.variation,
.woocommerce ul.product_list_widget dl.variation {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--uc-text-muted);
}

.woocommerce td.product-name dl.variation dt,
.woocommerce td.product-name dl.variation dd {
  display: inline !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.86rem;
  line-height: 1.45;
}

.woocommerce td.product-name dl.variation dt {
  font-weight: 600;
  color: var(--uc-text-muted);
  margin-right: 4px !important;
}

.woocommerce td.product-name dl.variation dd {
  font-weight: 600;
  color: var(--uc-text-primary);
}

.woocommerce td.product-name dl.variation dd p {
  display: inline !important;
  margin: 0 !important;
}

.woocommerce td.product-name dl.variation dd::after {
  content: "";
  display: block;
  margin-bottom: 3px;
}

/* Replace Bright Blue Theme Buttons (Coupon & Update Cart) with Warm Boutique Secondary Buttons */
button[name="apply_coupon"],
button[name="update_cart"],
.woocommerce-cart-form button.button,
.woocommerce-cart table.cart td.actions .button {
  background: var(--uc-sand) !important;
  color: #121212 !important;
  border-radius: 9999px !important;
  border: 1px solid var(--uc-border) !important;
  font-family: var(--uc-font-body) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  padding: 0.65rem 1.35rem !important;
  height: auto !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, transform 0.15s ease !important;
}

button[name="apply_coupon"]:hover,
button[name="update_cart"]:hover:not(:disabled),
.woocommerce-cart-form button.button:hover:not(:disabled) {
  background: #d8ccb4 !important;
  color: #121212 !important;
  transform: translateY(-1px);
}

.woocommerce-cart table.cart td.actions .coupon .input-text,
#coupon_code {
  border-radius: 9999px !important;
  border: 1px solid var(--uc-border) !important;
  background-color: var(--uc-bg-primary) !important;
  color: var(--uc-text-primary) !important;
  padding: 0.58rem 1.15rem !important;
  min-width: 190px;
  margin-right: 0.5rem !important;
}

/* Remove "Box Inside a Box" on Cart Collaterals / Cart Totals */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce .cart-collaterals,
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.woocommerce-cart .cart_totals > h2 {
  font-family: var(--uc-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--uc-text-primary);
  margin: 0 0 1rem !important;
}

.woocommerce-cart .wc-proceed-to-checkout {
  padding-top: 1.15rem !important;
  margin-bottom: 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 0.95rem 1.75rem !important;
  font-size: 0.98rem !important;
}

#order_review {
  background-color: var(--uc-bg-secondary);
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-md);
  padding: 1.85rem;
  box-shadow: 0 10px 30px rgba(18, 18, 18, 0.04);
}

/* ==========================================================================
   12. Official 45-Color Bobbiny Yarn Palette, Family Filter Pills & Care Accordion (v1.6.0)
   ========================================================================== */

/* 12.1 Product Card "+39 Farben" Pill Indicator */
.uc-more-colors-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: var(--uc-radius-pill);
  background-color: var(--uc-bg-primary);
  border: 1px solid var(--uc-border);
  color: var(--uc-text-muted);
  font-family: var(--uc-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* 12.2 Scrollable Color Family Filter Pills Above Swatches */
.uc-color-family-tabs {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  overflow-x: auto;
  padding-bottom: 0.55rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--uc-border);
  scrollbar-width: thin;
}

.uc-color-family-pill {
  appearance: none;
  background-color: var(--uc-bg-primary) !important;
  color: var(--uc-text-muted) !important;
  border: 1px solid var(--uc-border) !important;
  border-radius: var(--uc-radius-pill) !important;
  padding: 0.28rem 0.72rem !important;
  font-family: var(--uc-font-body) !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}

.uc-color-family-pill:hover {
  color: var(--uc-text-primary) !important;
  border-color: var(--uc-taupe) !important;
}

.uc-color-family-pill.is-active {
  background-color: var(--uc-bordeaux) !important;
  border-color: var(--uc-bordeaux) !important;
  color: #FFFFFF !important;
}

/* 12.3 Custom Color Request Link Below Swatches */
.uc-custom-color-note {
  margin: 0.75rem 0 0 !important;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--uc-border);
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--uc-text-muted);
}

.uc-custom-color-note__link {
  color: var(--uc-bordeaux) !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

[data-theme="dark"] .uc-custom-color-note__link,
.dark-mode .uc-custom-color-note__link {
  color: var(--uc-sand) !important;
}

/* 12.4 Collapsible Material (OEKO-TEX® Bobbiny Yarn) & Care Instructions Accordion */
.uc-material-care-accordion {
  margin-top: 1.15rem;
  border-top: 1px solid var(--uc-border);
  display: flex;
  flex-direction: column;
}

.uc-accordion-item {
  border-bottom: 1px solid var(--uc-border);
}

.uc-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.15rem;
  cursor: pointer;
  font-family: var(--uc-font-body);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--uc-text-primary);
  user-select: none;
  transition: color 0.18s ease;
}

.uc-accordion-summary::-webkit-details-marker {
  display: none;
}

.uc-accordion-summary:hover {
  color: var(--uc-bordeaux);
}

.uc-accordion-summary__icon {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  color: var(--uc-text-muted);
  transition: transform 0.2s ease;
}

.uc-accordion-item[open] .uc-accordion-summary__icon {
  transform: rotate(45deg);
  color: var(--uc-bordeaux);
}

.uc-accordion-content {
  padding: 0 0.15rem 0.85rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--uc-text-muted);
}

.uc-accordion-content p {
  margin: 0 !important;
}

/* Dark icon inside very light Bobbiny cart swatches (White, Off White, Natural, Butter Yellow) */
.uc-cart-swatch-thumb__svg--dark {
  color: #181818 !important;
}

/* ==========================================================================
   13. Borderless Cart/Checkout Totals, High-Contrast Radios & Clean Account Page (v1.8.0)
   ========================================================================== */

/* 13.1 Strip All Outer Theme Wrapper Borders Around Cart Form & Checkout Order Review */
form.woocommerce-cart-form,
.ct-woocommerce-cart-form,
.ct-cart-form,
#order_review,
.ct-order-review {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.woocommerce table.shop_table.cart,
.woocommerce-cart table.shop_table.cart {
  background-color: var(--uc-bg-secondary) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: var(--uc-radius-md) !important;
  overflow: hidden;
}

.cart_totals,
.cart-collaterals,
.woocommerce .cart-collaterals,
.woocommerce-page .cart-collaterals,
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals,
.woocommerce-cart .cart_totals,
.woocommerce-cart .cart-collaterals {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: var(--uc-bg-secondary) !important;
  border-radius: var(--uc-radius-md) !important;
}

.woocommerce-cart .cart-collaterals {
  padding: 1.65rem 1.75rem !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  padding: 0 !important;
  width: 100% !important;
}

.cart_totals table.shop_table,
.woocommerce .cart_totals table.shop_table,
.woocommerce-page .cart_totals table.shop_table,
.woocommerce-checkout-review-order-table,
.woocommerce table.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order,
#payment,
.woocommerce-checkout #payment,
#add_payment_method #payment {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: var(--uc-bg-secondary) !important;
  border-radius: var(--uc-radius-md) !important;
}

.woocommerce-checkout-review-order {
  padding: 1.65rem 1.75rem !important;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table tr,
.woocommerce table.shop_table.cart th,
.woocommerce table.shop_table.cart td,
.woocommerce table.shop_table.cart tr {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid var(--uc-border) !important;
}

.cart_totals table.shop_table tr:last-child th,
.cart_totals table.shop_table tr:last-child td,
.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td,
.woocommerce table.shop_table.cart tbody tr:last-child td {
  border-bottom: none !important;
}

/* Style the "Aktualisieren" button inside the Shipping Calculator in Bordeaux/Sand Pill Style */
button[name="calc_shipping"],
.shipping-calculator-form button.button,
.woocommerce-shipping-calculator button.button {
  background: var(--uc-sand) !important;
  color: #121212 !important;
  border-radius: 9999px !important;
  border: 1px solid var(--uc-border) !important;
  font-family: var(--uc-font-body) !important;
  font-weight: 600 !important;
  font-size: 0.86rem !important;
  padding: 0.58rem 1.35rem !important;
  height: auto !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
}

button[name="calc_shipping"]:hover,
.shipping-calculator-form button.button:hover,
.woocommerce-shipping-calculator button.button:hover {
  background: var(--uc-bordeaux) !important;
  border-color: var(--uc-bordeaux) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.woocommerce-shipping-calculator a.shipping-calculator-button {
  color: var(--uc-bordeaux) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

[data-theme="dark"] .woocommerce-shipping-calculator a.shipping-calculator-button,
.dark-mode .woocommerce-shipping-calculator a.shipping-calculator-button {
  color: var(--uc-sand) !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  border: none !important;
  border-bottom: 1px solid var(--uc-border) !important;
  padding: 1rem 0 !important;
  margin: 0 !important;
}

.woocommerce-checkout #payment div.payment_box {
  background-color: var(--uc-bg-primary) !important;
  color: var(--uc-text-muted) !important;
  border: 1px solid var(--uc-border) !important;
  border-radius: var(--uc-radius-sm) !important;
  box-shadow: none !important;
}

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

/* 13.2 High-Contrast Radio Buttons for Shipping & Payment in Light & Dark Mode (v1.9.0) */
#shipping_method,
ul#shipping_method,
.woocommerce ul#shipping_method {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#shipping_method li,
.woocommerce ul#shipping_method li,
.wc_payment_methods li.wc_payment_method {
  margin: 0 !important;
  padding: 0.65rem 0.85rem !important;
  border-radius: 10px !important;
  border: 1px solid var(--uc-border) !important;
  background-color: var(--uc-bg-primary) !important;
  transition: border-color 0.18s ease, background-color 0.18s ease;
  box-sizing: border-box !important;
}

#shipping_method li.is-selected,
#shipping_method li:has(input[type="radio"]:checked),
.wc_payment_methods li.is-selected,
.wc_payment_methods li.wc_payment_method:has(input[type="radio"]:checked) {
  border-color: var(--uc-bordeaux) !important;
  background-color: rgba(105, 28, 43, 0.06) !important;
}

[data-theme="dark"] #shipping_method li.is-selected,
.dark-mode #shipping_method li.is-selected,
[data-theme="dark"] #shipping_method li:has(input[type="radio"]:checked),
.dark-mode #shipping_method li:has(input[type="radio"]:checked),
[data-theme="dark"] .wc_payment_methods li.is-selected,
.dark-mode .wc_payment_methods li.is-selected {
  border-color: var(--uc-sand) !important;
  background-color: rgba(228, 218, 199, 0.08) !important;
}

#payment .wc_payment_methods li input[type="radio"],
.woocommerce-checkout #payment input[type="radio"],
#shipping_method li input[type="radio"],
#shipping_method input[type="radio"],
.wc_payment_methods input[type="radio"],
.uc-modal input[type="radio"],
.woocommerce input[type="radio"],
.woocommerce-page input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0 10px 0 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  accent-color: var(--uc-bordeaux) !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  appearance: auto !important;
  -webkit-appearance: radio !important;
  position: static !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
}

#payment .wc_payment_methods li > label,
#shipping_method li > label,
#shipping_method label,
.wc_payment_methods label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  color: var(--uc-text-primary) !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

#shipping_method label:not(.is-selected) {
  color: var(--uc-text-muted) !important;
  font-weight: 500 !important;
}

#shipping_method label.is-selected,
#shipping_method input[type="radio"]:checked + label,
.wc_payment_methods label.is-selected,
.wc_payment_methods input[type="radio"]:checked + label {
  font-weight: 600 !important;
  color: var(--uc-text-primary) !important;
}

.woocommerce-checkout #payment div.payment_box {
  margin-top: 0.65rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce input[type="checkbox"],
.woocommerce-page input[type="checkbox"],
.uc-cart-view input[type="checkbox"],
.uc-checkout-view input[type="checkbox"],
.uc-account-view input[type="checkbox"] {
  accent-color: var(--uc-bordeaux) !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  cursor: pointer !important;
}

/* 13.3 Clean Frontend My Account / Login Page (/mein-konto) Styling */
.woocommerce-account .woocommerce,
.uc-account-view .woocommerce {
  max-width: 980px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
}

.woocommerce-account form.login,
.woocommerce-account form.register,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  background-color: var(--uc-bg-secondary) !important;
  border: none !important;
  border-radius: var(--uc-radius-md) !important;
  padding: 2rem !important;
  box-shadow: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 0 1.5rem !important;
  padding: 1rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: var(--uc-radius-sm);
  color: var(--uc-text-primary) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background-color: var(--uc-bordeaux) !important;
  color: #FFFFFF !important;
}

/* 13.4 Global Sidebar Removal (Mobile, Tablet & Desktop) */
aside#sidebar,
.ct-sidebar,
#secondary,
.widget-area,
.ct-panel#woo-filters-panel,
.ct-toggle-filter-panel {
  display: none !important;
}

/* ==========================================================================
   14. Dedicated Tablet (768px–1024px) & Smartphone (max-width: 767px) Optimization (v1.9.0)
   (Desktop min-width: 1025px remains 100% untouched)
   ========================================================================== */

/* 14.1 Tablet Optimization (768px – 1024px): 2-Column Product Grid & Generous Touch Targets */
@media (min-width: 768px) and (max-width: 1024px) {
  .uc-placeholder-grid,
  .uc-wc-products-wrap ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  .uc-pillars-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.15rem !important;
  }

  .uc-btn,
  .uc-card-btn,
  .single_add_to_cart_button {
    min-height: 44px !important;
  }
}

/* 14.2 Smartphone Optimization (max-width: 767px) — Zero Horizontal Overflow */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .uc-site-header,
  .uc-homepage-storefront,
  .uc-shop-boutique-wrap,
  .uc-site-footer,
  .uc-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Mobile Top Bar: Keep ONLY [Hamburger] [Unicroma Logo] [Dark Mode Icon] [Cart Pill] */
  .uc-site-header .uc-header-inner .uc-lang-switcher,
  .uc-lang-switcher--header,
  .uc-instagram-btn--header,
  .uc-insta-header-btn {
    display: none !important;
  }

  .uc-mobile-drawer .uc-lang-switcher,
  .uc-lang-switcher--mobile {
    display: inline-flex !important;
  }

  .uc-header-inner {
    height: 60px !important;
    padding: 0 12px !important;
    gap: 0.4rem !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .uc-header-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    justify-content: center !important;
  }

  .uc-header-brand__icon {
    width: 28px !important;
    height: 28px !important;
    max-height: 28px !important;
    flex-shrink: 0 !important;
  }

  .uc-header-brand__wordmark {
    font-size: 1.15rem !important;
  }

  .uc-header-logo-link img {
    max-height: 28px !important;
  }

  .uc-header-actions {
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  .uc-theme-toggle--header {
    padding: 0.42rem 0.55rem !important;
  }

  .uc-cart-btn {
    padding: 0.38rem 0.65rem !important;
  }

  /* 1-Column Full-Width Smartphone Product Grid & Non-Overflowing Card Buttons */
  .uc-placeholder-grid,
  .uc-wc-products-wrap ul.products {
    grid-template-columns: 1fr !important;
    gap: 1.35rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .uc-product-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .uc-product-card__footer,
  .uc-card-footer {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .uc-btn,
  .uc-card-btn,
  .uc-modal-cta,
  .single_add_to_cart_button,
  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
  #place_order {
    min-height: 44px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .uc-card-btn,
  .uc-product-card__footer .uc-btn {
    white-space: normal !important;
    height: auto !important;
    padding: 0.55rem 1rem !important;
    text-align: center !important;
    line-height: 1.25 !important;
  }

  .uc-footer-grid,
  .uc-footer-links,
  .uc-instagram-pill-btn {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile Quick-View Modal: Sleek Bottom-Sheet / Scrollable Mobile Card */
  .uc-modal-backdrop {
    padding: 0.5rem !important;
    align-items: flex-end !important;
  }

  .uc-modal-dialog,
  .uc-modal-content {
    width: 94vw !important;
    max-width: 94vw !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 20px 16px !important;
    border-radius: 20px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .uc-modal-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .uc-modal-visual,
  .uc-modal-left-col {
    padding: 1.1rem 1rem !important;
  }

  .uc-modal-yarn-preview {
    width: 110px !important;
    height: 110px !important;
    margin-bottom: 0.65rem !important;
  }

  .uc-modal-emblem-svg {
    width: 56px !important;
  }

  .uc-modal-title,
  #uc-qv-title {
    font-size: 1.25rem !important;
  }

  .uc-modal-price,
  #uc-qv-price {
    font-size: 1.18rem !important;
  }

  /* Touch-Friendly 36x36px Bobbiny Color Swatches on Mobile */
  .uc-yarn-picker__swatches {
    max-height: 168px !important;
    gap: 0.45rem !important;
  }

  .uc-yarn-swatch-btn {
    width: 36px !important;
    height: 36px !important;
  }

  /* Mobile Cart & Checkout Full-Width Stacking */
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce {
    margin: 1.5rem auto 3rem !important;
    padding: 0 0.85rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .woocommerce-cart .cart-collaterals,
  .woocommerce-checkout-review-order {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem 1rem !important;
    box-sizing: border-box !important;
  }

  .woocommerce table.shop_table td {
    padding: 0.85rem 0.75rem !important;
  }
}





