/* Vancord product experience: mature, dimensional, responsive styling. */
:root {
  --vancord-ink: #17243a;
  --vancord-muted: #718096;
  --vancord-line: #e4eaf2;
  --vancord-surface: #ffffff;
  --vancord-canvas: #f4f7fb;
  --vancord-accent: #176b72;
  --vancord-accent-dark: #104e57;
  --vancord-shadow: 0 12px 32px rgba(24, 39, 62, .08);
  --vancord-shadow-hover: 0 20px 44px rgba(24, 39, 62, .15);
}

html { scroll-behavior: smooth; }
body { color: var(--vancord-ink); }
.category .product-box,
.product-box,
.sg-product,
.sg-content,
.category .tab-content .tab-pane .tab-item,
.item-content {
  border-radius: 16px;
}
.category .product-box,
.product-box {
  background: var(--vancord-surface);
  border: 1px solid rgba(222, 230, 240, .92);
  box-shadow: var(--vancord-shadow);
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.category .product-box:hover,
.product-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--vancord-shadow-hover);
  border-color: #c7d8e4;
}
.category .product-box img,
.product-box .it-img img,
.product-box .tab-img img,
.product-box .sec-img img {
  transition: transform .35s ease;
}
.category .product-box:hover img,
.product-box:hover .it-img img,
.product-box:hover .tab-img img,
.product-box:hover .sec-img img { transform: scale(1.035); }

.item-content, .tab-heading, .item-heading { color: var(--vancord-ink); }
.item-heading a, .tab-heading a, .it-title a,
.category .product-box .tab-content .tab-pane .tab-item .tab-heading p a {
  color: var(--vancord-ink);
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease;
}
.item-heading a:hover, .tab-heading a:hover, .it-title a:hover { color: var(--vancord-accent); }
.item-price, .price, .pro-price { color: var(--vancord-accent-dark); font-weight: 750; }
.sale, .pro-tag {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Product detail: elevated gallery, clear purchase controls and readable panels. */
.sg-product { gap: 24px; }
.sg-img, .sg-content { min-width: 0; }
.sg-img img, .main-img, .tab-img img {
  border-radius: 16px;
}
.sg-img, .sg-content, .sg-tab, .review-form,
.view .card, .sg-product .card {
  background: var(--vancord-surface);
  border: 1px solid var(--vancord-line);
  box-shadow: var(--vancord-shadow);
  border-radius: 16px;
}
.sg-content, .sg-tab { padding: clamp(16px, 2.4vw, 28px); }
.sg-content h1, .sg-content h2, .sg-content .card-title { color: var(--vancord-ink); line-height: 1.3; }
.sg-content .pro-price { font-size: clamp(1.25rem, 2vw, 1.8rem); }
.qty-box, .qty { border-radius: 10px; }
.sg-content input, .sg-content select, .sg-content textarea,
.review-form input, .review-form select, .review-form textarea,
.view input, .view select, .view textarea {
  border: 1px solid #d8e1ec;
  border-radius: 10px;
  min-height: 42px;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.sg-content input:focus, .sg-content select:focus, .sg-content textarea:focus,
.review-form input:focus, .review-form textarea:focus,
.view input:focus, .view select:focus, .view textarea:focus {
  border-color: #72aeb3;
  box-shadow: 0 0 0 3px rgba(23, 107, 114, .12);
  outline: none;
}
button.add_cart, .add_cart, .sg-content .btn, .view .btn,
.review-form .btn, .sg-content button[type="submit"] {
  border-radius: 10px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
button.add_cart:hover, .add_cart:hover, .sg-content .btn:hover, .view .btn:hover,
.review-form .btn:hover, .sg-content button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 107, 114, .18);
}
.sg-tab .nav-tabs { border-bottom: 1px solid var(--vancord-line); gap: 6px; }
.sg-tab .nav-link { border-radius: 9px 9px 0 0; font-weight: 650; }
.view .card-header, .sg-product .card-header {
  background: #f7f9fc;
  color: var(--vancord-ink);
  border-bottom: 1px solid var(--vancord-line);
  border-radius: 16px 16px 0 0;
  font-weight: 700;
}

/* Existing list and comparison tables retain their markup and actions. */
.table, table { color: var(--vancord-ink); }
.table thead th, table thead th {
  background: #f5f8fc;
  color: #506078;
  border-bottom: 1px solid var(--vancord-line);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.table td, .table th { vertical-align: middle; }
.btn { transition: transform .18s ease, box-shadow .18s ease; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(23, 107, 114, .35);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .sg-product { gap: 14px; }
  .sg-content, .sg-tab { padding: 16px; }
  .category .product-box, .product-box { border-radius: 13px; }
  .table-responsive { border-radius: 12px; }
  .sg-content .btn, .sg-content button, .review-form .btn { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
