/* =====================================================
   Tiesha's Creative Corner — theme.css
   ===================================================== */

/* ---- CSS Variables (defaults; overridden by inline wp_add_inline_style) ---- */
:root {
  --color-primary:       #d4397a;
  --color-accent:        #299e8e;
  --color-background:    #fafafa;
  --color-foreground:    #1e1f26;
  --color-muted:         #7a7e90;
  --color-border:        #e0e2e8;
  --color-secondary-bg:  #eef5f4;
  --color-button-text:   #ffffff;
  --color-card-bg:       #ffffff;

  --font-display:        'Poppins', sans-serif;
  --font-body:           'Nunito', sans-serif;

  --shadow-soft:         0 4px 20px -4px rgba(212,57,122,0.08);
  --shadow-elevated:     0 8px 40px -8px rgba(212,57,122,0.15);

  --transition-smooth:   cubic-bezier(0.4,0,0.2,1);

  --radius:              0.625rem;
  --radius-xl:           1rem;
  --radius-2xl:          1.25rem;

  --container-padding:   1.5rem;
  --header-height:       80px;

  --btn-radius:          0.5rem;
  --btn-height:          44px;
  --btn-padding:         0 1.5rem;
  --btn-font-size:       0.875rem;
  --btn-font-weight:     600;
  --btn-letter-spacing:  0.04em;
  --btn-text-transform:  none;

  --logo-height:         65px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
img, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Container ---- */
.container-wide {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

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

/* ---- Buttons (Lovable: shadcn + btn-gradient-hover en hero / círculo + / checkout) ---- */
/* hover:bg-primary/90: solo el fondo, texto blanco íntegro; outline = hover:bg-accent (teal) */
.theme-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border: 1.5px solid transparent;
  border-radius: var(--btn-radius);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-transform: var(--btn-text-transform);
  cursor: pointer;
  transition: background-color 0.2s var(--transition-smooth), color 0.2s, border-color 0.2s, transform 0.2s var(--transition-smooth);
  text-decoration: none;
}
.theme-btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 90%, transparent);
  color: var(--color-button-text);
}
.theme-btn-primary:focus-visible,
.theme-btn-outline:focus-visible,
.theme-cta-banner__btn-primary:focus-visible,
.theme-cta-banner__btn-secondary:focus-visible,
.theme-cart-drawer__checkout-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.theme-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--color-foreground);
  border: 1.5px solid var(--color-border);
  border-radius: var(--btn-radius);
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  cursor: pointer;
  transition: background-color 0.2s var(--transition-smooth), color 0.2s, border-color 0.2s, transform 0.2s var(--transition-smooth);
  text-decoration: none;
}
.theme-btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-button-text);
  border-color: var(--color-accent);
}

/* Gradiente animado al hover (Lovable: .btn-gradient-hover) */
@keyframes btn-gradient-hover {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 100%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

.theme-hero__btns .theme-btn-primary,
.theme-hero__btns .theme-btn-outline {
  transition: all 0.4s var(--transition-smooth);
}
.theme-hero__btns .theme-btn-primary:hover,
.theme-hero__btns .theme-btn-outline:hover {
  background: linear-gradient(135deg,
    var(--color-primary),
    var(--color-accent),
    #e65a9c,
    #e0b44a,
    var(--color-primary)
  );
  background-size: 300% 300%;
  animation: btn-gradient-hover 4s ease-in-out infinite;
  color: #fff !important;
  border-color: transparent;
}

/* Escala y estilo fino: ver sección DUAL CARDS (Button size="sm" como Lovable) */

/* ---- Site Logo ---- */
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
  object-fit: contain;
  transition: height 0.3s var(--transition-smooth);
}
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-foreground);
  display: block;
  line-height: var(--logo-height);
}

/* ---- Section typography ---- */
.theme-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}
.theme-section-subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* =====================================================
   ANNOUNCEMENT BAR
   ===================================================== */
/* Fijado bajo la barra de admin de WordPress (la altura fina ajusta main.js) */
body.admin-bar .theme-announcement { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .theme-announcement { top: 46px; }
}

.theme-announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background-color: var(--color-primary);
  color: #fff;
  min-height: 36px;
}
.theme-announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding-block: 0.375rem;
  position: relative;
  padding-inline: 2.5rem;
}
.theme-announcement__text {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
}
.theme-announcement__close {
  position: absolute;
  right: 0.5rem;
  padding: 0.25rem;
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.theme-announcement__close:hover { opacity: 1; }
.theme-announcement.is-hidden { display: none; }

/* =====================================================
   HEADER
   ===================================================== */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s var(--transition-smooth);
  background: rgba(250,250,250,0.80);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(224,226,232,0.5);
}
.site-header.is-solid,
.site-header.is-scrolled {
  background: rgba(250,250,250,0.95);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-soft);
}
.site-header__nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}
@media (min-width: 1024px) {
  .site-header__nav { height: 80px; }
}

.site-header__left {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
}
.site-header__right {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
}
.site-header__logo {
  display: flex;
  align-items: center;
}
.site-header__logo-link {
  display: flex;
  align-items: center;
}

/* Hamburger */
.site-header__hamburger {
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.site-header__hamburger:hover { opacity: 0.6; }
@media (min-width: 1024px) {
  .site-header__hamburger { display: none; }
}

/* Desktop nav */
.site-header__desktop-nav { display: none; }
@media (min-width: 1024px) { .site-header__desktop-nav { display: flex; } }

.theme-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.theme-nav-list .menu-item a,
.theme-nav-list .theme-nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--color-foreground);
  text-transform: capitalize;
  text-decoration: none;
  position: relative;
  transition: opacity 0.2s;
  cursor: pointer;
}
.theme-nav-list .menu-item a:hover,
.theme-nav-list .theme-nav-link:hover { opacity: 0.6; }

/* Cart button */
.site-header__cart-btn {
  position: relative;
  padding: 0.5rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.site-header__cart-btn:hover { opacity: 0.6; }

.theme-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border-radius: 50%;
  font-family: var(--font-body);
}
.theme-cart-count:empty { display: none; }

/* Mobile menu */
.site-header__mobile-nav {
  border-top: 1px solid var(--color-border);
  padding-block: 1rem;
}
.theme-mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.theme-mobile-nav-list .menu-item a,
.theme-mobile-nav-list .theme-nav-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--color-foreground);
  text-transform: capitalize;
  padding-block: 0.5rem;
  transition: opacity 0.2s;
  cursor: pointer;
}
.theme-mobile-nav-list .menu-item a:hover,
.theme-mobile-nav-list .theme-nav-link:hover { opacity: 0.6; }

/* =====================================================
   HERO
   ===================================================== */
.theme-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (min-width: 768px) { .theme-hero { min-height: 55vh; } }

.theme-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--color-background) 0%,
    rgba(250,250,250,0.85) 50%,
    rgba(250,250,250,0.40) 100%
  );
}
.theme-hero__content {
  position: relative;
  z-index: 10;
  padding-top: 8rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .theme-hero__content {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }
}
.theme-hero__text { max-width: 36rem; }
.theme-hero__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}
.theme-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--color-foreground);
}
.theme-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: var(--color-muted);
  max-width: 28rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.theme-hero__btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .theme-hero__btns { flex-direction: row; }
}
.theme-hero__btn-shop,
.theme-hero__btn-custom {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 2rem;
}
.theme-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.theme-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(30,31,38,0.1);
  color: rgba(30,31,38,0.8);
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* =====================================================
   SERVICES
   ===================================================== */
.theme-services { padding-block: 2.5rem; }
@media (min-width: 768px) { .theme-services { padding-block: 3.5rem; } }
.theme-services__inner { text-align: center; }
.theme-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .theme-services__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}
.theme-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: center;
}
.theme-service-card__image-wrap {
  aspect-ratio: 3/4;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.theme-service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition-smooth);
  display: block;
}
.theme-service-card:hover .theme-service-card__image { transform: scale(1.05); }
.theme-service-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  display: block;
}
.theme-service-card__desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* =====================================================
   DUAL CARDS (About + Custom)
   ===================================================== */
.theme-dual-cards { padding-bottom: 2.5rem; }
@media (min-width: 768px) { .theme-dual-cards { padding-bottom: 3.5rem; } }
.theme-dual-cards__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .theme-dual-cards__inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.theme-info-card {
  border-radius: var(--radius-2xl);
  background-color: var(--color-secondary-bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 768px) { .theme-info-card { padding: 2.5rem; } }
.theme-info-card--primary { background-color: var(--color-secondary-bg); }
.theme-info-card__eyebrow {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.theme-info-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 0.75rem;
}
.theme-info-card__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Botones: shadcn size="sm" (h-9, rounded-md, px-3) + outline (bg-background, border, font-medium) */
.theme-info-card a.theme-info-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem; /* h-9 */
  height: 2.25rem;
  padding: 0 0.75rem;  /* px-3 */
  border-radius: 0.375rem; /* rounded-md */
  font-size: 0.875rem;  /* text-sm */
  font-weight: 500;     /* font-medium, no 600 de botones estándar */
  letter-spacing: 0.05em; /* tracking-wider en Lovable */
  line-height: 1.25;
  box-sizing: border-box;
  gap: 0.5rem; /* gap-2 */
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.2s var(--transition-smooth), background-color 0.2s, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.theme-info-card a.theme-info-card__btn svg {
  width: 0.875rem;  /* 3.5 = 14px, ArrowRight en Lovable */
  height: 0.875rem;
  flex-shrink: 0;
  pointer-events: none;
}
/* outline: border border-input bg-background; hover: bg-accent + text (shadcn: accent-foreground en WP = blanco legible sobre teal) */
.theme-info-card a.theme-info-card__btn.theme-btn-outline {
  background-color: var(--color-background);
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
}
/* Misma especificidad (0,3,1) que el estado base: si no, el fondo del :hover genérico pierde y no se ve el teal */
.theme-info-card a.theme-info-card__btn.theme-btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-button-text);
  border: 1px solid var(--color-accent);
}
/* primary: mismo tamaño "sm" que el default Button size="sm" (sin 44px) */
.theme-info-card a.theme-info-card__btn.theme-btn-primary {
  border: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: none;
  padding: 0 0.75rem;
}
/* motion: whileHover 1.03, whileTap 0.97 */
.theme-info-card a.theme-info-card__btn:hover { transform: scale(1.03); }
.theme-info-card a.theme-info-card__btn:active { transform: scale(0.97); }

/* =====================================================
   SHOP SECTION
   ===================================================== */
.theme-shop { padding-block: 2.5rem; }
@media (min-width: 768px) { .theme-shop { padding-block: 4rem; } }

/* Search */
.theme-shop__search-wrap {
  position: relative;
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.theme-shop__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  pointer-events: none;
  display: flex;
}
.theme-shop__search-input {
  width: 100%;
  height: 48px;
  padding: 0 1.25rem 0 3rem;
  border: 1.5px solid var(--color-border);
  border-radius: 9999px;
  background: var(--color-secondary-bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  transition: border-color 0.2s;
  outline: none;
}
.theme-shop__search-input::placeholder { color: var(--color-muted); }
.theme-shop__search-input:focus { border-color: var(--color-primary); }

/* Category tabs */
.theme-shop__categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}
.theme-shop__cat-btn {
  position: relative;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
}
.theme-shop__cat-btn.is-active { color: var(--color-foreground); }
.theme-shop__cat-btn:hover { color: var(--color-foreground); }
.theme-cat-active-bar {
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-foreground);
}

/* Price filter */
.theme-shop__price-filter-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.theme-shop__price-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.theme-shop__price-toggle-btn:hover { color: var(--color-foreground); }
.theme-shop__chevron { transition: transform 0.3s; }
.theme-shop__chevron.is-open { transform: rotate(180deg); }
.theme-shop__price-range-display { font-size: 0.875rem; opacity: 0.7; }

.theme-shop__price-filter {
  width: 100%;
  max-width: 24rem;
  padding: 0.5rem 0;
}

/* Price range slider — two-segment */
.price-range-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  height: 28px;
}
.range-track-fill {
  position: absolute;
  height: 4px;
  background: var(--color-primary);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  border-radius: 2px;
}
.range-segment {
  width: 50%;
  position: relative;
}
.range-segment input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: transparent;
  outline: none;
  cursor: pointer;
}
.range-segment--min input[type="range"] { direction: rtl; }
.range-segment--max input[type="range"] { direction: ltr; }

.range-segment input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
}
.range-segment input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  margin-top: -7px;
}
.range-segment input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: pointer;
}
.theme-shop__price-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Product grid */
.theme-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .theme-product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .theme-product-grid { grid-template-columns: repeat(4, 1fr); }
}

.theme-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card image — Lovable: aspect-square, overflow hidden, imágen en <a> absoluta bajo overlay y + */
.theme-product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: var(--color-secondary-bg);
  margin-bottom: 1rem;
  isolation: isolate;
}
a.theme-product-card__image-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}
a.theme-product-card__image-link img,
.theme-product-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--transition-smooth);
}
.group:hover .theme-product-card__image-wrapper img { transform: scale(1.06); }

/* Card overlay on hover */
.theme-product-card__hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(30,31,38,0);
  transition: background 0.5s;
  pointer-events: none;
}
.group:hover .theme-product-card__hover-overlay { background: rgba(30,31,38,0.05); }

/* Sold out badge */
.theme-product-card__sold-out {
  position: absolute;
  z-index: 4;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-foreground);
  color: var(--color-background);
  border-radius: 0.375rem;
}

/* Add to cart (Lovable: w-9 h-9, shadow-md, group-hover + opacity on md) */
a.theme-product-card__add-btn {
  position: absolute;
  z-index: 3;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-button-text);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--transition-smooth), opacity 0.3s, background 0.4s var(--transition-smooth);
}
@media (min-width: 768px) {
  a.theme-product-card__add-btn {
    bottom: 0.75rem;
    right: 0.75rem;
    opacity: 0;
  }
  .group:hover a.theme-product-card__add-btn { opacity: 1; }
}
a.theme-product-card__add-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg,
    var(--color-primary),
    var(--color-accent),
    #e65a9c,
    #e0b44a,
    var(--color-primary)
  );
  background-size: 300% 300%;
  animation: btn-gradient-hover 4s ease-in-out infinite;
  color: #fff !important;
}
a.theme-product-card__add-btn:active { transform: scale(0.92); }

/* Título y precio — mismo enlace a ficha (Lovable: bloque bajo la imagen) */
a.theme-product-card__info-link {
  display: block;
  flex: 1;
  text-decoration: none;
  color: inherit;
  line-height: 1.25;
}
.theme-product-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.group:hover .theme-product-card__name { color: var(--color-primary); }
.theme-product-card__price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  font-weight: 600;
  margin: 0;
}

/* Load more */
.theme-shop__load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}
.theme-shop__no-products {
  font-family: var(--font-body);
  color: var(--color-muted);
  text-align: center;
  padding: 5rem 0;
  grid-column: 1 / -1;
}

/* =====================================================
   MEET THE MAKER
   ===================================================== */
.theme-about { padding-block: 2.5rem; }
@media (min-width: 768px) { .theme-about { padding-block: 4rem; } }
.theme-about__inner { text-align: center; }
.theme-about__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 48rem;
  margin-inline: auto;
  border-radius: var(--radius-2xl);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  padding: 1.5rem 2rem;
}
@media (min-width: 768px) {
  .theme-about__card {
    flex-direction: row;
    text-align: left;
    padding: 2rem 2.5rem;
  }
}
.theme-about__photo-wrap { flex-shrink: 0; }
.theme-about__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(212,57,122,0.2);
}
@media (min-width: 768px) {
  .theme-about__photo { width: 128px; height: 128px; }
}
.theme-about__content { flex: 1; }
.theme-about__eyebrow {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.125rem;
}
.theme-about__name {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  margin-bottom: 0.5rem;
}
.theme-about__bio {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.theme-about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
@media (min-width: 768px) { .theme-about__tags { justify-content: flex-start; } }
.theme-about__tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--color-secondary-bg);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-foreground);
}

/* =====================================================
   PORTFOLIO
   ===================================================== */
.theme-portfolio { padding-block: 2.5rem; }
@media (min-width: 768px) { .theme-portfolio { padding-block: 4rem; } }
.theme-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) { .theme-portfolio__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .theme-portfolio__grid { grid-template-columns: repeat(4, 1fr); } }
.theme-portfolio__item {
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.theme-portfolio__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition-smooth);
  display: block;
}
.theme-portfolio__item:hover .theme-portfolio__image { transform: scale(1.05); }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.theme-testimonials { padding-block: 2.5rem; }
@media (min-width: 768px) { .theme-testimonials { padding-block: 4rem; } }
.theme-testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .theme-testimonials__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.theme-testimonial-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.theme-testimonial-card__stars {
  display: flex;
  gap: 0.25rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.theme-testimonial-card__stars svg { fill: var(--color-primary); }
.theme-testimonial-card__text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.theme-testimonial-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}

/* =====================================================
   CTA BANNER
   ===================================================== */
.theme-cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  margin-inline: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .theme-cta-banner { margin-inline: 2rem; } }
@media (min-width: 1024px) { .theme-cta-banner { margin-inline: 4rem; } }

.theme-cta-banner__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg,
    var(--color-primary),
    var(--color-accent),
    #FFD700,
    var(--color-primary),
    #FF6B8A,
    var(--color-accent)
  );
  background-size: 300% 300%;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.theme-cta-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  padding-block: 3rem;
}
@media (min-width: 768px) { .theme-cta-banner__content { padding-block: 4rem; } }
.theme-cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: #fff;
  margin-bottom: 0.75rem;
}
.theme-cta-banner__subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.theme-cta-banner__btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) { .theme-cta-banner__btns { flex-direction: row; justify-content: center; } }
.theme-cta-banner__btn-primary,
a.theme-cta-banner__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: #fff;
  color: var(--color-foreground);
  border: none;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s var(--transition-smooth), color 0.2s, transform 0.2s var(--transition-smooth);
  text-decoration: none;
  box-sizing: border-box;
}
/* Lovable: hover:bg-white/90 (solo el fondo, el texto se mantiene opaco) */
.theme-cta-banner__btn-primary:hover { background: rgba(255,255,255,0.9); color: var(--color-foreground); }
.theme-cta-banner__btn-secondary,
a.theme-cta-banner__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 2px solid #fff;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--transition-smooth), border-color 0.2s, color 0.2s, transform 0.2s var(--transition-smooth);
  text-decoration: none;
  box-sizing: border-box;
}
.theme-cta-banner__btn-secondary:hover { background: rgba(255,255,255,0.3); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
}
.site-footer .container-wide {
  padding-block: 3rem;
}
@media (min-width: 1024px) {
  .site-footer .container-wide { padding-block: 4rem; }
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
}
.site-footer__tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  font-style: italic;
  margin-top: 0.5rem;
}
.site-footer__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: 22rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}
.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.site-footer__nav-list,
.theme-footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}
.site-footer__nav-list li a,
.site-footer__nav-list li button,
.theme-footer-nav-list li a,
.theme-footer-nav-list li button,
.theme-footer-nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-transform: capitalize;
  transition: color 0.2s;
  text-decoration: none;
  text-align: left;
}
.site-footer__nav-list li a:hover,
.site-footer__nav-list li button:hover,
.theme-footer-nav-list li a:hover,
.theme-footer-nav-list li button:hover,
.theme-footer-nav-link:hover { color: var(--color-foreground); }

.site-footer__contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}
.site-footer__contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.site-footer__contact-list svg { flex-shrink: 0; }
.site-footer__contact-link {
  color: var(--color-muted);
  transition: color 0.2s;
  text-decoration: none;
}
.site-footer__contact-link:hover { color: var(--color-foreground); }
.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}
.site-footer__copy,
.site-footer__credit {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.site-footer__credit-link {
  color: var(--color-muted);
  text-decoration: underline;
  transition: color 0.2s;
}
.site-footer__credit-link:hover { color: var(--color-foreground); }
.site-footer__logo { width: 64px; height: 64px; object-fit: contain; }
.site-footer__logo-link { display: inline-block; }

/* =====================================================
   CONTACT MODAL
   ===================================================== */
.theme-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.theme-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,31,38,0.5);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.theme-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: var(--color-background);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  width: calc(100% - 2rem);
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: fadeIn 0.2s ease;
}
@media (min-width: 640px) { .theme-modal__content { padding: 2rem; } }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%,-50%) scale(0.95); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }

.theme-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.theme-modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.theme-modal__subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.theme-modal__close {
  padding: 0.25rem;
  color: var(--color-muted);
  transition: opacity 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.theme-modal__close:hover { opacity: 0.6; }
.theme-modal__email-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.theme-modal__email-link {
  color: var(--color-muted);
  transition: color 0.2s;
}
.theme-modal__email-link:hover { color: var(--color-foreground); }

/* Contact form */
.theme-contact-form { display: flex; flex-direction: column; gap: 1rem; }
.theme-contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .theme-contact-form__row { grid-template-columns: 1fr 1fr; } }
.theme-contact-form__field { display: flex; flex-direction: column; gap: 0.375rem; }
.theme-contact-form__label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
}
.theme-contact-form__input,
.theme-contact-form__textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--color-background);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.theme-contact-form__input::placeholder,
.theme-contact-form__textarea::placeholder { color: var(--color-muted); }
.theme-contact-form__input:focus,
.theme-contact-form__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(212,57,122,0.1);
}
.theme-contact-form__textarea { resize: none; }
.theme-contact-form__actions { display: flex; justify-content: flex-end; }

/* Modal success */
.theme-modal__success {
  text-align: center;
  padding-block: 2rem;
}
.theme-modal__success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1rem;
  color: #fff;
}
.theme-modal__success-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.theme-modal__success-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* =====================================================
   CART DRAWER
   ===================================================== */
#theme-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,31,38,0.2);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
body.cart-open #theme-cart-overlay {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

#theme-cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--color-background);
  z-index: 50;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--transition-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.theme-cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.theme-cart-drawer__close {
  padding: 0.25rem;
  color: var(--color-foreground);
  transition: opacity 0.2s;
}
.theme-cart-drawer__close:hover { opacity: 0.6; }

/* Empty state */
.theme-cart-drawer__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.theme-cart-drawer__empty svg {
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.theme-cart-drawer__empty p {
  font-family: var(--font-body);
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* Cart items */
.theme-cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.theme-cart-item {
  display: flex;
  gap: 1rem;
}
.theme-cart-item__img-wrap {
  width: 80px;
  height: 96px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-secondary-bg);
  display: block;
}
.theme-cart-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-cart-item__info { flex: 1; min-width: 0; }
.theme-cart-item__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-bottom: 0.125rem;
}
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}
.theme-cart-item__variation {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: 0.375rem;
}
.theme-cart-item__customization {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-foreground);
  margin: 0 0 0.5rem;
  max-width: 100%;
  word-break: break-word;
}
.theme-cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.theme-cart-item__qty-btn {
  padding: 0.25rem;
  border-radius: 0.25rem;
  color: var(--color-foreground);
  transition: background 0.2s;
}
.theme-cart-item__qty-btn:hover { background: var(--color-secondary-bg); }
.theme-cart-item__qty {
  font-family: var(--font-body);
  font-size: 0.875rem;
  min-width: 1.5rem;
  text-align: center;
  display: inline-block;
}
.theme-cart-item__remove {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
}
.theme-cart-item__remove:hover { color: var(--color-foreground); }

/* Cart footer */
.theme-cart-drawer__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.theme-cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.theme-cart-drawer__subtotal-label { color: var(--color-muted); }
.theme-cart-drawer__subtotal-value { font-weight: 500; }
.theme-cart-drawer__shipping {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.theme-cart-drawer__checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-button-text);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.4s var(--transition-smooth), color 0.2s, transform 0.2s;
  cursor: pointer;
}
/* Lovable CartDrawer: btn-gradient-hover en checkout */
.theme-cart-drawer__checkout-btn:hover {
  color: #fff;
  background: linear-gradient(135deg,
    var(--color-primary),
    var(--color-accent),
    #e65a9c,
    #e0b44a,
    var(--color-primary)
  );
  background-size: 300% 300%;
  animation: btn-gradient-hover 4s ease-in-out infinite;
  border-color: transparent;
}
.theme-cart-drawer__empty-cart-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--color-muted);
  border: 1.5px solid var(--color-border);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-cart-drawer__empty-cart-btn:hover { color: var(--color-foreground); border-color: var(--color-foreground); }

/* =====================================================
   WOOCOMMERCE SINGLE PRODUCT PAGE
   ===================================================== */
.single-product .site-main { padding-top: calc(var(--header-height) + 36px); }

.theme-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.theme-product-gallery,
.theme-product-info { min-width: 0; max-width: 100%; }

/* Product main image */
#product-main-img {
  aspect-ratio: 3/4;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--color-secondary-bg);
  margin-bottom: 1rem;
}
#product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnails */
.theme-product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.theme-thumbnail-btn {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s;
  cursor: pointer;
  padding: 0;
  background: none;
}
.theme-thumbnail-btn.is-active { border-color: var(--color-primary); opacity: 1; }
.theme-thumbnail-btn:hover { opacity: 1; }
.theme-thumbnail-btn img { width: 100%; height: 100%; object-fit: cover; }

.theme-product-photo-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-muted);
  font-style: italic;
  margin-top: 0.75rem;
}

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

.theme-product-category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.theme-product-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.theme-product-price {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.theme-product-stock-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.theme-product-stock-badge.sold-out {
  background: var(--color-foreground);
  color: var(--color-background);
}

/* Description */
.theme-product-description {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Variations — sizes */
.theme-product-variations { margin-bottom: 1.5rem; }
.theme-variations-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}
.theme-attr-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--color-foreground);
}
.theme-attr-btn.is-active { background: var(--color-primary); color: var(--color-button-text); border-color: var(--color-primary); }
.theme-attr-btn:hover { border-color: rgba(212,57,122,0.5); }
.theme-attr-select-hidden { display: none !important; }

/* Customization textarea */
.theme-customization-field { margin-bottom: 1.5rem; }
.theme-customization-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.theme-customization-label-text { flex: 1; min-width: 0; }
.theme-customization-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-foreground);
  background: var(--color-background);
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}
.theme-customization-textarea::placeholder { color: var(--color-muted); }
.theme-customization-textarea:focus { border-color: var(--color-primary); }
.theme-customization-counter {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  flex-shrink: 0;
}

/* Add to cart area */
.theme-add-to-cart-area {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.single-product .theme-add-to-cart-area { flex-wrap: wrap; gap: 0.75rem; }
.single-product form.cart.theme-add-to-cart-area .theme-customization-field,
.single-product .variations_form .theme-customization-field {
  flex: 1 1 100%;
  width: 100%;
  margin-bottom: 1rem;
}

/* Quantity */
.theme-quantity-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.theme-qty-minus,
.theme-qty-plus {
  padding: 0.75rem 1rem;
  font-family: inherit;
  color: var(--color-foreground);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
  line-height: 1;
}
.theme-qty-minus:hover,
.theme-qty-plus:hover { background: var(--color-secondary-bg); }
.theme-qty-input {
  padding: 0.75rem 1rem;
  min-width: 3rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-foreground);
  background: transparent;
  border: none;
  outline: none;
  width: 60px;
  -moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* WooCommerce add to cart button overrides */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border: none !important;
  border-radius: var(--btn-radius) !important;
  min-height: var(--btn-height) !important;
  padding: var(--btn-padding) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-body) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important;
  transition: background-color 0.2s var(--transition-smooth) !important;
  flex: 1 1 auto !important;
  min-width: 160px !important;
}
/* Misma lógica que shadcn hover:bg-primary/90, sin bajar opacidad del label */
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
  background-color: color-mix(in srgb, var(--color-primary) 90%, transparent) !important;
  color: var(--color-button-text) !important;
  opacity: 1 !important;
}
/* Grid de productos: el + sin clase .button de Woo, enlazar con selectores que cubran a.add_to_cart_button */
.theme-product-card .add_to_cart_button:hover,
.theme-related-products .add_to_cart_button:hover {
  background: linear-gradient(135deg,
    var(--color-primary),
    var(--color-accent),
    #e65a9c,
    #e0b44a,
    var(--color-primary)
  ) !important;
  background-size: 300% 300% !important;
  animation: btn-gradient-hover 4s ease-in-out infinite !important;
  color: #fff !important;
  opacity: 1 !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
  background-color: var(--color-primary) !important;
}
/* Hide "View cart" link after AJAX add */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* Card compact button override */
.theme-product-grid .add_to_cart_button.ajax_add_to_cart,
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
  min-height: unset !important;
  padding: 0 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  flex: none !important;
  min-width: unset !important;
}

/* Loading state */
.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

/* WC Notices — scoped hiding on single product */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* Product Details (short description) */
.theme-product-details { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.theme-product-details-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.theme-product-details-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; }
.theme-product-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.theme-product-details-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 0.5rem;
}

/* Back to shop */
.theme-back-to-shop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.theme-back-to-shop:hover { color: var(--color-foreground); }

/* Related products */
.theme-related-products { padding-block: 5rem; border-top: 1px solid var(--color-border); }
.theme-related-products-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
}
.theme-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .theme-related-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* Single product responsive */
.single-product .theme-product-thumbnails { flex-wrap: wrap; max-width: 100%; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

/* Variations table layout */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }

/* =====================================================
   WOOCOMMERCE ARCHIVE / SHOP
   ===================================================== */
.woocommerce-page .site-main { padding-top: calc(var(--header-height) + 36px); }

/* =====================================================
   PAGE (inner pages) 
   ===================================================== */
.theme-no-hero-main {
  padding-top: calc(var(--header-height) + 36px + 2rem);
  min-height: 60vh;
}
.theme-no-hero-main .container-wide { padding-block: 2.5rem; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
}
.entry-content { max-width: 100%; }

/* =====================================================
   404 PAGE
   ===================================================== */
.theme-404__inner { text-align: center; padding: 5rem 0; }
.theme-404__title {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.theme-404__subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* =====================================================
   THANK YOU PAGE
   ===================================================== */
body.theme-thankyou-page .site-main {
  padding-top: calc(var(--header-height) + 36px + 2rem);
  padding-bottom: 4rem;
}
body.theme-thankyou-page .woocommerce-order {
  font-family: var(--font-body);
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 0 0 1rem 0;
  color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  background: var(--color-secondary-bg);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
body.theme-thankyou-page .woocommerce-order-overview li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
}
body.theme-thankyou-page .woocommerce-order-overview strong { color: var(--color-foreground); }
body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page { overflow-x: hidden; }

/* =====================================================
   CHECKOUT
   ===================================================== */
body.woocommerce-checkout .site-main {
  padding-top: calc(var(--header-height) + 36px + 2rem);
  padding-bottom: 4rem;
}

body.woocommerce-checkout .wc-block-checkout { display: block; }

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
  }
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: var(--color-secondary-bg);
  border-radius: var(--radius-2xl);
  padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  color: var(--color-foreground) !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
  background-color: var(--color-background) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--color-primary) !important;
  color: var(--color-button-text) !important;
  border-radius: var(--btn-radius) !important;
  font-family: var(--font-body) !important;
  font-weight: var(--btn-font-weight) !important;
  transition: opacity 0.2s !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  opacity: 0.85 !important;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.4s var(--transition-smooth) forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================
   SCROLL MARGIN
   ===================================================== */
.scroll-mt-24 { scroll-margin-top: calc(var(--header-height) + 36px + 1rem); }
