/* ============================================================
   SINH STORE — Premium White / Light UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── Standard Font Awesome Icon Targets ──────────────── */
i[class*="fa-"], span[class*="fa-"],
i.fa-solid, i.fa-brands, i.fa-regular,
.fa-solid, .fa-brands, .fa-regular,
.fas, .far, .fab {
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
}
i.fa-solid, span.fa-solid, .fa-solid, .fas { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }
i.fa-brands, span.fa-brands, .fa-brands, .fab { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }
i.fa-regular, span.fa-regular, .fa-regular, .far { font-family: "Font Awesome 6 Free" !important; font-weight: 400 !important; }

:root {
  /* Backgrounds */
  --bg:          #ffffff;
  --bg-2:        #f7f8fc;
  --bg-3:        #f0f1f7;
  --bg-card:     #ffffff;
  --bg-card-hov: #fafbff;

  /* Borders */
  --border:      #e8eaf2;
  --border-hov:  #c8cce0;

  /* Accent — vivid red */
  --accent:      #e63030;
  --accent-2:    #c0392b;
  --accent-3:    #ff6b6b;
  --accent-dim:  rgba(230,48,48,0.08);
  --accent-glow: rgba(230,48,48,0.18);

  /* Text */
  --text-1:      #0f1117;
  --text-2:      #4b5568;
  --text-3:      #9aa0b4;

  /* Radius */
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(15,17,23,0.06), 0 1px 2px rgba(15,17,23,0.04);
  --shadow-sm:   0 4px 16px rgba(15,17,23,0.07);
  --shadow-md:   0 8px 32px rgba(15,17,23,0.10);
  --shadow-lg:   0 20px 60px rgba(15,17,23,0.12);
  --shadow-card: 0 2px 8px rgba(15,17,23,0.06), 0 12px 32px rgba(15,17,23,0.05);
  --shadow-red:  0 8px 28px rgba(230,48,48,0.22);

  /* Timing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.25s;

  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-2);
  color: var(--text-1);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

/* ─────────────────────────────────────────────────────────────
   TOP ANNOUNCEMENT BAR
───────────────────────────────────────────────────────────── */
.top-bar {
  background: var(--text-1);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ─────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand a {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--dur), background var(--dur);
}

.main-nav a:hover {
  color: var(--text-1);
  background: var(--bg-3);
}

.main-nav .nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-weight: 700;
  font-size: 14px;
  transition: background var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease);
  box-shadow: var(--shadow-red);
}

.main-nav .nav-cart:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(230,48,48,0.30);
}

.login-btn,
.btn.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  background: #1a73e8;
  color: #fff;
  transition: background var(--dur), transform var(--dur) var(--ease);
}

.login-btn:hover,
.btn.secondary-link:hover {
  background: #165ec8;
  transform: translateY(-1px);
}

.user-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(15,17,23,0.05);
  color: var(--text-1);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.9);
}

.user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}

.cart-icon { font-size: 15px; }

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

/* ─────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────── */
.site-banner {
  margin: 24px auto 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.site-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}

.site-banner:hover img {
  transform: scale(1.02);
}

.hero-section {
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
}

/* subtle geometric decoration */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(230,48,48,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(230,48,48,0.18);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  animation: fade-up 0.55s var(--ease) both;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-1);
  margin-bottom: 18px;
  animation: fade-up 0.55s 0.08s var(--ease) both;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.75;
  animation: fade-up 0.55s 0.16s var(--ease) both;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fade-up 0.55s 0.24s var(--ease) both;
}

/* ─────────────────────────────────────────────────────────────
   STATS
───────────────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
  animation: fade-up 0.55s 0.32s var(--ease) both;
}

.stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur),
              border-color var(--dur);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 12px 36px rgba(230,48,48,0.30);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-1);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--border-hov);
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  color: var(--accent);
  border: 1.5px solid rgba(230,48,48,0.25);
  background: var(--accent-dim);
}

.btn-ghost:hover {
  background: rgba(230,48,48,0.13);
  border-color: rgba(230,48,48,0.4);
}

/* ─────────────────────────────────────────────────────────────
   TOOLBAR (Search + Sort)
───────────────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.search-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 15px;
  pointer-events: none;
}

.search-wrap input[type="search"] {
  width: 100%;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-1);
  padding: 11px 16px 11px 44px;
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}

.search-wrap input[type="search"]::placeholder { color: var(--text-3); }

.search-wrap input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,48,48,0.10);
  background: var(--bg-card);
}

.search-wrap input[type="search"]::-webkit-search-cancel-button { display: none; }

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: background var(--dur), box-shadow var(--dur);
}

.search-btn:hover {
  background: var(--accent-2);
  box-shadow: 0 4px 16px rgba(230,48,48,0.28);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sort-wrap label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}

.sort-wrap select {
  appearance: none;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-1);
  padding: 11px 40px 11px 14px;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: border-color var(--dur), box-shadow var(--dur);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa0b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.sort-wrap select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,48,48,0.10);
  background-color: var(--bg-card);
}

/* ─────────────────────────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 12px;
  background: var(--accent-dim);
  border-radius: 999px;
  border: 1px solid rgba(230,48,48,0.18);
  white-space: nowrap;
}

.section-title-main {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-1);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─────────────────────────────────────────────────────────────
   PRODUCT GRID
───────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ─────────────────────────────────────────────────────────────
   PRODUCT CARD
───────────────────────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur);
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hov);
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(230,48,48,0.30);
}

.new-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16,185,129,0.25);
  color: #059669;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}

.product-img-wrap {
  background: linear-gradient(160deg, #f9faff 0%, #f3f5fc 100%);
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.45s var(--ease);
}

.product-card:hover img {
  transform: scale(1.06);
}

.product-card-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-1);
  min-height: 3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-new {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.price-old {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: line-through;
}

.product-actions { margin-top: auto; }

.add-cart-btn {
  width: 100%;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--accent-dim);
  border: 1.5px solid rgba(230,48,48,0.20);
  color: var(--accent);
  transition:
    background var(--dur),
    border-color var(--dur),
    color var(--dur),
    box-shadow var(--dur),
    transform var(--dur) var(--ease);
}

.add-cart-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 72px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.empty-icon { font-size: 52px; margin-bottom: 14px; }
.empty-state p { color: var(--text-2); margin-bottom: 22px; }

/* ─────────────────────────────────────────────────────────────
   PRODUCT DETAIL PAGE
───────────────────────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
}

.product-img-gallery {
  position: sticky;
  top: 90px;
}

.detail-img-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-img-wrap img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
}

.detail-img-wrap:hover img { transform: scale(1.04); }

/* Detail content */
.product-detail-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.badge-hot {
  background: var(--accent-dim);
  border: 1px solid rgba(230,48,48,0.20);
  color: var(--accent);
}

.badge-warranty {
  background: rgba(59,130,246,0.07);
  border: 1px solid rgba(59,130,246,0.20);
  color: #2563eb;
}

.badge-instock {
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.22);
  color: #059669;
}

.detail-name {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-1);
}

.detail-desc {
  color: var(--text-2);
  line-height: 1.75;
  font-size: 14.5px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

.detail-price-block {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}

.detail-price-new {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.detail-price-old {
  font-size: 14px;
  color: var(--text-3);
  text-decoration: line-through;
  margin-top: 4px;
}

.detail-savings {
  display: inline-block;
  margin-top: 10px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.20);
  color: #059669;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Quantity stepper */
.qty-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
}

.qty-btn {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: background var(--dur), color var(--dur);
}

.qty-btn:hover {
  background: var(--bg-3);
  color: var(--text-1);
}

.qty-input {
  width: 56px;
  height: 44px;
  background: transparent;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  color: var(--text-1);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { display: none; }

/* detail action buttons */
.detail-actions {
  display: flex;
  gap: 10px;
}

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

/* features */
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
}

.feature-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(16,185,129,0.09);
  border: 1px solid rgba(16,185,129,0.22);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   CART PAGE
───────────────────────────────────────────────────────────── */
.page-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  padding: 36px 0 22px;
  color: var(--text-1);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
  padding-bottom: 60px;
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-1);
  background: var(--bg-2);
}

.table-responsive { overflow-x: auto; }

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.cart-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
}

.cart-table tbody tr:last-child td { border-bottom: none; }
.cart-table tbody tr:hover td { background: var(--bg-2); }

.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-product-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: var(--bg-3);
  object-fit: contain;
  border: 1px solid var(--border);
  padding: 4px;
  flex-shrink: 0;
}

.cart-product-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-1);
  line-height: 1.4;
}

.cart-price { font-weight: 700; color: var(--accent); }
.cart-total-cell { font-weight: 800; color: var(--accent); font-size: 1rem; }

.cart-delete-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(230,48,48,0.06);
  border: 1px solid rgba(230,48,48,0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background var(--dur), border-color var(--dur);
}

.cart-delete-btn:hover {
  background: rgba(230,48,48,0.14);
  border-color: rgba(230,48,48,0.35);
}

/* Summary box */
.summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-sm);
}

.summary-box h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-2);
}

.summary-row:last-of-type { border-bottom: none; }

.summary-row.total {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-1);
  padding-top: 14px;
}

.summary-row.total .val {
  color: var(--accent);
  font-size: 1.35rem;
}

/* ─────────────────────────────────────────────────────────────
   CHECKOUT PAGE
───────────────────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
  padding-bottom: 60px;
}

.checkout-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.checkout-form-wrap h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--text-1);
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-1);
  padding: 12px 15px;
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,48,48,0.10);
  background: var(--bg-card);
}

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

.notice-card {
  background: rgba(59,130,246,0.05);
  border: 1px solid rgba(59,130,246,0.18);
  border-left: 3.5px solid #3b82f6;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--text-2);
}

.notice-card strong {
  display: block;
  color: #2563eb;
  margin-bottom: 3px;
  font-size: 12.5px;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--text-1);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 36px 0;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.footer-brand span { color: var(--accent-3); }

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-hotline {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.footer-hotline a {
  color: var(--accent-3);
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer-bar {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.anim-fade-up {
  opacity: 0;
  animation: fade-up 0.45s var(--ease) both;
}

/* Card stagger */
.product-grid .product-card:nth-child(1) { animation-delay: 0.04s; }
.product-grid .product-card:nth-child(2) { animation-delay: 0.08s; }
.product-grid .product-card:nth-child(3) { animation-delay: 0.12s; }
.product-grid .product-card:nth-child(4) { animation-delay: 0.16s; }
.product-grid .product-card:nth-child(5) { animation-delay: 0.20s; }
.product-grid .product-card:nth-child(6) { animation-delay: 0.24s; }
.product-grid .product-card:nth-child(7) { animation-delay: 0.28s; }
.product-grid .product-card:nth-child(8) { animation-delay: 0.32s; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-detail,
  .cart-layout,
  .checkout-layout   { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .product-img-gallery,
  .summary-box       { position: static; }
}

@media (max-width: 768px) {
  .main-header   { flex-wrap: wrap; gap: 10px; }
  .main-nav      { gap: 2px; }
  .main-nav a    { padding: 7px 10px; font-size: 13px; }
  .brand a       { font-size: 20px; }

  .hero-section  { padding: 44px 0 36px; }
  .hero-title    { font-size: clamp(1.9rem, 7.5vw, 2.8rem); }

  .stat-item     { padding: 20px 14px; }
  .stat-number   { font-size: 1.5rem; }

  .toolbar       { flex-direction: column; align-items: stretch; padding: 14px; }
  .search-wrap   { min-width: unset; }

  .product-grid  { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .product-card img { height: 160px; }
  .product-card-content { padding: 14px 14px 16px; }

  .page-title    { padding: 22px 0 14px; }

  /* ── Product Detail Mobile ── */
  .product-detail            { padding: 16px 0 100px; gap: 18px; }
  .product-img-gallery       { gap: 10px; }
  .detail-img-wrap           { padding: 16px; border-radius: 14px; }
  .detail-img-wrap img       { width: 88%; height: 88%; }
  .gallery-thumbnails        { gap: 8px; }
  .gallery-thumbnails .thumb-wrap { width: 60px; height: 60px; border-radius: 10px; }
  .product-detail-content    { gap: 16px; }
  .detail-name               { font-size: clamp(1.35rem, 5.2vw, 1.85rem); line-height: 1.2; }
  .detail-desc               { padding: 12px 14px; font-size: 13.5px; }
  .detail-price-block        { padding: 14px 16px; }
  .detail-price-new          { font-size: 1.6rem; }
  .detail-price-old          { font-size: 13px; }
  .detail-savings            { font-size: 11.5px; padding: 3px 10px; }
  .capacity-wrap,
  .classification-wrap,
  .color-wrap                { margin-bottom: 14px !important; }
  .capacity-options,
  .classification-options,
  .color-options             { gap: 8px !important; }
  .capacity-btn,
  .classification-btn,
  .color-btn                 { padding: 7px 12px; font-size: 12.5px; }
  .qty-wrap                  { flex-direction: column; align-items: stretch; gap: 8px; }
  .qty-wrap .qty-label       { margin-bottom: 2px; }
  .qty-control               { width: 100%; max-width: 200px; }
  .qty-btn                   { width: 44px; height: 48px; }
  .qty-input                 { width: 100%; height: 48px; font-size: 15px; }
  .detail-actions            { flex-direction: column; gap: 10px; }
  .detail-actions .btn       { width: 100%; padding: 14px 18px; font-size: 15px; }
  .features-list li          { font-size: 13px; }
  .breadcrumb-nav            { font-size: 12.5px; padding: 6px 0; }

  /* Sticky mobile CTA bar */
  .mobile-sticky-cta         { display: flex !important; }
  .product-detail-content    { padding-bottom: 16px; }
  body                       { padding-bottom: 70px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .summary-box,
  .checkout-form-wrap { padding: 18px; }
  .stats-row { gap: 0; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item { flex: 0 0 50%; border-bottom: 1px solid var(--border); }

  /* ── Product Detail Small Mobile ── */
  .product-detail            { padding: 12px 0 110px; gap: 14px; }
  .detail-img-wrap           { padding: 10px; border-radius: 12px; }
  .gallery-thumbnails .thumb-wrap { width: 52px; height: 52px; }
  .detail-name               { font-size: 1.25rem; }
  .detail-price-new          { font-size: 1.4rem; }
  .detail-discount-badge     { font-size: 11px !important; padding: 3px 6px !important; }
  .qty-btn                   { width: 40px; height: 46px; font-size: 18px; }
  .qty-input                 { height: 46px; }
  .detail-actions .btn       { padding: 13px 16px; font-size: 14.5px; }
}

/* ─────────────────────────────────────────────────────────────
   MODAL & DROPDOWN VISIBILITY FIX
───────────────────────────────────────────────────────────── */

.account-dropdown {
  position: relative;
  z-index: 1000;
}

/* Ẩn triệt để modal và backdrop khi đóng */
.modal-login, .modal-backdrop {
  display: none !important;
  pointer-events: none;
}

/* ── Mobile Sticky CTA Bar (Product Detail) ── */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card, #fff);
  border-top: 1px solid var(--border, #e2e8f0);
  padding: 10px 14px calc(env(safe-area-inset-bottom, 0) + 10px);
  gap: 8px;
  align-items: center;
  z-index: 95;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}
.mobile-sticky-cta .sticky-price {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-2, #475569);
  line-height: 1.2;
}
.mobile-sticky-cta .sticky-price strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: var(--accent, #e63030);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-sticky-cta .btn-add-cart,
.mobile-sticky-cta .btn-buy-now {
  flex-shrink: 0;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mobile-sticky-cta .btn-add-cart {
  background: #f1f5f9;
  color: var(--text-1, #0f172a);
  border: 1px solid var(--border, #e2e8f0);
}
.mobile-sticky-cta .btn-buy-now {
  background: var(--accent, #e63030);
  color: #fff;
  box-shadow: 0 4px 12px rgba(230, 48, 48, 0.25);
}
@media (min-width: 769px) {
  .mobile-sticky-cta { display: none !important; }
}
