/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --sand: #f7ecd8;
  --cream: #fffaf4;
  --dark: #2f1119;
  --gold: #d5ac55;
  --gold-dark: #9c712f;
  --muted: #78646a;
  --border: #eadbc6;
  --success-bg: #f0faf0;
  --success-text: #2d6a2d;
  --error-bg: #fdf0f0;
  --error-text: #a02020;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(26,20,16,0.08);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--cream); color: var(--dark); font-size: 15px; line-height: 1.6; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; }

/* ─── Alerts ────────────────────────────────────────────────── */
.alert { padding: 12px 20px; border-radius: var(--radius); margin: 16px auto; max-width: 1100px; font-size: 14px; }
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid #c3e6c3; }
.alert-error   { background: var(--error-bg);   color: var(--error-text);   border: 1px solid #f0c0c0; }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar { display: flex; align-items: center; justify-content: space-between;
          padding: 18px 48px; background: var(--dark); position: sticky; top: 0; z-index: 100; }
.brand  { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); letter-spacing: 2px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--sand); font-size: 14px; letter-spacing: 0.5px; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.cart-badge { background: var(--gold); color: var(--dark); border-radius: 50%; padding: 1px 7px;
              font-size: 12px; font-weight: 600; margin-left: 4px; }
.nav-links button {
  color: var(--sand);
  font-size: 14px;
  letter-spacing: 0.5px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color .2s;
}

/* .nav-links button:hover {
  background: var(--gold);
  color: var(--dark);
} */
.account-dropdown {
  position: relative;
}

.account-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s ease;
  z-index: 100;
}

.account-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a,
.dropdown-menu button {
  width: 100%;
  display: block;
  padding: 12px 18px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #222;
  font-size: 14px;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: #f7f3f1;
}
/* ─── Buttons ───────────────────────────────────────────────── */
.btn { display: inline-block; padding: 10px 24px; border-radius: var(--radius);
       font-family: var(--font-body); font-size: 14px; font-weight: 500; cursor: pointer;
       border: none; transition: all .2s; text-align: center; }
.btn-primary  { background: var(--gold); color: var(--dark); }
.btn-primary:hover  { background: var(--gold-dark); color: #fff; }
.btn-outline  { background: transparent; border: 1.5px solid var(--gold); color: var(--gold-dark); }
.btn-outline:hover  { background: var(--gold); color: var(--dark); }
.btn-danger   { background: #d9534f; color: #fff; }
.btn-danger:hover   { background: #c0302c; }
.btn-sm       { padding: 5px 12px; font-size: 12px; }
.btn-lg       { padding: 14px 36px; font-size: 16px; }
.btn-full     { display: block; width: 100%; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  color: var(--sand);
  background: linear-gradient(180deg, rgba(26,20,16,0.3), rgba(26,20,16,0.55)),
              url('/uploads/hero.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,20,16,0.45), rgba(26,20,16,0.72));
}
.hero-content {
  position: relative;
  max-width: 720px;
  text-align: center;
  padding: 24px;
}
.hero-label {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  line-height: 1.05;
  font-weight: 300;
  margin: 0;
}
.hero p {
  color: rgba(245,240,232,0.88);
  margin: 18px auto 24px;
  max-width: 610px;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
}
.hero-btn {
  padding: 14px 32px;
  font-size: 0.95rem;
}

.about-card {
  padding: 50px 24px;
  text-align: center;
}
.about-card h2 {
  color: #332f2b;
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 18px;
}
.about-card h3{
  color: #332f2b;
  font-size: 1.2rem;
  margin: 12px;
}
.about-card p {
  color: #7a6f63;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}



/* ─── Category Filter ───────────────────────────────────────── */
.category-filter, .status-filter {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 20px 24px 28px; margin-bottom: 20px }
.cat-btn { padding: 7px 20px; border-radius: 24px; border: 1.5px solid var(--border);
           font-size: 16px; color: var(--muted); transition: all .2s; }
.cat-btn:hover, .cat-btn.active { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ─── Product Grid ──────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr);
                gap: 24px; padding: 0 48px 64px; max-width: 1600px; margin: 0 auto; }
.product-card { background: #fff; overflow: hidden;
                box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(26,20,16,0.13); }
/* Tablet */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 24px 48px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px 40px;
  }
}
.product-img-wrap { height: 260px; overflow: hidden; background: var(--sand); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover img { transform: scale(1.04); }
.product-info { padding: 16px; }
.product-category { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
                    color: var(--muted); }
.product-name { font-family: var(--font-display); font-size: 1.2rem; margin: 4px 0 8px; }
.product-price { color: var(--gold-dark); font-weight: 600; }
.add-to-cart-form { padding: 0 16px 16px; }
.empty-state { text-align: center; color: var(--muted); padding: 48px; grid-column: 1/-1; }
.view-more-wrap { text-align: center; grid-column: 1/-1; margin: 20px 0 40px; }
.view-more-wrap .btn { min-width: 180px; }

/* ─── Product Detail ────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
                  max-width: 1000px; margin: 48px auto; padding: 0 24px; }
.product-detail-img img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 500px; }
.product-detail-info h1 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; margin: 12px 0; }
.product-price-lg { font-size: 1.5rem; color: var(--gold-dark); font-weight: 600; margin: 8px 0 16px; }
.product-desc { color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.detail-cart-form .qty-control { margin-bottom: 16px; }
.detail-cart-form label { font-size: 13px; color: var(--muted); margin-bottom: 4px; display: block; }
.detail-cart-form input[type=number] { width: 80px; padding: 8px; border: 1.5px solid var(--border);
                                        border-radius: var(--radius); font-size: 15px; }
.back-link { display: inline-block; margin-top: 20px; color: var(--muted); font-size: 14px; }

/* ─── Cart ──────────────────────────────────────────────────── */
.cart-page { max-width: 1000px; margin: 48px auto; padding: 0 24px; }
.cart-page h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 24px; }
.cart-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px 0;
             border-bottom: 1px solid var(--border); }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius); }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-family: var(--font-display); font-size: 1.1rem; }
.cart-item-total { font-weight: 600; min-width: 80px; text-align: right; }
.qty-form input[type=number] { width: 60px; padding: 6px; border: 1.5px solid var(--border); border-radius: 6px; }
.remove-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px; }
.remove-btn:hover { color: #d9534f; }
.cart-summary { background: #fff; border-radius: var(--radius); padding: 24px; height: fit-content;
                box-shadow: var(--shadow); }
.cart-summary h2 { font-family: var(--font-display); margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-row.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.empty-cart { text-align: center; padding: 64px 0; color: var(--muted); }
.empty-cart p { margin-bottom: 16px; font-size: 1.1rem; }

/* ─── Checkout ──────────────────────────────────────────────── */
.checkout-page { max-width: 1000px; margin: 48px auto; padding: 0 24px; }
.checkout-page h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 28px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; }
.checkout-form h2, .order-summary-box h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 14px;
  background: #fff; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cod-notice { display: flex; align-items: flex-start; gap: 12px; background: var(--sand);
              border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.cod-notice span { font-size: 1.5rem; }
.cod-notice p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.order-summary-box { background: #fff; border-radius: var(--radius); padding: 24px;
                     height: fit-content; box-shadow: var(--shadow); }
.summary-item { display: flex; justify-content: space-between; font-size: 14px;
                padding: 8px 0; border-bottom: 1px solid var(--border); }
.summary-divider { height: 1px; background: var(--border); margin: 12px 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 16px; }

/* ─── Confirmation ──────────────────────────────────────────── */
.confirmation-page { display: flex; justify-content: center; padding: 64px 24px; }
.confirmation-card { background: #fff; border-radius: var(--radius); padding: 48px;
                     box-shadow: var(--shadow); max-width: 540px; width: 100%; text-align: center; }
.check-icon { width: 64px; height: 64px; background: #f0faf0; border-radius: 50%;
              display: flex; align-items: center; justify-content: center;
              font-size: 28px; color: #2d6a2d; margin: 0 auto 20px; }
.confirmation-card h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 8px; }
.confirmation-card > p { color: var(--muted); margin-bottom: 28px; }
.ref-box { background: var(--sand); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; }
.ref-box span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.ref-box strong { display: block; font-size: 1.2rem; color: var(--dark); margin-top: 4px; }
.order-meta { text-align: left; margin-bottom: 28px; }
.meta-row { display: flex; justify-content: space-between; padding: 8px 0;
            border-bottom: 1px solid var(--border); font-size: 14px; }
.meta-row span:first-child { color: var(--muted); }

/* ─── Status Badges ─────────────────────────────────────────── */
.status-badge { padding: 3px 10px; border-radius: 24px; font-size: 12px; font-weight: 500; }
.status-pending        { background: #fff8e6; color: #a06000; }
.status-confirmed      { background: #e6f0ff; color: #2046a0; }
.status-out-for-delivery { background: #f0e6ff; color: #6020a0; }
.status-delivered      { background: #e6faf0; color: #1a6a3a; }
.status-cancelled      { background: #fde8e8; color: #a02020; }
.status-active         { background: #e6faf0; color: #1a6a3a; }
.status-inactive       { background: #f2f2f2; color: #888; }

/* ─── Admin Layout ──────────────────────────────────────────── */
.admin-body { background: #f4f3f1; }
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: var(--dark); display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold);
                 padding: 24px 20px; border-bottom: 1px solid #2e2820; letter-spacing: 1px; }
.sidebar-nav { display: flex; flex-direction: column; padding: 16px 0; flex: 1; }
.sidebar-nav a { color: var(--sand); padding: 12px 20px; font-size: 14px; transition: background .2s; }
.sidebar-nav a:hover { background: #2a2218; color: var(--gold); }
.logout-btn { width: 100%; padding: 12px 20px; background: none; border: none; color: #ffffff;
              font-size: 14px; text-align: left; cursor: pointer; font-family: var(--font-body); }
.admin-content { flex: 1; padding: 32px; overflow-y: auto; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-page-header h1 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; }
.admin-user { color: var(--muted); font-size: 13px; }

/* ─── Dashboard Stats ───────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
              gap: 20px; margin-bottom: 36px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 24px;
             box-shadow: var(--shadow); }
.stat-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
              color: var(--muted); margin-bottom: 8px; }
.stat-value { display: block; font-size: 1.8rem; font-weight: 600; color: var(--dark); }
.stat-warn    { color: #a06000; }
.stat-success { color: #1a6a3a; }
.stat-danger  { color: #a02020; }

/* ─── Data Table ────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; background: #fff;
              border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--sand); padding: 12px 16px; text-align: left; font-size: 12px;
                 text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--cream); }
.row-inactive td { opacity: 0.55; }
.table-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; vertical-align: middle; }
.actions-cell { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* ─── Admin Form ────────────────────────────────────────────── */
.admin-form { max-width: 640px; background: #fff; border-radius: var(--radius);
              padding: 32px; box-shadow: var(--shadow); }
.login-wrap  { display: flex; justify-content: center; align-items: center; min-height: 70vh; margin: 50px 0px;}
.login-card  { background: #fff; border-radius: var(--radius); padding: 40px;
               box-shadow: var(--shadow); width: 360px; }
.login-card h1 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 24px; }

/* ─── Order Detail ──────────────────────────────────────────── */
.order-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.order-info-card, .order-items-card, .status-update-card {
  background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.order-info-card h2, .order-items-card h2, .status-update-card h2 {
  font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 16px; }
.order-total { text-align: right; margin-top: 12px; font-size: 15px; }
.status-form { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.status-form select { padding: 9px 14px; border: 1.5px solid var(--border);
                      border-radius: var(--radius); font-size: 14px; }
.recent-orders { background: #fff; border-radius: var(--radius); padding: 24px;
                 box-shadow: var(--shadow); margin-top: 8px; }
.recent-orders h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 16px; }

/* ─── Admin Product Create ────────────────────────────────────────────── */
.admin-color-list { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:8px 0 }
.admin-swatch { width:32px; height:32px; border:2px solid #eee; border-radius:4px; position:relative }
.admin-swatch button.remove { position:absolute; top:-6px; right:-6px; background:#fff; border:1px solid #ccc; border-radius:50%; width:20px; height:20px; cursor:pointer }
.color-picker-row { display:flex; gap:8px; align-items:center; margin-top:6px }
.admin-image-preview{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:12px;
  }

.preview-image{
    width:80px;
    height:80px;
    object-fit:cover;
    border-radius:8px;
    border:1px solid #e5e5e5;
  }

/* ─── Error Page ────────────────────────────────────────────── */
.error-page { text-align: center; padding: 100px 24px; }
.error-page h1 { font-family: var(--font-display); font-size: 6rem; color: var(--gold); }
.error-page p  { color: var(--muted); margin: 16px 0 32px; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 16px 20px; }
  .product-grid { padding: 0 16px 40px; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout  { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-detail-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .admin-content { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}


/* TOP FOOTER LAYOUT */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  background: #E1DCC9;;
  color: #2e2820;
  padding: 50px 60px 25px;
}

/* LEFT SIDE */
.footer-content {
  flex: 1;
  min-width: 220px;
}

.footer-content .brand {
  font-size: 1.8rem;
  font-weight: 700;
  color:#2e2820;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-content p {
  color:#2e2820;
  line-height: 1.7;
}

/* CENTER LINKS */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 120px;
}

.footer-links a {
  color: #2e2820;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #544b3e;
}

/* RIGHT SIDE SOCIAL */
.social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
  min-width: 220px;
}

.social h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.social a,
.social p {
  color: #2e2820;
  text-decoration: none;
}



/* COPYRIGHT BOTTOM CENTER */
.copy-right {
  width: 100%;
  text-align: center;
  border-top: 1px solid #2e2820;
  padding-top: 20px;
  color: #2e2820;
  font-size: 0.95rem;
}


/* WHY CHOOSE US */
.why-choose-section {
  padding: 60px 24px;
  background: #faf7f5;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9b7b6d;
  margin-bottom: 12px;
  font-weight: 600;
}

.section-header h2 {
  font-size: 38px;
  margin-bottom: 18px;
  color: #1f1f1f;
}

.section-header p {
  color: #666;
  line-height: 1.8;
  font-size: 16px;
}

.why-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: #fff;
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
  transition: 0.3s ease;
  border: 1px solid #eee;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.why-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #f5ece8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon i {
  font-size: 28px;
  color: #8d6e63;
}

.why-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #222;
}

.why-card p {
  color: #666;
  line-height: 1.7;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 28px;
  }
}

/* my order */
/* ───────────────── ACCOUNT PAGE ───────────────── */

.account-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.account-header {
  margin-bottom: 40px;
  text-align: center;
}

.account-header h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1f1f1f;
}

.account-header p {
  color: #666;
  font-size: 16px;
  line-height: 1.7;
}

/* ───────────────── EMPTY STATE ───────────────── */

.empty-state {
  background: #faf7f5;
  border-radius: 18px;
  padding: 60px 24px;
  text-align: center;
  border: 1px solid #eee;
}

.empty-state p {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

/* ───────────────── TABLE ───────────────── */

.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  overflow: hidden;
}

.orders-table thead {
  background: #f8f4f2;
}

.orders-table th {
  padding: 18px 20px;
  text-align: left;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #555;
  font-weight: 600;
}

.orders-table td {
  padding: 20px;
  border-top: 1px solid #f0f0f0;
  color: #222;
  font-size: 15px;
  vertical-align: middle;
}

/* ───────────────── REFERENCE CODE ───────────────── */

.orders-table code {
  padding: 6px 10px;
  font-size: 13px;
  color: #8d6e63;
  font-weight: 600;
}

/* ───────────────── STATUS BADGES ───────────────── */

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

/* Pending */
.status-pending {
  background: #fff4db;
  color: #a66b00;
}

/* Processing */
.status-processing {
  background: #e6f0ff;
  color: #1d4ed8;
}

/* Shipped */
.status-shipped {
  background: #ede9fe;
  color: #6d28d9;
}

/* Delivered */
.status-delivered {
  background: #e7f8ee;
  color: #15803d;
}

/* Cancelled */
.status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

/* ───────────────── RESPONSIVE ───────────────── */

/* Large Laptop */
@media (max-width: 1400px) {
  .account-page {
    max-width: 1100px;
  }
}

/* Laptop */
@media (max-width: 1200px) {
  .orders-table th,
  .orders-table td {
    padding: 18px 16px;
  }
}

/* Tablet */
@media (max-width: 992px) {

  .account-header h2 {
    font-size: 36px;
  }

  .orders-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Small Tablet */
@media (max-width: 768px) {

  .account-page {
    padding: 40px 18px 60px;
  }

  .account-header {
    margin-bottom: 28px;
  }

  .account-header h2 {
    font-size: 30px;
  }

  .account-header p {
    font-size: 15px;
  }

  .orders-table th {
    font-size: 12px;
    padding: 16px 14px;
  }

  .orders-table td {
    font-size: 14px;
    padding: 16px 14px;
  }

  .status-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Mobile */
@media (max-width: 640px) {

  .account-page {
    padding: 32px 14px 50px;
  }

  .account-header h2 {
    font-size: 26px;
  }

  .empty-state {
    padding: 40px 20px;
  }

  .empty-state p {
    font-size: 16px;
  }

  .orders-table {
    border-radius: 14px;
  }

  .orders-table th,
  .orders-table td {
    padding: 14px 12px;
  }

  .orders-table code {
    font-size: 12px;
    padding: 5px 8px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {

  .account-header h1 {
    font-size: 22px;
  }

  .account-header p {
    font-size: 14px;
  }

  .orders-table th,
  .orders-table td {
    padding: 12px 10px;
    font-size: 13px;
  }

  .status-badge {
    font-size: 11px;
    padding: 5px 10px;
  }

  .orders-table code {
    font-size: 11px;
  }
}

.reviews-home-section {
    padding: 80px 40px;
    background: #faf9f7;
  }

  .reviews-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .review-home-card {
    background: #fff;
    border: 1px solid #ede9e3;
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .review-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  }

  .review-home-stars {
    display: flex;
    gap: 3px;
  }

  .review-home-stars i {
    font-size: 14px;
    color: #c9a84c;
  }

  .review-home-comment {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 0;
    flex: 1;
    font-style: italic;
  }

  .review-home-footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid #f0ebe4;
    padding-top: 12px;
    margin-top: auto;
  }

  .review-home-author {
    font-weight: 600;
    font-size: 13px;
    color: #2e4057;
  }

  .review-home-product {
    font-size: 12px;
    color: #999;
  }

  @media (max-width: 900px) {
    .reviews-home-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 580px) {
    .reviews-home-section {
      padding: 60px 20px;
    }
    .reviews-home-grid {
      grid-template-columns: 1fr;
    }
  }
/* ========================================================================== */
/* HADIA & TAHA — PREMIUM STOREFRONT SHELL                                  */
/* Header/footer inspired by the supplied Fatima layout, using H&T branding. */
/* ========================================================================== */
:root {
  --ht-burgundy: #4a0010;
  --ht-burgundy-2: #5c0012;
  --ht-burgundy-dark: #30000b;
  --ht-gold: #d5ac55;
  --ht-gold-soft: #e2c175;
  --ht-champagne: #f7e8c5;
  --ht-cream: #fff8ec;
  --ht-header-border: rgba(213, 172, 85, 0.42);
  --ht-footer-text: rgba(255, 248, 236, 0.82);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Loading screen */
body.ht-loading { overflow: hidden; }
.ht-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: #fff;
  color: #806f66;
  opacity: 1;
  visibility: visible;
  transition: opacity .32s ease, visibility .32s ease;
}
.ht-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.ht-loader-ring {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.ht-loader-ring::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 4px solid rgba(213, 172, 85, .30);
  border-top-color: var(--ht-burgundy-2);
  border-right-color: var(--ht-gold);
  animation: ht-loader-spin .9s linear infinite;
}
.ht-loader-image {
  width: 66px;
  height: 66px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 7px 22px rgba(74, 0, 16, .16);
}
.ht-loader span { font-size: 14px; letter-spacing: .15px; }
@keyframes ht-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ht-loader-ring::before { animation-duration: 1.8s; }
}

/* Header */
.ht-site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid rgba(74, 0, 16, .10);
  box-shadow: 0 8px 26px rgba(48, 0, 11, .055);
}
.ht-announcement {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 24px;
  background: linear-gradient(90deg, var(--ht-burgundy-dark), var(--ht-burgundy-2), var(--ht-burgundy-dark));
  color: var(--ht-champagne);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .15px;
}
.ht-header-main {
  min-height: 94px;
  display: grid;
  grid-template-columns: 82px max-content minmax(280px, 1fr) max-content;
  align-items: center;
  gap: 14px;
  padding: 13px 32px 10px;
  background: linear-gradient(180deg, #4a0010 0%, #3b000d 100%);
}
.ht-brand {
  width: 76px;
  height: 76px;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(226, 193, 117, .75);
  box-shadow: 0 7px 20px rgba(0, 0, 0, .18);
  background: var(--ht-burgundy);
}
.ht-brand img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-delivery-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(247, 232, 197, .28);
  border-radius: 999px;
  color: rgba(255, 248, 236, .86);
  white-space: nowrap;
  font-size: 13px;
}
.ht-delivery-chip i { color: var(--ht-gold-soft); }
.ht-search {
  width: 100%;
  min-width: 0;
  height: 42px;
  display: flex;
  overflow: hidden;
  background: #fffdfa;
  border: 1px solid rgba(213, 172, 85, .72);
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}
.ht-search:focus-within {
  border-color: var(--ht-gold);
  box-shadow: 0 0 0 3px rgba(213, 172, 85, .16);
}
.ht-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 15px;
  color: #3c2329;
  font: inherit;
  font-size: 14px;
}
.ht-search input::placeholder { color: #917a7f; opacity: 1; }
.ht-search button {
  width: 48px;
  border: 0;
  background: transparent;
  color: var(--ht-burgundy);
  cursor: pointer;
  font-size: 16px;
  transition: background .2s ease, color .2s ease;
}
.ht-search button:hover { background: var(--ht-champagne); color: var(--ht-burgundy-dark); }
.ht-header-actions { display: flex; align-items: center; gap: 8px; }
.ht-action-btn,
.ht-cart-action,
.ht-mobile-toggle {
  color: var(--ht-cream);
  border: 0;
  background: transparent;
  font: inherit;
}
.ht-action-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.ht-action-btn:hover { color: var(--ht-champagne); background: rgba(255, 255, 255, .07); }
.ht-action-btn > i:first-child { font-size: 18px; color: var(--ht-champagne); }
.ht-action-chevron { font-size: 9px; opacity: .78; }
.ht-account-dropdown { position: relative; }
.ht-account-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 190px;
  padding: 8px;
  border: 1px solid rgba(74, 0, 16, .09);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(48, 0, 11, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.ht-account-dropdown:hover .ht-account-menu,
.ht-account-dropdown.is-open .ht-account-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ht-account-menu a,
.ht-account-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4a2530;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ht-account-menu a:hover,
.ht-account-menu button:hover { background: #fff6e8; color: var(--ht-burgundy); }
.ht-cart-action {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e2c175, #c99b3d);
  color: #3a0a13;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}
.ht-cart-action:hover { color: #30000b; filter: brightness(1.035); }
.ht-cart-icon { position: relative; width: 27px; height: 27px; display: grid; place-items: center; }
.ht-cart-icon > i { font-size: 16px; }
.ht-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #4a0010;
  border-radius: 999px;
  background: #fff8ec;
  color: #4a0010;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.ht-cart-copy { display: flex; flex-direction: column; line-height: 1.15; }
.ht-cart-copy small { font-size: 9px; text-transform: uppercase; letter-spacing: .4px; opacity: .72; }
.ht-cart-copy strong { font-size: 12px; font-weight: 700; white-space: nowrap; }
.ht-mobile-toggle { display: none; width: 41px; height: 41px; border-radius: 10px; cursor: pointer; font-size: 19px; }
.ht-mobile-toggle:hover { background: rgba(255, 255, 255, .08); }
.ht-mobile-search-wrap { display: none; background: var(--ht-burgundy-dark); padding: 0 16px 12px; }
.ht-category-nav {
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 32px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid rgba(213, 172, 85, .45);
  scrollbar-width: none;
}
.ht-category-nav::-webkit-scrollbar { display: none; }
.ht-nav-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 33px;
  padding: 6px 14px;
  border: 1px solid rgba(92, 0, 18, .18);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--ht-burgundy);
  font-size: 13px;
  font-weight: 500;
  transition: all .2s ease;
}
.ht-nav-pill:hover { background: #f7e8c5; border-color: rgba(92, 0, 18, .30); color: var(--ht-burgundy-dark); }
.ht-nav-pill-primary { background: var(--ht-burgundy-2); color: #fff8ec; border-color: var(--ht-burgundy-2); }
.ht-nav-pill-primary:hover { background: var(--ht-burgundy-dark); color: #fff8ec; }
.ht-mobile-only-link { display: none; }

/* Footer */
.ht-footer {
  display: block;
  padding: 0;
  background: linear-gradient(140deg, #30000b 0%, #42000f 48%, #33000c 100%);
  color: var(--ht-footer-text);
  border-top: 1px solid rgba(213, 172, 85, .28);
}
.ht-footer-inner { max-width: 1440px; margin: 0 auto; padding: 40px 54px 22px; }
.ht-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 70px;
  align-items: start;
}
.ht-footer-brand-block { max-width: 720px; }
.ht-footer-logo { display: inline-block; width: 150px; margin-bottom: 13px; border-radius: 6px; overflow: hidden; }
.ht-footer-logo img { width: 100%; max-height: 126px; object-fit: contain; display: block; background: transparent; }
.ht-footer-brand-block > p { max-width: 680px; color: var(--ht-footer-text); font-size: 14px; line-height: 1.65; }
.ht-socials { display: flex; gap: 9px; margin-top: 16px; min-height: 36px; }
.ht-socials:empty { display: none; }
.ht-socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 232, 197, .28);
  border-radius: 50%;
  color: var(--ht-cream);
  background: rgba(255, 255, 255, .02);
  transition: all .2s ease;
}
.ht-socials a:hover { transform: translateY(-2px); color: var(--ht-burgundy-dark); background: var(--ht-gold-soft); border-color: var(--ht-gold-soft); }
.ht-footer h3 { margin: 0 0 13px; color: var(--ht-gold); font-family: var(--font-display); font-size: 15px; letter-spacing: .25px; font-weight: 600; }
.ht-footer-contact { padding-top: 8px; }
.ht-footer-contact p { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 13px; color: var(--ht-footer-text); font-size: 13.5px; line-height: 1.5; }
.ht-footer-contact p i { width: 16px; margin-top: 3px; color: var(--ht-gold); text-align: center; }
.ht-footer-contact a { color: inherit; }
.ht-footer-contact a:hover { color: var(--ht-gold-soft); }
.ht-contact-note { max-width: 310px; opacity: .78; }
.ht-footer-divider { height: 1px; margin: 27px 0 31px; background: rgba(247, 232, 197, .14); }
.ht-footer-links-grid { display: grid; grid-template-columns: repeat(3, minmax(155px, 1fr)); gap: 36px 70px; max-width: 760px; }
.ht-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ht-footer-column h3 { margin-bottom: 3px; }
.ht-footer-column a { color: rgba(255, 248, 236, .80); font-size: 13.5px; line-height: 1.45; transition: color .2s ease, transform .2s ease; }
.ht-footer-column a:hover { color: var(--ht-gold-soft); transform: translateX(2px); }
.ht-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 17px;
  border-top: 1px solid rgba(247, 232, 197, .10);
  color: rgba(255, 248, 236, .58);
  font-size: 12px;
}
.ht-footer-bottom p { margin: 0; }
.ht-footer-bottom span { color: rgba(226, 193, 117, .72); letter-spacing: .8px; }

@media (max-width: 1120px) {
  .ht-header-main { grid-template-columns: 72px minmax(230px, 1fr) max-content; padding-inline: 22px; }
  .ht-brand { width: 67px; height: 67px; }
  .ht-delivery-chip { display: none; }
  .ht-action-label { display: none; }
  .ht-action-btn { padding-inline: 7px; }
  .ht-footer-top { gap: 45px; }
}

@media (max-width: 820px) {
  .ht-announcement { min-height: 28px; padding-inline: 14px; font-size: 11.5px; }
  .ht-header-main { min-height: 74px; grid-template-columns: 58px 1fr max-content; gap: 10px; padding: 8px 14px; }
  .ht-brand { width: 56px; height: 56px; }
  .ht-header-main > .ht-search { display: none; }
  .ht-header-actions { justify-self: end; }
  .ht-mobile-toggle { display: inline-grid; place-items: center; }
  .ht-mobile-search-wrap { display: block; }
  .ht-search-mobile { height: 40px; border-radius: 11px; }
  .ht-cart-copy { display: none; }
  .ht-cart-action { min-width: 42px; min-height: 42px; justify-content: center; padding: 6px 9px; }
  .ht-cart-action > .ht-action-chevron { display: none; }
  .ht-category-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 148px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px 16px;
    background: #fffdf8;
    box-shadow: 0 14px 30px rgba(48, 0, 11, .14);
  }
  .ht-category-nav.is-open { display: flex; }
  .ht-nav-pill { width: 100%; justify-content: flex-start; min-height: 42px; border-radius: 10px; }
  .ht-mobile-only-link { display: inline-flex; }
  .ht-footer-inner { padding: 34px 25px 20px; }
  .ht-footer-top { grid-template-columns: 1fr; gap: 28px; }
  .ht-footer-contact { padding-top: 0; }
  .ht-footer-links-grid { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 28px; }
}

@media (max-width: 560px) {
  .ht-announcement span { max-width: 360px; }
  .ht-header-main { grid-template-columns: 52px 1fr max-content; padding-inline: 10px; }
  .ht-brand { width: 50px; height: 50px; }
  .ht-header-actions { gap: 2px; }
  .ht-action-btn { min-width: 39px; justify-content: center; }
  .ht-action-btn > i:first-child { font-size: 19px; }
  .ht-cart-action { min-width: 39px; padding-inline: 7px; }
  .ht-mobile-toggle { width: 39px; height: 39px; }
  .ht-mobile-search-wrap { padding: 0 10px 10px; }
  .ht-footer-inner { padding-inline: 18px; }
  .ht-footer-logo { width: 138px; }
  .ht-footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
  .ht-footer-column:last-child { grid-column: 1 / -1; }
  .ht-footer-bottom { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* ========================================================================== */
/* HADIA & TAHA — PROFESSIONAL STOREFRONT UPGRADE                           */
/* ========================================================================== */
body {
  background: #fffaf4;
  color: #2f1119;
}
main { min-height: 48vh; }
::selection { background: rgba(213, 172, 85, .42); color: #30000b; }
.btn { border-radius: 10px; font-weight: 600; letter-spacing: .01em; }
.btn-primary {
  background: linear-gradient(135deg, #5c0012, #3a000c);
  color: #fff8ec;
  border: 1px solid rgba(213,172,85,.32);
  box-shadow: 0 8px 18px rgba(74,0,16,.14);
}
.btn-primary:hover { background: linear-gradient(135deg, #710019, #4a0010); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: rgba(92,0,18,.28); color: #5c0012; background: #fffaf4; }
.btn-outline:hover { background: #5c0012; color: #fff8ec; border-color: #5c0012; }
.form-group label { color: #3c2027; font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid #e6d6c0;
  border-radius: 10px;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: #d5ac55; box-shadow: 0 0 0 3px rgba(213,172,85,.15); outline: 0; }
.login-card,
.order-summary-box,
.confirmation-card,
.order-info-card,
.order-items-card,
.status-update-card,
.recent-orders { border: 1px solid rgba(92,0,18,.07); box-shadow: 0 16px 40px rgba(74,0,16,.07); }

/* Header polish */
.ht-site-header { box-shadow: 0 12px 35px rgba(48,0,11,.075); }
.ht-header-main { background: radial-gradient(circle at 20% 0%, rgba(213,172,85,.10), transparent 28%), linear-gradient(180deg, #510012 0%, #36000c 100%); }
.ht-brand { background: transparent; border-color: rgba(226,193,117,.5); }
.ht-brand img { object-fit: contain; background: #4a0010; }
.ht-search { height: 46px; border-radius: 15px; }
.ht-search button { width: 54px; }
.ht-category-nav { justify-content: flex-start; background: rgba(255,253,249,.96); }
.ht-nav-pill { padding-inline: 16px; }
.ht-nav-pill-primary { box-shadow: 0 6px 14px rgba(92,0,18,.12); }

/* Hero */
.ht-home-hero {
  min-height: clamp(500px, 63vw, 680px);
  background: linear-gradient(90deg, rgba(37,0,8,.80), rgba(56,0,12,.36) 52%, rgba(26,0,5,.18)), url('/uploads/hero.jpg') center/cover no-repeat;
  place-items: center start;
}
.ht-home-hero .hero-overlay { background: linear-gradient(90deg, rgba(39,0,9,.55), rgba(52,0,12,.18) 58%, rgba(20,0,4,.06)); }
.ht-home-hero .hero-content { max-width: 760px; text-align: left; margin-left: clamp(24px, 7vw, 105px); padding: 46px 24px; }
.ht-home-hero h1 { font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -.025em; color: #fff6e6; text-wrap: balance; }
.ht-home-hero p { margin-inline: 0; max-width: 620px; color: rgba(255,248,236,.88); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.ht-home-hero .hero-label { color: #e2c175; font-weight: 700; letter-spacing: 2.4px; }
.ht-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.ht-btn-light { background: rgba(255,248,236,.96); color: #4a0010; border: 1px solid rgba(255,255,255,.45); }
.ht-btn-light:hover { background: #fff; color: #30000b; transform: translateY(-1px); }

/* Trust strip */
.ht-trust-strip {
  max-width: 1440px;
  margin: -32px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  background: #fffdf8;
  border: 1px solid rgba(92,0,18,.08);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(74,0,16,.10);
  overflow: hidden;
}
.ht-trust-strip > div { display: flex; align-items: center; gap: 13px; padding: 20px 24px; border-right: 1px solid rgba(92,0,18,.07); }
.ht-trust-strip > div:last-child { border-right: 0; }
.ht-trust-strip i { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: #f7ead1; color: #5c0012; }
.ht-trust-strip span { display: flex; flex-direction: column; line-height: 1.35; }
.ht-trust-strip strong { font-size: 13.5px; color: #34141c; }
.ht-trust-strip small { font-size: 11.5px; color: #806c71; margin-top: 2px; }

/* Shop / filters */
.ht-shop-section { max-width: 1540px; margin: 0 auto; padding: 92px 42px 80px; scroll-margin-top: 180px; }
.ht-shop-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.ht-shop-heading h2,
.ht-page-intro h1,
.ht-content-section h2,
.ht-about-hero h1 { font-family: var(--font-display); font-weight: 500; color: #30000b; }
.ht-shop-heading h2 { font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1; }
.ht-shop-heading p { color: #846f74; margin-top: 8px; }
.ht-eyebrow { display: inline-block; color: #9c712f; font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.ht-shop-toolbar { display: flex; align-items: center; gap: 12px; }
.ht-sort-form { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; background: #fff; border: 1px solid #eadbc6; border-radius: 12px; box-shadow: 0 8px 20px rgba(74,0,16,.045); }
.ht-sort-form label { font-size: 12px; color: #78646a; white-space: nowrap; }
.ht-sort-form select { border: 0; outline: 0; background: transparent; color: #3a1720; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 2px 5px; }
.ht-filter-toggle { display: none; align-items: center; gap: 8px; border: 1px solid rgba(92,0,18,.20); border-radius: 12px; background: #fff; color: #5c0012; min-height: 42px; padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.ht-active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.ht-filter-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: #f6ead5; color: #5c0012; font-size: 12px; font-weight: 600; border: 1px solid rgba(156,113,47,.16); }
.ht-filter-chip:hover { background: #eed8b1; color: #3a000c; }
.ht-clear-filters { display: inline-flex; align-items: center; padding: 7px 8px; color: #8a7278; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.ht-shop-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 34px; align-items: start; }
.ht-filters { position: sticky; top: 180px; border: 1px solid rgba(92,0,18,.08); border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(74,0,16,.055); overflow: hidden; }
.ht-filter-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid #f1e5d4; background: linear-gradient(180deg,#fffdf9,#fffaf2); }
.ht-filter-header h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1; color: #3c111c; }
.ht-filter-header .ht-eyebrow { margin-bottom: 4px; }
.ht-filter-header button { display: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f6ead5; color: #5c0012; cursor: pointer; }
.ht-filter-form { padding: 0 20px 20px; }
.ht-filter-group { border: 0; padding: 20px 0; border-bottom: 1px solid #f2e7d8; }
.ht-filter-group legend { width: 100%; font-size: 13px; font-weight: 700; color: #3b1c23; margin-bottom: 12px; }
.ht-filter-options { display: flex; flex-direction: column; gap: 8px; }
.ht-radio-option { display: flex; cursor: pointer; }
.ht-radio-option input { position: absolute; opacity: 0; pointer-events: none; }
.ht-radio-option span { width: 100%; padding: 7px 10px; border-radius: 9px; color: #725e63; font-size: 13px; transition: .18s ease; }
.ht-radio-option input:checked + span { background: #f5e6ca; color: #4a0010; font-weight: 700; }
.ht-radio-option span:hover { background: #fff7e9; color: #4a0010; }
.ht-price-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; }
.ht-price-range label { display: flex; flex-direction: column; gap: 5px; }
.ht-price-range label span { font-size: 10px; color: #8b777c; text-transform: uppercase; letter-spacing: .8px; }
.ht-price-range input,
.ht-filter-select { width: 100%; min-height: 40px; border: 1px solid #e5d6c3; border-radius: 9px; background: #fffdf9; color: #402029; padding: 8px 10px; font: inherit; font-size: 12px; outline: 0; }
.ht-price-range input:focus,
.ht-filter-select:focus { border-color: #d5ac55; box-shadow: 0 0 0 3px rgba(213,172,85,.12); }
.ht-price-separator { padding-bottom: 8px; color: #ae999f; }
.ht-choice-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.ht-choice-pills label { cursor: pointer; }
.ht-choice-pills input { position: absolute; opacity: 0; pointer-events: none; }
.ht-choice-pills span { min-width: 38px; min-height: 34px; display: grid; place-items: center; padding: 5px 9px; border: 1px solid #e5d6c3; border-radius: 9px; background: #fff; color: #715c62; font-size: 12px; font-weight: 600; }
.ht-choice-pills input:checked + span { background: #5c0012; color: #fff8ec; border-color: #5c0012; box-shadow: 0 5px 12px rgba(92,0,18,.14); }
.ht-filter-actions { display: grid; gap: 8px; padding-top: 18px; }
.ht-filter-reset { background: #fff; color: #5c0012; border: 1px solid #decab1; }
.ht-filter-reset:hover { background: #fff7e9; color: #3a000c; }
.ht-filter-backdrop { display: none; }
.ht-products-area { min-width: 0; }
.product-grid.ht-product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0; gap: 22px; max-width: none; }
.ht-product-card { border: 1px solid rgba(92,0,18,.065); border-radius: 14px; box-shadow: 0 12px 30px rgba(57,0,12,.06); background: #fff; }
.ht-product-card:hover { transform: translateY(-6px); box-shadow: 0 22px 42px rgba(57,0,12,.12); }
.ht-product-link { display: block; color: inherit; }
.ht-product-image { position: relative; height: 330px; background: #f7efdf; }
.ht-product-image img { height: 100%; }
.ht-view-badge { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%,10px); opacity: 0; white-space: nowrap; padding: 8px 13px; border-radius: 999px; background: rgba(48,0,11,.92); color: #fff8ec; font-size: 11px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.18); transition: .22s ease; }
.ht-product-card:hover .ht-view-badge { transform: translate(-50%,0); opacity: 1; }
.ht-product-info { padding: 17px 17px 19px; }
.ht-product-info .product-category { color: #a07840; font-weight: 700; }
.ht-product-info .product-name { font-size: 1.25rem; color: #33151d; margin-top: 5px; }
.ht-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.ht-product-meta .product-price { color: #5c0012; }
.ht-product-meta small { color: #907c81; font-size: 10.5px; }
.ht-empty-products { min-height: 420px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; border: 1px dashed #decbb2; border-radius: 16px; background: #fffdfa; padding: 40px; }
.ht-empty-products > i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #f5e6ca; color: #5c0012; font-size: 19px; }
.ht-empty-products h3 { font-family: var(--font-display); font-size: 1.7rem; color: #3a1620; }
.ht-empty-products p { color: #806c71; }
.ht-empty-products .btn { margin-top: 8px; }

/* Why section */
.ht-why-section { background: linear-gradient(180deg,#f8eddb,#fffaf4); border-top: 1px solid #efdfc8; border-bottom: 1px solid #efdfc8; }
.ht-why-section .section-header h2 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3.15rem); font-weight: 500; color: #30000b; }
.ht-why-section .why-grid { max-width: 1280px; grid-template-columns: repeat(4,1fr); }
.ht-why-section .why-card { background: rgba(255,255,255,.82); border: 1px solid rgba(92,0,18,.07); box-shadow: 0 13px 34px rgba(74,0,16,.05); }
.ht-why-section .why-icon { color: #5c0012; background: #f3dfbb; }

/* About */
.ht-about-hero { max-width: 1360px; margin: 54px auto 0; padding: 55px 60px; display: grid; grid-template-columns: 1fr 320px; align-items: center; gap: 60px; border-radius: 24px; background: radial-gradient(circle at 85% 10%,rgba(213,172,85,.18),transparent 26%), linear-gradient(135deg,#3a000c,#650018); color: #fff8ec; overflow: hidden; }
.ht-about-hero h1 { color: #fff4df; font-size: clamp(3rem,7vw,5.8rem); line-height: .95; }
.ht-about-hero p { color: #e2c175; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .18em; margin: 12px 0 18px; }
.ht-about-hero strong { max-width: 520px; display: block; color: rgba(255,248,236,.78); font-weight: 400; }
.ht-about-logo-card { background: rgba(255,255,255,.06); border: 1px solid rgba(226,193,117,.34); border-radius: 18px; padding: 24px; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.ht-about-logo-card img { display: block; width: 100%; border-radius: 10px; }
.ht-content-section { max-width: 1180px; margin: 0 auto; padding: 92px 30px; }
.ht-content-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.ht-content-section h2 { font-size: clamp(2rem,4vw,3.2rem); line-height: 1.08; }
.ht-rich-copy p { color: #725f64; font-size: 1rem; line-height: 1.85; margin-bottom: 20px; }
.ht-brand-values { max-width: 1240px; margin: 0 auto 90px; padding: 0 30px; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ht-brand-values article { padding: 30px; border: 1px solid #eadbc6; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(74,0,16,.045); }
.ht-brand-values i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #f4e3c4; color: #5c0012; margin-bottom: 18px; }
.ht-brand-values h3 { color: #3b1720; margin-bottom: 8px; }
.ht-brand-values p { color: #7b676c; line-height: 1.7; }

/* Security, privacy and legal */
.ht-account-page,
.ht-privacy-page { max-width: 1240px; margin: 0 auto; padding: 72px 30px 100px; }
.ht-page-intro { max-width: 720px; margin-bottom: 34px; }
.ht-page-intro h1 { font-size: clamp(2.6rem,5vw,4rem); line-height: 1; }
.ht-page-intro p { color: #78646a; margin-top: 12px; font-size: 1rem; }
.ht-security-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.ht-privacy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ht-panel { background: #fff; border: 1px solid rgba(92,0,18,.08); border-radius: 18px; padding: 30px; box-shadow: 0 15px 40px rgba(74,0,16,.055); }
.ht-panel-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.ht-panel-heading > i,
.ht-panel-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 44px; border-radius: 50%; background: #f4e3c4; color: #5c0012; }
.ht-panel h2 { font-family: var(--font-display); font-size: 1.7rem; color: #35131c; }
.ht-panel > p,
.ht-panel-heading p { color: #806c71; line-height: 1.65; }
.ht-panel-icon { margin-bottom: 20px; }
.ht-security-form { display: grid; gap: 16px; }
.ht-security-form .form-group { margin: 0; }
.ht-security-form input { width: 100%; min-height: 46px; padding: 10px 12px; }
.ht-security-form small { display: block; margin-top: 5px; color: #907c81; font-size: 11px; }
.ht-security-list { list-style: none; display: grid; gap: 15px; }
.ht-security-list li { display: flex; align-items: flex-start; gap: 11px; }
.ht-security-list li > i { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 24px; border-radius: 50%; background: #edf7ef; color: #2d6a3f; font-size: 10px; }
.ht-security-list span { display: flex; flex-direction: column; }
.ht-security-list strong { color: #412029; font-size: 13px; }
.ht-security-list small { color: #8a767b; line-height: 1.45; margin-top: 2px; }
.ht-account-meta { margin: 24px 0; padding: 15px; border-radius: 12px; background: #fff8ed; border: 1px solid #f0dfc6; display: flex; flex-direction: column; }
.ht-account-meta span,.ht-account-meta small { color: #8b777c; font-size: 11px; }
.ht-account-meta strong { color: #4a0010; margin: 2px 0; }
.ht-text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: #5c0012; font-size: 13px; font-weight: 700; }
.ht-text-link:hover { color: #9c712f; }
.ht-privacy-grid .btn { margin-top: 18px; }
.ht-legal-page { max-width: 980px; margin: 0 auto; padding: 64px 24px 100px; }
.ht-legal-card { background: #fff; border: 1px solid #eadbc6; border-radius: 20px; padding: clamp(28px,5vw,58px); box-shadow: 0 18px 48px rgba(74,0,16,.055); }
.ht-legal-card h1 { font-family: var(--font-display); font-size: clamp(2.5rem,5vw,4rem); color: #30000b; line-height: 1; }
.ht-legal-card h2 { font-family: var(--font-display); font-size: 1.6rem; color: #43151f; margin: 30px 0 8px; }
.ht-legal-card p { color: #78646a; line-height: 1.8; margin: 10px 0; }
.ht-legal-updated { font-size: 12px; color: #9b878c !important; }

/* Privacy banner + preferences modal */
.ht-cookie-banner { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 1200; max-width: 1180px; margin: 0 auto; display: none; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; border: 1px solid rgba(213,172,85,.40); border-radius: 16px; background: rgba(48,0,11,.97); color: #fff8ec; box-shadow: 0 24px 65px rgba(25,0,5,.32); backdrop-filter: blur(14px); }
.ht-cookie-banner.is-visible { display: flex; }
.ht-cookie-banner strong { color: #f2d696; }
.ht-cookie-banner p { max-width: 700px; margin-top: 4px; color: rgba(255,248,236,.75); font-size: 12.5px; line-height: 1.55; }
.ht-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ht-cookie-actions .btn { white-space: nowrap; }
.ht-cookie-secondary { background: transparent; color: #fff8ec; border: 1px solid rgba(255,248,236,.28); }
.ht-cookie-secondary:hover { background: rgba(255,255,255,.08); color: #fff; }
.ht-cookie-modal { position: fixed; inset: 0; z-index: 1300; display: none; place-items: center; padding: 22px; }
.ht-cookie-modal.is-open { display: grid; }
.ht-cookie-modal-backdrop { position: absolute; inset: 0; background: rgba(28,0,6,.62); backdrop-filter: blur(5px); }
.ht-cookie-dialog { position: relative; z-index: 1; width: min(560px,100%); max-height: min(760px,calc(100vh - 44px)); overflow: auto; background: #fffdf9; border: 1px solid rgba(213,172,85,.35); border-radius: 20px; padding: 28px; box-shadow: 0 28px 90px rgba(20,0,4,.35); }
.ht-cookie-dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.ht-cookie-dialog-head h2 { font-family: var(--font-display); font-size: 2rem; color: #35000c; line-height: 1; }
.ht-cookie-dialog-head button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f4e3c4; color: #5c0012; cursor: pointer; }
.ht-cookie-intro { color: #806c71; line-height: 1.6; font-size: 13px; margin: 18px 0 8px; }
.ht-cookie-setting { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid #efe2d0; }
.ht-cookie-setting > div { display: flex; flex-direction: column; }
.ht-cookie-setting strong { color: #412029; }
.ht-cookie-setting small { color: #927e83; font-size: 11.5px; margin-top: 2px; }
.ht-always-on { padding: 6px 9px; border-radius: 999px; background: #edf7ef; color: #2d6a3f; font-size: 10px; font-weight: 700; white-space: nowrap; }
.ht-cookie-setting input { position: absolute; opacity: 0; pointer-events: none; }
.ht-switch { width: 46px; height: 26px; flex: 0 0 46px; position: relative; border-radius: 999px; background: #d9cebf; cursor: pointer; transition: .2s ease; }
.ht-switch::after { content: ''; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: .2s ease; }
.ht-cookie-setting input:checked + .ht-switch { background: #5c0012; }
.ht-cookie-setting input:checked + .ht-switch::after { transform: translateX(20px); }
.ht-cookie-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
body.ht-modal-open, body.ht-filter-open { overflow: hidden; }
.ht-footer-bottom-links { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.ht-footer-bottom-links button { border: 0; background: transparent; color: rgba(255,248,236,.60); font: inherit; font-size: 12px; cursor: pointer; }
.ht-footer-bottom-links button:hover,
.ht-footer-bottom-links a:hover { color: #e2c175; }
.ht-footer-bottom-links a { color: rgba(255,248,236,.60); font-size: 12px; }

/* Admin brand refresh */
.sidebar { background: linear-gradient(180deg,#35000c,#230008); }
.sidebar-brand { color: #e2c175; border-bottom-color: rgba(226,193,117,.16); }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #e2c175; }

@media (max-width: 1250px) {
  .product-grid.ht-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ht-trust-strip { margin-inline: 22px; }
}

@media (max-width: 980px) {
  .ht-trust-strip { grid-template-columns: repeat(2,1fr); }
  .ht-trust-strip > div:nth-child(2) { border-right: 0; }
  .ht-trust-strip > div:nth-child(-n+2) { border-bottom: 1px solid rgba(92,0,18,.07); }
  .ht-shop-section { padding-inline: 22px; }
  .ht-shop-layout { grid-template-columns: 1fr; }
  .ht-filter-toggle { display: inline-flex; }
  .ht-filters { position: fixed; z-index: 1005; top: 0; left: 0; bottom: 0; width: min(360px,88vw); border-radius: 0 18px 18px 0; transform: translateX(-102%); transition: transform .25s ease; overflow-y: auto; }
  .ht-filters.is-open { transform: translateX(0); }
  .ht-filter-header { position: sticky; top: 0; z-index: 2; }
  .ht-filter-header button { display: grid; place-items: center; }
  .ht-filter-backdrop { position: fixed; z-index: 1000; inset: 0; background: rgba(31,0,7,.42); opacity: 0; visibility: hidden; display: block; transition: .2s ease; }
  .ht-filter-backdrop.is-open { opacity: 1; visibility: visible; }
  .ht-why-section .why-grid { grid-template-columns: repeat(2,1fr); }
  .ht-about-hero { margin-inline: 22px; grid-template-columns: 1fr 240px; padding: 42px; }
  .ht-content-grid { grid-template-columns: 1fr; gap: 30px; }
  .ht-security-grid { grid-template-columns: 1fr; }
  .ht-privacy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .ht-home-hero { min-height: 520px; }
  .ht-home-hero .hero-content { margin-left: 0; padding-inline: 22px; text-align: left; }
  .ht-home-hero h1 { font-size: clamp(2.5rem,12vw,4rem); }
  .ht-trust-strip { margin-top: -22px; grid-template-columns: 1fr; border-radius: 15px; }
  .ht-trust-strip > div { border-right: 0; border-bottom: 1px solid rgba(92,0,18,.07); padding: 14px 17px; }
  .ht-trust-strip > div:last-child { border-bottom: 0; }
  .ht-shop-section { padding-top: 65px; padding-inline: 14px; }
  .ht-shop-heading { align-items: flex-start; flex-direction: column; }
  .ht-shop-toolbar { width: 100%; justify-content: space-between; }
  .ht-sort-form { flex: 1; justify-content: space-between; min-width: 0; }
  .ht-sort-form label { display: none; }
  .ht-sort-form select { width: 100%; }
  .product-grid.ht-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .ht-product-image { height: 240px; }
  .ht-product-info { padding: 13px; }
  .ht-product-info .product-name { font-size: 1.05rem; }
  .ht-product-meta { align-items: flex-end; flex-direction: column; gap: 2px; }
  .ht-view-badge { display: none; }
  .ht-why-section .why-grid { grid-template-columns: 1fr; }
  .ht-about-hero { margin: 24px 14px 0; padding: 32px 24px; grid-template-columns: 1fr; gap: 28px; }
  .ht-about-logo-card { max-width: 280px; }
  .ht-content-section { padding: 60px 20px; }
  .ht-brand-values { grid-template-columns: 1fr; padding: 0 18px; margin-bottom: 65px; }
  .ht-account-page,.ht-privacy-page { padding: 54px 16px 80px; }
  .ht-panel { padding: 23px 20px; }
  .ht-cookie-banner { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; padding: 17px; }
  .ht-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ht-cookie-actions .btn:last-child { grid-column: 1/-1; }
  .ht-cookie-dialog { padding: 22px 18px; }
  .ht-cookie-dialog-actions { display: grid; }
  .ht-footer-bottom { align-items: flex-start; }
}

@media (max-width: 420px) {
  .product-grid.ht-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ht-product-image { height: 205px; }
  .ht-product-meta small { display: none; }
  .ht-shop-heading h2 { font-size: 2rem; }
}

/* Branded inner customer pages */
.product-detail,
.cart-page,
.checkout-page { max-width: 1180px; margin-top: 58px; margin-bottom: 85px; }
.product-detail { gap: 60px; }
.product-detail-img { border-radius: 18px; overflow: hidden; background: #f7ead8; border: 1px solid #eadbc6; box-shadow: 0 18px 45px rgba(74,0,16,.07); }
.product-detail-img img { border-radius: 0; max-height: 650px; }
.product-detail-info { padding: 18px 0; }
.product-detail-info h1 { font-size: clamp(2.1rem,4vw,3.5rem); color: #30000b; line-height: 1.05; }
.product-price-lg { color: #5c0012; font-weight: 700; font-size: 1.35rem; margin: 12px 0 18px; }
.product-desc { color: #78646a; line-height: 1.8; }
.detail-cart-form { margin-top: 28px; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid #eadbc6; box-shadow: 0 12px 30px rgba(74,0,16,.045); }
.size-box { border-color: #decbb2; border-radius: 9px; background: #fffdf9; color: #5c0012; }
.size-box.selected { background: #5c0012; border-color: #5c0012; color: #fff8ec; }
.qty-control input { border: 1px solid #decbb2; border-radius: 9px; }
.image-thumbnails .thumb { border-radius: 9px; border-color: #eadbc6; }
.image-thumbnails .thumb.active { border-color: #d5ac55; box-shadow: 0 0 0 2px rgba(213,172,85,.16); }
.reviews-section { border-radius: 18px; border: 1px solid #eadbc6; background: #fff; box-shadow: 0 14px 34px rgba(74,0,16,.045); }

.cart-page h1,
.checkout-page h1 { font-size: clamp(2.4rem,4vw,3.4rem); color: #30000b; }
.cart-items { background: #fff; border: 1px solid #eadbc6; border-radius: 16px; padding: 0 20px; box-shadow: 0 12px 34px rgba(74,0,16,.045); }
.cart-item { border-bottom-color: #f0e3d2; }
.cart-item-image { border-radius: 11px !important; border: 1px solid #eadbc6; }
.cart-item-info h3 { color: #3b1720; }
.cart-item-info p,.variant-meta { color: #806c71; }
.cart-item-total { color: #5c0012; }
.cart-summary,
.checkout-form,
.order-summary-box { border: 1px solid #eadbc6; border-radius: 16px; box-shadow: 0 14px 38px rgba(74,0,16,.055); }
.checkout-form { background: #fff; padding: 30px; }
.checkout-form h2,.order-summary-box h2,.cart-summary h2 { color: #3b1720; font-size: 1.65rem; }
.cod-notice { border-radius: 12px; background: #fff8e9; border: 1px solid #ead4ac; color: #5d444a; }
.remove-btn { color: #7a2538; }
.empty-cart { background: #fff; border: 1px dashed #decbb2; border-radius: 16px; padding: 58px 24px; text-align: center; }
.auth-banner,.auth-warning { border-radius: 12px; background: #fff4dd; border: 1px solid #ecd09a; color: #5f454b; }

.login-wrap { min-height: 66vh; padding: 45px 18px; margin: 0; background: radial-gradient(circle at 50% 0%, rgba(213,172,85,.13), transparent 35%); }
.login-card { width: min(430px,100%); border-radius: 18px; padding: 38px; border: 1px solid #eadbc6; box-shadow: 0 20px 55px rgba(74,0,16,.09); }
.login-card h1 { font-size: 2.2rem; color: #30000b; text-align: center; }
.login-card .form-group input { min-height: 46px; width: 100%; padding: 10px 12px; }
.login-card > p { color: #806c71; font-size: 13px; }

@media (max-width: 768px) {
  .product-detail,.cart-page,.checkout-page { margin-top: 30px; margin-bottom: 60px; padding-inline: 16px; }
  .product-detail { gap: 28px; }
  .detail-cart-form,.checkout-form { padding: 20px; }
  .cart-items { padding-inline: 14px; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-info { min-width: 160px; }
}

/* Hadia & Taha catalog filters / inventory */
.ht-feature-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ht-feature-filter-grid label{cursor:pointer}.ht-feature-filter-grid input{position:absolute;opacity:0;pointer-events:none}.ht-feature-filter-grid span{display:flex;align-items:center;gap:8px;padding:10px 11px;border:1px solid rgba(90,0,20,.16);border-radius:12px;background:#fffaf2;font-size:.88rem;transition:.2s ease}.ht-feature-filter-grid input:checked+span{background:#4a0010;color:#fff5df;border-color:#4a0010;box-shadow:0 6px 18px rgba(74,0,16,.12)}.ht-card-badges{position:absolute;top:12px;left:12px;display:flex;gap:6px;flex-wrap:wrap;z-index:2}.ht-card-badge{background:#4a0010;color:#fff8ec;border:1px solid rgba(255,255,255,.35);font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;padding:6px 8px;border-radius:999px}.ht-sale-badge{background:#c99b3d;color:#2e0710}.ht-product-brand-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}.ht-product-brand{font-size:.73rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#7b5b24}.ht-stock-dot{font-size:.72rem;font-weight:700;white-space:nowrap}.ht-stock-dot:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:#8d1f2d}.ht-stock-dot.is-in{color:#2f6d44}.ht-stock-dot.is-in:before{background:#3f8c58}.ht-stock-dot.is-out{color:#8d1f2d}.ht-price-stack{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}.ht-old-price{text-decoration:line-through;color:#8a7b77}.ht-out-of-stock-card .ht-product-image img{filter:saturate(.7);opacity:.78}.ht-out-of-stock-card .ht-view-badge{background:#2f2a2b;color:#fff}.ht-filter-select{width:100%;min-height:44px;border:1px solid rgba(74,0,16,.18);border-radius:10px;padding:0 12px;background:#fff;color:#381019}.admin-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.admin-check-card{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid #e4d3bd;border-radius:10px;background:#fffaf3}.admin-help{color:#746461;font-size:.82rem}@media(max-width:620px){.ht-feature-filter-grid{grid-template-columns:1fr}.admin-check-grid{grid-template-columns:1fr}}
.ht-detail-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.ht-detail-price{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ht-detail-price .product-price-lg{width:100%;margin-top:2px}.ht-detail-stock{font-weight:800;margin:8px 0 12px}.ht-detail-stock.is-in{color:#2f6d44}.ht-detail-stock.is-out{color:#8d1f2d}.ht-detail-fabric{color:#66545a}.btn[disabled],button[disabled]{opacity:.58;cursor:not-allowed}

/* 2026-09 catalog integration: six-column desktop grid, live catalog, cart controls */
.ht-shop-section { max-width: 1920px; margin-inline: auto; }
.ht-shop-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
.ht-products-area { min-width: 0; transition: opacity .18s ease; }
.ht-shop-section.is-loading .ht-products-area { opacity: .56; pointer-events: none; }
.ht-catalog-status { min-height: 18px; margin: -12px 0 10px; font-size: 12px; color: #806c71; }
.product-grid.ht-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.ht-product-card { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.ht-product-link { flex: 1 1 auto; min-width: 0; }
.ht-product-image { height: auto; aspect-ratio: 4 / 5; }
.ht-product-info { padding: 13px 13px 11px; }
.ht-product-info .product-name { font-size: 1.08rem; line-height: 1.22; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ht-product-brand-row { align-items: flex-start; }
.ht-product-brand { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 58%; }
.ht-stock-dot { font-size: .65rem; }
.ht-product-meta { margin-top: 7px; align-items: flex-end; }
.ht-product-meta .product-price { font-size: .95rem; }
.ht-card-rating { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: #a87516; font-size: .72rem; }
.ht-card-rating small { color: #8d7a7f; }
.ht-card-commerce { padding: 0 12px 13px; margin-top: auto; }
.ht-card-cart-form { display: grid; gap: 8px; }
.ht-card-variant-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.ht-card-variant-row label { min-width: 0; }
.ht-card-variant-row label span { display: block; font-size: 9px; font-weight: 700; letter-spacing: .06em; color: #8a747a; text-transform: uppercase; margin-bottom: 2px; }
.ht-card-variant-row select { width: 100%; min-width: 0; height: 32px; border: 1px solid #e4d3bd; border-radius: 8px; background: #fffdf9; color: #45212a; padding: 0 6px; font: inherit; font-size: 10px; }
.ht-card-add-btn { min-height: 37px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #5c0012; border-radius: 9px; background: #5c0012; color: #fff8ec; font-size: 11px; font-weight: 700; padding: 7px 9px; }
.ht-card-add-btn:hover { background: #76001a; color: #fff; }
.ht-card-add-btn[disabled] { background: #eee5de; border-color: #ded3cc; color: #7f7470; }
.ht-login-add { background: #fffaf2; color: #5c0012; }
.ht-card-cart-form.is-busy { opacity: .65; }
.ht-card-qty { position: relative; display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; border: 1px solid #dec8aa; border-radius: 10px; min-height: 39px; overflow: hidden; background: #fffaf2; }
.ht-card-qty[hidden] { display: none !important; }
.ht-card-qty button { height: 100%; border: 0; background: #f4e3c7; color: #5c0012; font-size: 19px; cursor: pointer; }
.ht-card-qty > span { text-align: center; font-weight: 800; color: #3a1720; }
.ht-card-qty small { position: absolute; left: 50%; transform: translateX(-50%); bottom: -13px; display: none; }
.ht-card-feedback { min-height: 15px; margin-top: 4px; font-size: 9.5px; color: #6f5d62; line-height: 1.3; }
.ht-catalog-nav { display: grid; justify-items: center; gap: 14px; margin-top: 30px; }
.ht-results-range { color: #806c71; font-size: 12px; }
.ht-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.ht-page-btn { min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e1d0bb; border-radius: 9px; background: #fff; color: #5c0012; padding: 7px 10px; font-size: 12px; font-weight: 700; }
.ht-page-btn.is-active { background: #5c0012; border-color: #5c0012; color: #fff; }
.ht-page-btn.is-disabled { opacity: .42; pointer-events: none; }
.ht-page-ellipsis { color: #927f83; padding: 0 2px; }
.ht-load-more { min-width: 190px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #5c0012; background: #fff; color: #5c0012; }
.ht-load-more:hover { background: #5c0012; color: #fff; }

/* Product detail and reviews: full-width review section under product media/info */
.ht-product-detail-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 60px; }
.ht-product-detail-page .back-link,
.ht-product-detail-page .reviews-section { grid-column: 1 / -1; }
.thumb-button { border: 2px solid transparent; border-radius: 10px; padding: 0; background: transparent; cursor: pointer; }
.thumb-button.active { border-color: #d5ac55; box-shadow: 0 0 0 2px rgba(213,172,85,.16); }
.thumb-button .thumb { display: block; border: 0; }
.color-swatches { display: flex; gap: 8px; margin: 8px 0 12px; align-items: center; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border: 2px solid #eadbc6; border-radius: 8px; padding: 0; cursor: pointer; }
.swatch.selected { outline: 2px solid #5c0012; box-shadow: 0 0 0 3px rgba(92,0,18,.10); }
.size-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.size-box { min-width: 44px; height: 44px; cursor: pointer; }
.variant-control label { display: block; margin-bottom: 6px; font-weight: 600; }
.qty-control { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.qty-control input { width: 86px; min-height: 42px; padding: 7px 9px; }
.reviews-section { margin-top: 4px; padding: 28px; }
.reviews-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 18px; }
.reviews-header h2 { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: #3a111b; margin: 0; }
.rating-summary { text-align: right; }
.avg-rating { display: flex; flex-direction: column; align-items: flex-end; }
.stars-large { display: flex; gap: 4px; margin-bottom: 4px; color: #d99a00; }
.avg-rating-text { font-size: 13px; color: #6f5d62; }
.ht-review-actions-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0 22px; border-bottom: 1px solid #f0e4d4; }
.login-prompt { margin: 0; color: #746166; background: #fff8ec; border: 1px solid #efdfc6; border-radius: 10px; padding: 10px 12px; }
.ht-review-pending { color: #7a642d; font-size: 12px; }
.reviews-list { margin-top: 20px; }
.review-card { border: 1px solid #eee1d0; border-radius: 12px; padding: 16px; margin-bottom: 12px; background: #fffdf9; }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.review-stars { display: flex; align-items: center; gap: 4px; color: #d99a00; font-size: 12px; margin-bottom: 5px; }
.rating-value { color: #5f4d52; font-weight: 700; margin-left: 4px; }
.reviewer-info strong { display: block; color: #3a1720; }
.review-date { color: #97858a; font-size: 11px; }
.verified-badge { display: inline-flex; align-items: center; gap: 5px; background: #edf8ef; color: #2f6d44; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.review-comment { color: #4c3b40; line-height: 1.65; }
.review-actions { border-top: 1px solid #efe3d4; margin-top: 12px; padding-top: 8px; }
.delete-review-btn { border: 0; background: none; color: #9b2337; cursor: pointer; font: inherit; font-size: 11px; }
.ht-empty-reviews { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; color: #8b777c; }
.ht-empty-reviews i { font-size: 26px; color: #c59a45; }

/* Cart stepper */
.qty-stepper { display: grid; grid-template-columns: 34px 52px 34px; border: 1px solid #decbb2; border-radius: 9px; overflow: hidden; }
.qty-stepper button { border: 0; background: #f5e6ca; color: #5c0012; cursor: pointer; font-size: 18px; }
.qty-stepper input { width: 100%; border: 0; text-align: center; min-height: 38px; background: #fff; }

@media (max-width: 1450px) {
  .product-grid.ht-product-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
}
@media (max-width: 1320px) {
  .product-grid.ht-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .ht-shop-layout { grid-template-columns: 230px minmax(0,1fr); gap: 20px; }
}
@media (max-width: 980px) {
  .ht-shop-layout { grid-template-columns: 1fr; }
  .product-grid.ht-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .ht-product-detail-page { grid-template-columns: 1fr; gap: 28px; }
  .ht-product-detail-page .back-link,
  .ht-product-detail-page .reviews-section { grid-column: auto; }
}
@media (max-width: 820px) {
  .product-grid.ht-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .product-grid.ht-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .ht-product-info { padding: 10px 10px 8px; }
  .ht-product-info .product-name { font-size: .98rem; }
  .ht-product-brand { max-width: 54%; font-size: .64rem; }
  .ht-stock-dot { font-size: .59rem; }
  .ht-card-commerce { padding: 0 9px 10px; }
  .ht-card-variant-row { grid-template-columns: 1fr; }
  .ht-card-variant-row select { height: 31px; }
  .ht-pagination { gap: 4px; }
  .ht-page-btn { min-width: 34px; min-height: 34px; padding: 5px 7px; }
  .reviews-section { padding: 20px 15px; }
  .reviews-header { flex-direction: column; }
  .rating-summary { text-align: left; }
  .avg-rating { align-items: flex-start; }
  .review-header { flex-direction: column; }
}
@media (max-width: 360px) {
  .product-grid.ht-product-grid { grid-template-columns: 1fr; }
  .ht-product-image { aspect-ratio: 5 / 6; }
  .ht-card-variant-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
}


/* === Hadia storefront v3: compact collection, 50-product load, basic live filters === */
.container{width:min(100% - 32px,1600px);margin-inline:auto}
.ht-collection-intro{padding-top:42px;padding-bottom:24px}
.ht-breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:18px;color:#8b7479;font-size:12px}
.ht-breadcrumb a{color:#76515a}.ht-breadcrumb i{font-size:8px;color:#b5a0a5}
.ht-collection-intro h1{font-family:var(--font-display);font-size:clamp(2.4rem,4vw,4rem);font-weight:500;line-height:1;color:#4a0010;margin:5px 0 8px}
.ht-collection-intro>p{color:#866f75;font-size:14px}
.ht-shop-section{max-width:none;padding:0 0 70px}
.ht-shop-heading{margin-bottom:18px;min-height:38px}.ht-results-summary{font-size:14px;color:#765e64}.ht-results-summary strong{color:#4a0010}
.ht-shop-layout{grid-template-columns:250px minmax(0,1fr);gap:28px}
.product-grid.ht-product-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.ht-product-card{border-radius:13px;box-shadow:0 8px 24px rgba(57,0,12,.055)}
.ht-product-image{aspect-ratio:4/5}.ht-product-info{padding:12px 12px 10px}.ht-product-info .product-name{font-size:1rem}
.ht-card-commerce{padding:0 11px 12px}.ht-card-variant-row{gap:5px}.ht-card-add-btn{min-height:35px;border-radius:8px}
.ht-card-badge{background:rgba(74,0,16,.92);color:#fff;border-color:rgba(255,255,255,.22)}.ht-upcoming-badge{background:#d9a94c;color:#2d0710}
.ht-catalog-nav{margin-top:34px}.ht-results-range{font-size:12px}.ht-load-more{min-width:240px;padding:12px 24px;border-radius:999px;background:#5c0012;color:#fff}.ht-load-more:hover{background:#76001a}
.ht-pagination{display:none!important}
.ht-filter-form{padding-bottom:22px}.ht-filter-group{padding:18px 0}.ht-basic-filter-options{gap:7px}
.ht-radio-option span{min-height:42px;display:flex;align-items:center;padding:9px 11px;border:1px solid #eadbc8;border-radius:10px;background:#fffdf9;transition:.18s ease}
.ht-radio-option input:checked+span{border-color:#5c0012;background:#fff3e2;color:#5c0012;box-shadow:0 0 0 2px rgba(92,0,18,.06)}
.ht-filter-reset-link{display:inline-flex;align-items:center;gap:7px;margin-top:17px;color:#8a6b70;font-size:12px}.ht-filter-reset-link:hover{color:#5c0012}
.ht-active-filters{display:none!important}
.ht-search{position:relative;overflow:visible;padding-left:0}.ht-search input{padding-right:42px}.ht-search-icon{position:absolute;right:15px;top:50%;transform:translateY(-50%);color:#5c0012;pointer-events:none;font-size:15px}
.ht-search-suggestions{position:absolute;z-index:1400;left:0;right:0;top:calc(100% + 8px);max-height:420px;overflow:auto;background:#fff;border:1px solid rgba(92,0,18,.13);border-radius:14px;box-shadow:0 18px 42px rgba(48,0,11,.18);padding:7px}
.ht-search-suggestions[hidden]{display:none}.ht-search-suggestion-item{display:flex;align-items:center;gap:11px;padding:8px;border-radius:10px;color:#311319}.ht-search-suggestion-item:hover{background:#fff5e7}
.ht-search-suggestion-item img{width:46px;height:54px;object-fit:cover;border-radius:7px;background:#f5ebdd}.ht-search-suggestion-copy{min-width:0;display:flex;flex-direction:column}.ht-search-suggestion-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ht-search-suggestion-copy small{font-size:10px;color:#937e83;margin-top:2px}
.ht-search-view-all{width:100%;border:0;border-top:1px solid #f1e5d4;margin-top:4px;padding:11px;background:transparent;color:#5c0012;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.ht-search-empty{padding:16px;text-align:center;color:#8a7479;font-size:12px}
.ht-badge{background:transparent!important;color:#fff!important;border-color:rgba(255,255,255,.72)!important;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.ht-footer-inner.container{max-width:1600px;padding-top:38px}.ht-footer-logo{width:auto;display:inline-flex;align-items:center;gap:13px;border-radius:0;overflow:visible;margin-bottom:14px}.ht-footer-logo img{width:78px;height:78px;max-height:none;object-fit:cover;border-radius:12px;border:1px solid rgba(226,193,117,.45)}
.ht-footer-logo-copy{display:flex;flex-direction:column;color:#f6dfab}.ht-footer-logo-copy strong{font-family:var(--font-display);font-size:1.7rem;letter-spacing:.06em;font-weight:600}.ht-footer-logo-copy small{margin-top:2px;color:#fff5df;font-size:12px;letter-spacing:.12em}
@media(max-width:1320px){.product-grid.ht-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:980px){.ht-shop-layout{grid-template-columns:1fr}.product-grid.ht-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.container{width:min(100% - 22px,1600px)}.ht-collection-intro{padding-top:26px}.product-grid.ht-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ht-search-suggestions{position:fixed;left:12px;right:12px;top:118px}.ht-footer-logo img{width:66px;height:66px}.ht-footer-logo-copy strong{font-size:1.35rem}}
@media(max-width:360px){.product-grid.ht-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-product-info .product-name{font-size:.92rem}}


/* V4: product card variant defaults + exact selected color/size badges */
.ht-card-variant-field { display: grid; gap: 4px; min-width: 0; }
.ht-card-variant-field > span:first-child { margin-bottom: 0; }
.ht-selected-variant {
  min-height: 26px;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px !important;
  margin: 0 !important;
  border: 1px solid #e4d3bd;
  border-radius: 999px;
  background: #fff8ec;
  color: #4a0010 !important;
  font-size: 9px !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
}
.ht-selected-variant strong {
  min-width: 0;
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  font-weight: 800;
}
.ht-color-dot {
  --variant-color: transparent;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-block;
  border-radius: 50%;
  background: var(--variant-color);
  border: 1px solid rgba(48,0,11,.22);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(74,0,16,.08);
}
.ht-selected-size { min-width: 38px; justify-content: center; background: #5c0012; border-color: #5c0012; color: #fff8ec !important; }
.ht-selected-size strong { color: inherit; text-align: center; }
.ht-card-variant-row select { margin-top: 0; }
.ht-card-variant-row option { color: #45212a; background: #fffdf9; }
.variant-control label span#selectedColor,
.variant-control label span#selectedSize {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff3df;
  border: 1px solid #e8d2ae;
  color: #5c0012;
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 620px) {
  .ht-selected-variant strong { max-width: 110px; }
}

/* V5: stock-safe cart controls + realtime states */
.ht-card-cart-form[hidden], .ht-card-qty[hidden], .ht-detail-qty[hidden], [data-detail-add][hidden] { display:none !important; }
.ht-card-qty button:disabled, .ht-detail-qty button:disabled { opacity:.45; cursor:not-allowed; background:#eadcc6; }
.ht-card-qty { margin-top:0; }
.ht-card-feedback { min-height:18px; margin:5px 2px 0; font-size:10px; line-height:1.35; color:#7c5c64; }
.ht-detail-cart-actions { margin-top:18px; display:flex; align-items:stretch; gap:10px; }
.ht-detail-cart-actions [data-detail-add] { min-width:220px; }
.ht-detail-qty { width:min(100%,260px); min-height:48px; grid-template-columns:48px 1fr 48px; }
.ht-detail-qty > span { font-size:16px; }
.ht-detail-cart-feedback { min-height:20px; margin-top:8px; font-size:12px; }
.ht-guest-cart-note { margin-top:7px; font-size:11px; color:#806970; }
.cart-item.is-updating { opacity:.68; pointer-events:none; }
.ht-realtime-notice { position:sticky; top:10px; z-index:100; }
@media(max-width:620px){.ht-detail-cart-actions{width:100%}.ht-detail-cart-actions [data-detail-add],.ht-detail-qty{width:100%;min-width:0}}



/* V9: Add-to-Cart first, exact-variant quantity stepper only after cart insertion */
.ht-card-add-btn[hidden],
[data-card-add][hidden],
[data-detail-add][hidden],
.ht-card-qty[hidden],
.ht-detail-qty[hidden] { display: none !important; }
.ht-card-cart-form { display: grid; gap: 8px; }
.ht-card-qty, .ht-detail-qty { border-color: #dec8aa; background: #fffaf2; box-shadow: none; }
.ht-card-qty button, .ht-detail-qty button { transition: background .18s ease, opacity .18s ease, transform .12s ease; }
.ht-card-qty button:not(:disabled):active, .ht-detail-qty button:not(:disabled):active { transform: scale(.96); }
.ht-card-qty button:disabled, .ht-detail-qty button:disabled { opacity: .42; cursor: not-allowed; }
.ht-card-cart-form.is-busy [data-card-add] { opacity: .72; cursor: wait; }

/* =========================================================
   CUSTOMER ACCOUNT DASHBOARD / ORDER HISTORY / RETURNS V10
   ========================================================= */
.ht-customer-dashboard{background:linear-gradient(180deg,#fffaf3 0%,#fffdf9 44%,#fff8ee 100%);min-height:70vh;padding:46px 0 86px}.ht-dashboard-shell{display:grid;gap:24px}.ht-dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:8px 2px 4px}.ht-dashboard-hero h1{font-family:var(--font-display);font-size:clamp(2.1rem,4vw,3.5rem);line-height:.98;color:#3a111b;margin:5px 0 10px}.ht-dashboard-hero p{max-width:700px;color:#806c71;line-height:1.65}.ht-dashboard-quick-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.ht-btn-soft{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fffaf2!important;color:#5c0012!important;border:1px solid #e6d3b8!important;box-shadow:none!important}.ht-btn-soft:hover{background:#f7ead8!important;border-color:#d5ac55!important}.ht-customer-panel-nav{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:8px;background:#fff;border:1px solid #eadbc6;border-radius:16px;box-shadow:0 12px 30px rgba(74,0,16,.045);scrollbar-width:none}.ht-customer-panel-nav::-webkit-scrollbar{display:none}.ht-customer-panel-nav a{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:11px;color:#694c54;text-decoration:none;font-size:.9rem;font-weight:700;white-space:nowrap}.ht-customer-panel-nav a:hover,.ht-customer-panel-nav a.active{background:#5c0012;color:#fff8ec}.ht-dashboard-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.ht-dashboard-stat{min-width:0;display:flex;align-items:center;gap:13px;padding:20px;background:#fff;border:1px solid #eadbc6;border-radius:17px;box-shadow:0 12px 30px rgba(74,0,16,.045)}.ht-stat-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:13px;background:#f7e9ce;color:#5c0012}.ht-dashboard-stat small{display:block;color:#8a7379;font-size:.72rem;text-transform:uppercase;letter-spacing:.055em;font-weight:800}.ht-dashboard-stat strong{display:block;margin-top:3px;color:#3b1720;font-size:1.35rem}.ht-dashboard-tracker,.ht-order-history-panel{background:#fff;border:1px solid #eadbc6;border-radius:20px;padding:24px;box-shadow:0 16px 42px rgba(74,0,16,.05)}.ht-dashboard-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.ht-dashboard-section-head h2{font-family:var(--font-display);font-size:2rem;color:#35131c;margin:2px 0 0}.ht-dashboard-section-head p{color:#8a7379;margin-top:4px}.ht-live-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:999px;background:#edf7ef;color:#2d6a3f;font-size:.74rem;font-weight:800;white-space:nowrap}.ht-live-chip i{font-size:.48rem}.ht-latest-order-summary{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;align-items:center;gap:18px;padding:18px 20px;border-radius:15px;background:linear-gradient(135deg,#fff8ed,#fffdf9);border:1px solid #f0dfc6}.ht-latest-order-summary>div{display:flex;flex-direction:column;gap:5px;min-width:0}.ht-latest-order-summary small,.ht-order-card-main small{color:#927c81;font-size:.69rem;text-transform:uppercase;letter-spacing:.05em;font-weight:800}.ht-latest-order-summary strong{color:#3f1821;overflow-wrap:anywhere}.ht-order-status{display:inline-flex;width:max-content;max-width:100%;align-items:center;padding:6px 10px;border-radius:999px;background:#f3eee7;color:#5e4a50;font-size:.74rem;font-weight:800;white-space:nowrap}.ht-order-status.status-pending{background:#fff4d8;color:#8a5b00}.ht-order-status.status-confirmed{background:#e9f1ff;color:#285b9f}.ht-order-status.status-out-for-delivery{background:#e8f4ff;color:#17618c}.ht-order-status.status-delivered{background:#e9f7ee;color:#287042}.ht-order-status.status-cancelled{background:#fdebed;color:#9a2436}.ht-order-history-head{align-items:flex-end}.ht-result-count{padding:8px 11px;border-radius:999px;background:#f7ead8;color:#6e4610;font-size:.78rem;font-weight:800;white-space:nowrap}.ht-order-tools{display:grid;grid-template-columns:minmax(260px,1.8fr) repeat(3,minmax(140px,.72fr));gap:10px;margin-bottom:18px}.ht-order-tools>label{display:flex;flex-direction:column;gap:5px}.ht-order-tools>label>span{color:#7f686f;font-size:.67rem;text-transform:uppercase;letter-spacing:.05em;font-weight:800}.ht-order-tools select,.ht-order-search input{width:100%;min-height:44px;border:1px solid #dfcbb1;border-radius:11px;background:#fffdf9;color:#3f1d25;font:inherit;padding:0 12px;outline:none}.ht-order-tools select:focus,.ht-order-search input:focus{border-color:#b77d2f;box-shadow:0 0 0 3px rgba(183,125,47,.12)}.ht-order-search{position:relative!important;justify-content:flex-end}.ht-order-search>i{position:absolute;left:13px;bottom:14px;color:#8f747b}.ht-order-search input{padding-left:38px;padding-right:38px}.ht-search-spinner{position:absolute;right:13px;bottom:12px;color:#5c0012}.ht-order-history-list{display:grid;gap:10px;transition:opacity .18s ease}.is-orders-loading .ht-order-history-list{opacity:.56}.ht-order-history-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid #eee0ce;border-radius:15px;background:#fffdf9;transition:.18s ease}.ht-order-history-card:hover{border-color:#dcc09a;box-shadow:0 10px 24px rgba(74,0,16,.045);transform:translateY(-1px)}.ht-order-card-main{display:grid;grid-template-columns:minmax(150px,1.35fr) minmax(70px,.45fr) minmax(130px,.8fr) minmax(145px,.95fr);align-items:center;gap:18px;flex:1;min-width:0}.ht-order-ref,.ht-order-card-meta,.ht-order-card-status{display:flex;flex-direction:column;gap:4px;min-width:0}.ht-order-ref strong,.ht-order-card-meta strong{color:#3d1821;overflow:hidden;text-overflow:ellipsis}.ht-order-ref>span{color:#99858a;font-size:.76rem}.ht-return-mini{font-size:.7rem;color:#7a5218;font-weight:700}.ht-order-card-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.ht-order-action{border:1px solid #dfcbb1;border-radius:9px;background:#fff;color:#5c0012;min-height:34px;padding:6px 10px;font:inherit;font-size:.75rem;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.ht-order-action:hover{background:#5c0012;color:#fff;border-color:#5c0012}.ht-order-action.danger-soft{background:#fff4f5;border-color:#efc8cf;color:#9a2436}.ht-order-action.danger-soft:hover{background:#9a2436;color:#fff;border-color:#9a2436}.ht-dashboard-pagination{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;margin-top:20px}.ht-dashboard-pagination button{height:38px;min-width:38px;padding:0 11px;border:1px solid #dfcbb1;border-radius:9px;background:#fff;color:#5c0012;font:inherit;font-size:.8rem;font-weight:800;cursor:pointer}.ht-dashboard-pagination button.active{background:#5c0012;color:#fff;border-color:#5c0012}.ht-dashboard-pagination button:disabled{opacity:.38;cursor:not-allowed}.ht-dashboard-pagination button span{margin:0 3px}.ht-page-gap{color:#9a858a}.ht-dashboard-empty{display:flex;align-items:center;justify-content:center;gap:14px;min-height:150px;padding:24px;border:1px dashed #dfcbb1;border-radius:14px;background:#fffaf2;color:#745e64;text-align:left}.ht-dashboard-empty.compact{min-height:auto;justify-content:flex-start}.ht-dashboard-empty>i{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#f3e1c4;color:#5c0012}.ht-dashboard-empty strong{display:block;color:#43202a;margin-bottom:2px}.ht-dashboard-empty p{margin:0;color:#8d787e}.ht-dashboard-empty.error>i{background:#fdebed;color:#9a2436}.ht-dashboard-loading{display:flex;align-items:center;justify-content:center;gap:9px;padding:40px;color:#816d72}.ht-account-modal[hidden]{display:none!important}.ht-account-modal{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:20px}.ht-account-modal-backdrop{position:absolute;inset:0;background:rgba(30,0,7,.58);backdrop-filter:blur(3px)}.ht-account-modal-card{position:relative;z-index:1;width:min(720px,100%);max-height:min(82vh,760px);overflow:auto;border-radius:20px;background:#fffdf9;border:1px solid #e3ccb0;padding:28px;box-shadow:0 30px 90px rgba(29,0,7,.28)}.ht-account-modal-card h2{font-family:var(--font-display);font-size:2rem;color:#37131d;margin:3px 0 18px}.ht-modal-close{position:absolute;top:16px;right:16px;width:38px;height:38px;border:1px solid #eadbc6;border-radius:50%;background:#fff;color:#5c0012;cursor:pointer}.ht-modal-open{overflow:hidden}.ht-tracking-order-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:18px;border-bottom:1px solid #eee0ce}.ht-tracking-order-head>div{display:flex;flex-direction:column;gap:2px}.ht-tracking-order-head small{color:#8e797e;text-transform:uppercase;font-size:.7rem;font-weight:800;letter-spacing:.05em}.ht-tracking-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:26px 0}.ht-tracking-step{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;color:#9b8a8e}.ht-tracking-step:not(:last-child)::after{content:"";position:absolute;top:16px;left:58%;right:-42%;height:2px;background:#e3d8ca}.ht-tracking-step.complete:not(:last-child)::after{background:#5c0012}.ht-tracking-step>span{position:relative;z-index:1;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;border:2px solid #d9cdbf;background:#fff;color:#a28f93}.ht-tracking-step.complete>span{border-color:#5c0012;background:#5c0012;color:#fff}.ht-tracking-step.current>span{box-shadow:0 0 0 5px rgba(92,0,18,.09)}.ht-tracking-step small{font-weight:800;font-size:.72rem}.ht-tracking-step.complete small{color:#4b2931}.ht-tracking-history{margin-top:22px}.ht-tracking-history h3{font-family:var(--font-display);font-size:1.45rem;color:#3a1720;margin-bottom:13px}.ht-tracking-event{position:relative;display:grid;grid-template-columns:16px 1fr;gap:10px;padding-bottom:17px}.ht-tracking-event:not(:last-child)::before{content:"";position:absolute;left:5px;top:13px;bottom:0;width:1px;background:#e3d2bc}.ht-history-dot{width:11px;height:11px;margin-top:5px;border-radius:50%;background:#5c0012;box-shadow:0 0 0 3px #f5e7d2}.ht-tracking-event strong{color:#44232b}.ht-tracking-event p{margin:2px 0;color:#816d72}.ht-tracking-event small{color:#9a878c}.ht-tracking-cancelled{display:flex;align-items:center;gap:10px;margin:22px 0;padding:16px;border-radius:12px;background:#fdebed;color:#92283a}.ht-return-tracking-note{display:flex;flex-direction:column;gap:3px;margin-top:15px;padding:14px;border-radius:12px;background:#fff4dd;border:1px solid #ecd09a;color:#624a28}.ht-account-order-items{display:grid;gap:10px}.ht-account-order-items article{display:grid;grid-template-columns:66px 1fr auto;align-items:center;gap:13px;padding:12px;border:1px solid #eee0ce;border-radius:13px;background:#fff}.ht-account-order-items img{width:66px;height:72px;object-fit:cover;border-radius:9px;background:#f5eadc}.ht-account-order-items article>div{display:flex;flex-direction:column;gap:3px;min-width:0}.ht-account-order-items strong{color:#3f1d25}.ht-account-order-items span,.ht-account-order-items small{color:#887379;font-size:.77rem}.ht-return-modal-card>p{color:#816d72;line-height:1.6}.ht-return-modal-card form{display:grid;gap:14px;margin-top:18px}.ht-return-modal-card label{display:grid;gap:6px;color:#5d434a;font-weight:700;font-size:.82rem}.ht-return-modal-card label span small{font-weight:400;color:#9b878c}.ht-return-modal-card select,.ht-return-modal-card textarea{width:100%;border:1px solid #dfcbb1;border-radius:10px;background:#fff;color:#3e1c25;font:inherit;padding:11px;outline:none}.ht-return-modal-card select:focus,.ht-return-modal-card textarea:focus{border-color:#b77d2f;box-shadow:0 0 0 3px rgba(183,125,47,.12)}.ht-return-feedback{min-height:20px;color:#6f541d;font-size:.8rem}.ht-modal-actions{display:flex;gap:10px;justify-content:flex-end}.ht-muted{color:#8b777c}.admin-return-card{margin-top:18px}.admin-return-form{display:grid!important;grid-template-columns:minmax(150px,.6fr) minmax(220px,1.5fr) auto;gap:10px!important;align-items:center}.admin-return-form input{min-height:42px;border:1px solid #ddd;border-radius:7px;padding:0 11px;font:inherit}
@media(max-width:1100px){.ht-dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.ht-order-tools{grid-template-columns:1.5fr repeat(3,1fr)}.ht-order-card-main{grid-template-columns:1.2fr .5fr .8fr 1fr}.ht-order-history-card{align-items:flex-start;flex-direction:column}.ht-order-card-actions{justify-content:flex-start}.admin-return-form{grid-template-columns:1fr}}
@media(max-width:820px){.ht-customer-dashboard{padding-top:30px}.ht-dashboard-hero{align-items:flex-start;flex-direction:column}.ht-dashboard-quick-actions{justify-content:flex-start}.ht-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-latest-order-summary{grid-template-columns:1fr 1fr}.ht-order-tools{grid-template-columns:1fr 1fr}.ht-order-search{grid-column:1/-1}.ht-order-card-main{grid-template-columns:1fr 1fr}.ht-account-order-items article{grid-template-columns:58px 1fr}.ht-account-order-items img{width:58px;height:64px}.ht-account-order-items .ht-order-action{grid-column:1/-1;width:100%;justify-content:center}.ht-tracking-steps{overflow-x:auto;grid-template-columns:repeat(4,minmax(110px,1fr));padding-bottom:5px}.ht-tracking-step:not(:last-child)::after{left:57%;right:-43%}}
@media(max-width:560px){.ht-customer-dashboard{padding:24px 0 64px}.ht-dashboard-shell{gap:16px}.ht-dashboard-hero h1{font-size:2.35rem}.ht-dashboard-quick-actions{width:100%}.ht-dashboard-quick-actions .btn{flex:1}.ht-dashboard-stats{grid-template-columns:1fr 1fr;gap:8px}.ht-dashboard-stat{padding:14px 12px;gap:9px}.ht-stat-icon{width:36px;height:36px;flex-basis:36px}.ht-dashboard-stat small{font-size:.62rem}.ht-dashboard-stat strong{font-size:1.15rem}.ht-dashboard-tracker,.ht-order-history-panel{padding:17px 14px;border-radius:16px}.ht-dashboard-section-head{flex-direction:column;align-items:flex-start}.ht-order-history-head{align-items:flex-start}.ht-latest-order-summary{grid-template-columns:1fr}.ht-latest-order-summary .btn{width:100%}.ht-order-tools{grid-template-columns:1fr}.ht-order-search{grid-column:auto}.ht-order-card-main{grid-template-columns:1fr 1fr;gap:12px}.ht-order-ref{grid-column:1/-1}.ht-order-card-status{grid-column:1/-1}.ht-order-card-actions{width:100%}.ht-order-action{flex:1;justify-content:center;min-width:92px}.ht-dashboard-pagination button span{display:none}.ht-account-modal{padding:10px}.ht-account-modal-card{padding:22px 16px;border-radius:16px;max-height:88vh}.ht-tracking-order-head{align-items:flex-start;flex-direction:column}.ht-modal-actions{flex-direction:column-reverse}.ht-modal-actions .btn{width:100%}}
.confirmation-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}.confirmation-actions .btn{min-width:170px}@media(max-width:520px){.confirmation-actions{flex-direction:column}.confirmation-actions .btn{width:100%}}

/* === V11 customer portal: admin-style vertical account dashboard === */
.ht-account-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:26px;align-items:start}
.ht-account-main{min-width:0;display:grid;gap:22px}
.ht-account-sidebar{position:sticky;top:22px;overflow:hidden;background:#fff;border:1px solid #eadbc6;border-radius:20px;box-shadow:0 18px 48px rgba(74,0,16,.065)}
.ht-account-sidebar-head{display:flex;align-items:center;gap:12px;padding:19px 17px;background:linear-gradient(135deg,#5c0012,#7a1025);color:#fff}
.ht-account-avatar{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);font-size:1.15rem}
.ht-account-sidebar-head div{min-width:0;display:grid;gap:2px}.ht-account-sidebar-head small{color:#ead9d7;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em}.ht-account-sidebar-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem}
.ht-account-sidebar-nav{display:grid;padding:10px}
.ht-account-sidebar-nav a,.ht-account-sidebar-foot>a,.ht-account-sidebar-foot button{min-height:44px;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:10px 11px;border:0;border-radius:11px;background:transparent;color:#684c53;text-decoration:none;text-align:left;font:inherit;font-size:.83rem;font-weight:700;cursor:pointer;transition:.18s ease}
.ht-account-sidebar-nav a i,.ht-account-sidebar-foot i{width:20px;text-align:center;color:#8d6d73}.ht-account-sidebar-nav a em{min-width:24px;height:24px;display:grid;place-items:center;padding:0 6px;border-radius:999px;background:#f6ead8;color:#6d4610;font-style:normal;font-size:.67rem}
.ht-account-sidebar-nav a:hover,.ht-account-sidebar-nav a.active{background:#fff1dd;color:#5c0012}.ht-account-sidebar-nav a.active{box-shadow:inset 3px 0 0 #5c0012}.ht-account-sidebar-nav a.active i{color:#5c0012}.ht-account-sidebar-nav a.active em{background:#5c0012;color:#fff}
.ht-account-sidebar-foot{display:grid;gap:2px;padding:10px;border-top:1px solid #f0e2cf}.ht-account-sidebar-foot form{margin:0}.ht-account-sidebar-foot button{color:#8e293a}.ht-account-sidebar-foot button:hover{background:#fff0f2}.ht-account-sidebar-foot>a:hover{background:#fff6e8;color:#5c0012}
.ht-account-page-heading{padding:4px 2px 0}.ht-account-page-heading h1{font-family:var(--font-display);font-size:clamp(2.2rem,4vw,3.4rem);line-height:1;color:#3a111b;margin:5px 0 9px}.ht-account-page-heading p{max-width:760px;color:#806c71;line-height:1.65}
.ht-account-page-hero{padding-top:2px}.ht-account-page-hero .btn{flex:0 0 auto}
.ht-account-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ht-account-shortcuts>a{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px;border:1px solid #eadbc6;border-radius:16px;background:#fff;color:#4b2931;text-decoration:none;box-shadow:0 10px 28px rgba(74,0,16,.04);transition:.18s ease}.ht-account-shortcuts>a:hover{transform:translateY(-2px);border-color:#d9b67a;box-shadow:0 16px 34px rgba(74,0,16,.07)}.ht-account-shortcuts>a>span{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#f7ead7;color:#5c0012}.ht-account-shortcuts>a>div{min-width:0;display:grid;gap:2px}.ht-account-shortcuts strong{font-size:.9rem}.ht-account-shortcuts small{color:#8b747a;font-size:.75rem}.ht-account-shortcuts>a>i{color:#a58054}
.ht-dashboard-recent-list{display:grid}.ht-dashboard-recent-row{display:grid;grid-template-columns:1.2fr .8fr .8fr auto;align-items:center;gap:14px;padding:13px 4px;border-bottom:1px solid #f0e4d4;color:#43212a;text-decoration:none}.ht-dashboard-recent-row:last-child{border-bottom:0}.ht-dashboard-recent-row:hover{background:#fffaf1}.ht-dashboard-recent-row>div{display:grid;gap:3px}.ht-dashboard-recent-row small,.ht-tracker-order-row small,.ht-return-card-main small{color:#927c81;font-size:.66rem;text-transform:uppercase;letter-spacing:.05em;font-weight:800}.ht-dashboard-recent-row strong{font-size:.83rem}
.ht-account-content-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.75fr);gap:18px;align-items:start}.ht-account-form-panel{min-width:0}.ht-profile-summary-card{text-align:center}.ht-profile-large-avatar{width:78px;height:78px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:#f6e6cc;color:#5c0012;font-size:2rem}.ht-profile-summary-card h2{font-family:var(--font-display);font-size:1.8rem;color:#391620;margin:0;overflow-wrap:anywhere}.ht-profile-summary-card>p{color:#8b7479;margin:4px 0 18px}.ht-profile-meta-row{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid #efe1cf;color:#7b666b;font-size:.8rem}.ht-profile-meta-row strong{color:#46222b;text-align:right}
.ht-tracker-order-list{display:grid;gap:9px}.ht-tracker-order-row{display:grid;grid-template-columns:1.15fr .75fr .8fr 1fr auto;align-items:center;gap:14px;padding:14px;border:1px solid #eee0ce;border-radius:13px;background:#fffdf9}.ht-tracker-order-row>div{display:grid;gap:4px}.ht-tracker-order-row strong{color:#43202a;font-size:.82rem}
.ht-return-tools{display:grid;grid-template-columns:minmax(260px,1.7fr) minmax(150px,.7fr) minmax(150px,.7fr);gap:10px;margin-bottom:18px}.ht-return-tools>label{display:flex;flex-direction:column;gap:5px}.ht-return-tools>label>span{color:#7f686f;font-size:.67rem;text-transform:uppercase;letter-spacing:.05em;font-weight:800}.ht-return-tools select{width:100%;min-height:44px;border:1px solid #dfcbb1;border-radius:11px;background:#fffdf9;color:#3f1d25;font:inherit;padding:0 12px;outline:none}.ht-return-tools select:focus{border-color:#b77d2f;box-shadow:0 0 0 3px rgba(183,125,47,.12)}.ht-return-history-list{display:grid;gap:10px;transition:opacity .18s ease}.is-returns-loading .ht-return-history-list{opacity:.56}.ht-return-history-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid #eee0ce;border-radius:15px;background:#fffdf9}.ht-return-card-main{display:grid;grid-template-columns:1fr 1.1fr .85fr 1fr;align-items:start;gap:16px;flex:1;min-width:0}.ht-return-card-main>div{min-width:0;display:grid;gap:4px}.ht-return-card-main strong{color:#3d1821;overflow-wrap:anywhere;font-size:.82rem}.ht-return-card-main>div>span:not(.ht-return-status){color:#927f84;font-size:.72rem}.ht-return-status{display:inline-flex;width:max-content;max-width:100%;padding:6px 9px;border-radius:999px;font-size:.7rem;font-weight:800;background:#f3eee7;color:#5e4a50}.ht-return-status.return-pending{background:#fff4d8;color:#8a5b00}.ht-return-status.return-approved{background:#e9f1ff;color:#285b9f}.ht-return-status.return-rejected{background:#fdebed;color:#9a2436}.ht-return-status.return-completed{background:#e9f7ee;color:#287042}.ht-return-note{display:block!important;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ht-order-action[href]{text-decoration:none}.ht-account-help-card{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border:1px solid #e8d5b7;border-radius:15px;background:#fff7e8;color:#654d2d}.ht-account-help-card>i{margin-top:3px;color:#a66c19}.ht-account-help-card strong{color:#4a2d0d}.ht-account-help-card p{margin:3px 0 0;color:#806b4d}.ht-account-help-card a{color:#5c0012;font-weight:800}
.ht-account-privacy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-policy-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.ht-policy-links a{padding:7px 10px;border:1px solid #e2cfb4;border-radius:999px;background:#fffaf1;color:#5c0012;text-decoration:none;font-size:.75rem;font-weight:800}
@media(max-width:1180px){.ht-account-layout{grid-template-columns:230px minmax(0,1fr)}.ht-dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.ht-tracker-order-row{grid-template-columns:1fr 1fr 1fr}.ht-tracker-order-row .ht-order-status,.ht-tracker-order-row .ht-order-action{justify-self:start}.ht-return-card-main{grid-template-columns:1fr 1fr}.ht-return-history-card{align-items:flex-start;flex-direction:column}.ht-order-card-actions{justify-content:flex-start}}
@media(max-width:900px){.ht-account-layout{grid-template-columns:1fr}.ht-account-sidebar{position:static}.ht-account-sidebar-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-account-sidebar-foot{grid-template-columns:1fr 1fr}.ht-account-sidebar-foot form{min-width:0}.ht-account-content-grid{grid-template-columns:1fr}.ht-account-shortcuts{grid-template-columns:1fr 1fr}.ht-return-tools{grid-template-columns:1fr 1fr}.ht-return-tools .ht-order-search{grid-column:1/-1}.ht-account-privacy-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.ht-account-sidebar-nav{grid-template-columns:1fr}.ht-account-sidebar-foot{grid-template-columns:1fr}.ht-dashboard-stats{grid-template-columns:1fr 1fr}.ht-account-shortcuts{grid-template-columns:1fr}.ht-dashboard-recent-row{grid-template-columns:1fr 1fr}.ht-dashboard-recent-row .ht-order-status{justify-self:start}.ht-tracker-order-row{grid-template-columns:1fr 1fr}.ht-tracker-order-row>div:first-child{grid-column:1/-1}.ht-return-tools{grid-template-columns:1fr}.ht-return-tools .ht-order-search{grid-column:auto}.ht-return-card-main{grid-template-columns:1fr}.ht-account-privacy-grid{grid-template-columns:1fr}.ht-account-page-heading h1{font-size:2.35rem}}

/* ===== Hadia & Taha Admin Portal v12 ===== */
.ht-admin-shell{min-height:100vh;background:#f8f5f0;color:#2b1b1b}.ht-admin-sidebar{position:fixed;inset:0 auto 0 0;width:260px;z-index:60;background:linear-gradient(180deg,#4a0007 0%,#2e0005 100%);box-shadow:12px 0 34px rgba(56,0,6,.13);overflow-y:auto}.ht-admin-brand{display:flex;align-items:center;gap:12px;padding:20px 18px;border-bottom:1px solid rgba(225,188,106,.18);text-decoration:none}.ht-admin-brand img{width:58px;height:58px;object-fit:contain;flex:0 0 auto;background:#fff9f0;border:1px solid rgba(225,188,106,.45);border-radius:14px;padding:5px}.ht-admin-brand span{min-width:0}.ht-admin-brand strong{display:block;color:#f4deaa;font-family:'Playfair Display',Georgia,serif;font-size:1.05rem;line-height:1.2}.ht-admin-brand small{display:block;margin-top:4px;color:#d9ba78;font-size:.62rem;letter-spacing:.16em}.ht-admin-nav{padding:14px 10px 90px}.ht-admin-nav a{display:flex;align-items:center;gap:11px;margin:2px 0;padding:10px 12px;border-radius:9px;color:#f5e7c5;text-decoration:none;font-size:.88rem;border:1px solid transparent}.ht-admin-nav a:hover{background:rgba(255,255,255,.07);color:#fff5df}.ht-admin-nav a.active{background:linear-gradient(135deg,rgba(212,168,79,.22),rgba(255,255,255,.07));border-color:rgba(225,188,106,.25);color:#fff5df}.ht-nav-icon{width:22px;height:22px;display:grid;place-items:center;flex:0 0 22px;color:#e1bc6a;font-size:1rem}.ht-nav-group{padding:16px 12px 6px;color:#c9aa68;font-size:.62rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase}.ht-admin-logout-form{position:sticky;bottom:0;margin-top:auto;padding:12px 14px 16px;background:linear-gradient(180deg,transparent,#2e0005 22%)}.ht-admin-logout-form .logout-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(225,188,106,.28);border-radius:9px;background:rgba(255,255,255,.04);color:#f4deaa;padding:11px 14px;cursor:pointer;font-weight:700}.ht-admin-content{margin-left:260px;width:calc(100% - 260px);padding:0;min-height:100vh;overflow:visible}.ht-admin-topbar{position:sticky;top:0;z-index:35;display:flex;align-items:center;gap:18px;min-height:86px;padding:15px clamp(18px,3vw,36px);background:rgba(255,252,247,.95);border-bottom:1px solid #eadbc6;backdrop-filter:blur(12px)}.ht-admin-heading{flex:1;min-width:0}.ht-admin-kicker{display:block;color:#9a732f;font-size:.61rem;font-weight:800;letter-spacing:.15em}.ht-admin-heading h1{margin:3px 0 0;color:#4a0007;font-family:'Playfair Display',Georgia,serif;font-size:clamp(1.45rem,2.5vw,2rem);line-height:1.12}.ht-admin-user-chip{display:flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid #eadbc6;border-radius:12px;background:#fff;max-width:260px}.ht-admin-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#5a0008;color:#f4deaa;font-weight:800}.ht-admin-user-chip strong,.ht-admin-user-chip small{display:block;max-width:165px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ht-admin-user-chip strong{font-size:.78rem;color:#3b2024}.ht-admin-user-chip small{margin-top:2px;color:#90767b;font-size:.66rem}.ht-admin-menu-btn{display:none;border:1px solid #dbc79f;border-radius:9px;background:#fff;color:#5a0008;width:42px;height:42px;font-size:1.2rem;cursor:pointer}.ht-admin-main{padding:28px clamp(18px,3vw,36px) 56px}.ht-admin-content>.alert{margin:18px clamp(18px,3vw,36px) 0}.ht-admin-overlay{display:none}.admin-card,.stat-card,.admin-form,.admin-table-wrap{border-color:#eadbc6!important;box-shadow:0 12px 30px rgba(74,0,16,.05)!important}.admin-table{width:100%;border-collapse:collapse;background:#fff}.admin-table th{background:#fff7e8;color:#5a0008;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em}.admin-table th,.admin-table td{padding:12px 14px;border-bottom:1px solid #f0e4d2;text-align:left}.admin-table-scroll{overflow:auto;border:1px solid #eadbc6;border-radius:14px;background:#fff}.ht-admin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.ht-admin-metric{background:#fff;border:1px solid #eadbc6;border-radius:15px;padding:18px;box-shadow:0 10px 28px rgba(74,0,16,.045)}.ht-admin-metric small{display:block;color:#8d7479;font-size:.67rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800}.ht-admin-metric strong{display:block;margin-top:6px;color:#4a0007;font-family:'Playfair Display',Georgia,serif;font-size:1.65rem}.ht-admin-section{background:#fff;border:1px solid #eadbc6;border-radius:16px;padding:20px;margin:18px 0;box-shadow:0 12px 30px rgba(74,0,16,.045)}.ht-admin-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.ht-admin-section-head h2{margin:0;color:#4a0007;font-family:'Playfair Display',Georgia,serif}.ht-admin-list{display:grid;gap:10px}.ht-admin-list-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #efe1cd;border-radius:11px;background:#fffdf9}.ht-admin-list-item small{display:block;color:#8a7277;margin-top:3px}.ht-stock-pill{display:inline-flex;padding:5px 9px;border-radius:999px;background:#fff0d3;color:#815400;font-size:.72rem;font-weight:800}.ht-stock-pill.out{background:#fdebec;color:#9a2436}.ht-admin-filterbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 18px}.ht-admin-filterbar input,.ht-admin-filterbar select{min-height:42px;border:1px solid #dfcbb1;border-radius:9px;padding:0 11px;background:#fff}.ht-admin-filterbar .btn{min-height:42px}.ht-admin-empty{padding:32px;text-align:center;color:#8a7277;border:1px dashed #dec9aa;border-radius:12px;background:#fffaf2}.ht-admin-profile-card{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center}.ht-admin-profile-avatar{width:78px;height:78px;display:grid;place-items:center;border-radius:22px;background:#5a0008;color:#f4deaa;font-family:'Playfair Display',Georgia,serif;font-size:2rem;font-weight:700}
@media(max-width:1180px){.ht-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:899px){.ht-admin-sidebar{transform:translateX(-102%);transition:transform .24s ease}.ht-admin-content{margin-left:0;width:100%}.ht-admin-menu-btn{display:grid;place-items:center}.admin-menu-open .ht-admin-sidebar{transform:translateX(0)}.admin-menu-open .ht-admin-overlay{display:block;position:fixed;inset:0;background:rgba(34,0,5,.45);z-index:55}.admin-menu-open{overflow:hidden}.ht-admin-topbar{min-height:76px}.ht-admin-user-chip span:last-child{display:none}}
@media(max-width:620px){.ht-admin-main{padding:20px 14px 44px}.ht-admin-content>.alert{margin:14px}.ht-admin-topbar{padding:12px 14px}.ht-admin-grid{grid-template-columns:1fr}.ht-admin-user-chip{padding:5px}.ht-admin-section{padding:15px;border-radius:13px}.ht-admin-profile-card{grid-template-columns:1fr;text-align:center}.ht-admin-profile-avatar{margin:auto}.admin-table th,.admin-table td{padding:10px 11px;white-space:nowrap}}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:899px){.sidebar.ht-admin-sidebar{display:flex;flex-direction:column}}

/* ========================================================================== */
/* HADIA & TAHA — ADMIN AUTH + CALCULATION SECURITY CHECK                     */
/* ========================================================================== */
.admin-auth-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(212,168,79,.16), transparent 26rem),
    linear-gradient(135deg, #fffaf2 0%, #fffdf9 48%, #f9eedc 100%);
  color: #2b1b1b;
  font-family: var(--font-body);
}
.admin-auth-shell {
  width: min(100% - 32px, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 46px 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.admin-auth-brand {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #4a0007;
  text-align: left;
}
.admin-auth-brand:hover { color: #4a0007; }
.admin-auth-brand img {
  width: 74px;
  height: 74px;
  max-width: 74px;
  max-height: 74px;
  flex: 0 0 74px;
  display: block;
  object-fit: contain;
  border-radius: 16px;
  background: #5a0008;
  border: 1px solid rgba(212,168,79,.6);
  box-shadow: 0 8px 24px rgba(74,0,7,.16);
}
.admin-auth-brand span { display: flex; flex-direction: column; min-width: 0; }
.admin-auth-brand strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: .08em;
  color: #4a0007;
}
.admin-auth-brand small {
  margin-top: 5px;
  color: #9c712f;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.admin-auth-card {
  width: 100%;
  padding: 34px 36px 32px;
  background: rgba(255,255,255,.97);
  border: 1px solid #e8d3ac;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(74,0,7,.11);
  overflow: hidden;
  position: relative;
}
.admin-auth-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #65000b, #d4a84f, #65000b);
}
.admin-auth-heading { margin-bottom: 26px; text-align: center; }
.admin-auth-heading .ht-eyebrow { margin-bottom: 8px; }
.admin-auth-heading h1 {
  margin: 0;
  color: #4a0007;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 2.8rem);
  line-height: 1.05;
  font-weight: 700;
}
.admin-auth-heading p {
  max-width: 440px;
  margin: 12px auto 0;
  color: #78646a;
  font-size: 13.5px;
  line-height: 1.65;
}
.admin-auth-form .form-group { margin-bottom: 18px; }
.admin-auth-form .form-group label {
  margin-bottom: 7px;
  color: #34141c;
  font-size: 13px;
  font-weight: 700;
}
.admin-auth-form .form-group input {
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #dfcfba;
  border-radius: 11px;
  background: #fff;
  color: #2b1b1b;
  font-size: 14px;
}
.admin-auth-form .form-group input:focus {
  border-color: #d4a84f;
  box-shadow: 0 0 0 4px rgba(212,168,79,.15);
}
.ht-password-field { position: relative; }
.ht-password-input-wrap { position: relative; }
.ht-password-input-wrap input { padding-right: 52px !important; }
.ht-password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #69575c;
  cursor: pointer;
}
.ht-password-toggle:hover { background: #fff6e8; color: #5a0008; }
.ht-form-link {
  display: block;
  width: fit-content;
  margin: 7px 0 0 auto;
  color: #7a5a28;
  font-size: 12.5px;
  font-weight: 600;
}
.ht-link-submit {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7a5a28;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ht-link-submit:hover { color: #5a0008; }
.ht-resend-link-form { margin: 0; text-align: center; }
.admin-auth-form .btn-primary {
  min-height: 48px;
  margin-top: 5px;
  border-radius: 11px;
  background: linear-gradient(135deg, #65000b 0%, #420006 100%);
  color: #faebc5;
  box-shadow: 0 10px 22px rgba(90,0,8,.18);
}
.admin-auth-form .btn-primary:hover { background: linear-gradient(135deg, #76000d, #520008); color: #fff3d7; }
.admin-auth-alert { width: 100%; margin: 0 0 14px; max-width: none; }
.admin-auth-foot {
  margin: 16px auto 0;
  color: #8b7579;
  font-size: 11.5px;
  text-align: center;
}

/* Calculation CAPTCHA — compact, accessible, dependency-free. */
.ht-security-check { margin: 2px 0 20px; }
.ht-security-check-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #241517;
  font-size: 14px;
  font-weight: 700;
}
.ht-security-check-title i { color: #148b84; font-size: 13px; }
.ht-calculation-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: stretch;
  max-width: 360px;
}
.ht-calculation-question,
.ht-calculation-answer,
.ht-captcha-refresh {
  min-height: 42px;
  border: 1px solid #d8dfe8;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(42,55,71,.07);
}
.ht-calculation-question {
  min-width: 96px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf4fb;
  color: #08131f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.ht-calculation-answer {
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
  background: #fff;
  color: #17212b;
  font: inherit;
  font-size: 14px;
  outline: 0;
}
.ht-calculation-answer:focus { border-color: #b99246; box-shadow: 0 0 0 3px rgba(212,168,79,.15); }
.ht-captcha-refresh {
  width: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #fff;
  color: #52606d;
  cursor: pointer;
}
.ht-captcha-refresh:hover { border-color: #d4a84f; color: #5a0008; background: #fffaf1; }
.ht-captcha-refresh.is-spinning i { animation: htCaptchaSpin .7s linear infinite; }
@keyframes htCaptchaSpin { to { transform: rotate(360deg); } }
.ht-security-help { margin: 6px 0 0; color: #536170; font-size: 11px; line-height: 1.45; }

@media (max-width: 600px) {
  .admin-auth-shell { width: min(100% - 24px, 520px); padding: 24px 0 20px; }
  .admin-auth-brand { margin-bottom: 14px; gap: 10px; }
  .admin-auth-brand img { width: 62px; height: 62px; max-width: 62px; max-height: 62px; flex-basis: 62px; border-radius: 14px; }
  .admin-auth-brand strong { font-size: 1.18rem; }
  .admin-auth-brand small { font-size: .6rem; }
  .admin-auth-card { padding: 28px 20px 24px; border-radius: 16px; }
  .admin-auth-heading { margin-bottom: 22px; }
  .admin-auth-heading p { font-size: 12.5px; }
  .ht-calculation-row { max-width: none; grid-template-columns: 102px minmax(0,1fr) 42px; }
}
@media (max-width: 360px) {
  .admin-auth-shell { width: min(100% - 18px, 520px); }
  .admin-auth-card { padding-inline: 16px; }
  .admin-auth-brand span { display: none; }
  .ht-calculation-row { grid-template-columns: 96px minmax(0,1fr) 40px; gap: 6px; }
  .ht-captcha-refresh { width: 40px; }
}

/* V14 order lifecycle + realtime order management */
.ht-order-status.status-completed,
.status-completed { background: #e7f7ee; color: #23663a; }
.ht-return-status.return-refunded { background: #efe8ff; color: #5f3b9b; }
.admin-order-history-list { display: grid; gap: 10px; margin-top: 12px; }
.admin-order-history-entry { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 12px; align-items: start; padding: 12px; border: 1px solid #eadbc6; border-radius: 10px; background: #fffdf9; }
.admin-order-history-entry > div { display: grid; gap: 3px; min-width: 0; }
.admin-order-history-entry strong { color: #3f1d25; font-size: .86rem; overflow-wrap: anywhere; }
.admin-order-history-entry small { color: #8d787e; font-size: .75rem; text-transform: capitalize; }
.ht-tracking-steps { grid-template-columns: repeat(7, minmax(0,1fr)); overflow-x: auto; padding: 6px 2px 10px; }
.ht-tracking-step { min-width: 86px; }
.ht-realtime-notice { margin: 12px 24px 0; }
@media (max-width: 760px) {
  .ht-tracking-steps { grid-template-columns: repeat(7, 92px); justify-content: start; }
  .admin-order-history-entry { grid-template-columns: 1fr; }
}

/* V14 order/return lifecycle audit */
.ht-return-lifecycle{display:grid;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #ead1a4}.ht-return-lifecycle>strong{color:#4b2d12;font-size:.78rem;text-transform:uppercase;letter-spacing:.045em}.ht-return-lifecycle-event{display:grid;grid-template-columns:minmax(88px,.45fr) 1fr;gap:10px;align-items:start;padding:8px 10px;border-radius:9px;background:rgba(255,255,255,.55)}.ht-return-lifecycle-event>span{font-weight:800;color:#5c0012}.ht-return-lifecycle-event>small{color:#79684f;line-height:1.45}.admin-return-history-list{margin:16px 0;padding-top:14px;border-top:1px solid #eadbc6}
@media (max-width:560px){.ht-return-lifecycle-event{grid-template-columns:1fr;gap:2px}}

/* ========================================================================== */
/* HADIA & TAHA — V15 ADMIN PROFILE / EMAIL / SECURITY                       */
/* ========================================================================== */
.ht-admin-account-menu{position:relative;flex:0 0 auto}.ht-admin-user-chip-button{font:inherit;cursor:pointer;text-align:left;color:inherit}.ht-admin-user-chip-button:hover,.ht-admin-account-menu.is-open .ht-admin-user-chip-button{border-color:#d6bd8d;box-shadow:0 8px 24px rgba(74,0,7,.08)}.ht-admin-avatar{overflow:hidden}.ht-admin-avatar img{width:100%;height:100%;object-fit:cover;display:block}.ht-admin-account-chevron{color:#8f767a;font-size:.8rem}.ht-admin-account-dropdown{position:absolute;right:0;top:calc(100% + 8px);width:245px;background:#fff;border:1px solid #eadbc6;border-radius:14px;box-shadow:0 18px 48px rgba(48,0,8,.16);overflow:hidden;z-index:120}.ht-admin-account-dropdown[hidden]{display:none}.ht-admin-account-summary{padding:12px 14px;border-bottom:1px solid #efe3d1;background:#fffaf3}.ht-admin-account-summary strong,.ht-admin-account-summary small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ht-admin-account-summary strong{font-size:.78rem;color:#3d2025}.ht-admin-account-summary small{margin-top:3px;color:#8c7479;font-size:.68rem}.ht-admin-account-dropdown>a,.ht-admin-account-dropdown form button{width:100%;display:flex;align-items:center;gap:10px;padding:11px 14px;border:0;background:#fff;color:#3b2428;text-decoration:none;font:inherit;font-size:.83rem;text-align:left;cursor:pointer}.ht-admin-account-dropdown>a:hover,.ht-admin-account-dropdown form button:hover{background:#fff7ea;color:#65000b}.ht-admin-account-dropdown form{margin:0;border-top:1px solid #efe3d1}.ht-admin-account-dropdown span:first-child{width:20px;text-align:center;color:#8f6420}.ht-account-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}.ht-account-page-head h2{margin:4px 0 5px;font-family:'Playfair Display',Georgia,serif;color:#4a0007;font-size:clamp(1.55rem,2.4vw,2rem)}.ht-account-page-head p{margin:0;color:#806f72;font-size:.9rem}.ht-admin-settings-card{max-width:760px;background:#fff;border:1px solid #eadbc6;border-radius:16px;padding:24px;box-shadow:0 12px 30px rgba(74,0,16,.045)}.ht-admin-settings-card-narrow{max-width:680px}.ht-admin-settings-card-wide{max-width:860px;margin-top:18px}.ht-admin-profile-form{display:grid;gap:16px}.ht-admin-profile-image-block{display:grid;grid-template-columns:112px minmax(0,1fr);gap:20px;align-items:center;padding-bottom:8px}.ht-admin-profile-avatar-lg{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;background:#2c292a;color:#fff;font-size:2.4rem;font-weight:700;overflow:hidden}.ht-admin-profile-avatar-lg img{width:100%;height:100%;object-fit:cover;display:block}.ht-admin-profile-upload-copy{min-width:0}.ht-admin-profile-upload-copy label{display:block;margin-bottom:7px;font-weight:700;color:#32191e}.ht-admin-profile-upload-copy input{width:100%;padding:9px;border:1px solid #dfcfba;border-radius:10px;background:#fff}.ht-admin-profile-upload-copy small{display:block;margin-top:6px;color:#8a7478}.ht-readonly-field-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.ht-form-actions-end{display:flex;justify-content:flex-end}.ht-flat-form{max-width:none!important;margin:0!important;padding:0!important;box-shadow:none!important;background:transparent!important;border:0!important}.ht-email-change-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.ht-email-change-summary>div{padding:13px;border:1px solid #eadbc6;border-radius:11px;background:#fffaf4}.ht-email-change-summary span,.ht-email-change-summary strong,.ht-email-change-summary small{display:block}.ht-email-change-summary span{font-size:.72rem;color:#8a7377}.ht-email-change-summary strong{margin-top:3px;overflow-wrap:anywhere;color:#4a0007}.ht-email-change-summary small{margin-top:4px;color:#9a6e28;font-size:.72rem}.ht-inline-resend-form{margin-top:12px}.ht-settings-card-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:18px}.ht-settings-card-title>span{font-size:1.35rem}.ht-settings-card-title h3{margin:0;color:#34181e}.ht-settings-card-title p{margin:4px 0 0;color:#816f73;font-size:.82rem}.ht-show-passwords{display:inline-flex;align-items:center;gap:8px;margin:3px 0 12px;color:#73000d;font-size:.82rem;cursor:pointer}.ht-password-requirements{display:grid;gap:3px;padding:13px 14px;border-radius:10px;background:#f5f0ee;color:#75666a;font-size:.76rem}.ht-password-requirements span:before{content:'✓';margin-right:7px;color:#9a6e28}.ht-security-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px}.ht-security-actions a{color:#73000d;font-size:.82rem}.ht-device-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px;border:1px solid #eadbc6;border-radius:12px;background:#fffdf9}.ht-device-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#fff1df;color:#65000b}.ht-device-row strong,.ht-device-row small{display:block}.ht-device-row small{margin-top:3px;color:#826f74;font-size:.72rem;overflow-wrap:anywhere}.ht-this-device{display:inline-flex;margin-left:6px;padding:2px 7px;border-radius:999px;background:#fde7ef;color:#8a1740;font-size:.64rem;vertical-align:middle}
@media(max-width:700px){.ht-admin-profile-image-block{grid-template-columns:1fr;text-align:center}.ht-admin-profile-avatar-lg{margin:auto}.ht-readonly-field-row{grid-template-columns:1fr}.ht-email-change-summary{grid-template-columns:1fr}.ht-security-actions{align-items:stretch;flex-direction:column}.ht-security-actions .btn{width:100%}.ht-device-row{grid-template-columns:auto minmax(0,1fr)}.ht-device-row form{grid-column:1/-1}.ht-device-row form .btn{width:100%}.ht-admin-account-dropdown{right:-4px;width:min(245px,calc(100vw - 28px))}}
@media(max-width:899px){.ht-admin-account-chevron{display:none}.ht-admin-user-chip-button>span:nth-child(2){display:none}}

/* ========================================================================== */
/* HADIA & TAHA — V16 FULL RESPONSIVE STOREFRONT / PRODUCT MEDIA AUDIT        */
/* ========================================================================== */

/* Responsive safety rails shared by storefront, account and admin pages. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { width: 100%; max-width: 100%; }
body { overflow-x: hidden; overflow-x: clip; }
main,
.ht-products-area,
.ht-shop-layout,
.product-detail,
.cart-layout,
.checkout-layout,
.ht-account-layout,
.ht-account-content,
.ht-admin-content,
.ht-admin-main { min-width: 0; }
img, picture, video, canvas, svg { max-width: 100%; }
img { height: auto; }
input, select, textarea, button { max-width: 100%; }
textarea { resize: vertical; }
.product-detail > *,
.cart-layout > *,
.checkout-layout > *,
.ht-shop-layout > *,
.ht-account-layout > *,
.ht-account-content-grid > *,
.ht-admin-grid > * { min-width: 0; }

/* Product catalog: predictable breakpoints and no squeezed controls. */
.product-grid.ht-product-grid {
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.ht-product-card,
.ht-product-link,
.ht-product-info,
.ht-card-commerce,
.ht-card-cart-form { min-width: 0; }
.ht-product-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  overflow: hidden;
}
.ht-product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.ht-product-brand-row,
.ht-product-meta,
.ht-price-stack { min-width: 0; }
.ht-product-brand,
.ht-stock-dot,
.ht-product-info .product-name,
.ht-price-stack { overflow-wrap: anywhere; }
.ht-card-variant-field,
.ht-card-variant-row,
.ht-card-variant-row select { min-width: 0; }
.ht-card-variant-row select { text-overflow: ellipsis; }

/* Product page gallery: one responsive preview + compact scrollable thumbnails. */
.ht-product-detail-page .product-media {
  min-width: 0;
  width: 100%;
  align-self: start;
}
.ht-product-detail-page .product-detail-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  max-height: min(74vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fffaf3;
}
.ht-product-detail-page .product-detail-img img,
.ht-product-detail-page #mainProductImage {
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #fffaf3;
}
.ht-product-detail-page .image-thumbnails {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.ht-product-detail-page .thumb-button {
  flex: 0 0 82px;
  width: 82px;
  height: 100px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #fff;
}
.ht-product-detail-page .thumb-button .thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.ht-product-detail-page .product-detail-info,
.ht-product-detail-page .detail-cart-form { min-width: 0; }
.ht-product-detail-page .product-detail-info h1,
.ht-product-detail-page .product-desc,
.ht-product-detail-page .ht-detail-fabric { overflow-wrap: anywhere; }
.ht-detail-cart-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.ht-detail-cart-actions > .btn,
.ht-detail-cart-actions > .ht-detail-qty { flex: 1 1 190px; }
.ht-detail-qty { min-width: 150px; }

/* Customer cart / checkout: keep item content readable instead of overflowing. */
.cart-item,
.cart-item-info,
.cart-summary,
.checkout-form,
.order-summary-box { min-width: 0; }
.cart-item-info h3,
.cart-item-info p,
.variant-meta,
.summary-row span,
.summary-row strong { overflow-wrap: anywhere; }
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.detail-cart-form input,
.detail-cart-form select,
.detail-cart-form textarea { width: 100%; }

/* Customer account / tracking / returns. */
.ht-dashboard-hero,
.ht-dashboard-section-head,
.ht-order-history-card,
.ht-return-history-card,
.ht-account-page-hero { min-width: 0; }
.ht-order-card-main > *,
.ht-tracker-order-row > *,
.ht-return-card-main > *,
.ht-dashboard-recent-row > * { min-width: 0; }
.ht-account-modal-card { width: min(720px, calc(100vw - 24px)); }

/* Admin content should resize while tables retain horizontal scrolling. */
.ht-admin-settings-card,
.ht-admin-settings-card-narrow,
.ht-admin-settings-card-wide { width: 100%; }
.admin-table-scroll,
.admin-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { min-width: 680px; }
.ht-admin-topbar > *,
.ht-admin-section,
.ht-admin-profile-form { min-width: 0; }

@media (max-width: 1400px) {
  .product-grid.ht-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .product-grid.ht-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ht-product-detail-page { gap: 34px; }
}

@media (max-width: 900px) {
  .product-grid.ht-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ht-product-detail-page { grid-template-columns: 1fr; }
  .ht-product-detail-page .back-link,
  .ht-product-detail-page .reviews-section { grid-column: auto; }
  .ht-product-detail-page .product-detail-img { max-height: min(72vh, 680px); }
  .ht-dashboard-hero,
  .ht-account-page-hero { align-items: flex-start; flex-direction: column; }
  .ht-dashboard-quick-actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  .container { width: min(100% - 24px, 1600px); }

  /* Mobile header stays compact without clipping account/cart controls. */
  .ht-header-main {
    grid-template-columns: 50px minmax(0, 1fr) max-content;
    gap: 8px;
    min-height: 68px;
    padding: 8px 12px;
  }
  .ht-brand { width: 50px; height: 50px; }
  .ht-delivery-chip { display: none; }
  .ht-header-actions { min-width: 0; gap: 2px; }
  .ht-action-btn,
  .ht-cart-action,
  .ht-mobile-toggle { min-width: 40px; min-height: 40px; }
  .ht-action-label,
  .ht-action-chevron,
  .ht-cart-copy { display: none !important; }
  .ht-mobile-search-wrap { padding-inline: 12px; }
  .ht-mobile-search-wrap .ht-search { width: 100%; }
  .ht-search input { width: 100%; min-width: 0; }

  .ht-shop-section { padding-inline: 12px; }
  .product-grid.ht-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ht-product-card { border-radius: 12px; }
  .ht-product-info { padding: 11px 11px 8px; }
  .ht-card-commerce { padding: 0 10px 11px; }
  .ht-card-variant-row { grid-template-columns: 1fr; }
  .ht-product-brand-row { gap: 6px; }
  .ht-product-brand { max-width: 56%; }
  .ht-stock-dot { white-space: normal; text-align: right; }

  .product-detail,
  .cart-page,
  .checkout-page { width: 100%; padding-inline: 12px; }
  .ht-product-detail-page { gap: 20px; margin-top: 20px; }
  .ht-product-detail-page .product-detail-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 68vh;
    border-radius: 14px;
  }
  .ht-product-detail-page .image-thumbnails { gap: 8px; margin-top: 9px; }
  .ht-product-detail-page .thumb-button { flex-basis: 70px; width: 70px; height: 86px; border-radius: 9px; }
  .ht-product-detail-page .product-detail-info { padding-top: 2px; }
  .ht-product-detail-page .product-detail-info h1 { font-size: clamp(1.9rem, 8vw, 2.65rem); }
  .detail-cart-form { margin-top: 20px; padding: 16px; }
  .ht-detail-cart-actions { display: grid; grid-template-columns: 1fr; }
  .ht-detail-cart-actions > .btn,
  .ht-detail-cart-actions > .ht-detail-qty { width: 100%; }
  .ht-detail-qty { grid-template-columns: 46px 1fr 46px; }
  .reviews-section { border-radius: 14px; }

  .cart-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 14px 0;
  }
  .cart-item img,
  .cart-item-image { width: 82px !important; height: 102px !important; object-fit: cover; }
  .cart-item-info { min-width: 0; }
  .cart-item-total { min-width: 0; text-align: right; }
  .qty-form,
  .qty-stepper { grid-column: 2 / -1; justify-self: start; }
  .remove-btn { align-self: start; }
  .checkout-layout { gap: 18px; }
  .checkout-form,
  .order-summary-box,
  .cart-summary { padding: 18px; }

  .ht-dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ht-latest-order-summary { grid-template-columns: 1fr 1fr; }
  .ht-order-tools { grid-template-columns: 1fr 1fr; }
  .ht-order-search { grid-column: 1 / -1; }
  .ht-order-card-main { grid-template-columns: 1fr 1fr; }
  .ht-order-history-card { align-items: flex-start; flex-direction: column; }
  .ht-order-card-actions { width: 100%; justify-content: flex-start; }
  .ht-order-action { flex: 1 1 auto; justify-content: center; }
  .ht-tracker-order-row { grid-template-columns: 1fr 1fr; }
  .ht-return-card-main { grid-template-columns: 1fr 1fr; }

  .ht-admin-topbar { gap: 10px; }
  .ht-admin-heading h1 { font-size: 1.4rem; }
  .ht-admin-main { padding-inline: 12px; }
  .ht-account-page-head { align-items: flex-start; flex-direction: column; }
  .ht-admin-settings-card { padding: 18px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 20px, 1600px); }
  .ht-announcement { padding-inline: 10px; text-align: center; }
  .ht-announcement span { font-size: 9px; letter-spacing: .05em; }
  .ht-header-main { grid-template-columns: 46px minmax(0,1fr) max-content; padding-inline: 10px; }
  .ht-brand { width: 46px; height: 46px; }
  .ht-mobile-search-wrap { padding-inline: 10px; }

  /* Keep the mobile catalog two-up: two product cards on every row, including 320px phones. */
  .product-grid.ht-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ht-product-card { max-width: none; width: 100%; margin: 0; min-width: 0; }
  .ht-product-image { aspect-ratio: 4 / 5; }
  .ht-product-info { padding: 9px 8px 7px; }
  .ht-product-info .product-name { font-size: .88rem; line-height: 1.28; }
  .ht-product-brand-row { align-items: flex-start; }
  .ht-product-brand { max-width: 58%; font-size: .57rem; }
  .ht-stock-dot { max-width: 42%; font-size: .54rem; line-height: 1.2; }
  .ht-price-stack { gap: 4px; }
  .ht-price-stack .price,
  .ht-price-stack .sale-price { font-size: .9rem; }
  .ht-old-price { font-size: .65rem; }
  .ht-card-commerce { padding: 0 7px 9px; }
  .ht-card-variant-row { grid-template-columns: 1fr; gap: 5px; }
  .ht-card-variant-field label { font-size: .57rem; }
  .ht-card-variant-row select { min-height: 32px; height: 32px; padding-inline: 7px 24px; font-size: 10px; }
  .ht-card-add-btn { min-height: 36px; padding: 7px 5px; font-size: 10px; }
  .ht-card-qty { min-height: 36px; grid-template-columns: 30px minmax(0, 1fr) 30px; }
  .ht-card-qty button { min-width: 30px; padding: 0; }
  .ht-card-qty input { min-width: 0; font-size: 11px; }

  .ht-product-detail-page .product-detail-img { max-height: 64vh; }
  .ht-product-detail-page .thumb-button { flex-basis: 64px; width: 64px; height: 80px; }
  .product-detail-info h1 { margin-top: 8px; }
  .reviews-header { gap: 12px; }
  .review-card { padding: 13px; }

  .cart-item { grid-template-columns: 74px minmax(0,1fr) auto; }
  .cart-item img,
  .cart-item-image { width: 74px !important; height: 92px !important; }
  .cart-item-total { grid-column: 2 / 3; text-align: left; }
  .qty-form,
  .qty-stepper { grid-column: 2 / -1; }

  .ht-dashboard-stats { grid-template-columns: 1fr; }
  .ht-latest-order-summary,
  .ht-order-tools,
  .ht-order-card-main,
  .ht-tracker-order-row,
  .ht-return-card-main,
  .ht-dashboard-recent-row { grid-template-columns: 1fr; }
  .ht-order-search { grid-column: auto; }
  .ht-dashboard-section-head { flex-direction: column; }
  .ht-dashboard-tracker,
  .ht-order-history-panel { padding: 16px; }
  .ht-customer-panel-nav { border-radius: 12px; }
  .ht-account-modal { padding: 10px; }
  .ht-account-modal-card { width: calc(100vw - 20px); padding: 18px; border-radius: 15px; }

  .ht-footer-inner { padding-inline: 14px; }
  .ht-footer-links-grid { grid-template-columns: 1fr; gap: 20px; }
  .ht-footer-column:last-child { grid-column: auto; }
  .ht-footer-bottom { gap: 8px; }

  .ht-admin-topbar { min-height: 68px; padding: 9px 10px; }
  .ht-admin-heading .ht-admin-kicker { display: none; }
  .ht-admin-heading h1 { font-size: 1.18rem; }
  .ht-admin-user-chip { max-width: 46px; border-radius: 10px; }
  .ht-admin-avatar { width: 34px; height: 34px; }
  .ht-admin-account-dropdown { right: 0; width: min(260px, calc(100vw - 20px)); }
  .ht-admin-main { padding: 16px 10px 38px; }
  .ht-admin-section,
  .ht-admin-settings-card { padding: 14px; }
  .ht-admin-profile-image-block { gap: 12px; }
  .ht-admin-profile-avatar-lg { width: 92px; height: 92px; }
}

@media (max-width: 360px) {
  .container { width: min(100% - 16px, 1600px); }
  .ht-header-main { grid-template-columns: 42px minmax(0,1fr) max-content; padding-inline: 8px; }
  .ht-brand { width: 42px; height: 42px; }
  .ht-header-actions { gap: 0; }
  .ht-action-btn,
  .ht-cart-action,
  .ht-mobile-toggle { min-width: 36px; min-height: 36px; padding-inline: 6px; }
  .ht-shop-section { padding-inline: 8px; }
  .product-grid.ht-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ht-product-info { padding: 8px 6px 6px; }
  .ht-product-info .product-name { font-size: .82rem; }
  .ht-card-commerce { padding: 0 6px 8px; }
  .ht-card-badges { top: 7px; left: 7px; gap: 4px; }
  .ht-card-badge { padding: 4px 6px; font-size: .55rem; }
  .product-detail,
  .cart-page,
  .checkout-page { padding-inline: 8px; }
  .ht-card-variant-row { grid-template-columns: 1fr; }
  .ht-product-detail-page .thumb-button { flex-basis: 58px; width: 58px; height: 72px; }
  .cart-item { grid-template-columns: 66px minmax(0,1fr); }
  .cart-item img,
  .cart-item-image { width: 66px !important; height: 82px !important; }
  .cart-item-total,
  .qty-form,
  .qty-stepper { grid-column: 2 / 3; }
  .remove-btn { grid-column: 1 / -1; justify-self: end; }
}


/* ==========================================================================
   HADIA & TAHA — V17 MOBILE TWO-CARD CATALOG LOCK
   Product listing grids remain exactly two columns on mobile, including 320px.
   ========================================================================== */
@media (max-width: 520px) {
  .product-grid.ht-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .product-grid.ht-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   V18 — Contact, equal variant selectors, realtime order polish
   ============================================================ */

/* Product cards expose only color; size is not a storefront option. */
.ht-card-variant-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: end;
}
.ht-card-variant-field { min-width: 0; }
.ht-card-variant-row select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  border: 1px solid #dcc9ad;
  border-radius: 9px;
  background: #fffdf9;
  color: #45212a;
  padding: 0 28px 0 9px;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
}
.ht-card-variant-row select:focus {
  outline: 2px solid rgba(101,0,11,.18);
  outline-offset: 1px;
  border-color: #8b2333;
}
.ht-card-variant-row option { color: #45212a; background: #fffdf9; }
.ht-selected-variant { min-width: 0; }
.ht-selected-variant strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ht-floating-whatsapp {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 1150;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 17px;
  border-radius: 999px;
  background: #147a3f;
  color: #fff;
  box-shadow: 0 12px 30px rgba(17,83,47,.28);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ht-floating-whatsapp i { font-size: 22px; }
.ht-floating-whatsapp:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(17,83,47,.34); }
.ht-floating-whatsapp:focus-visible { outline: 3px solid rgba(20,122,63,.28); outline-offset: 3px; }

.ht-contact-page { padding: 52px 0 76px; background: linear-gradient(180deg,#fffaf2 0,#fff 26%); }
.ht-contact-hero { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.ht-contact-hero h1 { margin: 7px 0 12px; color: #4a0010; font-family: 'Cormorant Garamond',serif; font-size: clamp(38px,6vw,62px); line-height: .98; }
.ht-contact-hero p { margin: 0 auto; max-width: 650px; color: #6c5a5d; line-height: 1.75; }
.ht-contact-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.ht-contact-card { min-width: 0; min-height: 176px; padding: 22px; border: 1px solid #eadbc4; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(74,0,16,.055); color: #3d2228; text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
a.ht-contact-card:hover { transform: translateY(-3px); border-color: #cfb47e; box-shadow: 0 16px 32px rgba(74,0,16,.09); color: #3d2228; }
.ht-contact-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff4dc; color: #65000b; font-size: 18px; margin-bottom: 16px; }
.ht-contact-card small { text-transform: uppercase; letter-spacing: .09em; color: #9b7b42; font-weight: 700; font-size: 10px; }
.ht-contact-card strong { display: block; width: 100%; margin-top: 5px; color: #4a0010; font-size: 14px; overflow-wrap: anywhere; }
.ht-contact-card > span:last-child { margin-top: 6px; color: #7f7072; font-size: 12px; line-height: 1.45; }
.ht-contact-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(330px,.88fr); gap: 22px; align-items: start; }
.ht-contact-form-card,.ht-contact-location-card { min-width: 0; border: 1px solid #eadbc4; border-radius: 20px; background: #fff; box-shadow: 0 12px 34px rgba(74,0,16,.06); padding: 28px; }
.ht-contact-section-head h2 { margin: 4px 0 8px; color: #4a0010; font-family: 'Cormorant Garamond',serif; font-size: 34px; line-height: 1.05; }
.ht-contact-section-head p { margin: 0 0 22px; color: #78676a; line-height: 1.6; }
.ht-contact-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.ht-contact-form .form-group { margin-bottom: 15px; }
.ht-contact-form label { display: block; margin-bottom: 7px; color: #54383e; font-size: 12px; font-weight: 700; }
.ht-contact-form input,.ht-contact-form textarea { width: 100%; border: 1px solid #dfd1bd; border-radius: 11px; background: #fffdfa; color: #351f24; padding: 12px 13px; font: inherit; }
.ht-contact-form input { min-height: 45px; }
.ht-contact-form textarea { resize: vertical; min-height: 150px; }
.ht-contact-form input:focus,.ht-contact-form textarea:focus { outline: 2px solid rgba(101,0,11,.13); outline-offset: 1px; border-color: #9a5c65; }
.ht-contact-submit { min-height: 46px; padding-inline: 24px; }
.ht-contact-map-wrap { position: relative; overflow: hidden; width: 100%; min-height: 390px; border-radius: 15px; border: 1px solid #eadbc4; background: #f8f3eb; }
.ht-contact-map-wrap iframe { display: block; width: 100%; height: 390px; border: 0; }
.ht-contact-location-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ht-admin-message-copy { max-width: 420px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.ht-admin-inline-form { display: inline-flex; gap: 7px; align-items: center; }
.ht-admin-inline-form select { min-height: 34px; border: 1px solid #d8c6aa; border-radius: 8px; padding: 0 26px 0 8px; background: #fff; }
.admin-filter-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.admin-filter-pills a { border: 1px solid #dccbb1; border-radius: 999px; padding: 7px 12px; color: #5d464b; text-decoration: none; font-size: 12px; text-transform: capitalize; }
.admin-filter-pills a.active { background: #65000b; border-color: #65000b; color: #fff; }

.ht-admin-realtime-toast {
  position: fixed; right: 20px; top: 20px; z-index: 3000; max-width: min(380px,calc(100vw - 32px));
  border: 1px solid #d7bd82; border-radius: 13px; background: #fffaf0; color: #4a0010;
  box-shadow: 0 18px 42px rgba(57,0,12,.18); padding: 14px 16px; font-size: 13px; line-height: 1.45;
}
.ht-admin-realtime-toast strong { display: block; margin-bottom: 3px; }

@media (max-width: 900px) {
  .ht-contact-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ht-contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ht-contact-page { padding: 34px 0 58px; }
  .ht-contact-cards { gap: 10px; }
  .ht-contact-card { min-height: 150px; padding: 16px; }
  .ht-contact-form-card,.ht-contact-location-card { padding: 18px; border-radius: 16px; }
  .ht-contact-form-grid { grid-template-columns: 1fr; gap: 0; }
  .ht-contact-map-wrap,.ht-contact-map-wrap iframe { min-height: 300px; height: 300px; }
  .ht-floating-whatsapp { width: 50px; height: 50px; min-height: 50px; padding: 0; justify-content: center; border-radius: 50%; }
  .ht-floating-whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* Keep the single color control compact on mobile. */
  .ht-card-variant-row { grid-template-columns: minmax(0,1fr) !important; gap: 5px !important; }
  .ht-card-variant-row select { min-height: 32px; height: 32px; padding: 0 22px 0 6px; font-size: 9.5px; }
}
@media (max-width: 390px) {
  .ht-contact-cards { grid-template-columns: 1fr; }
  .ht-contact-card { min-height: 128px; }
}

/* V20 purchase controls: inline color, quantity above persistent Add to Cart. */
.ht-card-color-field { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:7px; }
.ht-color-inline-label { display:flex !important; align-items:center; gap:5px; margin:0 !important; }
.ht-card-color-field select { margin:0 !important; }
.ht-purchase-qty-row { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#4b3036; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.ht-preadd-qty { display:grid; grid-template-columns:34px 44px 34px; min-height:36px; overflow:hidden; border:1px solid #dec8aa; border-radius:9px; background:#fffaf2; }
.ht-preadd-qty button { border:0; background:#f4e3c7; color:#5c0012; font-size:18px; cursor:pointer; }
.ht-preadd-qty button:disabled { opacity:.4; cursor:not-allowed; }
.ht-preadd-qty strong { display:grid; place-items:center; color:#35151d; font-size:13px; }
.ht-card-qty[data-card-qty], .ht-detail-qty[data-detail-qty] { display:none !important; }
.ht-card-add-btn[data-card-add] { display:flex !important; width:100%; }
.ht-detail-color-row { display:grid; grid-template-columns:auto minmax(180px,1fr); align-items:center; gap:14px; margin-bottom:16px; }
.ht-detail-color-row label { display:flex; align-items:center; gap:7px; margin:0; font-weight:700; }
.ht-detail-color-row select { min-height:44px; border:1px solid #dcc9ad; border-radius:10px; background:#fffdf9; padding:0 34px 0 12px; color:#45212a; font:inherit; }
.ht-detail-purchase-qty { margin:14px 0; font-size:13px; }
.ht-detail-purchase-qty .ht-preadd-qty { grid-template-columns:44px 58px 44px; min-height:46px; }
.ht-detail-cart-actions { display:block !important; margin-top:12px; }
.ht-detail-cart-actions [data-detail-add] { display:flex !important; width:100%; min-height:52px; align-items:center; justify-content:center; }
@media(max-width:620px){.ht-card-color-field{grid-template-columns:1fr}.ht-color-inline-label{justify-content:space-between}.ht-preadd-qty{grid-template-columns:27px 32px 27px}.ht-detail-color-row{grid-template-columns:1fr}.ht-detail-purchase-qty .ht-preadd-qty{grid-template-columns:38px 48px 38px}}

/* Final compact product-card variant layout: preserve two cards per mobile row. */
.ht-card-variant-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important; gap: 6px !important; align-items: end; }
.ht-card-variant-field { min-width: 0; }
.ht-card-variant-field > span:first-child { min-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-card-variant-row select { width: 100%; min-width: 0; height: 32px; padding: 0 24px 0 7px; text-overflow: ellipsis; }
@media (max-width: 520px) {
  .ht-card-variant-row { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) !important; gap: 4px !important; }
  .ht-card-variant-row select { height: 30px; min-height: 30px; padding-left: 5px; padding-right: 18px; font-size: 9px; }
  .ht-card-variant-field > span:first-child { font-size: 8px; letter-spacing: .03em; }
  .ht-card-color-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .ht-selected-variant { display: none !important; }
}
