/* ============================================================
   RENUCE — UI COMPONENTS (components.css)
   Every reusable UI element across the entire store.
   Load order: AFTER reset.css and typography.css
   Sections:
     1.  Buttons
     2.  Form Elements
     3.  Badges & Labels
     4.  Product Filter Tabs
     5.  Breadcrumbs
     6.  Pagination
     7.  Toast Notifications
     8.  Modal / Quick View
     9.  Skeleton Loaders
    10.  Quantity Controls
    11.  Star Ratings
    12.  Alert Messages
    13.  Spinner / Loader
    14.  Dividers
    15.  Section Headers
    16.  Trust Strip
    17.  Tags
    18.  Back to Top
    19.  WhatsApp Float
    20.  Announcement Bar
    21.  Newsletter Form
    22.  Coupon
    23.  Dropdown
    24.  Accordion
    25.  Size & Color Selectors
    26.  Progress Bar
    27.  Overlay Utilities
    28.  Responsive Overrides
   ============================================================ */


/* =====================================================
   1. BUTTONS
   Base class: .btn
   Variants: --primary | --outline | --outline-white |
             --ghost | --gold | --whatsapp |
             --hero-primary | --hero-ghost
   Sizes:    --sm | --lg | --icon | --full
   States:   :hover | :active | :disabled | .is-loading
===================================================== */

/* --- Base Button --- */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             var(--space-2);
  padding:         var(--btn-padding-y-md) var(--btn-padding-x-md);
  font-family:     var(--font-sans);
  font-size:       var(--btn-font-size-md);
  font-weight:     var(--btn-font-weight);
  letter-spacing:  var(--btn-letter-spacing);
  line-height:     1;
  text-align:      center;
  text-decoration: none;
  white-space:     nowrap;
  border:          1.5px solid transparent;
  border-radius:   var(--btn-radius);
  cursor:          pointer;
  transition:      background-color var(--duration-base) var(--ease-in-out),
                   color            var(--duration-base) var(--ease-in-out),
                   border-color     var(--duration-base) var(--ease-in-out),
                   box-shadow       var(--duration-base) var(--ease-in-out),
                   transform        var(--duration-fast) var(--ease-out);
  position:        relative;
  overflow:        hidden;
  user-select:     none;
  -webkit-user-select: none;
  vertical-align:  middle;
  text-transform:  none;
}

.btn:focus-visible {
  outline:        2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity:        0.55;
  cursor:         not-allowed;
  pointer-events: none;
}

/* SVG icons inside buttons */
.btn svg {
  flex-shrink:  0;
  width:        1em;
  height:       1em;
  transition:   transform var(--duration-base) var(--ease-out);
}

.btn:hover svg {
  transform: translateX(2px);
}

/* --- Primary Button --- */
.btn--primary {
  background-color: var(--btn-primary-bg);
  color:            var(--btn-primary-text);
  border-color:     var(--btn-primary-bg);
}

.btn--primary:hover:not(:disabled) {
  background-color: var(--btn-primary-bg-hover);
  border-color:     var(--btn-primary-bg-hover);
  color:            var(--btn-primary-text);
  box-shadow:       var(--shadow-md);
}

.btn--primary:active:not(:disabled) {
  background-color: var(--btn-primary-bg-active);
  border-color:     var(--btn-primary-bg-active);
  box-shadow:       none;
}

/* --- Outline Button --- */
.btn--outline {
  background-color: var(--btn-outline-bg);
  color:            var(--btn-outline-text);
  border-color:     var(--btn-outline-border);
}

.btn--outline:hover:not(:disabled) {
  background-color: var(--btn-outline-bg-hover);
  color:            var(--btn-outline-text-hover);
  border-color:     var(--btn-outline-bg-hover);
  box-shadow:       var(--shadow-md);
}

/* --- Outline White (for dark sections) --- */
.btn--outline-white {
  background-color: transparent;
  color:            var(--color-brand-white);
  border-color:     rgba(255, 255, 255, 0.50);
}

.btn--outline-white:hover:not(:disabled) {
  background-color: var(--color-brand-white);
  color:            var(--color-brand-black);
  border-color:     var(--color-brand-white);
  box-shadow:       var(--shadow-md);
}

/* --- Ghost Button (dark backgrounds) --- */
.btn--ghost {
  background-color: var(--btn-ghost-bg);
  color:            var(--btn-ghost-text);
  border-color:     var(--btn-ghost-border);
}

.btn--ghost:hover:not(:disabled) {
  background-color: var(--btn-ghost-bg-hover);
  color:            var(--btn-ghost-text);
  border-color:     rgba(255, 255, 255, 0.70);
}

/* --- Gold / Accent Button --- */
.btn--gold {
  background-color: var(--btn-gold-bg);
  color:            var(--btn-gold-text);
  border-color:     var(--btn-gold-bg);
}

.btn--gold:hover:not(:disabled) {
  background-color: var(--btn-gold-bg-hover);
  border-color:     var(--btn-gold-bg-hover);
  color:            var(--btn-gold-text);
  box-shadow:       var(--shadow-gold-sm);
}

/* --- WhatsApp Button --- */
.btn--whatsapp {
  background-color: var(--btn-wa-bg);
  color:            var(--btn-wa-text);
  border-color:     var(--btn-wa-bg);
}

.btn--whatsapp:hover:not(:disabled) {
  background-color: var(--btn-wa-bg-hover);
  border-color:     var(--btn-wa-bg-hover);
  color:            var(--btn-wa-text);
  box-shadow:       0 4px 16px rgba(37, 211, 102, 0.30);
}

.btn--whatsapp svg {
  flex-shrink: 0;
}

/* --- Hero Primary Button --- */
.btn--hero-primary {
  background-color: var(--color-brand-white);
  color:            var(--color-brand-black);
  border-color:     var(--color-brand-white);
  padding:          var(--btn-padding-y-lg) var(--btn-padding-x-lg);
  font-size:        var(--btn-font-size-lg);
}

.btn--hero-primary:hover:not(:disabled) {
  background-color: var(--color-brand-gold);
  border-color:     var(--color-brand-gold);
  color:            var(--color-brand-black);
  box-shadow:       var(--shadow-gold);
}

/* --- Hero Ghost Button --- */
.btn--hero-ghost {
  background-color: transparent;
  color:            var(--color-brand-white);
  border-color:     rgba(255, 255, 255, 0.55);
  padding:          var(--btn-padding-y-lg) var(--btn-padding-x-lg);
  font-size:        var(--btn-font-size-lg);
}

.btn--hero-ghost:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.12);
  border-color:     rgba(255, 255, 255, 0.80);
  color:            var(--color-brand-white);
}

/* --- Size Modifiers --- */
.btn--sm {
  padding:     var(--btn-padding-y-sm) var(--btn-padding-x-sm);
  font-size:   var(--btn-font-size-sm);
  gap:         var(--space-1-5);
}

.btn--lg {
  padding:     var(--btn-padding-y-lg) var(--btn-padding-x-lg);
  font-size:   var(--btn-font-size-lg);
}

/* Full-width button */
.btn--full {
  width: 100%;
}

/* Icon-only button */
.btn--icon {
  padding:       var(--space-2-5);
  aspect-ratio:  1 / 1;
  border-radius: var(--radius-md);
}

.btn--icon.btn--sm {
  padding: var(--space-2);
}

.btn--icon.btn--lg {
  padding: var(--space-3);
}

/* Icon no movement override */
.btn--icon svg,
.btn--icon:hover svg {
  transform: none;
}

/* --- Loading state --- */
.btn.is-loading {
  color:          transparent;
  pointer-events: none;
}

.btn.is-loading::after {
  content:      '';
  position:     absolute;
  top:          50%;
  left:         50%;
  width:        1.1em;
  height:       1.1em;
  border:       2px solid currentColor;
  border-color: rgba(255,255,255,0.4) rgba(255,255,255,0.4) rgba(255,255,255,0.4) #fff;
  border-radius: var(--radius-full);
  transform:    translate(-50%, -50%);
  animation:    btn-spin 0.65s linear infinite;
}

.btn--outline.is-loading::after,
.btn--outline-white.is-loading::after {
  border-color: rgba(10,10,10,0.2) rgba(10,10,10,0.2) rgba(10,10,10,0.2) #0A0A0A;
}

@keyframes btn-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}


/* =====================================================
   2. FORM ELEMENTS
   .form-group, .form-label, .form-input,
   .form-textarea, .form-select,
   .form-error, .form-hint,
   .form-check, .form-radio
===================================================== */

/* --- Form Group --- */
.form-group {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-1-5);
}

.form-group + .form-group {
  margin-top: var(--space-5);
}

/* --- Label --- */
.form-label {
  display:      block;
  font-size:    var(--text-sm);
  font-weight:  var(--weight-medium);
  color:        var(--input-label);
  line-height:  1.4;
  cursor:       pointer;
}

.form-label abbr[title] {
  color:           var(--color-error);
  text-decoration: none;
  margin-left:     2px;
}

/* --- Base Input / Textarea / Select --- */
.form-input,
.form-textarea,
.form-select {
  display:        block;
  width:          100%;
  padding:        var(--input-padding-y) var(--input-padding-x);
  font-family:    var(--font-sans);
  font-size:      var(--input-font-size);
  font-weight:    var(--weight-regular);
  color:          var(--input-text);
  background:     var(--input-bg);
  border:         1.5px solid var(--input-border);
  border-radius:  var(--input-radius);
  line-height:    var(--leading-normal);
  transition:     border-color var(--duration-base) var(--ease-in-out),
                  box-shadow   var(--duration-base) var(--ease-in-out),
                  background   var(--duration-base) var(--ease-in-out);
  -webkit-appearance: none;
  appearance:     none;
  outline:        none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color:   var(--input-placeholder);
  opacity: 1;
}

.form-input:hover:not(:disabled):not(.is-error),
.form-textarea:hover:not(:disabled):not(.is-error),
.form-select:hover:not(:disabled):not(.is-error) {
  border-color: var(--input-border-hover);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--input-border-focus);
  box-shadow:   var(--input-shadow-focus);
  background:   var(--input-bg-focus);
  outline:      none;
}

.form-input.is-error,
.form-textarea.is-error,
.form-select.is-error {
  border-color: var(--input-border-error);
  box-shadow:   0 0 0 3px rgba(220, 38, 38, 0.10);
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  background:    var(--color-gray-100);
  color:         var(--color-text-disabled);
  cursor:        not-allowed;
  border-color:  var(--color-gray-200);
}

/* --- Textarea specifics --- */
.form-textarea {
  resize:     vertical;
  min-height: 120px;
}

/* --- Select specifics --- */
.form-select {
  background-image:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:   no-repeat;
  background-position: right var(--space-3) center;
  background-size:     16px;
  padding-right:       var(--space-10);
  cursor:              pointer;
}

/* --- Input with icon/prefix --- */
.form-input-wrap {
  position: relative;
}

.form-input-wrap .form-input {
  padding-left: var(--space-10);
}

.form-input-wrap__icon {
  position:      absolute;
  left:          var(--space-3);
  top:           50%;
  transform:     translateY(-50%);
  color:         var(--color-text-muted);
  pointer-events: none;
  display:       flex;
  align-items:   center;
}

/* Suffix (e.g. unit label) */
.form-input-wrap--suffix .form-input {
  padding-right: var(--space-14);
}

.form-input-wrap__suffix {
  position:      absolute;
  right:         var(--space-3);
  top:           50%;
  transform:     translateY(-50%);
  color:         var(--color-text-muted);
  font-size:     var(--text-sm);
  pointer-events: none;
}

/* --- Error & Hint Messages --- */
.form-error {
  display:     flex;
  align-items: center;
  gap:         var(--space-1-5);
  font-size:   var(--text-xs);
  font-weight: var(--weight-medium);
  color:       var(--color-error);
  line-height: 1.4;
  min-height:  1rem;
}

.form-error::before {
  content:     '';
  display:     inline-block;
  width:       14px;
  height:      14px;
  background:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
}

.form-hint {
  font-size:  var(--text-xs);
  color:      var(--color-text-muted);
  line-height: 1.4;
}

/* --- Checkbox & Radio --- */
.form-check,
.form-radio {
  display:     flex;
  align-items: flex-start;
  gap:         var(--space-2-5);
  cursor:      pointer;
}

.form-check__input,
.form-radio__input {
  flex-shrink:    0;
  width:          18px;
  height:         18px;
  margin-top:     1px;
  border:         1.5px solid var(--input-border);
  background:     var(--input-bg);
  cursor:         pointer;
  transition:     border-color var(--duration-base) var(--ease-in-out),
                  background   var(--duration-base) var(--ease-in-out);
  appearance:     none;
  -webkit-appearance: none;
  position:       relative;
}

.form-check__input {
  border-radius: var(--radius-sm);
}

.form-radio__input {
  border-radius: var(--radius-full);
}

.form-check__input:checked,
.form-radio__input:checked {
  background:   var(--color-brand-black);
  border-color: var(--color-brand-black);
}

.form-check__input:checked::after {
  content:     '';
  position:    absolute;
  top:         3px;
  left:        5px;
  width:       6px;
  height:      10px;
  border:      2px solid #fff;
  border-top:  none;
  border-left: none;
  transform:   rotate(45deg);
}

.form-radio__input:checked::after {
  content:       '';
  position:      absolute;
  top:           50%;
  left:          50%;
  width:         8px;
  height:        8px;
  background:    #fff;
  border-radius: var(--radius-full);
  transform:     translate(-50%, -50%);
}

.form-check__input:hover:not(:checked):not(:disabled),
.form-radio__input:hover:not(:checked):not(:disabled) {
  border-color: var(--input-border-hover);
}

.form-check__input:focus-visible,
.form-radio__input:focus-visible {
  outline:        2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

.form-check__label,
.form-radio__label {
  font-size:    var(--text-sm);
  font-weight:  var(--weight-regular);
  color:        var(--color-text-secondary);
  line-height:  var(--leading-normal);
  user-select:  none;
  -webkit-user-select: none;
}

/* --- Input row (inline side by side) --- */
.form-row {
  display: grid;
  gap:     var(--space-4);
}

.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

/* --- Search Input specific --- */
.search-input-wrap {
  position:   relative;
  width:      100%;
}

.search-input-wrap .form-input {
  padding-left:  var(--space-10);
  padding-right: var(--space-10);
}

.search-input-wrap__icon {
  position:       absolute;
  left:           var(--space-3);
  top:            50%;
  transform:      translateY(-50%);
  color:          var(--color-text-muted);
  pointer-events: none;
}

.search-input-wrap__clear {
  position:      absolute;
  right:         var(--space-2);
  top:           50%;
  transform:     translateY(-50%);
  color:         var(--color-text-muted);
  padding:       var(--space-1-5);
  border-radius: var(--radius-full);
  transition:    var(--transition-colors);
}

.search-input-wrap__clear:hover {
  color:       var(--color-text-primary);
  background:  var(--color-gray-100);
}


/* =====================================================
   3. BADGES & LABELS
   Product badges: .badge--new | --sale | --featured | --sold
   General: .badge
===================================================== */

/* --- Base Badge --- */
.badge {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--space-1);
  padding:        0.2em 0.6em;
  font-family:    var(--font-sans);
  font-size:      var(--text-xs);
  font-weight:    var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height:    1;
  border-radius:  var(--radius-badge);
  white-space:    nowrap;
}

/* --- Product Badges --- */
.badge--new {
  background: var(--badge-new-bg);
  color:      var(--badge-new-text);
}

.badge--sale {
  background: var(--badge-sale-bg);
  color:      var(--badge-sale-text);
}

.badge--featured {
  background: var(--badge-featured-bg);
  color:      var(--badge-featured-text);
}

.badge--sold {
  background: var(--badge-sold-bg);
  color:      var(--badge-sold-text);
}

/* --- Status Badges --- */
.badge--success {
  background: var(--color-success-light);
  color:      var(--color-success-dark);
}

.badge--error {
  background: var(--color-error-light);
  color:      var(--color-error-dark);
}

.badge--warning {
  background: var(--color-warning-light);
  color:      var(--color-warning-dark);
}

.badge--info {
  background: var(--color-info-light);
  color:      var(--color-info-dark);
}

/* --- Pill shape variant --- */
.badge--pill {
  border-radius: var(--radius-full);
  padding:       0.2em 0.75em;
}

/* --- Large badge --- */
.badge--lg {
  font-size:  var(--text-sm);
  padding:    0.35em 0.875em;
}

/* --- Outline badge --- */
.badge--outline {
  background:   transparent;
  border:       1px solid currentColor;
}


/* =====================================================
   4. PRODUCT FILTER TABS
   .product-tabs (tablist), .product-tab (tab)
===================================================== */

.product-tabs {
  display:       flex;
  align-items:   center;
  gap:           var(--space-1);
  flex-wrap:     wrap;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.product-tab {
  display:        inline-flex;
  align-items:    center;
  padding:        var(--space-2) var(--space-4);
  font-family:    var(--font-sans);
  font-size:      var(--text-sm);
  font-weight:    var(--weight-medium);
  color:          var(--color-text-muted);
  background:     transparent;
  border:         1.5px solid transparent;
  border-radius:  var(--radius-full);
  cursor:         pointer;
  transition:     var(--transition-colors);
  letter-spacing: var(--tracking-wide);
  white-space:    nowrap;
  text-transform: none;
}

.product-tab:hover:not(.product-tab--active) {
  color:          var(--color-text-primary);
  background:     var(--color-gray-100);
}

.product-tab--active,
.product-tab[aria-selected="true"] {
  color:        var(--color-brand-white);
  background:   var(--color-brand-black);
  border-color: var(--color-brand-black);
}

.product-tab:focus-visible {
  outline:        2px solid var(--focus-ring-color);
  outline-offset: 2px;
}


/* =====================================================
   5. BREADCRUMBS
   .breadcrumb, .breadcrumb__list,
   .breadcrumb__item, .breadcrumb__link,
   .breadcrumb__current
===================================================== */

.breadcrumb {
  padding:    var(--space-4) 0;
}

.breadcrumb__list {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         var(--space-1-5);
  list-style:  none;
  margin:      0;
  padding:     0;
}

.breadcrumb__item {
  display:     flex;
  align-items: center;
  gap:         var(--space-1-5);
  font-size:   var(--text-sm);
}

/* Chevron divider between items */
.breadcrumb__item:not(:last-child)::after {
  content:     '';
  display:     inline-block;
  width:       12px;
  height:      12px;
  background:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4D4D4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
}

.breadcrumb__link {
  color:           var(--breadcrumb-text);
  text-decoration: none;
  transition:      color var(--duration-base) var(--ease-in-out);
  font-weight:     var(--weight-regular);
}

.breadcrumb__link:hover {
  color: var(--color-text-link-hover);
}

.breadcrumb__current {
  color:       var(--breadcrumb-active);
  font-weight: var(--weight-medium);
}

/* Home icon in breadcrumb */
.breadcrumb__home {
  display:     flex;
  align-items: center;
  color:       var(--breadcrumb-text);
  transition:  color var(--duration-base) var(--ease-in-out);
}

.breadcrumb__home:hover {
  color: var(--color-text-link-hover);
}


/* =====================================================
   6. PAGINATION
   .pagination, .pagination__list,
   .pagination__btn, .pagination__btn--active,
   .pagination__ellipsis
===================================================== */

.pagination {
  display:         flex;
  justify-content: center;
  margin-top:      var(--space-12);
}

.pagination__list {
  display:     flex;
  align-items: center;
  gap:         var(--space-1);
  list-style:  none;
  margin:      0;
  padding:     0;
}

.pagination__btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  min-width:       40px;
  height:          40px;
  padding:         0 var(--space-3);
  font-size:       var(--text-sm);
  font-weight:     var(--weight-medium);
  color:           var(--pagination-text);
  background:      var(--pagination-bg);
  border:          1.5px solid var(--pagination-border);
  border-radius:   var(--radius-md);
  cursor:          pointer;
  transition:      var(--transition-colors);
  text-decoration: none;
  line-height:     1;
  white-space:     nowrap;
}

.pagination__btn:hover:not(.pagination__btn--active):not(:disabled) {
  background:   var(--pagination-bg-hover);
  border-color: var(--color-border-medium);
  color:        var(--color-text-primary);
}

.pagination__btn--active {
  background:   var(--pagination-bg-active);
  color:        var(--pagination-text-active);
  border-color: var(--pagination-bg-active);
  pointer-events: none;
}

.pagination__btn:disabled {
  opacity:        0.45;
  pointer-events: none;
}

.pagination__btn:focus-visible {
  outline:        2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

/* Prev / Next arrows */
.pagination__btn--prev,
.pagination__btn--next {
  padding: 0 var(--space-3);
}

.pagination__btn--prev svg,
.pagination__btn--next svg {
  flex-shrink: 0;
}

.pagination__ellipsis {
  display:         flex;
  align-items:     center;
  justify-content: center;
  min-width:       40px;
  height:          40px;
  color:           var(--color-text-muted);
  font-size:       var(--text-sm);
  cursor:          default;
  letter-spacing:  0.1em;
}


/* =====================================================
   7. TOAST NOTIFICATIONS
   .toast-container, .toast,
   .toast--success | --error | --warning | --info
   Animated: slide in from right, auto-dismiss
===================================================== */

.toast-container {
  position:       fixed;
  bottom:         var(--space-6);
  right:          var(--space-6);
  z-index:        var(--z-toast);
  display:        flex;
  flex-direction: column;
  gap:            var(--space-3);
  pointer-events: none;
  width:          min(380px, calc(100vw - var(--space-8)));
}

.toast {
  display:        flex;
  align-items:    flex-start;
  gap:            var(--space-3);
  padding:        var(--space-4) var(--space-5);
  background:     var(--toast-bg-success);
  color:          var(--toast-text);
  border-radius:  var(--toast-radius);
  box-shadow:     var(--toast-shadow);
  pointer-events: auto;
  animation:      toast-in var(--duration-slow) var(--ease-bounce) forwards;
  will-change:    transform, opacity;
  position:       relative;
  overflow:       hidden;
}

.toast.is-dismissing {
  animation: toast-out var(--duration-base) var(--ease-in) forwards;
}

@keyframes toast-in {
  from {
    opacity:   0;
    transform: translateX(calc(100% + var(--space-6)));
  }
  to {
    opacity:   1;
    transform: translateX(0);
  }
}

@keyframes toast-out {
  from {
    opacity:   1;
    transform: translateX(0);
    max-height: 200px;
    margin-bottom: 0;
  }
  to {
    opacity:   0;
    transform: translateX(calc(100% + var(--space-6)));
    max-height: 0;
    margin-bottom: calc(var(--space-3) * -1);
    padding-top:    0;
    padding-bottom: 0;
  }
}

/* Toast variants */
.toast--success { background: var(--color-gray-900); }
.toast--error   { background: var(--color-error);    }
.toast--warning { background: var(--color-warning);  }
.toast--info    { background: var(--color-info);     }

/* Toast icon */
.toast__icon {
  flex-shrink: 0;
  width:       20px;
  height:      20px;
  margin-top:  1px;
}

/* Toast content */
.toast__body {
  flex: 1;
  min-width: 0;
}

.toast__title {
  font-size:    var(--text-sm);
  font-weight:  var(--weight-semibold);
  color:        var(--color-brand-white);
  line-height:  1.3;
  margin-bottom: var(--space-0-5);
}

.toast__message {
  font-size:   var(--text-xs);
  color:       rgba(255, 255, 255, 0.80);
  line-height: var(--leading-relaxed);
}

/* Toast close button */
.toast__close {
  flex-shrink: 0;
  display:     flex;
  align-items: center;
  padding:     var(--space-0-5);
  color:       rgba(255, 255, 255, 0.65);
  background:  none;
  border:      none;
  cursor:      pointer;
  border-radius: var(--radius-sm);
  transition:  color var(--duration-fast) var(--ease-in-out);
  margin-top:  -2px;
}

.toast__close:hover {
  color: rgba(255, 255, 255, 1);
}

/* Toast progress bar */
.toast__progress {
  position:     absolute;
  bottom:       0;
  left:         0;
  height:       3px;
  background:   rgba(255, 255, 255, 0.35);
  border-radius: 0 0 var(--toast-radius) var(--toast-radius);
  animation:    toast-progress linear forwards;
}

@keyframes toast-progress {
  from { width: 100%; }
  to   { width: 0%; }
}


/* =====================================================
   8. MODAL / QUICK VIEW
   .modal, .modal__backdrop, .modal__panel,
   .modal__close, .modal__header, .modal__body,
   .modal__footer
===================================================== */

.modal {
  position:  fixed;
  inset:     0;
  z-index:   var(--z-modal);
  display:   flex;
  align-items: center;
  justify-content: center;
  padding:   var(--space-4);
}

.modal[aria-hidden="true"] {
  display: none;
}

.modal__backdrop {
  position:   absolute;
  inset:      0;
  background: var(--color-bg-modal);
  animation:  fade-in var(--duration-slow) var(--ease-out);
  cursor:     pointer;
}

.modal__panel {
  position:        relative;
  background:      var(--color-bg-primary);
  border-radius:   var(--radius-modal);
  box-shadow:      var(--shadow-modal);
  width:           100%;
  max-width:       900px;
  max-height:      90vh;
  overflow-y:      auto;
  animation:       modal-in var(--duration-slow) var(--ease-bounce);
  z-index:         1;
  scroll-behavior: smooth;
}

.modal__panel::-webkit-scrollbar { width: 4px; }

@keyframes modal-in {
  from {
    opacity:   0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity:   1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal__close {
  position:      absolute;
  top:           var(--space-4);
  right:         var(--space-4);
  z-index:       2;
  display:       flex;
  align-items:   center;
  justify-content: center;
  width:         36px;
  height:        36px;
  background:    var(--color-bg-primary);
  border:        1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  color:         var(--color-text-muted);
  cursor:        pointer;
  transition:    var(--transition-base);
  box-shadow:    var(--shadow-sm);
}

.modal__close:hover {
  background:   var(--color-brand-black);
  border-color: var(--color-brand-black);
  color:        var(--color-brand-white);
  box-shadow:   var(--shadow-md);
}

.modal__header {
  padding:       var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.modal__title {
  font-family:  var(--font-serif);
  font-size:    var(--text-2xl);
  font-weight:  var(--weight-bold);
  color:        var(--color-text-primary);
  margin:       0;
  padding-right: var(--space-10);
}

.modal__body {
  padding: var(--space-6);
}

.modal__footer {
  padding:    var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  display:    flex;
  gap:        var(--space-3);
  justify-content: flex-end;
}

/* Quick View specific layout */
.modal--quick-view .modal__panel {
  max-width: 960px;
}

.modal--quick-view .modal__body {
  padding: 0;
}

/* Prevent page scroll when modal is open */
body.modal-open {
  overflow: hidden;
}


/* =====================================================
   9. SKELETON LOADERS
   .product-skeleton, .product-skeleton__img,
   .product-skeleton__body, .product-skeleton__line
   Uses shimmer animation
===================================================== */

@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.product-skeleton {
  background:    var(--skeleton-bg);
  border-radius: var(--radius-card);
  overflow:      hidden;
}

.product-skeleton__img {
  width:         100%;
  aspect-ratio:  var(--card-img-ratio);
  background:    linear-gradient(
                   90deg,
                   var(--skeleton-bg)    25%,
                   var(--skeleton-shine) 50%,
                   var(--skeleton-bg)    75%
                 );
  background-size: 200% 100%;
  animation:    skeleton-shimmer 1.5s infinite linear;
}

.product-skeleton__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap:     var(--space-2);
}

.product-skeleton__line {
  height:        12px;
  border-radius: var(--radius-sm);
  background:    linear-gradient(
                   90deg,
                   var(--skeleton-bg)    25%,
                   var(--skeleton-shine) 50%,
                   var(--skeleton-bg)    75%
                 );
  background-size: 200% 100%;
  animation:    skeleton-shimmer 1.5s infinite linear;
  animation-delay: 0.1s;
}

.product-skeleton__line--sm {
  width:           60%;
  height:          10px;
  animation-delay: 0.2s;
}

.product-skeleton__line--xs {
  width:           40%;
  height:          10px;
  animation-delay: 0.25s;
}

/* Generic skeleton line (for text/content areas) */
.skeleton-line {
  height:        12px;
  border-radius: var(--radius-sm);
  background:    linear-gradient(
                   90deg,
                   var(--skeleton-bg)    25%,
                   var(--skeleton-shine) 50%,
                   var(--skeleton-bg)    75%
                 );
  background-size: 200% 100%;
  animation:    skeleton-shimmer 1.5s infinite linear;
  margin-bottom: var(--space-2);
}

.skeleton-box {
  border-radius: var(--radius-md);
  background:    linear-gradient(
                   90deg,
                   var(--skeleton-bg)    25%,
                   var(--skeleton-shine) 50%,
                   var(--skeleton-bg)    75%
                 );
  background-size: 200% 100%;
  animation:    skeleton-shimmer 1.5s infinite linear;
}


/* =====================================================
   10. QUANTITY CONTROLS
   .quantity-control, .quantity-control__btn,
   .quantity-control__input
===================================================== */

.quantity-control {
  display:        inline-flex;
  align-items:    center;
  gap:            0;
  border:         1.5px solid var(--color-border-medium);
  border-radius:  var(--radius-md);
  overflow:       hidden;
  background:     var(--color-bg-primary);
  transition:     border-color var(--duration-base) var(--ease-in-out);
}

.quantity-control:hover,
.quantity-control:focus-within {
  border-color: var(--color-brand-black);
}

.quantity-control__btn {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           38px;
  height:          38px;
  background:      transparent;
  border:          none;
  color:           var(--color-text-secondary);
  cursor:          pointer;
  font-size:       var(--text-lg);
  font-weight:     var(--weight-light);
  line-height:     1;
  transition:      background var(--duration-fast) var(--ease-in-out),
                   color      var(--duration-fast) var(--ease-in-out);
  flex-shrink:     0;
  user-select:     none;
  -webkit-user-select: none;
}

.quantity-control__btn:hover:not(:disabled) {
  background: var(--color-gray-100);
  color:      var(--color-text-primary);
}

.quantity-control__btn:active:not(:disabled) {
  background: var(--color-gray-200);
}

.quantity-control__btn:disabled {
  color:          var(--color-text-disabled);
  cursor:         not-allowed;
  pointer-events: none;
}

.quantity-control__btn:focus-visible {
  outline:        2px solid var(--focus-ring-color);
  outline-offset: -2px;
}

.quantity-control__input {
  width:       44px;
  height:      38px;
  text-align:  center;
  font-size:   var(--text-base);
  font-weight: var(--weight-semibold);
  color:       var(--color-text-primary);
  background:  transparent;
  border:      none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  outline:     none;
  -moz-appearance:    textfield;
  appearance:         textfield;
  padding:     0;
  cursor:      default;
}

.quantity-control__input::-webkit-inner-spin-button,
.quantity-control__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Small variant */
.quantity-control--sm .quantity-control__btn {
  width:  32px;
  height: 32px;
}

.quantity-control--sm .quantity-control__input {
  width:     36px;
  height:    32px;
  font-size: var(--text-sm);
}


/* =====================================================
   11. STAR RATINGS
   .rating, .rating__stars, .rating__count,
   .rating__score
===================================================== */

.rating {
  display:     flex;
  align-items: center;
  gap:         var(--space-2);
}

.rating__stars {
  display: flex;
  gap:     2px;
}

.rating__stars svg {
  width:  16px;
  height: 16px;
  color:  var(--color-star);
  flex-shrink: 0;
}

.rating__stars svg.empty {
  color: var(--color-star-empty);
}

/* CSS-driven star fill for partial ratings */
.rating__stars .star-partial {
  position: relative;
  display:  inline-block;
}

.rating__stars .star-partial svg {
  position: absolute;
  top:      0;
  left:     0;
}

.rating__score {
  font-size:   var(--text-sm);
  font-weight: var(--weight-semibold);
  color:       var(--color-text-primary);
  line-height: 1;
}

.rating__count {
  font-size:   var(--text-xs);
  color:       var(--color-text-muted);
  line-height: 1;
}

.rating__count a {
  color:           var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 1px;
}

.rating__count a:hover {
  color: var(--color-text-primary);
}

/* Interactive star input (for review forms) */
.rating-input {
  display:   flex;
  gap:       var(--space-1);
  direction: rtl; /* Right-to-left so hover works via CSS */
}

.rating-input input {
  display:  none;
}

.rating-input label {
  cursor:     pointer;
  font-size:  1.75rem;
  color:      var(--color-star-empty);
  transition: color var(--duration-fast) var(--ease-in-out);
}

.rating-input label::before {
  content: '★';
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
  color: var(--color-star);
}


/* =====================================================
   12. ALERT MESSAGES
   .alert, .alert--success | --error | --warning | --info
===================================================== */

.alert {
  display:       flex;
  align-items:   flex-start;
  gap:           var(--space-3);
  padding:       var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border:        1px solid transparent;
  font-size:     var(--text-sm);
  line-height:   var(--leading-relaxed);
}

.alert__icon {
  flex-shrink:  0;
  width:        20px;
  height:       20px;
  margin-top:   1px;
}

.alert__body {
  flex: 1;
  min-width: 0;
}

.alert__title {
  font-weight:   var(--weight-semibold);
  margin-bottom: var(--space-1);
  font-size:     var(--text-sm);
}

.alert__message {
  color: inherit;
  opacity: 0.85;
}

.alert--success {
  background:   var(--color-success-light);
  border-color: #86EFAC;
  color:        var(--color-success-dark);
}

.alert--error {
  background:   var(--color-error-light);
  border-color: #FCA5A5;
  color:        var(--color-error-dark);
}

.alert--warning {
  background:   var(--color-warning-light);
  border-color: #FCD34D;
  color:        var(--color-warning-dark);
}

.alert--info {
  background:   var(--color-info-light);
  border-color: #93C5FD;
  color:        var(--color-info-dark);
}

/* Dismissible alert */
.alert__close {
  flex-shrink: 0;
  cursor:      pointer;
  opacity:     0.60;
  transition:  opacity var(--duration-fast) var(--ease-in-out);
  margin-top:  -1px;
}

.alert__close:hover {
  opacity: 1;
}


/* =====================================================
   13. SPINNER / LOADER
   .spinner, .spinner--sm, .spinner--lg
   .page-loader (full-page overlay)
===================================================== */

.spinner {
  display:       inline-block;
  width:         24px;
  height:        24px;
  border:        2.5px solid var(--color-border-medium);
  border-top-color: var(--color-brand-black);
  border-radius: var(--radius-full);
  animation:     spin 0.7s linear infinite;
  flex-shrink:   0;
}

.spinner--sm {
  width:        16px;
  height:       16px;
  border-width: 2px;
}

.spinner--lg {
  width:        36px;
  height:       36px;
  border-width: 3px;
}

.spinner--gold {
  border-top-color: var(--color-brand-gold);
}

.spinner--white {
  border-color:     rgba(255,255,255,0.30);
  border-top-color: var(--color-brand-white);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Page loader overlay */
.page-loader {
  position:        fixed;
  inset:           0;
  z-index:         var(--z-max);
  background:      var(--color-bg-primary);
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             var(--space-4);
  transition:      opacity var(--duration-slow) var(--ease-out);
}

.page-loader.is-hidden {
  opacity:        0;
  pointer-events: none;
}

.page-loader__brand {
  font-family:    var(--font-serif);
  font-size:      var(--text-2xl);
  font-weight:    var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  color:          var(--color-text-primary);
  text-transform: uppercase;
}

/* Dots loader */
.loader-dots {
  display: flex;
  gap:     var(--space-1-5);
}

.loader-dots span {
  width:         8px;
  height:        8px;
  border-radius: var(--radius-full);
  background:    var(--color-brand-gold);
  animation:     dots-bounce 1.2s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.30s; }

@keyframes dots-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1;   }
}


/* =====================================================
   14. DIVIDERS
   .divider, .divider--text, .divider--gold
===================================================== */

.divider {
  width:         100%;
  height:        1px;
  background:    var(--color-border);
  border:        none;
  margin:        var(--space-6) 0;
}

.divider--dashed {
  background:    none;
  border-bottom: 1px dashed var(--color-border);
}

.divider--gold {
  height:     2px;
  background: linear-gradient(
                90deg,
                transparent,
                var(--color-brand-gold),
                transparent
              );
  border:     none;
}

/* Divider with centered text label */
.divider--text {
  display:     flex;
  align-items: center;
  gap:         var(--space-4);
  font-size:   var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color:       var(--color-text-muted);
}

.divider--text::before,
.divider--text::after {
  content:   '';
  flex:      1;
  height:    1px;
  background: var(--color-border);
}

/* Or divider (checkout forms) */
.cart-sidebar__or,
.checkout__or {
  display:     flex;
  align-items: center;
  gap:         var(--space-3);
  font-size:   var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color:       var(--color-text-muted);
  margin:      var(--space-3) 0;
}

.cart-sidebar__or::before,
.cart-sidebar__or::after,
.checkout__or::before,
.checkout__or::after {
  content:    '';
  flex:       1;
  height:     1px;
  background: var(--color-border);
}


/* =====================================================
   15. SECTION HEADERS
   .section-header, .section-header--inline,
   .section-header--center
===================================================== */

.section-header {
  margin-bottom: var(--section-header-mb);
}

/* Two-column: text left, link/btn right */
.section-header--inline {
  display:         flex;
  align-items:     flex-end;
  justify-content: space-between;
  gap:             var(--space-4);
  flex-wrap:       wrap;
  margin-bottom:   var(--space-8);
}

.section-header--inline > div {
  flex: 1;
  min-width: 0;
}

/* Centered headers (testimonials, newsletter) */
.section-header--center {
  text-align: center;
  display:    flex;
  flex-direction: column;
  align-items: center;
}

/* Space between eyebrow → title → desc */
.section-header .section-eyebrow {
  margin-bottom: var(--space-2);
}

.section-header .section-title {
  margin-bottom: 0;
}

.section-header .section-desc {
  margin-top: var(--space-4);
}


/* =====================================================
   16. TRUST STRIP
   .trust-strip, .trust-strip__list,
   .trust-strip__item, .trust-strip__icon,
   .trust-strip__body
===================================================== */

.trust-strip {
  background:  var(--trust-strip-bg);
  border-top:  1px solid var(--trust-strip-border);
  border-bottom: 1px solid var(--trust-strip-border);
  padding:     var(--space-5) 0;
}

.trust-strip__list {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--space-4);
  flex-wrap:       wrap;
  list-style:      none;
  margin:          0;
  padding:         0;
}

.trust-strip__item {
  display:     flex;
  align-items: center;
  gap:         var(--space-3);
  flex:        1;
  min-width:   160px;
}

.trust-strip__icon {
  flex-shrink:     0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           44px;
  height:          44px;
  background:      rgba(201, 169, 110, 0.10);
  border-radius:   var(--radius-full);
  color:           var(--color-brand-gold);
}

.trust-strip__body {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-0-5);
}


/* =====================================================
   17. TAGS
   .search-tag (trending search pills)
   .search-cat-link (category browse links)
===================================================== */

.search-tag {
  display:        inline-flex;
  align-items:    center;
  padding:        var(--space-1-5) var(--space-3);
  font-size:      var(--text-sm);
  font-weight:    var(--weight-medium);
  color:          var(--search-tag-text);
  background:     var(--search-tag-bg);
  border:         1px solid var(--color-border);
  border-radius:  var(--radius-full);
  text-decoration: none;
  transition:     background var(--duration-base) var(--ease-in-out),
                  color      var(--duration-base) var(--ease-in-out),
                  border-color var(--duration-base) var(--ease-in-out);
  cursor:         pointer;
  white-space:    nowrap;
}

.search-tag:hover {
  background:   var(--search-tag-bg-hover);
  color:        var(--search-tag-text-hover);
  border-color: var(--search-tag-bg-hover);
}

.search-cat-link {
  display:        block;
  padding:        var(--space-2) var(--space-3);
  font-size:      var(--text-sm);
  font-weight:    var(--weight-medium);
  color:          var(--color-text-secondary);
  text-decoration: none;
  border-radius:  var(--radius-md);
  transition:     background var(--duration-fast) var(--ease-in-out),
                  color      var(--duration-fast) var(--ease-in-out);
}

.search-cat-link:hover {
  background: var(--color-gray-100);
  color:      var(--color-text-primary);
}

/* Generic filter tag */
.filter-tag {
  display:         inline-flex;
  align-items:     center;
  gap:             var(--space-1-5);
  padding:         var(--space-1-5) var(--space-3);
  font-size:       var(--text-xs);
  font-weight:     var(--weight-medium);
  color:           var(--color-text-primary);
  background:      var(--color-bg-secondary);
  border:          1px solid var(--color-border-medium);
  border-radius:   var(--radius-full);
  cursor:          pointer;
  text-decoration: none;
  transition:      var(--transition-colors);
  white-space:     nowrap;
}

.filter-tag__remove {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           14px;
  height:          14px;
  border-radius:   var(--radius-full);
  background:      var(--color-gray-300);
  color:           var(--color-gray-700);
  font-size:       10px;
  line-height:     1;
  transition:      background var(--duration-fast) var(--ease-in-out);
}

.filter-tag:hover .filter-tag__remove {
  background: var(--color-brand-black);
  color:      #fff;
}


/* =====================================================
   18. BACK TO TOP BUTTON
   .back-to-top
===================================================== */

.back-to-top {
  position:        fixed;
  bottom:          var(--space-6);
  left:            var(--space-6);
  z-index:         var(--z-raised);
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           var(--back-top-size);
  height:          var(--back-top-size);
  background:      var(--back-top-bg);
  color:           var(--back-top-text);
  border:          none;
  border-radius:   var(--radius-full);
  cursor:          pointer;
  box-shadow:      var(--shadow-lg);
  transition:      background      var(--duration-base) var(--ease-in-out),
                   box-shadow      var(--duration-base) var(--ease-in-out),
                   transform       var(--duration-base) var(--ease-bounce),
                   opacity         var(--duration-base) var(--ease-in-out);
  opacity:         0;
  transform:       translateY(12px);
}

.back-to-top:not([hidden]) {
  opacity:   1;
  transform: translateY(0);
}

.back-to-top:hover {
  background:  var(--back-top-bg-hover);
  box-shadow:  var(--shadow-gold-sm);
  transform:   translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

.back-to-top:focus-visible {
  outline:        2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

.back-to-top svg {
  flex-shrink: 0;
}


/* =====================================================
   19. WHATSAPP FLOAT BUTTON
   .wa-float, .wa-float__btn, .wa-float__icon,
   .wa-float__tooltip, .wa-float__ring
===================================================== */

.wa-float {
  position: fixed;
  bottom:   var(--space-6);
  right:    var(--space-6);
  z-index:  var(--z-raised);
}

.wa-float__btn {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           var(--wa-float-size);
  height:          var(--wa-float-size);
  background:      var(--wa-float-bg);
  border-radius:   var(--radius-full);
  color:           #fff;
  text-decoration: none;
  box-shadow:      var(--wa-float-shadow);
  transition:      background   var(--duration-base) var(--ease-in-out),
                   transform    var(--duration-base) var(--ease-bounce),
                   box-shadow   var(--duration-base) var(--ease-in-out);
  position:        relative;
}

.wa-float__btn:hover {
  background:  var(--wa-float-bg-hover);
  transform:   scale(1.08);
  box-shadow:  0 12px 32px rgba(37, 211, 102, 0.45);
}

.wa-float__btn:hover .wa-float__tooltip {
  opacity:   1;
  transform: translateX(0) translateY(-50%);
}

.wa-float__icon {
  flex-shrink: 0;
}

/* Tooltip that slides in */
.wa-float__tooltip {
  position:    absolute;
  right:       calc(100% + var(--space-3));
  top:         50%;
  transform:   translateX(8px) translateY(-50%);
  background:  var(--color-gray-900);
  color:       var(--color-brand-white);
  padding:     var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size:   var(--text-xs);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  opacity:     0;
  transition:  opacity   var(--duration-base) var(--ease-in-out),
               transform var(--duration-base) var(--ease-out);
  pointer-events: none;
}

.wa-float__tooltip::after {
  content:      '';
  position:     absolute;
  top:          50%;
  right:        -5px;
  transform:    translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--color-gray-900);
}

/* Pulsing ring around button */
.wa-float__ring {
  position:      absolute;
  inset:         -4px;
  border-radius: var(--radius-full);
  background:    transparent;
  border:        2px solid var(--wa-float-bg);
  animation:     wa-ring 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes wa-ring {
  0%   { opacity: 0.6; transform: scale(1);   }
  70%  { opacity: 0;   transform: scale(1.4); }
  100% { opacity: 0;   transform: scale(1.4); }
}


/* =====================================================
   20. ANNOUNCEMENT BAR
   .announcement-bar, .announcement-bar__track,
   .announcement-bar__slider, .announcement-bar__item,
   .announcement-bar__close, .announcement-bar__link
===================================================== */

.announcement-bar {
  position:   relative;
  width:      100%;
  height:     var(--announcement-bar-height);
  background: var(--announcement-bar-bg);
  overflow:   hidden;
  z-index:    var(--z-header);
}

.announcement-bar__track {
  height: 100%;
}

.announcement-bar__slider {
  height: 100%;
}

.announcement-bar__item {
  position:        absolute;
  inset:           0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             var(--space-3);
  padding:         0 var(--space-10);
  opacity:         0;
  transition:      opacity var(--duration-slow) var(--ease-in-out);
  pointer-events:  none;
}

.announcement-bar__item--active {
  opacity:        1;
  pointer-events: auto;
}

.announcement-bar__item svg {
  flex-shrink: 0;
  color:       rgba(255, 255, 255, 0.70);
}

.announcement-bar__divider {
  color:   rgba(255, 255, 255, 0.30);
  font-size: var(--text-xs);
}

.announcement-bar__link {
  font-size:      var(--text-xs);
  font-weight:    var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color:          var(--announcement-bar-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space:    nowrap;
  transition:     opacity var(--duration-fast) var(--ease-in-out);
}

.announcement-bar__link:hover {
  opacity: 0.80;
}

/* Close button */
.announcement-bar__close {
  position:      absolute;
  right:         var(--space-3);
  top:           50%;
  transform:     translateY(-50%);
  display:       flex;
  align-items:   center;
  justify-content: center;
  width:         28px;
  height:        28px;
  color:         rgba(255, 255, 255, 0.55);
  background:    none;
  border:        none;
  border-radius: var(--radius-full);
  cursor:        pointer;
  transition:    color       var(--duration-fast) var(--ease-in-out),
                 background  var(--duration-fast) var(--ease-in-out);
  padding:       0;
}

.announcement-bar__close:hover {
  color:      rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.10);
}

.announcement-bar__close:focus-visible {
  outline:        2px solid var(--color-brand-gold);
  outline-offset: 2px;
}


/* =====================================================
   21. NEWSLETTER FORM COMPONENTS
   (section wrapper in home.css; here: inner form parts)
   .newsletter-form, .newsletter-form__group,
   .newsletter-form__label, .newsletter-form__input,
   .newsletter-form__error, .newsletter-form__success
===================================================== */

.newsletter-form {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-4);
}

.newsletter-form__group {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-1-5);
}

.newsletter-form__label {
  font-size:    var(--text-sm);
  font-weight:  var(--weight-medium);
  color:        rgba(255, 255, 255, 0.75);
}

.newsletter-form__label abbr {
  color:           var(--color-brand-gold);
  text-decoration: none;
  margin-left:     2px;
}

.newsletter-form__input {
  display:        block;
  width:          100%;
  padding:        0.7rem 1rem;
  font-family:    var(--font-sans);
  font-size:      var(--text-base);
  color:          var(--color-text-primary);
  background:     var(--color-brand-white);
  border:         1.5px solid transparent;
  border-radius:  var(--radius-input);
  outline:        none;
  transition:     border-color var(--duration-base) var(--ease-in-out),
                  box-shadow   var(--duration-base) var(--ease-in-out);
  -webkit-appearance: none;
  appearance:     none;
}

.newsletter-form__input::placeholder {
  color:   var(--color-text-muted);
  opacity: 1;
}

.newsletter-form__input:focus {
  border-color: var(--color-brand-gold);
  box-shadow:   0 0 0 3px rgba(201, 169, 110, 0.20);
}

.newsletter-form__input.is-error {
  border-color: var(--color-error);
}

.newsletter-form__error {
  font-size:  var(--text-xs);
  color:      #FCA5A5;
  min-height: 1rem;
}

.newsletter-form__btn-label,
.newsletter-form__spinner {
  transition: opacity var(--duration-fast) var(--ease-in-out);
}

.newsletter-form__btn-icon {
  flex-shrink: 0;
  transition:  transform var(--duration-base) var(--ease-out);
}

.newsletter-form .btn--primary:hover .newsletter-form__btn-icon {
  transform: translateX(3px);
}

.newsletter-form__disclaimer {
  font-size:  var(--text-xs);
  color:      rgba(255, 255, 255, 0.45);
  text-align: center;
  line-height: var(--leading-relaxed);
}

.newsletter-form__disclaimer a {
  color:           rgba(255, 255, 255, 0.60);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.newsletter-form__disclaimer a:hover {
  color: var(--color-brand-gold);
}

/* Success state */
.newsletter-form__success {
  text-align:     center;
  padding:        var(--space-10) var(--space-6);
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            var(--space-4);
  animation:      fade-in var(--duration-slow) var(--ease-out);
}

.newsletter-form__success svg {
  color: var(--color-brand-gold);
}

.newsletter-form__success h3 {
  font-family:  var(--font-serif);
  font-size:    var(--text-2xl);
  font-weight:  var(--weight-bold);
  color:        var(--color-brand-white);
  margin:       0;
}

.newsletter-form__success p {
  font-size:  var(--text-sm);
  color:      rgba(255, 255, 255, 0.70);
  max-width:  300px;
}

.newsletter-section__eyebrow {
  color: var(--color-brand-gold);
}


/* =====================================================
   22. COUPON COMPONENTS
   Inside cart sidebar — toggle, input, message
===================================================== */

.cart-sidebar__coupon {
  padding:       var(--space-4) 0;
  border-bottom: 1px solid var(--cart-border);
}

.cart-sidebar__coupon-toggle {
  display:         flex;
  align-items:     center;
  gap:             var(--space-2);
  width:           100%;
  background:      none;
  border:          none;
  cursor:          pointer;
  font-size:       var(--text-sm);
  font-weight:     var(--weight-medium);
  color:           var(--color-text-secondary);
  text-align:      left;
  padding:         0;
  transition:      color var(--duration-fast) var(--ease-in-out);
}

.cart-sidebar__coupon-toggle:hover {
  color: var(--color-text-primary);
}

.coupon-toggle__chevron {
  margin-left:  auto;
  transition:   transform var(--duration-base) var(--ease-in-out);
  flex-shrink:  0;
}

.cart-sidebar__coupon-toggle[aria-expanded="true"] .coupon-toggle__chevron {
  transform: rotate(180deg);
}

.cart-sidebar__coupon-form {
  padding-top: var(--space-3);
  animation:   fade-in var(--duration-base) var(--ease-out);
}

.coupon-input-wrap {
  display:     flex;
  gap:         var(--space-2);
}

.coupon-input {
  flex:          1;
  padding:       0.55rem 0.875rem;
  font-size:     var(--text-sm);
  border:        1.5px solid var(--color-border-medium);
  border-radius: var(--radius-input);
  outline:       none;
  color:         var(--color-text-primary);
  background:    var(--color-bg-primary);
  font-family:   var(--font-sans);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  transition:    border-color var(--duration-base) var(--ease-in-out),
                 box-shadow   var(--duration-base) var(--ease-in-out);
}

.coupon-input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  color:          var(--input-placeholder);
}

.coupon-input:focus {
  border-color: var(--color-brand-black);
  box-shadow:   var(--input-shadow-focus);
}

.coupon-message {
  font-size:   var(--text-xs);
  margin-top:  var(--space-2);
  line-height: var(--leading-relaxed);
  min-height:  1rem;
}

.coupon-message--success {
  color: var(--color-success);
  font-weight: var(--weight-medium);
}

.coupon-message--error {
  color: var(--color-error);
}


/* =====================================================
   23. DROPDOWN
   .dropdown, .dropdown__trigger,
   .dropdown__menu, .dropdown__item,
   .dropdown__divider
===================================================== */

.dropdown {
  position: relative;
  display:  inline-block;
}

.dropdown__menu {
  position:       absolute;
  top:            calc(100% + var(--space-2));
  left:           0;
  min-width:      180px;
  background:     var(--color-bg-primary);
  border:         1px solid var(--color-border);
  border-radius:  var(--radius-lg);
  box-shadow:     var(--shadow-xl);
  z-index:        var(--z-dropdown);
  padding:        var(--space-1-5) 0;
  opacity:        0;
  visibility:     hidden;
  transform:      translateY(-6px);
  transition:     opacity    var(--duration-base) var(--ease-out),
                  visibility var(--duration-base) var(--ease-out),
                  transform  var(--duration-base) var(--ease-out);
  pointer-events: none;
  white-space:    nowrap;
}

.dropdown__menu--right {
  left:  auto;
  right: 0;
}

.dropdown.is-open .dropdown__menu,
.dropdown:focus-within .dropdown__menu {
  opacity:        1;
  visibility:     visible;
  transform:      translateY(0);
  pointer-events: auto;
}

.dropdown__item {
  display:         flex;
  align-items:     center;
  gap:             var(--space-2-5);
  width:           100%;
  padding:         var(--space-2-5) var(--space-4);
  font-size:       var(--text-sm);
  font-weight:     var(--weight-regular);
  color:           var(--color-text-secondary);
  background:      none;
  border:          none;
  cursor:          pointer;
  text-align:      left;
  text-decoration: none;
  transition:      background var(--duration-fast) var(--ease-in-out),
                   color      var(--duration-fast) var(--ease-in-out);
}

.dropdown__item:hover {
  background: var(--color-gray-50);
  color:      var(--color-text-primary);
}

.dropdown__item--active {
  color:       var(--color-brand-black);
  font-weight: var(--weight-medium);
}

.dropdown__item--danger {
  color: var(--color-error);
}

.dropdown__item--danger:hover {
  background: var(--color-error-light);
  color:      var(--color-error-dark);
}

.dropdown__divider {
  height:     1px;
  background: var(--color-border);
  margin:     var(--space-1-5) 0;
}


/* =====================================================
   24. ACCORDION / FAQ
   .accordion, .accordion__item,
   .accordion__trigger, .accordion__icon,
   .accordion__panel, .accordion__body
===================================================== */

.accordion {
  display:        flex;
  flex-direction: column;
  gap:            0;
}

.accordion--gap {
  gap: var(--space-3);
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
  overflow:      hidden;
}

.accordion--gap .accordion__item {
  border:        1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.accordion__trigger {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--space-4);
  width:           100%;
  padding:         var(--space-5) 0;
  font-family:     var(--font-sans);
  font-size:       var(--text-md);
  font-weight:     var(--weight-medium);
  color:           var(--color-text-primary);
  background:      none;
  border:          none;
  cursor:          pointer;
  text-align:      left;
  transition:      color var(--duration-base) var(--ease-in-out);
}

.accordion--gap .accordion__trigger {
  padding: var(--space-5) var(--space-5);
}

.accordion__trigger:hover {
  color: var(--color-brand-gold);
}

.accordion__trigger[aria-expanded="true"] {
  color: var(--color-brand-black);
}

.accordion__icon {
  flex-shrink:  0;
  color:        var(--color-text-muted);
  transition:   transform var(--duration-base) var(--ease-in-out),
                color     var(--duration-base) var(--ease-in-out);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
  color:     var(--color-brand-gold);
}

.accordion__panel {
  overflow: hidden;
  /* Height animation via JS — toggle max-height */
}

.accordion__body {
  padding:    0 0 var(--space-5);
  font-size:  var(--text-base);
  color:      var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.accordion--gap .accordion__body {
  padding: 0 var(--space-5) var(--space-5);
}


/* =====================================================
   25. SIZE & COLOR SELECTORS
   .size-selector, .size-option
   .color-selector, .color-option
===================================================== */

/* --- Size Selector --- */
.size-selector {
  display:  flex;
  flex-wrap: wrap;
  gap:      var(--space-2);
}

.size-option {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  min-width:       40px;
  height:          40px;
  padding:         0 var(--space-2-5);
  font-size:       var(--text-sm);
  font-weight:     var(--weight-medium);
  color:           var(--color-text-secondary);
  background:      var(--color-bg-primary);
  border:          1.5px solid var(--color-border-medium);
  border-radius:   var(--radius-md);
  cursor:          pointer;
  transition:      border-color var(--duration-fast) var(--ease-in-out),
                   background   var(--duration-fast) var(--ease-in-out),
                   color        var(--duration-fast) var(--ease-in-out);
  user-select:     none;
  -webkit-user-select: none;
  white-space:     nowrap;
}

.size-option:hover:not(.is-selected):not(.is-unavailable) {
  border-color: var(--color-brand-black);
  color:        var(--color-text-primary);
}

.size-option.is-selected {
  background:   var(--color-brand-black);
  border-color: var(--color-brand-black);
  color:        var(--color-brand-white);
}

.size-option.is-unavailable {
  color:          var(--color-text-disabled);
  cursor:         not-allowed;
  border-color:   var(--color-border);
  text-decoration: line-through;
  opacity:        0.55;
}

.size-option:focus-visible {
  outline:        2px solid var(--focus-ring-color);
  outline-offset: 2px;
}

/* --- Color Selector --- */
.color-selector {
  display:  flex;
  flex-wrap: wrap;
  gap:      var(--space-2);
}

.color-option {
  position:      relative;
  display:       inline-flex;
  align-items:   center;
  justify-content: center;
  width:         32px;
  height:        32px;
  border-radius: var(--radius-full);
  cursor:        pointer;
  border:        2px solid transparent;
  padding:       2px;
  transition:    border-color var(--duration-fast) var(--ease-in-out),
                 transform    var(--duration-fast) var(--ease-bounce);
  flex-shrink:   0;
}

.color-option:hover {
  transform: scale(1.10);
}

.color-option.is-selected {
  border-color: var(--color-brand-black);
}

.color-option__swatch {
  width:         100%;
  height:        100%;
  border-radius: var(--radius-full);
  border:        1px solid rgba(0,0,0,0.12);
  display:       block;
}

/* Check mark on selected */
.color-option.is-selected::after {
  content:       '';
  position:      absolute;
  top:           50%;
  left:          50%;
  width:         8px;
  height:        5px;
  border:        2px solid #fff;
  border-top:    none;
  border-right:  none;
  transform:     translate(-50%, -65%) rotate(-45deg);
  pointer-events: none;
}

/* Dark swatch — white check mark doesn't show */
.color-option[data-dark].is-selected::after {
  border-color: rgba(0,0,0,0.70);
}

.color-option:focus-visible {
  outline:        2px solid var(--focus-ring-color);
  outline-offset: 2px;
}


/* =====================================================
   26. PROGRESS BAR
   .progress, .progress__bar
===================================================== */

.progress {
  width:         100%;
  height:        6px;
  background:    var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow:      hidden;
}

.progress__bar {
  height:        100%;
  background:    var(--color-brand-black);
  border-radius: var(--radius-full);
  transition:    width var(--duration-slow) var(--ease-out);
  min-width:     4px;
}

.progress--gold .progress__bar {
  background: var(--color-brand-gold);
}

.progress--success .progress__bar {
  background: var(--color-success);
}

.progress--sm {
  height: 4px;
}

.progress--lg {
  height: 10px;
}

/* Stock indicator label */
.stock-label {
  font-size:   var(--text-xs);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-1-5);
  display:     block;
}

.stock-label--low   { color: var(--color-error); }
.stock-label--med   { color: var(--color-warning); }
.stock-label--high  { color: var(--color-success); }


/* =====================================================
   27. OVERLAY UTILITIES
   .overlay, .overlay--dark,
   Prevents body scroll: body.no-scroll
===================================================== */

.overlay {
  position: fixed;
  inset:    0;
  z-index:  var(--z-overlay);
}

.overlay--dark {
  background: var(--color-bg-modal);
}

.overlay--light {
  background: rgba(255, 255, 255, 0.80);
}

body.no-scroll {
  overflow: hidden;
}

/* Component-specific overlay helpers */
.is-hidden {
  display: none !important;
}

.is-visible {
  display: block !important;
}

.is-invisible {
  visibility: hidden;
  pointer-events: none;
}

/* Fade in/out classes (JS toggles) */
.fade-enter {
  animation: fade-in var(--duration-base) var(--ease-out) forwards;
}

.fade-exit {
  animation: fade-out var(--duration-base) var(--ease-in) forwards;
}

@keyframes fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Slide in from right */
.slide-right-enter {
  animation: slide-in-right var(--duration-slow) var(--ease-out) forwards;
}

@keyframes slide-in-right {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* Slide in from left */
.slide-left-enter {
  animation: slide-in-left var(--duration-slow) var(--ease-out) forwards;
}

@keyframes slide-in-left {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}


/* =====================================================
   28. RESPONSIVE OVERRIDES
   Components scale gracefully on mobile
===================================================== */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {

  .toast-container {
    bottom: var(--space-4);
    right:  var(--space-4);
  }

  .trust-strip__item {
    min-width: 140px;
  }

  .form-row--3 {
    grid-template-columns: 1fr 1fr;
  }

}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {

  /* Buttons */
  .btn--hero-primary,
  .btn--hero-ghost {
    padding:   var(--btn-padding-y-md) var(--btn-padding-x-md);
    font-size: var(--btn-font-size-md);
  }

  /* Modals go full-screen */
  .modal {
    padding:     0;
    align-items: flex-end;
  }

  .modal__panel {
    border-radius:    var(--radius-modal) var(--radius-modal) 0 0;
    max-height:       92vh;
    max-width:        100%;
    border-bottom-left-radius:  0;
    border-bottom-right-radius: 0;
  }

  .modal--quick-view .modal__panel {
    max-width: 100%;
  }

  /* Toast */
  .toast-container {
    bottom:  0;
    left:    0;
    right:   0;
    padding: var(--space-3);
    width:   100%;
  }

  /* Trust strip — 2 per row */
  .trust-strip__list {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   var(--space-4);
  }

  .trust-strip__item {
    min-width: unset;
  }

  /* Pagination — smaller buttons */
  .pagination__btn {
    min-width: 36px;
    height:    36px;
  }

  /* Back to top */
  .back-to-top {
    bottom:  var(--space-4);
    left:    var(--space-4);
    width:   42px;
    height:  42px;
  }

  /* WA float */
  .wa-float {
    bottom: var(--space-4);
    right:  var(--space-4);
  }

  .wa-float__btn {
    width:  52px;
    height: 52px;
  }

  /* WA tooltip hidden on mobile */
  .wa-float__tooltip {
    display: none;
  }

  /* Form rows */
  .form-row--2,
  .form-row--3 {
    grid-template-columns: 1fr;
  }

  /* Announcement bar font */
  .announcement-bar__item span {
    font-size: 0.65rem;
  }

  /* Section header inline stacks */
  .section-header--inline {
    flex-direction:  column;
    align-items:     flex-start;
    gap:             var(--space-3);
  }

  /* Product tabs scroll horizontally */
  .product-tabs {
    flex-wrap:            nowrap;
    overflow-x:           auto;
    scrollbar-width:      none;
    -ms-overflow-style:   none;
    -webkit-overflow-scrolling: touch;
    padding-bottom:       var(--space-3);
  }

  .product-tabs::-webkit-scrollbar {
    display: none;
  }

  /* Quantity control */
  .quantity-control__btn {
    width:  34px;
    height: 34px;
  }

  .quantity-control__input {
    width:  38px;
    height: 34px;
  }

}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {

  /* Trust strip — single column */
  .trust-strip__list {
    grid-template-columns: 1fr;
  }

  /* Breadcrumb — truncate long labels */
  .breadcrumb__link,
  .breadcrumb__current {
    max-width: 120px;
    overflow:  hidden;
    text-overflow: ellipsis;
    white-space:   nowrap;
    display:   inline-block;
    vertical-align: middle;
  }

  /* Announcement bar — hide dividers */
  .announcement-bar__divider {
    display: none;
  }

  /* Smaller wa float */
  .wa-float {
    bottom: var(--space-3);
    right:  var(--space-3);
  }

  .wa-float__btn {
    width:  48px;
    height: 48px;
  }

  /* Back to top moves up to avoid WA overlap */
  .back-to-top {
    bottom: var(--space-3);
    left:   var(--space-3);
  }

}