/* ============================================================
   ee_tasha hairs — Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400&family=Manrope:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  --gold: #c5a059;
  --gold-dark: #775a19;
  --gold-light: #e9c176;
  --gold-bg: #fdf8ef;
  --black: #1a1c1c;
  --white: #ffffff;
  --bg: #fafafa;
  --gray-50: #f9f9f9;
  --gray-100: #f3f3f3;
  --gray-200: #e8e8e8;
  --gray-300: #d1c5b4;
  --gray-400: #a6a5a5;
  --gray-500: #7f7667;
  --gray-600: #5e5e5e;
  --gray-700: #4e4639;
  --gray-800: #2f3131;
  --gray-900: #1a1c1c;
  --success: #16a34a;
  --error: #dc2626;
  --warning: #f59e0b;
  --font-head: 'Noto Serif', serif;
  --font-body: 'Manrope', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --shadow-gold: 0 4px 20px rgba(197,160,89,0.2);
  --transition: 0.3s ease;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  font-size: 22px;
  vertical-align: middle;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* ============= Typography ============= */
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
.label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; }
.serif { font-family: var(--font-head); }
.italic { font-style: italic; }
.gold { color: var(--gold-dark); }

/* ============= Layout ============= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============= Navigation ============= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-head); font-style: italic; font-size: 1.4rem;
  color: var(--black); letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gray-600); font-weight: 600; transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-dark); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions button {
  position: relative; color: var(--gray-700); transition: color var(--transition);
}
.nav-actions button:hover { color: var(--gold-dark); }
.cart-count {
  position: absolute; top: -6px; right: -8px;
  background: var(--gold-dark); color: white; font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cart-count:empty { display: none; }
.nav-mobile-toggle { display: none; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; padding: 20px; gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
}

/* ============= Buttons ============= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gold-dark); color: white;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-secondary {
  background: white; color: var(--black); border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.btn-outline {
  background: transparent; color: var(--gold-dark); border: 1.5px solid var(--gold-dark);
}
.btn-outline:hover { background: var(--gold-dark); color: white; }
.btn-danger {
  background: var(--error); color: white;
}
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 8px 16px; font-size: 0.7rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--radius); }
.btn-icon:hover { background: var(--gray-100); }

/* ============= Product Card ============= */
.product-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-img-wrap {
  position: relative; overflow: hidden;
}
.product-card-img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--gray-100);
  display: block; transition: transform 0.4s ease;
}
.product-card:hover .product-card-img { transform: scale(1.04); }
.product-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  display: flex; align-items: flex-end;
  padding: 20px 16px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.product-card:hover .product-card-overlay,
.product-card.desc-open .product-card-overlay {
  opacity: 1; transform: translateY(0);
}
.product-card-overlay-text {
  color: #fff; font-size: 0.82rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-body { padding: 16px; }
.product-card-category {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gold-dark); font-weight: 700; margin-bottom: 4px;
}
.product-card-name {
  font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 6px;
  color: var(--black);
}
.product-card-price {
  font-family: var(--font-head); font-size: 1.1rem; color: var(--gold-dark);
  font-weight: 700; margin-bottom: 12px;
}
.product-card-stock {
  display: inline-block; font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; padding: 4px 10px;
  border-radius: 20px;
}
.stock-in { background: #dcfce7; color: #166534; }
.stock-out { background: #fee2e2; color: #991b1b; }

/* ============= Hero ============= */
.hero {
  position: relative; min-height: 80vh; display: flex; align-items: center;
  overflow: hidden; margin-top: 60px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.2));
}
.hero-content {
  position: relative; z-index: 1; max-width: 600px; padding: 40px;
}
.hero h1 { color: white; font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 24px; line-height: 1.7; }

/* ============= Cart Sidebar ============= */
.cart-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw;
  height: 100vh; background: white; z-index: 201;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
  transition: right var(--transition);
}
.cart-sidebar.open { right: 0; }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
}
.cart-header h2 { font-size: 1.2rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.cart-item-img {
  width: 60px; height: 75px; border-radius: 6px; object-fit: cover; background: var(--gray-100);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.85rem; margin-bottom: 2px; }
.cart-item-price { font-family: var(--font-head); color: var(--gold-dark); font-size: 0.9rem; }
.cart-item-qty {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
}
.cart-item-qty button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gray-600);
}
.cart-item-qty button:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.cart-item-qty span { font-weight: 600; font-size: 0.85rem; min-width: 20px; text-align: center; }
.cart-item-remove { color: var(--gray-400); font-size: 18px; align-self: flex-start; }
.cart-item-remove:hover { color: var(--error); }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--gray-200); }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.cart-total-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.cart-total-amount { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-dark); }
.cart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; color: var(--gray-400); text-align: center; padding: 40px;
}
.cart-empty .material-symbols-outlined { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }

/* ============= Forms ============= */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 700; color: var(--gray-600);
  margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); font-size: 0.9rem;
  transition: border-color var(--transition);
  background: white;
}
.form-input:focus { outline: none; border-color: var(--gold-dark); }
.form-input::placeholder { color: var(--gray-400); }
select.form-input { appearance: none; cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ============= Sections ============= */
.section { padding: 60px 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.section-header h2 { margin-bottom: 4px; }
.section-subtitle {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em;
  font-weight: 700; color: var(--gold-dark); margin-bottom: 4px; display: block;
}

/* ============= Footer ============= */
.footer {
  background: var(--gray-900); color: var(--gray-400); padding: 48px 0 24px;
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand {
  font-family: var(--font-head); font-style: italic; font-size: 1.3rem;
  color: var(--gold); margin-bottom: 12px;
}
.footer-desc { font-size: 0.85rem; line-height: 1.6; margin-bottom: 16px; }
.footer h4 {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
  font-weight: 700; color: white; margin-bottom: 16px;
}
.footer a { font-size: 0.85rem; color: var(--gray-400); display: block; margin-bottom: 10px; transition: color var(--transition); }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--gray-800); padding-top: 24px;
  font-size: 0.7rem; text-align: center; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gray-700);
  display: flex; align-items: center; justify-content: center; margin: 0;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ============= Admin ============= */
.admin-layout {
  display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 60px);
  margin-top: 60px;
}
.admin-sidebar {
  background: white; border-right: 1px solid var(--gray-200); padding: 24px 0;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  font-size: 0.8rem; font-weight: 600; color: var(--gray-600);
  transition: all var(--transition); cursor: pointer; width: 100%;
  text-align: left;
}
.admin-nav-item:hover { background: var(--gray-50); color: var(--gold-dark); }
.admin-nav-item.active {
  background: var(--gold-bg); color: var(--gold-dark);
  border-right: 3px solid var(--gold-dark);
}
.admin-main { padding: 32px; background: var(--gray-50); }
.admin-card {
  background: white; border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.admin-stat {
  text-align: center; padding: 20px;
}
.admin-stat-value {
  font-family: var(--font-head); font-size: 2rem; color: var(--gold-dark); font-weight: 700;
}
.admin-stat-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gray-500); margin-top: 4px;
}
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    display: flex; padding: 0; border-right: none; border-top: 1px solid var(--gray-200);
    overflow-x: auto; -webkit-overflow-scrolling: touch; background:#fff;
  }
  .admin-nav-item {
    flex-direction: column; gap: 4px; padding: 8px 14px;
    font-size: 0.6rem; flex-shrink: 0;
  }
  .admin-nav-item .material-symbols-outlined { font-size: 20px; }
  .admin-nav-item.active { border-right: none; border-top: 3px solid var(--gold-dark); }
  .admin-main { padding: 14px; padding-bottom: 90px; }
  .admin-card { padding: 14px; }
  .admin-stat { padding: 14px 10px; }
  .admin-stat-value { font-size: 1.5rem; }
  /* keep stats in 2 columns even on small phones */
  .admin-main .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* product row stacks nicely */
  .admin-product-row { gap: 10px; }
  .admin-product-actions { margin-left: auto; }
  /* delivery table: allow horizontal scroll with touch */
  .admin-card [style*="overflow-x:auto"] { -webkit-overflow-scrolling: touch; }
  /* modal: tighter on mobile */
  .modal { max-width: 100%; }
  .modal-header { padding: 14px 16px; }
  .modal-body { padding: 14px 16px; }
  .modal-footer { padding: 12px 16px; flex-wrap: wrap; }
  /* order cards */
  .order-card { padding: 12px; }
}

/* ============= Login Card ============= */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; padding-top: 80px; background: var(--gray-50);
}
.auth-card {
  background: white; border-radius: var(--radius-lg); padding: 40px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  text-align: center; margin-bottom: 8px; font-size: 1.8rem;
}
.auth-card-subtitle {
  text-align: center; color: var(--gray-500); font-size: 0.85rem; margin-bottom: 28px;
}
.auth-toggle {
  display: flex; margin-bottom: 24px; border-bottom: 2px solid var(--gray-200);
}
.auth-toggle button {
  flex: 1; padding: 12px; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; color: var(--gray-400);
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition);
}
.auth-toggle button.active { color: var(--gold-dark); border-bottom-color: var(--gold-dark); }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  color: var(--gray-400); font-size: 0.75rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}

/* ============= Order Cards ============= */
.order-card {
  background: white; border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.order-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.order-id { font-family: var(--font-head); font-weight: 700; }
.order-status {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; padding: 4px 12px; border-radius: 20px;
}
.status-pending { background: #fef3cd; color: #856404; }
.status-confirmed { background: #d1ecf1; color: #0c5460; }
.status-shipped { background: #e2d4f0; color: #6f42c1; }
.status-delivered { background: #d4edda; color: #155724; }
.order-items { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 8px; }
.order-total { font-family: var(--font-head); color: var(--gold-dark); font-weight: 700; }
.order-date { font-size: 0.75rem; color: var(--gray-400); }

/* ============= Modals ============= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: var(--radius-lg); width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
}
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--gray-200);
  display: flex; gap: 12px; justify-content: flex-end;
}

/* ============= Toast Notifications ============= */
.toast-container {
  position: fixed; top: 80px; right: 20px; z-index: 500;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: white; padding: 14px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 500; min-width: 280px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--gold-dark);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============= Checkout ============= */
.checkout-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.checkout-summary {
  background: white; border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); position: sticky; top: 80px;
}
@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

/* ============= Misc ============= */
.badge {
  display: inline-block; font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; padding: 3px 8px;
  border-radius: 4px;
}
.badge-gold { background: var(--gold-bg); color: var(--gold-dark); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.page-top { padding-top: 80px; }

/* ============= Admin Table ============= */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--gray-500); padding: 12px 16px;
  text-align: left; border-bottom: 2px solid var(--gray-200);
}
.admin-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--gray-100);
  font-size: 0.85rem; vertical-align: middle;
}
.admin-table tr:hover td { background: var(--gray-50); }
.admin-table .product-thumb {
  width: 48px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--gray-100);
}

/* Toggle Switch */
.toggle { position: relative; width: 44px; height: 24px; cursor: pointer; }
.toggle input { display: none; }
.toggle-track {
  position: absolute; inset: 0; background: var(--gray-300); border-radius: 12px;
  transition: background var(--transition);
}
.toggle input:checked + .toggle-track { background: var(--success); }
.toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  background: white; border-radius: 50%; transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked ~ .toggle-thumb { transform: translateX(20px); }

/* ============= Page Transitions ============= */
/* Body stays invisible until JS marks it ready — prevents flash of wrong content */
body { opacity: 0; }
body.page-ready { opacity: 1; transition: opacity 0.22s ease; }

/* ============= Carrier Badges ============= */
.badge-cheap, .badge-fast {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  padding: 2px 7px; border-radius: 10px; margin-right: 4px; white-space: nowrap;
}
.badge-cheap { background: #fff8e1; color: #b8860b; border: 1px solid #f0d060; }
.badge-fast  { background: #1a1a1a; color: #fff;    border: 1px solid #333; }

/* ============= Variant Selection Modal (customer-facing) ============= */
.variant-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1100;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.15s ease;
}
.variant-modal {
  background: #fff; border-radius: 18px 18px 0 0; padding: 24px 20px 32px;
  width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  animation: slideUp 0.22s ease;
}
@keyframes slideUp { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.variant-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.variant-modal-title  { font-family: var(--font-head); font-size: 1.1rem; }
.variant-step-label   { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); margin: 14px 0 8px; }
.variant-opts-row     { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opt-btn {
  padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--gray-200);
  background: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.variant-opt-btn:hover   { border-color: var(--gold-dark); }
.variant-opt-btn.selected { border-color: var(--gold-dark); background: var(--gold-dark); color: #fff; }
.variant-opt-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.variant-price-display      { font-family: var(--font-head); font-size: 1.5rem; margin: 16px 0 4px; color: var(--gold-dark); }
.variant-price-placeholder  { font-size: 0.85rem; color: var(--gray-400); margin: 16px 0 4px; }
