/* ==========================================================================
   StoreVela — Components
   Every reusable UI component is defined here, once. Page stylesheets only add
   layout (position, grid, size) for sections that appear on a single page.
   Colours, radii, shadows and timing come from theme.css.
   Loaded by css/pages/base.css right after theme.css.

   Contents
     1. Section label (eyebrow)
     2. Buttons
     3. Form fields
     4. Cards
     5. Chips & tags
     6. Status badges
     7. Section heading
     8. Icon buttons
     9. Counters & avatar
     10. Search box
     11. Dropdown menu
     12. Searchable select (country/city combobox)
     13. Page heading
     14. Card parts
     15. Tables
     16. Empty state
     17. Icon tiles
     18. Product card (catalog, wishlist, dashboard, related)
     19. Price & rating
     20. Controls: checkbox filter, grid/list toggle, quantity stepper
     21. Tabs
     22. Breadcrumb
     23. Order summary lines
     24. Selectable option cards
     25. Accordion (FAQ)
     26. Modal
     27. Toast
     28. Text utilities
     29. Notice
   ========================================================================== */

/* ---------------------------------- */
/* 1. Section label (eyebrow)         */
/* ---------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-warm);
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-label);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

/* ---------------------------------- */
/* 2. Buttons                         */
/* ---------------------------------- */
/* .btn + one variant: -primary (one per view), -accent, -outline (ghost),
   -white, -outline-white, -danger-outline. Sizes: -sm, -lg. Width: -block. */
.btn,
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--transition-med), box-shadow var(--transition-med),
              background-color var(--transition-med), border-color var(--transition-med), color var(--transition-fast);
}
.btn svg { transition: transform var(--transition-med); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active, .btn-outline-white:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Primary: plain logo orange; on hover it lifts with a small shadow below */
.btn-primary {
  background: var(--color-warm);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  transform: translateY(var(--lift-btn));
  box-shadow: var(--shadow-cta-hover);
}

.btn-accent {
  background: var(--gradient-accent);
  background-origin: border-box;
  color: var(--color-on-primary);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { transform: translateY(var(--lift-btn)); box-shadow: var(--shadow-primary-hover); }

/* Outline: logo-orange border; on hover it lifts with an orange shadow below */
.btn-outline,
.btn-outline-white {
  background: var(--glass-bg);
  color: var(--color-text);
  border-color: var(--color-warm);
}
.btn-outline:hover,
.btn-outline-white:hover {
  color: var(--color-text);
  border-color: var(--color-warm);
  box-shadow: var(--shadow-warm-lift);
  transform: translateY(var(--lift-btn));
}
/* Keyboard focus ring matches the orange border */
.btn-outline:focus-visible,
.btn-outline-white:focus-visible { outline-color: var(--color-warm); }
.btn-outline-white { padding: 0 28px; }

.btn-white {
  background: var(--color-on-primary);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-lg);
}
.btn-white:hover { transform: translateY(var(--lift-btn)); }

.btn-danger-outline {
  background: transparent;
  color: var(--color-danger);
  border-color: var(--color-danger-border);
}
.btn-danger-outline:hover { background: var(--badge-red-bg); border-color: var(--color-danger); }

.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; border-radius: var(--radius-nav); }
@media (max-width: 480px) {
  .btn-lg { min-height: 48px; padding: 0 22px; font-size: 14.5px; }
}

/* Text-only action ("Mark all read") */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary-light);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.link-btn:hover { color: var(--color-text); }

/* ---------------------------------- */
/* 3. Form fields                     */
/* ---------------------------------- */
/* Any input/select/textarea inside .form-group, a lone .select-control,
   and the country/city combobox all share one look. */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--color-text-soft);
}
.form-hint-inline { font-weight: 400; color: var(--color-text-secondary); }

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea,
.select-control,
.combobox input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  background-color: var(--color-field);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-group input:not([type="checkbox"]):not([type="radio"]):hover,
.form-group select:hover,
.form-group textarea:hover,
.select-control:hover,
.combobox input[type="text"]:hover { border-color: var(--color-border-strong); }

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus,
.select-control:focus,
.combobox input[type="text"]:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-field-focus);
  box-shadow: var(--focus-ring);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.combobox input[type="text"]::placeholder { color: var(--color-placeholder); }

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled,
.select-control:disabled,
.combobox input[type="text"]:disabled {
  background-color: var(--color-bg-alt);
  color: var(--color-text-secondary);
  cursor: not-allowed;
}

/* Dropdowns: one custom arrow, kept clear of the border */
.form-group select,
select.select-control {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: var(--icon-chevron);
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
}
.form-group select option,
select.select-control option { background-color: var(--color-surface); color: var(--color-text); }

/* Dropdown whose menu opens under it (portal.js initMenuSelects): the field
   looks like the select it stands for. */
.menu-select-btn {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 44px;
  background-image: var(--icon-chevron);
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
}
.menu-select-btn[aria-expanded="true"] {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}
.menu-select-btn:disabled { cursor: default; background-image: none; padding-right: 14px; }
.menu-select-list {
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}
.menu-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 30px;
  border: none;
  border-radius: calc(var(--radius-btn) - 4px);
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}
.menu-select-item:hover,
.menu-select-item:focus-visible { outline: none; background: var(--color-hover-fill); }
.menu-select-item[aria-selected="true"] { color: var(--color-primary); font-weight: 600; }
.menu-select-item[aria-selected="true"]::before {
  content: "✓";
  position: absolute;
  left: 11px;
}

/* Nothing chosen yet: show the prompt in placeholder colour */
.form-group select:has(option[value=""]:checked) { color: var(--color-placeholder); }

.form-group textarea { min-height: 104px; resize: vertical; }

/* Compact dropdown for toolbars (catalog sort) */
.catalog-toolbar .select-control,
.select-control.select-sm {
  width: auto;
  min-height: 40px;
  padding: 8px 40px 8px 14px;
  border-radius: var(--radius-nav);
  font-size: 14px;
  background-position: right 14px center;
}

/* Field with an icon button on the right (password, combobox) */
.password-field { position: relative; }
.form-group .password-field input:not([type="checkbox"]) { padding-right: 46px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--color-placeholder);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.password-toggle:hover { color: var(--color-text-secondary); background: var(--color-hover-fill); }
.password-toggle .icon-eye-off { display: none; }
.password-toggle[aria-pressed="true"] .icon-eye { display: none; }
.password-toggle[aria-pressed="true"] .icon-eye-off { display: block; }

.combobox input[type="text"],
.form-group .combobox input[type="text"] { padding-right: 44px; cursor: pointer; }

/* Messages */
.form-hint { font-size: 12px; color: var(--color-text-secondary); margin-top: 6px; }
.form-error { font-size: 13px; color: var(--color-danger); margin-top: 6px; display: none; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: var(--color-danger); }
.form-group.has-error .form-error { display: block; }

/* ---------------------------------- */
/* 4. Cards                           */
/* ---------------------------------- */
/* Surface shared by every card and panel */
.card,
.category-card,
.why-card,
.step-card,
.product-card,
.testimonial-card,
.pcard,
.widget,
.thankyou-card,
.buy-box {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

/* Interactive cards: lift with a soft shadow (border unchanged) */
.category-card,
.why-card,
.step-card,
.product-card,
.testimonial-card,
.pcard,
.widget {
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}
.category-card:hover,
.why-card:hover,
.step-card:hover,
.product-card:hover,
.testimonial-card:hover,
.pcard:hover,
.widget:hover {
  transform: translateY(var(--lift-card));
  box-shadow: var(--shadow-card-hover);
}

/* 2px glowing top edge, brighter on hover */
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-edge);
  opacity: 0.35;
  transition: opacity var(--transition-slow);
  z-index: 2;
}
.testimonial-card:hover::before { opacity: 1; }


/* Image inside a card zooms slightly on hover */
.category-card-img img,
.product-card-img img { transition: transform var(--transition-slow); }
.category-card:hover .category-card-img img,
.product-card:hover .product-card-img img { transform: scale(var(--hover-scale)); }

/* Icon tile: white icon on navy. On hover it turns pale orange with an orange
   icon: a layer (::after) fades in, since a gradient background can't transition. */
.why-icon {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-md);
  background: var(--gradient-navy);
  border: 1px solid transparent;
  color: var(--color-on-primary);
  box-shadow: var(--shadow-navy);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), color var(--transition-slow);
}
.why-icon::after {
  content: "";
  position: absolute;
  inset: -1px; /* over the border too, or the navy shows at the edge */
  z-index: -1;
  border-radius: inherit;
  background: color-mix(in srgb, var(--color-warm) 12%, #fff);
  box-shadow: inset 0 0 0 1px var(--color-warm-border);
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.why-card:hover .why-icon {
  transform: translateY(var(--lift-btn)) scale(var(--hover-scale));
  color: var(--color-warm);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--color-warm) 45%, transparent);
}
.why-card:hover .why-icon::after { opacity: 1; }

/* ---------------------------------- */
/* 5. Chips & tags                    */
/* ---------------------------------- */
/* Selectable filter chip */
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-soft);
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}
.category-chip:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.category-chip.active {
  background: var(--color-warm-50);
  border-color: var(--color-warm);
  color: var(--color-text);
}
.category-chip .count { font-size: 0.72rem; opacity: 0.7; }

/* Static tag (role, price list, product label) */
.role-chip,
.price-list-chip,
.product-badge,
.sidebar-customer-role {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-border);
  color: var(--color-primary-light);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ---------------------------------- */
/* 6. Status badges                   */
/* ---------------------------------- */
.badge,
.preview-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.badge-green { background: var(--badge-green-bg); color: var(--badge-green-text); }
.badge-blue { background: var(--badge-blue-bg); color: var(--badge-blue-text); }
.badge-amber,
.preview-badge { background: var(--badge-amber-bg); color: var(--badge-amber-text); }
.badge-red { background: var(--badge-red-bg); color: var(--badge-red-text); }
.badge-gray { background: var(--color-bg-alt); color: var(--color-text-secondary); }

/* ---------------------------------- */
/* 7. Section heading                 */
/* ---------------------------------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: var(--fs-h2);
  margin-bottom: 14px;
}

.section-head h2 span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  color: var(--color-text-secondary);
  font-size: clamp(16px, 1.8vw, 18px);
}

/* ---------------------------------- */
/* 8. Icon buttons                    */
/* ---------------------------------- */

/* Delete row (cart): quiet, turns red on hover */
.cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: none;
  border-radius: var(--radius-nav);
  background: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.cart-remove:hover { color: var(--color-danger); background: var(--badge-red-bg); }

/* Avatar + name button that opens the profile menu */
.topbar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-nav);
  background: var(--glass-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.topbar-profile:hover { border-color: var(--color-border-strong); background-color: var(--color-ghost-hover); }

/* One square icon button; variants only change size, position or emphasis. */
.theme-toggle,
.topbar-icon-btn,
.portal-menu-btn,
.pcard-wish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-nav);
  border: 1px solid var(--color-border);
  background: var(--glass-bg);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-med);
}
.theme-toggle:hover,
.topbar-icon-btn:hover,
.portal-menu-btn:hover,
.pcard-wish:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  background-color: var(--color-ghost-hover);
}
.theme-toggle svg,
.topbar-icon-btn svg { display: block; }

.theme-toggle { width: 38px; height: 38px; }
.theme-toggle:hover { transform: translateY(var(--lift-btn)); }
/* The light/dark switch is hidden for now; the code behind it still works.
   Delete this rule to show it again. */
button[data-theme-toggle] { display: none; }

[data-theme-toggle] .icon-moon { display: none; }
[data-theme-toggle][aria-pressed="true"] .icon-sun { display: none; }
[data-theme-toggle][aria-pressed="true"] .icon-moon { display: block; }

/* Quiet variant for the portal top bar: no border until hovered */
.topbar-icon-btn { position: relative; width: 42px; height: 42px; border-color: transparent; background: transparent; color: var(--color-text); }

/* Shown only on small screens (see portal.css) */
.portal-menu-btn { display: none; color: var(--color-text); }

/* Wishlist heart on product images */
.pcard-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  background: var(--glass-bg-strong);
}
.pcard-wish:hover { transform: scale(var(--hover-scale)); }
.pcard-wish.active { color: var(--color-danger); }
.pcard-wish.active svg { fill: var(--color-danger); }

/* Filled variant: floating back-to-top */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: var(--radius-btn);
  background: var(--color-warm);
  color: var(--color-on-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-cta);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-med), visibility var(--transition-med), transform var(--transition-med), box-shadow var(--transition-med);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(var(--lift-btn)); box-shadow: var(--shadow-cta-hover); }

/* ---------------------------------- */
/* 9. Counters & avatar               */
/* ---------------------------------- */
/* Small number on an icon or menu item (cart items, unread notifications) */
.topbar-badge,
.sidebar-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-navy);
  color: var(--color-on-primary);
  /* Body font, not the mono one: JetBrains Mono's dotted zero reads as 8 at
     this size */
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-full);
}
.sidebar-cart-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; }
.topbar-badge { position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; }

/* Initials avatar */
.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-warm);
  color: var(--color-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ---------------------------------- */
/* 10. Search box                     */
/* ---------------------------------- */
/* Icon + borderless input inside one field-styled box */
.hero-search,
.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-field);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  color: var(--color-text-secondary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}
.hero-search:hover,
.topbar-search:hover { border-color: var(--color-border-strong); }
.hero-search:focus-within,
.topbar-search:focus-within {
  border-color: var(--color-primary);
  background-color: var(--color-field-focus);
  box-shadow: var(--focus-ring);
}
.hero-search svg,
.topbar-search svg { flex-shrink: 0; color: var(--color-text-secondary); }
.hero-search input,
.topbar-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
}
.hero-search input::placeholder,
.topbar-search input::placeholder { color: var(--color-placeholder); }

/* Large variant with a button inside (home page) */
.hero-search { max-width: 520px; margin-bottom: 30px; padding: 8px; border-radius: var(--radius-lg); }
.hero-search svg { margin-left: 10px; }
.hero-search input { padding: 10px 0; }

/* Compact variant (portal top bar) */
.topbar-search { flex: 1; max-width: 480px; padding: 9px 16px; }
.topbar-search input { font-size: 0.92rem; }

/* ---------------------------------- */
/* 11. Dropdown menu                  */
/* ---------------------------------- */

/* Destructive menu item (Logout) */
.dropdown-link-danger { color: var(--color-danger); }

/* Floating panel shared by top-bar menus and the combobox list */
.topbar-dropdown,
.combobox-panel,
.nav-links.mobile-open {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
/* Menu row hover shared by menu links and combobox options */
.dropdown-link:hover,
.combobox-option:hover,
.combobox-option.is-active { background: var(--color-primary-50); color: var(--color-text); }

.topbar-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 320px;
  overflow: hidden;
  z-index: 100;
}

.topbar-dropdown-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar-dropdown-head strong { font-size: 0.92rem; }

.dropdown-sub { font-size: 0.78rem; color: var(--color-text-secondary); }

.dropdown-link {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: background-color var(--transition-fast);
}

.dropdown-empty {
  padding: 20px 16px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.85rem;
  line-height: 1.45;
}

.notif-item.unread { background: var(--color-primary-50); }

.notif-item time { display: block; font-size: 0.72rem; color: var(--color-text-secondary); margin-top: 3px; }

.topbar-dropdown-head .link-btn { align-self: flex-end; margin-top: -18px; }

/* ---------------------------------- */
/* 12. Searchable select (country/city combobox) */
/* ---------------------------------- */

/* "Use what I typed" option */
.combobox-option-freetext {
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
  padding-top: 12px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.combobox-option-freetext strong { color: var(--color-primary); font-weight: 600; }

.combobox { position: relative; }

.combobox-input-wrap { position: relative; display: flex; align-items: center; }

.combobox-input-wrap .combobox-icon {
  position: absolute;
  right: 16px;
  color: var(--color-placeholder);
  pointer-events: none;
  transition: transform var(--transition-fast);
  display: flex;
}

.combobox.is-open .combobox-input-wrap .combobox-icon { transform: rotate(180deg); }
/* A read-only choice (the profile's country, storehub/vat.py): no picker. */
.combobox-input-wrap input[readonly] { cursor: default; }
.combobox-input-wrap input[readonly] + .combobox-icon { display: none; }

.combobox-panel {
  position: absolute;
  top: calc(70% );
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 264px;
  overflow-y: auto;
  padding: 6px;
  display: none;
}

.combobox.is-open .combobox-panel { display: block; }

.combobox-option {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color var(--transition-fast);
}

.combobox-option.is-selected { font-weight: 600; }

.combobox-option .combobox-option-check { color: var(--color-primary); display: none; flex-shrink: 0; }

.combobox-option.is-selected .combobox-option-check { display: flex; }

.combobox-empty {
  padding: 14px 12px;
  font-size: 13.5px;
  color: var(--color-text-secondary);
  text-align: center;
}

.combobox-group-label {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* ---------------------------------- */
/* 13. Page heading                   */
/* ---------------------------------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: var(--fs-page-title);
  font-weight: 700;
  line-height: 1.2;
}

.page-head p { color: var(--color-text-secondary); font-size: 0.92rem; margin-top: 4px; text-wrap: pretty; }

/* Several buttons on the heading's right (the cart: Clear cart + Continue Shopping). */
.page-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Keeps a short phrase (a price list name, an amount) on one line */
.nowrap { white-space: nowrap; }

/* ---------------------------------- */
/* 14. Card parts                     */
/* ---------------------------------- */
.card-pad { padding: var(--pad-card); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title a { font-size: 0.82rem; font-weight: 600; color: var(--color-primary); font-family: var(--font-body); }


/* Divided lower section inside a card (e.g. Security, Recent Tickets) */
.card-footer {
  border-top: 1px solid var(--color-line);
  margin-top: 22px;
  padding-top: 18px;
}

/* ---------------------------------- */
/* 15. Tables                         */
/* ---------------------------------- */
.table-wrap { overflow-x: auto; }

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}

.portal-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.portal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-line);
  vertical-align: middle;
}

.portal-table tr:last-child td { border-bottom: none; }

.portal-table tr:hover td { background: var(--table-row-hover); }

.table-link { color: var(--color-primary); font-weight: 600; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; max-width: 620px; }

.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--color-line); }

.spec-table td:first-child { color: var(--color-text-secondary); width: 40%; }

/* Phones: each row becomes a compact card instead of a table you scroll sideways.
   In the markup, label each cell with data-label="…"; the first cell
   (.td-title, e.g. the order number) and the button cell (.td-actions) span the
   full width. */
@media (max-width: 720px) {
  .table-wrap { overflow-x: visible; }
  .portal-table { min-width: 0; font-size: 0.86rem; }
  .portal-table thead { display: none; }
  .portal-table tbody { display: block; }
  .portal-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
  }
  .portal-table tr:last-child { border-bottom: none; }
  /* A table placed straight in a .card (no .card-pad) gets the card's inner spacing */
  .card > .table-wrap .portal-table tr { padding-inline: 16px; }
  .portal-table tr:hover td { background: none; }
  .portal-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 0;
    border: none;
    text-align: left;
    min-width: 0;
  }
  .portal-table td[data-label]::before {
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
  }
  .portal-table .td-title { grid-column: 1 / -1; font-size: 0.95rem; }
  .portal-table .td-actions { grid-column: 1 / -1; align-items: stretch; }
  .portal-table .td-actions .btn { width: 100%; }
}

/* Numbered pagination (templates/includes/pagination.html) */
.pagination-bar { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-nav);
  background: var(--color-card);
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
.page-btn:hover { border-color: var(--color-warm); color: var(--color-warm); }
.page-btn.active { background: var(--color-warm); border-color: var(--color-warm); color: var(--color-on-primary); pointer-events: none; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }
.page-gap { min-width: 24px; text-align: center; color: var(--color-text-secondary); }
.pagination-summary { font-size: 0.82rem; color: var(--color-text-secondary); }

@media (max-width: 720px) {
  .page-btn { min-width: 36px; height: 36px; padding: 0 8px; font-size: 0.84rem; }
  .pagination { gap: 4px; }
}

/* ---------------------------------- */
/* 16. Empty state                    */
/* ---------------------------------- */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--color-text-secondary);
}

.empty-state .empty-icon { font-size: 2.4rem; margin-bottom: 10px; }

.empty-state h3 { color: var(--color-text); font-family: var(--font-display); margin-bottom: 6px; }

.empty-state p { font-size: 0.9rem; margin-bottom: 18px; }

/* ---------------------------------- */
/* 17. Icon tiles                     */
/* ---------------------------------- */
/* Square tile holding an icon or emoji; colour variants below */
.widget-icon,
.activity-item .dot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-nav);
  border: 1px solid var(--color-border);
  background: var(--gradient-tile);
  color: var(--color-kicker);
}
.widget-icon { width: 38px; height: 38px; font-size: 1.1rem; margin-bottom: 4px; }

.widget-icon.blue { background: var(--color-primary-50); }

.widget-icon.green { background: var(--badge-green-bg); }

.widget-icon.amber { background: var(--badge-amber-bg); }

.widget-icon.orange { background: var(--badge-amber-bg); }

.widget-icon.purple { background: var(--badge-purple-bg); }

.widget-icon.red { background: var(--badge-red-bg); }

.activity-item .dot-icon { width: 34px; height: 34px; background: var(--color-primary-50); }

.trust-badge {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(8px, 2vw, 12px);
  text-align: center;
  font-size: 0.76rem;
  color: var(--color-text-secondary);
}

.trust-badge .tb-icon { font-size: 1.2rem; display: block; margin-bottom: 4px; }

.support-channel .sc-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }

/* ---------------------------------- */
/* 18. Product card (catalog, wishlist, dashboard, related) */
/* ---------------------------------- */
.pcard {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pcard-img {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  overflow: hidden;
  position: relative;
  display: block;
}

.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-med); }

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

.pcard-body {
  padding: var(--pcard-pad);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pcard-meta { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; color: var(--color-text-secondary); }

.pcard-meta .sku { background: var(--color-bg-alt); padding: 1px 8px; border-radius: var(--radius-full); }

.pcard-title {
  font-size: var(--pcard-title);
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.pcard-title a:hover { color: var(--color-primary); }

.pcard-stock { font-size: 0.76rem; font-weight: 500; }

/* Pack size, e.g. "12 pcs per box · € 20,00 each" (only items with a pack
   unit in ERPNext: Item -> UOM Conversion). Card and product page. */
.pack-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  max-width: 100%;
  padding: 4px 10px 4px 8px;
  border-radius: var(--radius-full);
  background: var(--color-warm-50);
  border: 1px solid color-mix(in srgb, var(--color-warm) 30%, transparent);
  color: var(--color-text);
  font-size: 0.74rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pack-badge svg { flex-shrink: 0; color: var(--color-warm); }
.pack-badge strong { font-weight: 700; }
.pack-badge-extra { color: var(--color-text-secondary); overflow: hidden; text-overflow: ellipsis; }
.pack-badge-lg { font-size: 0.88rem; padding: 6px 14px 6px 10px; margin-top: 10px; }

.pcard-stock.in { color: var(--color-success); }

.pcard-stock.out { color: var(--color-warning); }

.pcard-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; }

.pcard-price {
  font-family: var(--font-display);
  font-size: var(--pcard-price);
  font-weight: 700;
  color: var(--color-price);
}

.pcard-price small { font-size: 0.72rem; color: var(--color-text-secondary); font-weight: 500; font-family: var(--font-body); }

.pcard-moq { font-size: 0.74rem; color: var(--color-text-secondary); margin-left: auto; }

/* Languages of the description, "FR/DE/IT", at the end of the price line. */
.pcard-langs {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
}

.pcard-actions { display: flex; gap: 8px; margin-top: 10px; }

.pcard-actions .btn { flex: 1; }

/* Unit dropdown (Box / Layer / Pallet), quantity and Add to Cart: product
   card and product page (templates/includes/product_card.html unit_picker). */
.unit-picker { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.unit-pack {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  max-width: 100%;
  padding: 4px 10px 4px 8px;
  border-radius: var(--radius-full);
  background: var(--color-warm-50);
  border: 1px solid color-mix(in srgb, var(--color-warm) 30%, transparent);
  color: var(--color-text-secondary);
  font-size: 0.74rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
}
.unit-pack[hidden] { display: none; }
.unit-pack svg { flex-shrink: 0; color: var(--color-warm); }
.unit-pack span { overflow: hidden; text-overflow: ellipsis; }
.unit-picker-row { display: flex; gap: 8px; align-items: stretch; }
.unit-picker-row .qty-stepper { flex: 0 0 auto; }
/* The dropdown gives way, not the - and + buttons. */
.qty-stepper button, .qty-stepper input { flex-shrink: 0; }
.unit-picker .unit-select { flex: 1; min-width: 0; width: auto; }
.unit-picker .unit-select:disabled { opacity: 1; cursor: default; color: var(--color-text); }
.unit-picker .unit-add { width: 100%; }
/* Cards in a row are as tall as the tallest: the unit picker and Add to Cart
   (the wishlist's buttons) sit at the bottom of each. */
.pcard-body .unit-picker { margin-top: auto; }
.pcard-body .pcard-actions { margin-top: auto; padding-top: 4px; }

.unit-picker-sm .qty-stepper button { width: 30px; height: 36px; font-size: 1rem; }
.unit-picker-sm .qty-stepper input { width: 40px; height: 36px; }
.unit-picker-sm .unit-select {
  min-height: 38px;
  padding: 6px 28px 6px 10px;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  background-position: right 10px center;
}
.unit-picker-lg { gap: 12px; margin-top: 10px; }
.unit-picker-lg .unit-pack { font-size: 0.88rem; padding: 6px 14px 6px 10px; }
.unit-picker-lg .unit-select { min-height: 44px; }

/* Cart line: its unit, and what it is ("12 pcs / box × € 10,60"). */
.cart-row-info { min-width: 0; }
.cart-row-unit { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.cart-row-unit .unit-select {
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 4px 28px 4px 10px;
  border-radius: var(--radius-btn);
  font-size: 0.8rem;
  background-position: right 10px center;
}
.unit-static { font-size: 0.8rem; font-weight: 600; }
.unit-note { font-size: 0.75rem; color: var(--color-text-secondary); }

/* ---------------------------------- */
/* 19. Price & rating                 */
/* ---------------------------------- */

/* Product page price */
.buy-box-price .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-price);
}

.buy-box-price .per { color: var(--color-text-secondary); font-size: 0.85rem; }

.product-rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--color-text-secondary); }

.product-rating .stars { color: var(--color-star); letter-spacing: 1px; }

.product-price { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--color-primary); }

.product-price-locked {
  font-size: 0.8rem !important;
  font-weight: 600;
  color: var(--color-text-secondary) !important;
  background: var(--color-bg-alt);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.35;
}

/* ---------------------------------- */
/* 20. Controls: checkbox filter, grid/list toggle, quantity stepper */
/* ---------------------------------- */
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  padding: 5px 0;
  cursor: pointer;
  color: var(--color-text);
}

.filter-option input { accent-color: var(--color-warm); }

.filter-option .count { margin-left: auto; font-size: 0.75rem; color: var(--color-text-secondary); }

/* Segmented control (grid / list) */
.view-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-nav);
  background: var(--glass-bg);
}

.view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 0 8px;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.view-toggle button:hover { color: var(--color-text); }
.view-toggle button.active { background: var(--color-warm-50); color: var(--color-warm); }

/* Quantity stepper: [-] [ 12 ] [+], styled like a form field */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  background-color: var(--color-field);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.qty-stepper:hover { border-color: var(--color-border-strong); }
.qty-stepper:focus-within { border-color: var(--color-primary); box-shadow: var(--focus-ring); }

.qty-stepper button {
  width: 40px;
  height: 42px;
  background: transparent;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.qty-stepper button:hover { background: var(--color-hover-fill); color: var(--color-text); }

.qty-stepper input {
  width: 64px;
  height: 42px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------------------------- */
/* 21. Tabs                           */
/* ---------------------------------- */
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px clamp(10px, 3vw, 18px);
  font-family: var(--font-body);
  font-size: clamp(0.84rem, 0.4vw + 0.76rem, 0.92rem);
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.tab-btn:hover { color: var(--color-text); }

.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); font-weight: 600; }

.tab-panel { display: none; font-size: 0.94rem; color: var(--color-text); line-height: 1.7; }

.tab-panel.active { display: block; }

/* ---------------------------------- */
/* 22. Breadcrumb                     */
/* ---------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a:hover { color: var(--color-primary); }

.breadcrumb .sep { opacity: 0.5; }

/* ---------------------------------- */
/* 23. Order summary lines            */
/* ---------------------------------- */
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  padding: 7px 0;
  color: var(--color-text-secondary);
}

.summary-line strong { color: var(--color-text); text-align: right; }
/* Labels on one line; a long value ("Calculated at dispatch") wraps instead. */
.summary-line > :first-child,
.summary-total > :first-child { white-space: nowrap; }

.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  border-top: 1px solid var(--color-border);
  margin-top: 10px;
  padding-top: 14px;
}

/* ---------------------------------- */
/* 24. Selectable option cards        */
/* ---------------------------------- */
.address-option {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.address-option:hover { border-color: var(--color-primary-light); }

.address-option.selected { border-color: var(--color-primary); background: var(--color-primary-50); }

.address-option strong { display: block; margin-bottom: 4px; }

.address-option .addr-type { position: absolute; top: 10px; right: 12px; }

.add-address-card {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  color: var(--color-text-secondary);
  cursor: pointer;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.add-address-card:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---------------------------------- */
/* 25. Accordion (FAQ)                */
/* ---------------------------------- */
.faq-item { border-bottom: 1px solid var(--color-line); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 16px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-q::after { content: "+"; font-size: 1.2rem; color: var(--color-primary); }

.faq-item.open .faq-q::after { content: "–"; }

.faq-a { display: none; padding: 0 4px 16px; font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.65; }

.faq-item.open .faq-a { display: block; }

/* ---------------------------------- */
/* 26. Modal                          */
/* ---------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

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

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--pad-card);
}

.modal h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 18px; }

/* ---------------------------------- */
/* 27. Toast                          */
/* ---------------------------------- */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in var(--transition-med);
  max-width: 340px;
}

.toast.success { background: var(--toast-success-bg); border-color: transparent; color: var(--color-on-primary); }

.toast.error { background: var(--toast-error-bg); border-color: transparent; color: var(--color-on-primary); }

.toast.is-leaving { opacity: 0; transition: opacity var(--transition-med); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------- */
/* 28. Text utilities                 */
/* ---------------------------------- */
.text-right { text-align: right; }

.text-muted { color: var(--color-text-secondary); }

.text-sm { font-size: 0.8rem; }

/* ---------------------------------- */
/* 29. Notice                         */
/* ---------------------------------- */
/* Inline message box: .notice + -success / -error / -info.
   Optional .notice-icon (emoji or svg) before the text. */
.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-btn);
  background: var(--color-primary-50);
  color: var(--color-text);
}
.notice-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.notice-success { background: var(--color-success-bg); border-color: var(--color-success-border); }
.notice-error { background: var(--color-danger-bg); border-color: var(--color-danger-border); }
.notice-info { background: var(--color-primary-50); border-color: var(--color-primary-border); }
