/* ============================================================
   BIGBANGSHOP — Premium RTL Dark Luxury Design System
   Iranian Tobacco / Vaping E-Commerce
   ============================================================ */

/* === FONT FACE === */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === DESIGN TOKENS === */

:root {
  /* Backgrounds */
  --bg-base:        #0d0d0d;
  --bg-alt:         #111111;
  --bg-card:        #181818;
  --bg-card-light:  #1a1a1a;

  /* Gold Accent */
  --gold:           #c9a231;
  --gold-dim:       #a07d1f;
  --gold-glow:      rgba(201, 162, 49, 0.15);
  --gold-border:    rgba(201, 162, 49, 0.3);
  --gold-border-sub:rgba(201, 162, 49, 0.2);
  --gold-border-xs: rgba(201, 162, 49, 0.15);

  /* Text */
  --text-white:     #ffffff;
  --text-light:     #eeeeee;
  --text-mid:       #cccccc;
  --text-muted:     #9a9a9a;
  --text-dim:       #888888;
  --text-faint:     #666666;
  --text-ghost:     #555555;

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.06);

  /* Radius */
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-pill:    40px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-mid:  0.25s ease;
}

/* === RESET & BASE === */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
  font-size: 16px;
}

html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.93rem;
  line-height: 1.6;
  background: var(--bg-base);
  color: var(--text-white);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* === TYPOGRAPHY SCALE === */

.h-hero {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.h-section {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
}

.h-card {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

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

.text-xs {
  font-size: 0.75rem;
}

/* === LAYOUT === */

.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* === HEADER === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-base);
  border-bottom: 1px solid var(--gold-border-sub);
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.site-logo {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-icon {
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  position: relative;
  transition: opacity var(--transition-fast);
}

.btn-icon:hover {
  opacity: 0.8;
}

.cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-login {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: none;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.btn-login:hover {
  background: var(--gold);
  color: #000;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}

/* === HERO === */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.85) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-subtitle {
  color: #dddddd;
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-gold {
  background: var(--gold);
  color: #000;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.93rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition-fast);
}

.btn-gold:hover {
  background: var(--gold-dim);
  color: #000;
}

.btn-ghost {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition-fast);
}

.btn-ghost:hover {
  background: rgba(201, 162, 49, 0.12);
  color: var(--gold);
}

/* === CATEGORY STRIP === */

.category-strip {
  background: var(--bg-alt);
  padding: 48px 0;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.88rem;
  transition: border-color var(--transition-mid),
              color var(--transition-mid),
              transform var(--transition-mid),
              box-shadow var(--transition-mid);
  cursor: pointer;
  white-space: nowrap;
}

.category-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 162, 49, 0.18);
}

.category-pill svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

/* === PRODUCTS SECTION === */

.products-section {
  background: var(--bg-base);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  border-right: 3px solid var(--gold);
  padding-right: 12px;
}

.view-all {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.88rem;
  transition: text-decoration var(--transition-fast);
}

.view-all:hover {
  text-decoration: underline;
  color: var(--gold);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 162, 49, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-mid),
              box-shadow var(--transition-mid),
              transform var(--transition-mid);
}

.product-card:hover {
  border-color: rgba(201, 162, 49, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 14px;
}

.product-divider {
  height: 1px;
  background: rgba(201, 162, 49, 0.2);
  margin: 0 0 12px 0;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #eeeeee;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  line-height: 1.5;
}

.product-cat {
  font-size: 0.75rem;
  color: #888888;
  margin-bottom: 8px;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.btn-add-cart {
  width: 100%;
  padding: 9px 0;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--gold);
  color: #000;
}

/* === TRUST STRIP === */

.trust-strip {
  background: var(--bg-alt);
  padding: 48px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border-xs);
  border-radius: var(--radius-md);
}

.trust-icon {
  color: var(--gold);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.trust-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #dddddd;
  margin-bottom: 2px;
}

.trust-sub {
  font-size: 0.78rem;
  color: #888888;
}

/* === BLOG SECTION === */

.blog-section {
  background: var(--bg-base);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border-xs);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: border-color var(--transition-mid), transform var(--transition-mid);
}

.blog-card:hover {
  border-color: rgba(201, 162, 49, 0.4);
  transform: translateY(-3px);
  color: inherit;
}

.blog-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-body {
  padding: 16px;
}

.blog-cat {
  display: inline-block;
  background: rgba(201, 162, 49, 0.15);
  color: var(--gold);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #eeeeee;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-date {
  font-size: 0.78rem;
  color: #777777;
}

/* === FOOTER === */

.site-footer {
  background: var(--bg-base);
  border-top: 1px solid rgba(201, 162, 49, 0.2);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
  text-decoration: none;
}

.footer-desc {
  font-size: 0.85rem;
  color: #888888;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: #aaaaaa;
  margin-bottom: 6px;
  direction: rtl;
}

.footer-contact-item svg {
  color: var(--gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 162, 49, 0.2);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #888888;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: #666666;
}

.footer-credit {
  font-size: 0.8rem;
  color: #555555;
}

.footer-credit a {
  color: var(--gold);
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: #888888;
  transition: color var(--transition-fast);
  line-height: 0;
}

.footer-social a:hover {
  color: var(--gold);
}

/* === MOBILE NAVIGATION OVERLAY === */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav-overlay.open {
  transform: translateX(0);
}

.mobile-nav-inner {
  width: 280px;
  height: 100%;
  background: var(--bg-alt);
  position: absolute;
  left: 0;
  top: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  margin-bottom: 24px;
  padding: 4px;
  line-height: 0;
}

.mobile-nav-link {
  display: block;
  padding: 14px 0;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--gold);
}

/* === UTILITY CLASSES === */

.text-gold {
  color: var(--gold);
}

.text-muted {
  color: #888888;
}

.text-white {
  color: var(--text-white);
}

.text-center {
  text-align: center;
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* Margin utilities */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* === RESPONSIVE — 768px === */

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero {
    min-height: 380px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .category-grid {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-grid::-webkit-scrollbar {
    display: none;
  }

  .section {
    padding: 48px 0;
  }
}

/* === RESPONSIVE — 480px === */

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .h-hero {
    font-size: 1.6rem;
  }

  .section {
    padding: 36px 0;
  }
}

/* === PAGE BANNER === */

.page-banner {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--gold-border-sub);
  padding: 40px 0 32px;
}

.page-banner-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.breadcrumb-sep {
  color: var(--text-ghost);
}

/* === FORMS === */

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.form-label .required {
  color: #e05555;
  margin-right: 3px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-card-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 11px 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  direction: rtl;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-ghost);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  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='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 36px;
}

.form-error {
  font-size: 0.8rem;
  color: #e05555;
  margin-top: 5px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-ghost);
  margin-top: 5px;
}

/* === FLASH MESSAGES === */

.flash-msg {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 20px;
  border-right: 3px solid;
}

.flash-success {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: #4ade80;
}

.flash-error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-color: #f87171;
}

.flash-info {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  border-color: #93c5fd;
}

/* === SHOP / FILTERS === */

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.shop-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--gold-border-xs);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: 80px;
}

.sidebar-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,162,49,0.15);
}

.filter-list {
  list-style: none;
}

.filter-list li {
  margin-bottom: 4px;
}

.filter-list a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.filter-list a:hover,
.filter-list a.active {
  background: var(--gold-glow);
  color: var(--gold);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-count {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* === PRODUCT DETAIL === */

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-border-xs);
  background: var(--bg-card);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gold-border-xs);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--gold);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
  line-height: 1.5;
}

.product-detail-cat {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.product-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
}

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.qty-input {
  width: 72px;
  text-align: center;
  background: var(--bg-card-light);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: inherit;
  font-size: 1rem;
  padding: 9px 8px;
}

.qty-input:focus {
  outline: none;
  border-color: var(--gold-border);
}

.product-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.stock-in {
  background: rgba(34,197,94,0.1);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.2);
}

.stock-out {
  background: rgba(239,68,68,0.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.2);
}

/* === CART === */

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

.cart-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: right;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  font-size: 0.88rem;
  color: var(--text-mid);
}

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

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

.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--gold-border-xs);
  flex-shrink: 0;
}

.cart-product-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
}

.cart-product-cat {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--gold-border-sub);
  margin-top: 8px;
}

.cart-total-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-mid);
}

.cart-total-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.btn-remove {
  background: none;
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-remove:hover {
  background: rgba(239,68,68,0.12);
}

/* === ACCOUNT === */

.account-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.account-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--gold-border-xs);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.account-nav-link:last-child {
  border-bottom: none;
}

.account-nav-link:hover,
.account-nav-link.active {
  background: var(--gold-glow);
  color: var(--gold);
}

.account-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border-xs);
  border-radius: var(--radius-md);
  padding: 24px;
}

.account-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.order-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.order-row:last-child {
  border-bottom: none;
}

.order-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pending  { background: rgba(234,179,8,0.12); color:#fcd34d; }
.status-paid     { background: rgba(34,197,94,0.12);  color:#4ade80; }
.status-shipped  { background: rgba(59,130,246,0.12); color:#93c5fd; }
.status-done     { background: rgba(34,197,94,0.15);  color:#86efac; }
.status-canceled { background: rgba(239,68,68,0.12);  color:#f87171; }

/* === RESPONSIVE ADDITIONS === */

@media (max-width: 768px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  /* QA cart card layout — zero horizontal overflow */
  .cart-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table thead { display: none; }
  .cart-table tr { border: 1px solid var(--border, #333); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
  .cart-table td { border: 0; padding: 6px 0; text-align: right; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cart-table td[data-label]::before { content: attr(data-label); font-weight: 700; color: var(--text-mid, #999); font-size: .82rem; flex: none; }
  .cart-table td:first-child { display: block; }

  .order-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
