/* ==========================================================================
   PÚRPURA ATELIER - BOUTIQUE DE PIJAMAS DE SEDA & SLEEPWEAR DE AUTOR
   Paleta: Púrpuras Reales, Lavanda Pastel, Satén Marfil y Acentos Oro
   ========================================================================== */

:root {
  --bg-body: #fdf9f7;
  --bg-card: #ffffff;
  --bg-soft: #fbf0ea;
  --bg-soft-hover: #f5e4dc;
  --bg-ivory: #fffdf9;
  
  --text-dark: #2a1e20;
  --text-medium: #594346;
  --text-muted: #8a7074;
  --text-light: #b59fa3;
  
  --brand-primary: #bd4258; /* Rosa Baya / Marsala Cálido */
  --brand-primary-hover: #a63348;
  --brand-primary-light: rgba(189, 66, 88, 0.08);
  --brand-peach: #f8d4c4; /* Satén Melocotón Champán */
  --brand-peach-soft: #fae4db;
  
  --pastel-peach: #fae4db;
  --pastel-peach-border: #f2dfd5;
  --pastel-cream-tint: #fdf9f7;
  --brand-gold: #b8865d; /* Bronce Cálido / Champán */
  --brand-gold-soft: #faebd7;
  
  --border-light: rgba(189, 66, 88, 0.16);
  --border-subtle: #f2dfd5;
  
  --shadow-sm: 0 2px 8px rgba(189, 66, 88, 0.05);
  --shadow-md: 0 8px 24px rgba(189, 66, 88, 0.08);
  --shadow-lg: 0 16px 40px rgba(189, 66, 88, 0.12);
  --shadow-drawer: 0 0 50px rgba(42, 30, 32, 0.25);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-body);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ==========================================================================
   TOP ANNOUNCEMENT RIBBON
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #fae6de 0%, #f6d2c3 50%, #faeae2 100%);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 20px;
}

.announcement-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.announcement-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.announcement-item .badge-tag {
  background: #ffffff;
  color: var(--brand-primary);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  border: 1px solid rgba(189, 66, 88, 0.2);
}

.announcement-extra {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.74rem;
  color: var(--text-medium);
}

/* ==========================================================================
   MAIN SITE HEADER
   ========================================================================== */
.main-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.menu-toggle-btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--brand-primary);
  line-height: 1.1;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.brand-title span.dot {
  color: var(--brand-gold);
  font-size: 1.8rem;
  line-height: 0;
}

.brand-tagline {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* Center: Search */
.header-search {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  transition: var(--transition);
}

.search-input-wrapper:focus-within {
  background: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.12);
}

.search-origin-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-right: 12px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  margin-right: 10px;
  font-weight: 500;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-dark);
  font-size: 0.86rem;
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-btn {
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: var(--transition);
}

.search-btn:hover {
  transform: scale(1.1);
}

/* Right: Navigation Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  color: var(--text-medium);
  transition: var(--transition);
  position: relative;
}

.action-icon-btn:hover {
  background: var(--bg-soft-hover);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.action-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(107, 33, 168, 0.35);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs-bar {
  max-width: 1280px;
  margin: 14px auto 0 auto;
  padding: 0 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-bar a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.breadcrumbs-bar span.sep {
  opacity: 0.5;
}

/* ==========================================================================
   PAGE CONTAINER & HERO BANNER
   ========================================================================== */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 80px 20px;
  overflow-x: hidden;
}

.category-hero-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
}

.hero-text-side {
  padding: 40px 36px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 0.92rem;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 24px;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dark);
  font-weight: 500;
}

.hero-badge-item svg {
  color: var(--brand-gold);
}

.hero-image-side {
  height: 100%;
  min-height: 320px;
  background: #faede6;
  position: relative;
  overflow: hidden;
}

.hero-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-hero-card:hover .hero-image-side img {
  transform: scale(1.03);
}

/* ==========================================================================
   CATEGORY FILTER TABS
   ========================================================================== */
.filter-tabs-wrapper {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.category-pills::-webkit-scrollbar {
  height: 4px;
}

.category-pills::-webkit-scrollbar-thumb {
  background: var(--brand-lilac);
  border-radius: var(--radius-full);
}

.pill-btn {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--text-medium);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: var(--transition);
}

.pill-btn:hover {
  background: var(--bg-soft);
  color: var(--brand-primary);
  border-color: var(--border-light);
}

.pill-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(107, 33, 168, 0.28);
}

.results-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRODUCTS GRID & CARDS
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--pastel-lilac-border);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  background: #fdf8ff;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-gold);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.card-badge.new {
  background: var(--brand-primary);
}

.card-action-btn {
  position: absolute;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.card-action-btn.fav-btn {
  right: 54px;
}

.card-action-btn.fav-btn:hover,
.card-action-btn.fav-btn.active {
  background: #ffffff;
  color: var(--brand-primary);
}

.card-action-btn.fav-btn.active svg {
  fill: var(--brand-primary);
}

.card-action-btn.cart-btn {
  right: 12px;
}

.card-action-btn.cart-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 8px;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-material {
  font-size: 0.75rem;
  color: var(--brand-primary);
  font-weight: 500;
  margin-bottom: 10px;
}

.color-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.color-dot.peach { background-color: #f8d4c4; }
.color-dot.rose { background-color: #bd4258; }
.color-dot.ivory { background-color: #fffdf9; }
.color-dot.champagne { background-color: #f7e7ce; }
.color-dot.bronze { background-color: #b8865d; }

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.card-price-group {
  display: flex;
  flex-direction: column;
}

.card-price-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.card-price-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.card-btn-view {
  background: var(--bg-soft);
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.card-btn-view:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

/* ==========================================================================
   PRODUCT DETAIL MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(32, 18, 36, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .detail-modal {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  color: var(--text-dark);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  padding: 32px;
}

/* Modal Gallery */
.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.main-preview-box {
  position: relative;
  width: 100%;
  height: 360px;
  background: #faf4fd;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.main-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-dark);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.gallery-nav-arrow:hover {
  background: #ffffff;
  color: var(--brand-primary);
}

.gallery-nav-arrow.prev { left: 10px; }
.gallery-nav-arrow.next { right: 10px; }

.modal-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-fav-btn.active svg {
  fill: var(--brand-primary);
  color: var(--brand-primary);
}

.thumbs-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-item {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

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

.thumb-item.active {
  border-color: var(--brand-primary);
}

/* Modal Info Side */
.modal-info-column {
  display: flex;
  flex-direction: column;
}

.modal-product-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 8px;
}

.modal-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-medium);
  margin-bottom: 12px;
}

.stars-gold {
  color: var(--brand-gold);
  letter-spacing: 2px;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0 16px 0;
}

.modal-price-current {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.modal-material-badge {
  background: var(--pastel-lavender);
  color: var(--brand-primary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.modal-desc-box {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 18px;
}

.size-selector-row {
  margin-bottom: 16px;
}

.size-selector-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: block;
}

.size-pills {
  display: flex;
  gap: 8px;
}

.size-pill-btn {
  width: 44px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.size-pill-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.personalization-box {
  margin-bottom: 18px;
}

.personalization-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}

.personalization-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  outline: none;
  font-size: 0.86rem;
  transition: var(--transition);
}

.personalization-input:focus {
  background: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.12);
}

.modal-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
}

.qty-val {
  width: 38px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-add-cart {
  flex: 1;
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(107, 33, 168, 0.28);
}

.btn-add-cart:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

.btn-buy-now {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-buy-now:hover {
  background: #1eb855;
}

/* ==========================================================================
   DRAWER: SHOPPING CART
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(32, 18, 36, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.slide-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  box-shadow: var(--shadow-drawer);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.open .slide-drawer {
  transform: translateX(0);
}

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

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-dark);
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.drawer-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item-card {
  display: flex;
  gap: 12px;
  background: var(--bg-soft);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.cart-item-thumb {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

.cart-item-meta {
  font-size: 0.72rem;
  color: var(--brand-primary);
  margin-top: 3px;
}

.cart-item-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
}

.drawer-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.btn-checkout-whatsapp {
  width: 100%;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   MENU DRAWER
   ========================================================================== */
.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: #ffffff;
  box-shadow: var(--shadow-drawer);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-drawer.open {
  transform: translateX(0);
}

.menu-nav-links {
  list-style: none;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.menu-nav-links a:hover {
  background: var(--bg-soft);
  color: var(--brand-primary);
}

/* ==========================================================================
   EMAIL CONCIERGE MODAL
   ========================================================================== */
.email-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.email-form-group {
  margin-bottom: 14px;
}

.email-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: block;
}

.email-form-group input,
.email-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  outline: none;
  font-size: 0.86rem;
}

.email-form-group input:focus,
.email-form-group textarea:focus {
  background: #ffffff;
  border-color: var(--brand-primary);
}

/* ==========================================================================
   TOAST NOTICE
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #201224;
  color: #ffffff;
  border: 1px solid var(--brand-lilac);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.floating-whatsapp-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: var(--transition);
}

.floating-whatsapp-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  margin-top: 40px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px 24px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--text-medium);
  line-height: 1.6;
  max-width: 380px;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (PROVEN ZERO-OVERFLOW SYSTEM)
   ========================================================================== */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .category-hero-card {
    grid-template-columns: 1fr;
  }
  .hero-image-side {
    height: 220px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .announcement-bar {
    padding: 6px 10px;
    font-size: 0.72rem;
  }
  .announcement-container {
    justify-content: center;
    gap: 6px;
  }
  .announcement-item {
    font-size: 0.72rem;
    justify-content: center;
    text-align: center;
  }
  .announcement-item .badge-tag {
    font-size: 0.65rem;
    padding: 1px 6px;
  }
  .announcement-extra {
    display: none;
  }

  .header-container {
    padding: 8px 12px;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
  }
  .header-left {
    gap: 8px;
    align-items: center;
    min-width: 0;
    flex: 1;
  }
  .menu-toggle-btn {
    padding: 8px;
    width: 38px;
    height: 38px;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-full);
  }
  .menu-btn-text {
    display: none;
  }
  .brand-wrapper {
    min-width: 0;
  }
  .brand-title {
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    line-height: 1;
  }
  .brand-title span.dot {
    font-size: 1.4rem;
  }
  .brand-tagline {
    font-size: 0.55rem;
    letter-spacing: 0.6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
  }
  .header-search {
    display: none;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .btn-header-contact {
    display: none !important;
  }
  .action-icon-btn {
    width: 36px;
    height: 36px;
  }
  .action-badge {
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    font-size: 0.62rem;
  }

  .breadcrumbs-bar {
    padding: 8px 12px 0 12px;
    font-size: 0.72rem;
    flex-wrap: wrap;
    gap: 4px;
    overflow: hidden;
  }

  .page-container {
    padding: 12px 12px 100px 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .category-hero-card {
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow: hidden;
  }
  .hero-text-side {
    padding: 18px 14px;
  }
  .hero-tag {
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 3px 8px;
    margin-bottom: 8px;
  }
  .hero-title {
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .hero-desc {
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .hero-badges-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
  }
  .hero-badge-item {
    font-size: 0.75rem;
    gap: 6px;
  }
  .hero-image-side {
    height: 190px;
    min-height: 190px;
  }

  .filter-tabs-wrapper {
    margin-bottom: 18px;
    gap: 10px;
  }
  .category-pills {
    gap: 8px;
    padding: 2px 2px 8px 2px;
    scrollbar-width: none;
  }
  .category-pills::-webkit-scrollbar {
    display: none;
  }
  .pill-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 0.78rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }
  .product-card {
    border-radius: var(--radius-sm);
  }
  .card-img-wrapper {
    height: 160px;
  }
  .card-badge {
    top: 6px;
    left: 6px;
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  .card-action-btn {
    width: 32px;
    height: 32px;
    top: 6px;
  }
  .card-action-btn.fav-btn {
    right: 42px;
  }
  .card-action-btn.cart-btn {
    right: 6px;
  }
  .card-body {
    padding: 10px 8px 12px 8px;
  }
  .card-title {
    font-size: 0.8rem;
    line-height: 1.3;
    min-height: 2.6em;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
  }
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .card-price-group {
    width: 100%;
  }
  .card-price-val {
    font-size: 1.05rem;
  }
  .card-btn-view {
    width: 100%;
    text-align: center;
    padding: 7px 0;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
  }

  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .detail-modal {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    margin: 0;
  }
  .modal-close-btn {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    padding: 16px 14px 28px 14px;
    gap: 16px;
  }
  .main-preview-box {
    height: 240px;
    border-radius: var(--radius-md);
  }
  .thumbs-row {
    gap: 6px;
  }
  .thumb-item {
    width: 48px;
    height: 48px;
  }
  .modal-product-title {
    font-size: 1.25rem;
  }
  .modal-actions-row {
    flex-direction: column;
    gap: 10px;
  }
  .qty-stepper {
    width: 100%;
    justify-content: center;
  }
  .btn-add-cart {
    width: 100%;
    padding: 13px;
    font-size: 0.92rem;
  }
  .btn-buy-now {
    width: 100%;
    padding: 11px;
    font-size: 0.86rem;
  }

  .slide-drawer {
    width: 100%;
    max-width: 100vw;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-container {
    padding: 28px 16px 80px 16px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .floating-whatsapp-bubble span.bubble-text {
    display: none;
  }
  .floating-whatsapp-bubble {
    width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
    bottom: 72px;
    right: 12px;
    border-radius: var(--radius-full);
  }

  .mobile-bottom-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  }
  .mobile-bottom-actions {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .mobile-bottom-btn {
    flex: 1;
    padding: 11px 0;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card-img-wrapper {
    height: 210px;
  }
}
