/* ============================================================
   KAVENDE SHOES STORE — Complete Marketplace Stylesheet
   Palette: Orange #FF5722 · Black Header · TZS currency
   ============================================================ */

:root {
  --primary: #FF5722;
  --primary-dark: #E64A19;
  --secondary: #1E293B;
  --accent-yellow: #FFC107;
  --header-black: #0A0A0A;
  --header-black-light: #1A1A1A;
  --bg-light: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03);
  --shadow-lg: 0 12px 24px -8px rgba(15,23,42,.12);
  --transition: all .25s ease-in-out;
}

*,*::before,*::after {
  margin:0; padding:0; box-sizing:border-box;
  font-family:'Inter',sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background-color: #000000;
  color: #94A3B8;
  font-size: .8rem;
  padding: 8px 5%;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  border-bottom: 1px solid #1F2937;
}
.top-bar a { color: #F8FAFC; margin-left: 15px; transition: var(--transition); }
.top-bar a:hover { color: var(--primary); }

/* ============================================================
   MAIN HEADER — BLACK
   ============================================================ */
.main-header {
  background: #0A0A0A !important;
  border-bottom: 2px solid var(--primary) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  position: sticky; top: 0; z-index: 100;
}
.header-container {
  max-width: 1280px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand-logo {
  display: inline-flex; align-items: center; gap: 12px;
  flex-shrink: 0; transition: var(--transition); text-decoration: none;
}
.brand-logo:hover { transform: scale(1.02); }

.brand-logo-img {
  height: 62px; width: auto; max-width: 62px;
  object-fit: contain; display: block; flex-shrink: 0;
  padding: 3px; background: #FFFFFF; border-radius: 50%;
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.35);
}

.brand-logo-text {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -.5px; line-height: 1.1; white-space: nowrap;
}
.brand-logo-text .brand-part-1 { color: #FFFFFF; }
.brand-logo-text .brand-part-2 { color: #FF5722; }

/* ============================================================
   SEARCH BOX
   ============================================================ */
.search-wrap { position: relative; flex: 1; max-width: 600px; }

.search-box {
  display: flex; border: 2px solid var(--primary);
  border-radius: var(--radius); overflow: hidden;
  background: #FFFFFF; width: 100%;
}
.search-box input {
  width: 100%; padding: 10px 15px; border: none; outline: none;
  font-size: .95rem; color: var(--text-dark); background: #FFFFFF;
}
.search-box button {
  background-color: var(--primary); color: #fff; border: none;
  padding: 0 25px; font-weight: 600; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.search-box button:hover { background-color: var(--primary-dark); }

#searchSuggestions {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 32px rgba(15,23,42,.14);
  max-height: 440px; overflow-y: auto; z-index: 9999;
}
#searchSuggestions a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; text-decoration: none; color: var(--text-dark);
  border-bottom: 1px solid #F1F5F9; transition: background .12s ease;
}
#searchSuggestions a:hover { background: #F8FAFC; }
#searchSuggestions a:last-child { border-bottom: none; }
#searchSuggestions img {
  width: 44px; height: 44px; object-fit: cover;
  border-radius: 6px; flex-shrink: 0; background: #F1F5F9;
}

.header-actions { display: flex; align-items: center; gap: 20px; }
.action-item {
  display: flex; flex-direction: column; align-items: center;
  font-size: .75rem; font-weight: 500; color: #FFFFFF;
  cursor: pointer; transition: var(--transition); text-align: center;
}
.action-item:hover strong { color: var(--primary); }
.action-item span { color: #94A3B8; font-size: .7rem; }
.action-item strong { color: #FFFFFF; font-weight: 600; font-size: .85rem; }
.cart-badge {
  background-color: var(--primary); color: #fff; border-radius: 50%;
  padding: 2px 6px; font-size: .7rem; font-weight: 700; display: inline-block;
}

/* ============================================================
   CATEGORY NAV
   ============================================================ */
.category-nav {
  background: #0A0A0A !important;
  border-bottom: 1px solid #1F2937 !important;
  padding: 12px 0;
  position: relative;
  display: flex;
  align-items: center;
}
.category-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  gap: 25px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  scroll-behavior: smooth;
  flex: 1;
}
.category-container::-webkit-scrollbar { display: none; }
.category-link {
  font-size: .88rem;
  font-weight: 500;
  color: #94A3B8;
  padding-bottom: 4px;
  transition: color .2s;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
  text-decoration: none;
}
.category-link:hover, .category-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.cat-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 87, 34, 0.9);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .2s, transform .2s;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
  padding-bottom: 4px;
}
.cat-scroll-btn:hover  { background: #FF5722; transform: translateY(-50%) scale(1.1); }
.cat-scroll-btn:active { transform: translateY(-50%) scale(0.95); }
.cat-scroll-left  { left: 6px; }
.cat-scroll-right { right: 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero-banner {
  max-width: 1280px; margin: 20px auto; padding: 0 20px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 20px;
}
.main-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #0F172A 100%);
  border-radius: var(--radius); color: #fff; padding: 40px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.main-banner h1 {
  font-size: 2.2rem; font-weight: 700; margin-bottom: 10px;
  line-height: 1.15;
}
.main-banner p { color: #94A3B8; margin-bottom: 20px; max-width: 460px; }

.btn-shop {
  display: inline-block; width: fit-content;
  background-color: var(--primary); color: #fff;
  padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; transition: var(--transition);
}
.btn-shop:hover { background-color: var(--primary-dark); }

.side-banner {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1px solid #FED7AA; border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; justify-content: center;
}
.side-banner h3 { color: var(--primary-dark); font-size: 1.3rem; margin-bottom: 10px; }
.side-banner p { font-size: .85rem; color: #475569; margin-bottom: 15px; }
.side-banner a { color: var(--primary-dark); font-weight: 700; font-size: .85rem; }

/* ============================================================
   CONTAINER / SECTIONS
   ============================================================ */
.container { max-width: 1280px; margin: 40px auto; padding: 0 20px; }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.section-title {
  font-size: 1.4rem; font-weight: 700; color: var(--secondary);
  display: flex; align-items: center; gap: 10px;
}
.badge-flash {
  background-color: #EF4444; color: #fff; font-size: .75rem;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; font-weight: 700;
}
.view-all { color: var(--primary); font-weight: 600; font-size: .9rem; }
.view-all:hover { color: var(--primary-dark); }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
}

.product-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
  display: flex; flex-direction: column;
  height: 100%;
  position: relative; text-decoration: none; color: inherit;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
}
.origin-badge {
  position: absolute; top: 10px; left: 10px;
  background-color: rgba(15,23,42,.8); color: #fff;
  font-size: .65rem; padding: 2px 8px; border-radius: 12px;
  font-weight: 600; z-index: 2;
}

.product-img,
.card-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #F1F5F9;
  padding: 0;
  box-sizing: border-box;
  transition: transform .5s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-details {
  padding: 8px 10px 10px;
  display: flex; flex-direction: column; flex: 1;
  gap: 2px;
}
.product-name {
  font-size: .84rem;
  font-weight: 500; color: var(--text-dark);
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
  margin-bottom: 2px;
}
.product-price {
  font-size: 1rem;
  font-weight: 700; color: var(--primary);
  margin-bottom: 2px;
  line-height: 1.2;
}
.product-price-old {
  font-size: .72rem;
  color: var(--text-muted);
  text-decoration: line-through; margin-left: 6px; font-weight: 400;
}
.product-meta {
  margin-top: auto; padding-top: 4px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .66rem;
  color: var(--text-muted);
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.product-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-meta .stars { color: var(--accent-yellow); }

.btn-add-cart {
  margin-top: 6px;
  width: 100%;
  background-color: #F1F5F9; color: var(--secondary);
  border: none; padding: 7px;
  border-radius: 4px;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  font-size: .78rem;
}
.product-card:hover .btn-add-cart {
  background-color: var(--primary); color: #fff;
}

/* ============================================================
   WISHLIST HEART
   ============================================================ */
.wish-heart {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-size: 15px; color: var(--text-muted);
  transition: var(--transition); z-index: 2;
}
.wish-heart:hover { transform: scale(1.1); color: #e91e63; }
.wish-heart.active { color: #e91e63; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .75rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; background: #fff;
  color: var(--text-dark); transition: var(--transition);
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,87,34,.12);
}
select.form-control { cursor: pointer; }

.form-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  max-width: 460px; margin: 40px auto; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; text-align: center; }
.form-card .subtitle {
  text-align: center; color: var(--text-muted);
  font-size: .85rem; margin-bottom: 26px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block; padding: 12px 24px;
  border-radius: var(--radius); font-weight: 600;
  font-size: .9rem; border: none; cursor: pointer;
  transition: var(--transition); text-align: center;
  font-family: inherit; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: var(--secondary); color: #fff; }
.btn-dark:hover { background: #0F172A; }
.btn-outline {
  background: transparent; color: var(--secondary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  background: var(--secondary); color: #fff; border-color: var(--secondary);
}
.btn-danger { background: #EF4444; color: #fff; }
.btn-danger:hover { background: #DC2626; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  margin-bottom: 18px; font-size: .88rem; font-weight: 500;
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: .9rem;
}
table.data th {
  background: #F8FAFC; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted);
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #FAFBFC; }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.status-pending   { background: #FEF3C7; color: #92400E; }
.status-confirmed { background: #DBEAFE; color: #1E40AF; }
.status-shipped   { background: #E0E7FF; color: #3730A3; }
.status-delivered { background: #D1FAE5; color: #065F46; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-wrap {
  max-width: 1280px; margin: 30px auto; padding: 0 20px;
  display: grid; grid-template-columns: 240px 1fr; gap: 24px;
  min-height: 70vh;
}
.admin-side {
  background: #0F172A !important;
  border: 1px solid #1F2937 !important;
  border-radius: var(--radius);
  padding: 12px;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.admin-side a {
  display: block;
  padding: 11px 14px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 500;
  color: #E5E7EB !important;
  transition: var(--transition);
  margin-bottom: 2px;
}
.admin-side a:hover {
  background: #1F2937 !important;
  color: #FFFFFF !important;
}
.admin-side a.active {
  background: var(--primary) !important;
  color: #FFFFFF !important;
}

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 26px;
}
.stat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card h3 {
  font-size: 1.8rem; font-weight: 800; color: var(--primary);
  line-height: 1.1; margin-bottom: 6px; word-break: break-word;
}
.stat-card p {
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted);
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail {
  max-width: 1280px; margin: 30px auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
  align-items: start;
}
.gallery-main {
  aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: #F1F5F9;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.thumb-strip { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumb-strip img {
  width: 76px; height: 76px; object-fit: cover;
  border-radius: 6px; border: 2px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.thumb-strip img:hover { border-color: var(--primary); }
.thumb-strip img.active { border-color: var(--primary); }

.pd-info h1 { font-size: 1.9rem; margin-bottom: 10px; line-height: 1.2; }
.pd-price {
  font-size: 1.9rem; font-weight: 800; color: var(--primary);
  margin: 18px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.pd-price del {
  font-size: 1rem; color: var(--text-muted);
  text-decoration: line-through; font-weight: 400;
}
.pd-desc {
  color: var(--text-muted); line-height: 1.7; margin-bottom: 22px;
  padding-bottom: 22px; border-bottom: 1px solid var(--border);
}

.size-chips, .color-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 18px; border: 1.5px solid var(--border); background: #fff;
  border-radius: 999px; font-size: .85rem; font-weight: 600;
  cursor: pointer; color: var(--text-dark);
  transition: var(--transition); font-family: inherit;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.qty-wrap { display: flex; align-items: center; gap: 8px; max-width: 180px; }
.qty-btn {
  width: 42px; height: 42px; border: 1.5px solid var(--border); background: #fff;
  border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); color: var(--text-dark);
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-wrap .form-control { height: 42px; }

.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* ============================================================
   REVIEWS
   ============================================================ */
.review { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: none; }
.review-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px; gap: 10px; flex-wrap: wrap;
}
.review-head strong { font-weight: 700; color: var(--text-dark); font-size: .95rem; }
.review-head small { color: var(--text-muted); font-size: .78rem; }
.review-stars { color: var(--accent-yellow); font-size: .9rem; margin-bottom: 6px; letter-spacing: 1px; }
.review p { color: #334155; line-height: 1.65; font-size: .92rem; }
.reviews-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }

/* ============================================================
   ACCOUNT
   ============================================================ */
.account-wrap { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.account-header {
  background: linear-gradient(135deg, var(--secondary), #0F172A);
  color: #fff; border-radius: var(--radius); padding: 32px 28px;
  margin-bottom: 24px;
}
.account-header h1 { font-size: 1.5rem; margin: 0 0 4px; color: #fff; }
.account-header p { color: #94A3B8; margin: 0; font-size: .9rem; }

.account-tabs {
  display: flex; gap: 8px; border-bottom: 1px solid var(--border);
  margin-bottom: 24px; overflow-x: auto; scrollbar-width: none;
}
.account-tabs::-webkit-scrollbar { display: none; }
.account-tab {
  padding: 12px 20px; font-size: .9rem; font-weight: 600;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  white-space: nowrap; cursor: pointer; transition: var(--transition);
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: inherit;
}
.account-tab:hover { color: var(--primary); }
.account-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.order-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
}
.order-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.order-head h3 { font-size: 1rem; margin: 0 0 4px; }
.order-head small { color: var(--text-muted); font-size: .8rem; }

.order-progress { display: flex; margin: 16px 0; align-items: center; }
.op-step {
  flex: 1; text-align: center; position: relative;
  font-size: .72rem; color: var(--text-muted); font-weight: 600;
  padding-top: 28px;
}
.op-step::before {
  content: ''; position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%); width: 16px; height: 16px;
  border-radius: 50%; background: #E2E8F0;
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border);
}
.op-step::after {
  content: ''; position: absolute; top: 15px; left: 50%;
  width: 100%; height: 2px; background: #E2E8F0; z-index: -1;
}
.op-step:last-child::after { display: none; }
.op-step.done::before {
  background: var(--primary); box-shadow: 0 0 0 1px var(--primary);
}
.op-step.done { color: var(--primary); }
.op-step.done::after { background: var(--primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer,
footer {
  background-color: var(--secondary);
  color: #94A3B8;
  padding: 50px 24px 0;
  margin-top: 60px;
}
.footer-container,
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
  align-items: start;
}
.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  margin: 0 0 18px 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.87rem; line-height: 1.4; }
.footer-col ul li a {
  color: #94A3B8;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}
.footer-col ul li a:hover { color: var(--primary); transform: translateX(3px); }

.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand p { line-height: 1.7; font-size: 0.87rem; color: #94A3B8; }
.footer-brand .footer-logo img {
  display: block;
  margin-bottom: 10px;
  height: 56px;
  width: auto;
}

.footer-info-block { margin-top: 14px; }
.footer-info-block .fi-label {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 4px;
  display: block;
}
.footer-info-block .fi-text {
  color: #94A3B8;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}
.footer-info-block a { color: var(--primary); font-weight: 600; text-decoration: none; }
.footer-info-block a:hover { text-decoration: underline; }

.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #25D366;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(37,211,102,.35);
}
.footer-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37,211,102,.5);
  text-decoration: none;
}

.footer-social { display: flex; gap: 8px; margin-top: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1E293B;
  color: #CBD5E1;
  border: 1px solid #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.82rem;
  padding: 20px 0;
  border-top: 1px solid #334155;
  color: #94A3B8;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  z-index: 9999;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.1); }

/* ============================================================
   STATIC PAGES
   ============================================================ */
.page-wrap { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.page-wrap h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.page-wrap .page-sub { color: var(--text-muted); margin-bottom: 24px; font-size: .95rem; }
.page-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.page-card h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--secondary);
}
.page-card p, .page-card li { color: #334155; line-height: 1.7; font-size: .95rem; }
.page-card ul, .page-card ol { padding-left: 22px; margin: 8px 0; }
.page-card ul li, .page-card ol li { margin-bottom: 6px; }
.page-card table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.page-card table th {
  background: #F8FAFC;
  padding: 10px 12px;
  text-align: left;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.page-card table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.page-card table tr:last-child td { border-bottom: none; }

.page-highlight {
  background: #FFF8E1;
  border-left: 4px solid #FFC107;
  padding: 16px 20px;
  border-radius: 8px;
  color: #6B5B1C;
  margin-top: 16px;
  font-size: .9rem;
}
.page-highlight-success { background: #E8F5E9; border-left-color: #4CAF50; color: #1B5E20; }
.page-highlight-info { background: #EFF6FF; border-left-color: #3B82F6; color: #1E40AF; }

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--secondary); }
.step-card p { color: var(--text-muted); line-height: 1.6; font-size: .92rem; }

.faq-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 10px; color: var(--text-muted); line-height: 1.65; font-size: .92rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.contact-card .cc-icon { font-size: 1.5rem; margin-bottom: 8px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--secondary); }
.contact-card a { color: var(--primary); font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { color: var(--text-muted); line-height: 1.5; font-size: .9rem; }

/* ============================================================
   ADMIN — Products Page
   ============================================================ */
.admin-filters {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 20px;
}
.admin-filters-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.af-group { flex-shrink: 0; }
.af-group .form-control { padding: 11px 14px; font-size: 0.9rem; }
.af-search { flex: 1 1 240px; min-width: 180px; }
.af-search .form-control { width: 100%; }

.product-row-name {
  font-weight: 600; color: var(--text-dark);
  font-size: 0.92rem; line-height: 1.35; margin-bottom: 3px;
}
.product-row-sub { font-size: 0.75rem; color: var(--text-muted); }
.product-row-price { font-weight: 700; color: var(--secondary); font-size: 0.95rem; }

.tag-soft {
  display: inline-block; padding: 4px 10px;
  border-radius: 999px; background: #F1F5F9; color: var(--text-dark);
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}

.count-pill {
  display: inline-block; min-width: 28px; padding: 3px 9px;
  border-radius: 999px; background: #EEF2FF; color: #3730A3;
  font-size: 0.78rem; font-weight: 700; text-align: center;
}

.stock-pill {
  display: inline-block; min-width: 34px; padding: 3px 10px;
  border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-align: center;
}
.stock-ok  { background: #D1FAE5; color: #065F46; }
.stock-low { background: #FEF3C7; color: #92400E; }
.stock-out { background: #FEE2E2; color: #991B1B; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.btn-icon {
  display: inline-block; padding: 6px 12px;
  border-radius: 6px; background: #F1F5F9; color: var(--secondary);
  font-size: 0.78rem; font-weight: 600;
  border: 1px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.btn-icon:hover { background: var(--secondary); color: #fff; }
.btn-icon-danger { color: #B91C1C; }
.btn-icon-danger:hover { background: #EF4444; color: #fff; }

@media (max-width: 900px) {
  .admin-filters-row { flex-direction: column; align-items: stretch; }
  .af-group { width: 100%; }
  .af-search { min-width: 0; }
  .admin-filters .btn { width: 100%; }
  table.data td[data-label="Actions"] { justify-content: flex-start !important; }
  .row-actions { justify-content: flex-start; width: 100%; }
  .btn-icon { padding: 7px 12px; flex: 1; text-align: center; }
  .product-row-price { text-align: left; }
}
@media (max-width: 500px) {
  .btn-icon { font-size: 0.72rem; padding: 6px 8px; }
}

/* ============================================================
   ADMIN — Orders Page
   ============================================================ */
.order-tabs {
  display: flex; gap: 4px; overflow-x: auto;
  margin-bottom: 18px; padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.order-tabs::-webkit-scrollbar { display: none; }

.order-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  white-space: nowrap; transition: var(--transition);
  text-decoration: none;
}
.order-tab:hover { color: var(--primary); }
.order-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.order-tab-count {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: #F1F5F9; color: var(--text-dark);
  font-size: 0.72rem; font-weight: 700;
  min-width: 22px; text-align: center;
}
.order-tab.active .order-tab-count { background: var(--primary); color: #fff; }

.order-block {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 16px;
  overflow: hidden; transition: var(--transition);
}
.order-block:hover { border-color: #CBD5E1; box-shadow: var(--shadow); }

.order-block-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; padding: 16px 20px; background: #F8FAFC;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.obh-id {
  font-size: 1rem; font-weight: 800; color: var(--secondary);
  letter-spacing: -0.01em; margin-bottom: 3px;
}
.obh-meta {
  font-size: 0.78rem; color: var(--text-muted);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.obh-meta .dot { color: #CBD5E1; }
.obh-right { text-align: right; flex-shrink: 0; }
.obh-total {
  font-size: 1.1rem; font-weight: 800; color: var(--primary);
  letter-spacing: -0.02em; margin-bottom: 4px;
}

.order-block-body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; }
.ob-col { padding: 18px 20px; }
.ob-customer { border-right: 1px solid var(--border); background: #FFFFFF; }
.ob-items { background: #FBFCFD; }
.ob-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px;
}

.ob-customer-name { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.ob-customer-line { display: flex; gap: 10px; padding: 6px 0; font-size: 0.85rem; }
.ob-key { flex-shrink: 0; width: 70px; color: var(--text-muted); font-weight: 600; }
.ob-val { color: var(--text-dark); word-break: break-word; flex: 1; }
.ob-val:hover { color: var(--primary); }

.ob-items-list { display: flex; flex-direction: column; gap: 8px; }
.ob-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  padding: 10px 12px; background: #fff;
  border: 1px solid var(--border); border-radius: 6px;
}
.ob-item-name {
  font-size: 0.88rem; font-weight: 600; color: var(--text-dark);
  grid-column: 1; line-height: 1.3; overflow: hidden; text-overflow: ellipsis;
}
.ob-item-meta {
  grid-column: 1; font-size: 0.74rem; color: var(--text-muted);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.ob-item-meta .dot { color: #CBD5E1; }
.ob-item-price {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-size: 0.9rem; font-weight: 700; color: var(--secondary);
  text-align: right; white-space: nowrap;
}

.order-update-form { padding: 16px 20px; background: #F8FAFC; border-top: 1px solid var(--border); }
.ou-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 12px; align-items: end; }
.ou-field { min-width: 0; }
.ou-field label {
  display: block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 6px;
}
.ou-field .form-control { padding: 11px 14px; font-size: 0.9rem; }
.ou-field-wide { min-width: 0; }
.ou-field-btn { flex-shrink: 0; }
.ou-field-btn .btn { padding: 12px 24px; }

@media (max-width: 900px) {
  .order-block-body { grid-template-columns: 1fr; }
  .ob-customer { border-right: none; border-bottom: 1px solid var(--border); }
  .ou-row { grid-template-columns: 1fr; gap: 12px; }
  .ou-field-btn .btn { width: 100%; }
}
@media (max-width: 640px) {
  .order-block-head { flex-direction: column; align-items: flex-start; }
  .obh-right { text-align: left; }
  .ob-col { padding: 14px 16px; }
  .order-update-form { padding: 14px 16px; }
  .ob-key { width: 62px; font-size: 0.78rem; }
  .order-tab { padding: 9px 12px; font-size: 0.8rem; }
  .order-tab-count { font-size: 0.68rem; padding: 1px 6px; }
}

/* ============================================================
   PRODUCT PAGE — Gallery & Info
   ============================================================ */
.gallery-wrap { display: flex; flex-direction: column; gap: 14px; }
.gallery-main {
  aspect-ratio: 1 / 1; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #F1F5F9;
  position: relative;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; transition: transform .4s ease;
}
.gallery-main:hover img { transform: scale(1.02); }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}
.gallery-thumb {
  padding: 0; border: 2px solid var(--border);
  border-radius: 8px; background: #F1F5F9;
  cursor: pointer; overflow: hidden;
  aspect-ratio: 1 / 1; transition: var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: #FED7AA; }
.gallery-thumb.active { border-color: var(--primary); box-shadow: 0 4px 12px rgba(255,87,34,.25); }

.pd-info { display: flex; flex-direction: column; }
.pd-topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.pd-cat {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary-dark);
}
.pd-title {
  font-size: 1.75rem; line-height: 1.2; font-weight: 700;
  color: var(--secondary); margin-bottom: 10px; letter-spacing: -.02em;
}
.pd-rating {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--text-muted); margin-bottom: 12px;
}
.pd-rating .stars { color: var(--accent-yellow); letter-spacing: 2px; font-size: .95rem; }
.pd-rating-empty { font-style: italic; }
.pd-price {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 14px 0 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.pd-price-current { font-size: 1.8rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.pd-price-old { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; font-weight: 400; }
.pd-discount {
  background: #EF4444; color: #fff; font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .03em;
}
.pd-desc { color: var(--text-muted); line-height: 1.7; font-size: .93rem; margin-bottom: 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 18px; border: 1.5px solid var(--border); background: #fff;
  border-radius: 999px; font-size: .85rem; font-weight: 600;
  cursor: pointer; color: var(--text-dark);
  transition: var(--transition); font-family: inherit;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.chip-empty { font-size: .82rem; color: var(--text-muted); }

.variant-preview {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding: 10px;
  background: #F8FAFC; border: 1px solid var(--border);
  border-radius: var(--radius);
}
.variant-preview img {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--border);
  background: #F1F5F9;
}

.stock-note { font-size: .82rem; color: var(--text-muted); margin-bottom: 14px; min-height: 20px; }
.stock-note-ok  { color: #065F46; font-weight: 600; }
.stock-note-out { color: #991B1B; font-weight: 600; }

.qty-wrap { display: flex; align-items: center; gap: 8px; max-width: 180px; }
.qty-btn {
  width: 42px; height: 42px; border: 1.5px solid var(--border); background: #fff;
  border-radius: 8px; font-size: 1.05rem; font-weight: 700; cursor: pointer;
  transition: var(--transition); color: var(--text-dark); line-height: 1;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-wrap .form-control { height: 42px; text-align: center; padding: 0 6px; }

.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pd-form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.pd-hint { font-size: .78rem; color: var(--text-muted); text-align: center; margin: 4px 0 0; }

.btn-outline.is-wished { background: #FCE7F3; border-color: #E91E63; color: #E91E63; }

.review-form-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.review-form-card h3 { font-size: 1.05rem; margin-bottom: 16px; font-weight: 700; color: var(--secondary); }

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
.main-banner.has-slideshow {
  position: relative !important;
  overflow: hidden !important;
  background: #0F172A !important;
  min-height: 340px;
  z-index: 1;
  padding: 40px;
}
.hero-slideshow {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0 !important;
  pointer-events: none;
}
.hero-slide {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
  z-index: 0;
}
.hero-slide.active { opacity: 1 !important; }

.hero-overlay {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1 !important;
  background: linear-gradient(135deg,
    rgba(15,23,42,.55) 0%,
    rgba(15,23,42,.30) 45%,
    rgba(15,23,42,.55) 100%);
  pointer-events: none;
}
.main-banner .hero-content {
  position: relative !important;
  z-index: 2 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
}
.main-banner .hero-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.15;
  color: #fff;
}
.main-banner .hero-content p {
  color: #E2E8F0;
  margin-bottom: 20px;
  max-width: 460px;
}
.main-banner.has-slideshow::after { display: none !important; }

/* ============================================================
   SIDE BANNER SLIDESHOW
   ============================================================ */
.side-banner.has-slideshow {
  position: relative !important;
  overflow: hidden !important;
  min-height: 340px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1px solid #FED7AA;
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}
.side-banner-slideshow {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0 !important;
  pointer-events: none;
}
.side-slide {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
  z-index: 0;
}
.side-slide.active { opacity: 1 !important; }

.side-banner.has-slideshow .side-banner-overlay {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1 !important;
  background: linear-gradient(135deg,
    rgba(255, 247, 237, 0.30) 0%,
    rgba(255, 237, 213, 0.40) 100%);
  pointer-events: none;
}
.side-banner.has-slideshow .side-banner-content {
  position: relative !important;
  z-index: 2 !important;
}
.side-banner.has-slideshow h3 {
  color: #7C2D12;
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(255,255,255,0.9), 0 0 12px rgba(255,255,255,0.5);
}
.side-banner.has-slideshow p {
  font-size: .85rem;
  color: #7C2D12;
  margin-bottom: 15px;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(255,255,255,0.85), 0 0 8px rgba(255,255,255,0.4);
}
.side-banner.has-slideshow a {
  color: #7C2D12;
  font-weight: 700;
  font-size: .85rem;
  text-shadow: 0 1px 4px rgba(255,255,255,0.85);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .product-detail { gap: 30px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-container,
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 900px) {
  .hero-banner { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { position: static; }
}
@media (max-width: 768px) {
  body { font-size: 14.5px; }

  /* TOP BAR */
  .top-bar { padding: 6px 12px; font-size: .72rem; flex-direction: column; gap: 4px; text-align: center; }
  .top-bar > div { width: 100%; }
  .top-bar a { margin: 0 6px; }

  /* HEADER */
  .header-container { padding: 10px 12px; flex-wrap: wrap; gap: 8px; align-items: center; }

  .brand-logo { gap: 8px; flex-shrink: 0; max-width: 55%; }
  .brand-logo-img { height: 40px; max-width: 40px; flex-shrink: 0; }
  .brand-logo-text {
    font-size: 0.85rem;
    line-height: 1.1;
    white-space: normal;
    max-width: 120px;
  }
  .brand-logo-text .brand-part-1 { font-size: 0.9rem; }
  .brand-logo-text .brand-part-2 { display: block; font-size: 0.72rem; margin-top: 1px; }

  /* SEARCH */
  .search-wrap { order: 10; width: 100%; max-width: 100%; flex-basis: 100%; margin-top: 4px; }
  .search-box { border-width: 1.5px; }
  .search-box input { padding: 9px 12px; font-size: .88rem; }
  .search-box button { padding: 0 16px; font-size: .82rem; }
  #searchSuggestions { max-height: 320px; }

  /* ACTIONS */
  .header-actions {
    gap: 14px;
    width: 100%;
    order: 11;
    padding: 8px 4px 4px;
    border-top: 1px solid #1F2937;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .header-actions::-webkit-scrollbar { display: none; }

  .action-item {
    font-size: .66rem;
    flex-shrink: 0;
    min-width: 58px;
  }
  .action-item strong { font-size: .76rem; }
  .action-item span { font-size: .6rem; white-space: nowrap; }

  /* CATEGORY NAV */
  .category-container { padding: 0 12px; gap: 16px; }
  .category-link { font-size: .82rem; }
  .cat-scroll-btn { display: none !important; }

  /* HERO */
  .hero-banner { padding: 0 14px; margin: 14px auto; gap: 12px; grid-template-columns: 1fr; }
  .main-banner { padding: 26px 20px; }
  .main-banner h1 { font-size: 1.4rem; }
  .main-banner p { font-size: .85rem; }
  .btn-shop { padding: 10px 20px; font-size: .85rem; }
  .side-banner { padding: 20px; }
  .side-banner h3 { font-size: 1.05rem; }
  .main-banner.has-slideshow { min-height: 260px; padding: 26px 20px; }
  .main-banner .hero-content { min-height: 200px; }
  .main-banner .hero-content h1 { font-size: 1.4rem; }
  .main-banner .hero-content p  { font-size: .85rem; }
  .side-banner.has-slideshow { min-height: 240px; padding: 20px; }

  /* SECTIONS */
  .container { padding: 0 14px; margin: 24px auto; }
  .section-title { font-size: 1.1rem; }
  .view-all { font-size: .82rem; }

  /* ==========================================================
     PRODUCT GRID — MOBILE
     FIXED: Always exactly 2 products per row on all phone widths
     ========================================================== */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-wrap { min-width: 0; }
  .product-card { min-width: 0; }

  .product-img { aspect-ratio: 1 / 1; height: auto; padding: 0; }
  .product-details { padding: 8px; gap: 2px; }
  .product-name { font-size: .78rem; min-height: 2.1em; }
  .product-price { font-size: .9rem; }
  .product-price-old { font-size: .66rem; margin-left: 3px; }
  .product-meta { font-size: .62rem; padding-top: 3px; }
  .btn-add-cart { padding: 6px; font-size: .72rem; margin-top: 5px; }
  .origin-badge { font-size: .58rem; padding: 2px 6px; }
  .wish-heart { width: 26px; height: 26px; font-size: 11px; }

  /* PRODUCT DETAIL */
  .product-detail { padding: 0 14px; margin: 16px auto; }
  .pd-info h1 { font-size: 1.35rem; }
  .pd-price { font-size: 1.5rem; margin: 12px 0; }
  .pd-desc { font-size: .88rem; }
  .thumb-strip img { width: 60px; height: 60px; }

  /* TABLES */
  .table-wrap { background: transparent; border: none; border-radius: 0; }
  table.data, table.data thead, table.data tbody, table.data th, table.data td, table.data tr { display: block; }
  table.data thead { display: none; }
  table.data tr {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
  }
  table.data td {
    border: none; padding: 6px 0;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
  }
  table.data td::before {
    content: attr(data-label);
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; color: var(--text-muted);
    letter-spacing: .06em; flex-shrink: 0;
  }
  table.data td:first-child {
    display: block; padding-bottom: 10px;
    border-bottom: 1px dashed var(--border); margin-bottom: 8px;
  }
  table.data td:first-child::before { display: none; }

  /* ACCOUNT */
  .account-wrap { padding: 0 14px; margin: 16px auto; }
  .account-header { padding: 22px 18px; }
  .account-header h1 { font-size: 1.2rem; }
  .account-tab { padding: 10px 14px; font-size: .82rem; }
  .order-card { padding: 14px; }
  .order-head { flex-direction: column; align-items: flex-start; }
  .op-step { font-size: .62rem; }
  .op-step::before { width: 14px; height: 14px; }

  /* FORM */
  .form-card { padding: 22px 18px; margin: 16px auto; border-radius: 10px; }

  /* ADMIN */
  .admin-wrap { grid-template-columns: 1fr; padding: 0 14px; gap: 16px; }
  .admin-side {
    position: static; display: flex; overflow-x: auto;
    gap: 6px; padding: 8px; scrollbar-width: none;
  }
  .admin-side::-webkit-scrollbar { display: none; }
  .admin-side a { flex-shrink: 0; margin: 0; padding: 8px 14px; font-size: .82rem; white-space: nowrap; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card h3 { font-size: 1.5rem; }

  /* FOOTER */
  .main-footer, footer { padding: 40px 18px 0; margin-top: 40px; }
  .footer-container,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-bottom: 28px;
  }
  .footer-brand { grid-column: 1 / -1; text-align: left; }
  .footer-brand .footer-logo img { height: 50px; max-width: 140px; }
  .footer-col h4 { font-size: 0.9rem; margin-bottom: 14px; padding-bottom: 8px; }
  .footer-col h4::after { width: 28px; height: 3px; }
  .footer-col ul li { font-size: 0.83rem; margin-bottom: 8px; }
  .footer-col p { font-size: 0.83rem; line-height: 1.6; }
  .footer-info-block { margin-top: 12px; }
  .footer-info-block .fi-label { font-size: 0.75rem; }
  .footer-info-block .fi-text { font-size: 0.83rem; }
  .footer-wa-btn { font-size: 0.83rem; padding: 8px 14px; margin-top: 12px; }
  .footer-social { gap: 7px; margin-top: 10px; flex-wrap: wrap; }
  .footer-social a { width: 36px; height: 36px; }
  .footer-social a svg { width: 16px; height: 16px; }
  .footer-bottom { font-size: 0.75rem; padding: 16px 0 80px 0; }

  /* BUTTONS */
  .btn { padding: 11px 20px; font-size: .86rem; }
  .btn-sm { padding: 8px 14px; font-size: .78rem; }

  /* STATIC PAGES */
  .contact-grid { grid-template-columns: 1fr; }
  .page-wrap { margin: 24px auto; padding: 0 14px; }
  .page-wrap h1 { font-size: 1.4rem; }
  .page-card { padding: 18px; }
  .step-card { padding: 16px; gap: 12px; }
  .step-num { width: 38px; height: 38px; font-size: 1rem; }

  /* FLOATING WHATSAPP */
  .wa-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .brand-logo-img { height: 38px; max-width: 38px; }
  .brand-logo-text { font-size: 0.8rem; max-width: 110px; }
  .brand-logo-text .brand-part-1 { font-size: 0.85rem; }
  .brand-logo-text .brand-part-2 { font-size: 0.68rem; }

  .footer-container,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Keep 2 products per row even on very small phones */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-details { padding: 6px; }
  .product-name { font-size: .74rem; }
  .product-price { font-size: .85rem; }
  .product-meta { font-size: .58rem; }
  .btn-add-cart { font-size: .68rem; padding: 5px; }
}

@media (max-width: 380px) {
  /* Keep 2 products per row — no collapse to 1 column */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .product-name { font-size: .7rem; }
  .product-price { font-size: .8rem; }
  .product-price-old { font-size: .6rem; }
  .product-meta { font-size: .55rem; }
  .btn-add-cart { font-size: .65rem; padding: 5px 3px; }
  .origin-badge { font-size: .52rem; padding: 1px 5px; }
  .wish-heart { width: 22px; height: 22px; font-size: 10px; }

  .stat-grid { grid-template-columns: 1fr; }
  .action-item span { display: none; }
  .brand-logo-text {
    font-size: 0.75rem !important;
    line-height: 1.1;
    max-width: 100px;
    white-space: normal;
  }
  .brand-logo-text .brand-part-1 { font-size: 0.8rem; }
  .brand-logo-text .brand-part-2 { display: block; font-size: 0.65rem; }
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.admin-page-head h1 {
  font-size: 1.6rem;
  margin: 0 0 4px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
}
.admin-page-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stat-card-accent {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border-color: #FED7AA;
}
.stat-card-accent .stat-value { color: var(--primary-dark); }
.stat-card-accent .stat-label { color: #9A3412; }
.stat-card-accent .stat-foot { color: #C2410C; }

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  word-break: break-word;
}
.stat-foot {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.admin-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) { .admin-2col { grid-template-columns: 1fr; } }

.admin-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.panel-head h2 { font-size: 1rem; margin: 0; font-weight: 700; color: var(--secondary); }
.panel-link { font-size: 0.82rem; font-weight: 600; color: var(--primary); }
.panel-link:hover { color: var(--primary-dark); }

.panel-list { display: flex; flex-direction: column; gap: 4px; }
.panel-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.panel-item:last-child { border-bottom: none; }

.panel-thumb {
  width: 42px; height: 42px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #F1F5F9;
  flex-shrink: 0;
}

.panel-item-main { flex: 1; min-width: 0; }
.panel-item-title {
  font-size: 0.88rem; font-weight: 600; color: var(--text-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.panel-item-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.panel-item-right { text-align: right; flex-shrink: 0; }
.panel-item-amount { font-size: 0.9rem; font-weight: 700; color: var(--secondary); }
.panel-item-right .status-badge { margin-top: 4px; font-size: 0.62rem; padding: 2px 8px; }

.panel-empty { text-align: center; color: var(--text-muted); font-size: 0.85rem; padding: 30px 10px; }

.status-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.status-col {
  padding: 14px;
  background: #F8FAFC;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.status-col-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.status-col-top strong {
  font-size: 1.25rem; font-weight: 800;
  color: var(--secondary); letter-spacing: -0.02em;
}
.status-bar { height: 5px; background: #E2E8F0; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.status-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.status-bar-pending   { background: #F59E0B; }
.status-bar-confirmed { background: #3B82F6; }
.status-bar-shipped   { background: #6366F1; }
.status-bar-delivered { background: #10B981; }
.status-bar-cancelled { background: #EF4444; }

.status-col-sub { font-size: 0.7rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .admin-page-head { align-items: flex-start; flex-direction: column; }
  .admin-page-head h1 { font-size: 1.3rem; }
  .status-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .status-col { padding: 12px; }
  .status-col-top strong { font-size: 1rem; }
}
@media (max-width: 420px) {
  .status-row { grid-template-columns: 1fr; }
}