@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
  --pv-blue: #1462f3;
  --pv-blue-dark: #0a46b2;
  --pv-blue-light: #e8f0fe;
  --pv-red: #ea1322;
  --pv-red-light: #fef0f1;
  --pv-yellow: #f59e0b;
  --pv-green: #10b981;
  --pv-dark: #1e293b;
  --pv-text: #334155;
  --pv-muted: #64748b;
  --pv-border: #e2e8f0;
  --pv-bg: #f4f6fa;
  --pv-card-bg: #ffffff;
  --pv-radius: 10px;
  --pv-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background-color: var(--pv-bg);
  color: var(--pv-text);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }

.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.top-bar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 12px;
  padding: 6px 16px;
}
.top-bar-inner {
  max-width: 1280px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-badges {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
}
.top-badge svg {
  color: #38bdf8;
}
.top-bar-links {
  display: flex;
  gap: 20px;
}
.top-bar-links a:hover { color: #fff; }

.header {
  background: var(--pv-blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(20, 98, 243, 0.25);
}
.header-inner {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.header-logo-img {
  height: 34px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  display: block;
}

.category-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s;
}
.category-trigger:hover { background: rgba(255, 255, 255, 0.25); }

.search-box {
  flex: 1;
  position: relative;
  max-width: 560px;
  min-width: 260px;
}
.search-form {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  height: 40px;
}
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: none;
  font-size: 13px;
  color: #1e293b;
  outline: none;
}
.search-form input::placeholder {
  color: #94a3b8;
}
.search-form button {
  background: #ff5722;
  color: #ffffff;
  padding: 0 18px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}
.search-form button:hover {
  background: #e64a19;
}
.search-form button svg {
  stroke: #ffffff;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
}
.header-action-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.header-action-item:hover {
  background: rgba(255, 255, 255, 0.16);
}
.header-action-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-action-icon svg {
  stroke: #ffffff !important;
  display: block;
}
.header-action-text {
  display: flex;
  flex-direction: column;
}
.header-action-text span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
}
.header-action-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--pv-blue);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.15s;
}
.cart-btn:hover { background: #f8fafc; transform: translateY(-1px); }
.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cart-counter {
  background: var(--pv-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sub-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--pv-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.sub-nav-inner {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 16px;
  overflow-x: auto;
  white-space: nowrap;
}
.sub-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  color: var(--pv-dark);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.sub-nav-item:hover, .sub-nav-item.active {
  color: var(--pv-blue);
  border-bottom-color: var(--pv-blue);
}
.sub-nav-item.hot { color: var(--pv-red); }

.hero-section {
  max-width: 1280px;
  margin: 16px auto 24px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 16px;
}

.sidebar-categories {
  background: #fff;
  border-radius: var(--pv-radius);
  border: 1px solid var(--pv-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 8px 0;
}
.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--pv-dark);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.cat-item:hover, .cat-item.active {
  background: var(--pv-blue-light);
  color: var(--pv-blue);
  font-weight: 700;
}
.cat-item .svg-icon {
  width: 18px;
  height: 18px;
  color: #64748b;
}
.cat-item:hover .svg-icon, .cat-item.active .svg-icon {
  color: var(--pv-blue);
}

.main-carousel {
  background: linear-gradient(135deg, #0a1f44 0%, #103c82 60%, #1557bf 100%);
  border-radius: var(--pv-radius);
  color: #fff;
  padding: 32px 36px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(20, 98, 243, 0.25);
}
.carousel-content {
  flex: 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.carousel-visual {
  width: 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}
.carousel-visual img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.45));
  animation: float 3s ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.carousel-badge {
  display: inline-block;
  background: var(--pv-red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 12px;
}
.main-carousel h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.main-carousel p {
  font-size: 13px;
  color: #cbd5e1;
  max-width: 380px;
  margin: 0 0 18px;
  line-height: 1.5;
}
.carousel-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff5722;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(255,87,34,0.3);
  transition: transform 0.2s;
}
.carousel-cta:hover { transform: translateY(-2px); }

.side-promos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-promo-card {
  background: #fff;
  border-radius: var(--pv-radius);
  border: 1px solid var(--pv-border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}
.side-promo-card.accent {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fdba74;
}
.side-promo-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--pv-dark);
  font-weight: 800;
}
.side-promo-card p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--pv-muted);
}
.promo-tag {
  color: var(--pv-red);
  font-weight: 700;
  font-size: 13px;
}

.flash-sale-section {
  max-width: 1280px;
  margin: 0 auto 28px;
  padding: 0 16px;
}
.flash-sale-box {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  border-radius: var(--pv-radius);
  padding: 18px 20px;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.25);
  color: #fff;
}
.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.flash-sale-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.flash-sale-title .icon {
  font-size: 24px;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.countdown span {
  background: #000;
  color: #fff;
  padding: 4px 7px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 13px;
}

.flash-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.main-container {
  max-width: 1280px;
  margin: auto;
  padding: 0 16px;
}

.catalog-header {
  background: #fff;
  border-radius: var(--pv-radius);
  border: 1px solid var(--pv-border);
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.catalog-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--pv-dark);
}
.catalog-title p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--pv-muted);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 6px 14px;
  border-radius: 20px;
  background: #f1f5f9;
  color: var(--pv-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.pill:hover, .pill.active {
  background: var(--pv-blue-light);
  color: var(--pv-blue);
  border-color: var(--pv-blue);
}

.sort-select {
  padding: 7px 12px;
  border: 1px solid var(--pv-border);
  border-radius: 8px;
  background: #fff;
  color: var(--pv-dark);
  font-size: 12px;
  font-weight: 500;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.pv-card {
  background: var(--pv-card-bg);
  border: 1px solid var(--pv-border);
  border-radius: var(--pv-radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pv-shadow);
  border-color: #cbd5e1;
}

.card-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.badge-discount {
  background: var(--pv-red);
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(234, 19, 34, 0.3);
}
.badge-installment {
  background: #0284c7;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-brand {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  margin-top: 12px;
  margin-bottom: 6px;
  cursor: pointer;
}
.card-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.pv-card:hover .card-img-wrapper img {
  transform: scale(1.04);
}

.angle-toolbar {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}
.angle-btn {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  color: #64748b;
  background: #f1f5f9;
  transition: all 0.15s;
}
.angle-btn:hover { background: #e2e8f0; color: var(--pv-blue); }
.angle-btn.active {
  background: var(--pv-blue);
  color: #fff;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--pv-dark);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
  cursor: pointer;
}
.card-title:hover { color: var(--pv-blue); }

.card-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.spec-tag {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-pricing {
  margin-top: auto;
  margin-bottom: 8px;
}
.price-current {
  color: var(--pv-red);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.price-original {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 6px;
}

.card-gift-box {
  background: var(--pv-red-light);
  border: 1px dashed #fca5a5;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  color: #b91c1c;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-gift-box svg { color: var(--pv-red); }

.card-rating-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--pv-muted);
  margin-bottom: 12px;
}
.stars { color: #f59e0b; font-weight: 700; }
.stock-status { color: var(--pv-green); font-weight: 600; }

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-detail {
  padding: 8px;
  background: #f1f5f9;
  color: var(--pv-dark);
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  text-align: center;
  transition: all 0.15s;
}
.btn-detail:hover { background: #e2e8f0; color: var(--pv-blue); }
.btn-buy {
  padding: 8px;
  background: var(--pv-blue);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  text-align: center;
  transition: background 0.15s;
}
.btn-buy:hover { background: var(--pv-blue-dark); }

.features-banner {
  background: #fff;
  border-top: 1px solid var(--pv-border);
  border-bottom: 1px solid var(--pv-border);
  padding: 30px 16px;
  margin-top: 40px;
}
.features-inner {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-box {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-box .icon-box {
  background: var(--pv-blue-light);
  color: var(--pv-blue);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.feature-box strong {
  display: block;
  font-size: 14px;
  color: var(--pv-dark);
  margin-bottom: 2px;
}
.feature-box p {
  margin: 0;
  font-size: 12px;
  color: var(--pv-muted);
}

.footer {
  background: #0b1120;
  color: #cbd5e1;
  padding: 50px 0 0;
  border-top: 1px solid #1e293b;
  margin-top: 50px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand {
  margin-bottom: 16px;
}
.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  margin-bottom: 8px;
}
.footer-logo-img {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: #1462f3;
  border-radius: 2px;
}
.footer-col p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.7;
  color: #94a3b8;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #94a3b8;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.footer-col ul li a:hover {
  color: #38bdf8;
  transform: translateX(3px);
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
}
.footer-contact-item svg {
  color: #38bdf8;
  flex-shrink: 0;
}
.footer-contact-item strong {
  color: #ffffff;
}
.footer-contact-item a {
  color: #38bdf8;
  text-decoration: none;
}
.footer-contact-item a:hover {
  text-decoration: underline;
}
.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pay-badge {
  background: #1e293b;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #334155;
}
.footer-bottom {
  background: #060913;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid #1e293b;
}

dialog.modal-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  padding: 0;
  background: transparent;
  max-width: 900px;
  width: 92%;
  max-height: 90vh;
  z-index: 999999;
  outline: none;
  overflow: visible;
}
dialog.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--pv-border);
  flex-shrink: 0;
}
.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #e2e8f0;
  color: #475569;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}
.modal-gallery-main {
  width: 100%;
  height: 320px;
  background: #f8fafc;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.modal-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.modal-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.modal-thumb-btn {
  background: #ffffff;
  border: 2px solid var(--pv-border);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-thumb-btn img {
  width: 100%;
  height: 52px;
  object-fit: contain;
}
.modal-thumb-btn span {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.modal-thumb-btn.active,
.modal-thumb-btn:hover {
  border-color: var(--pv-blue);
  background: var(--pv-blue-light);
}
.modal-thumb-btn.active span {
  color: var(--pv-blue);
  font-weight: 700;
}
.modal-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.modal-details h3 {
  font-size: 18px;
  line-height: 1.4;
  color: #0f172a;
  margin: 6px 0 10px;
  font-weight: 700;
}
.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 12px;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--pv-border);
}
.modal-specs-table tr:nth-child(even) {
  background: #ffffff;
}
.modal-specs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--pv-border);
  line-height: 1.5;
}
.modal-specs-table td:first-child {
  font-weight: 600;
  color: #475569;
  width: 38%;
  background: #f1f5f9;
}
.modal-specs-table td:last-child {
  color: #1e293b;
  font-weight: 500;
}
.modal-specs-table tr:last-child td {
  border-bottom: none;
}
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
}
.cart-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--pv-border);
  border-radius: 8px;
}
.cart-row img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  padding: 4px;
  border: 1px solid var(--pv-border);
}
.cart-row-info {
  flex: 1;
  min-width: 0;
}
.cart-row-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.cart-row-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--pv-red);
}
.cart-row-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fee2e2;
  color: #ef4444;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.cart-row-remove:hover {
  background: #ef4444;
  color: #ffffff;
}
.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  margin-top: 14px;
  border-top: 1px solid var(--pv-border);
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.cart-summary strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--pv-red);
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 1000000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero-section { grid-template-columns: 1fr; }
  .sidebar-categories, .side-promos { display: none; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .flash-products { grid-template-columns: repeat(2, 1fr); }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .header-actions .header-action-item { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-gallery-main { height: 200px; }
  .features-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

.category-trigger svg {
  margin-right: 8px;
  stroke: #ffffff;
}
.header-action-item .icon svg {
  stroke: var(--pv-blue);
  display: block;
}
.cart-btn svg {
  stroke: #ffffff;
}
.sub-nav-item svg {
  margin-right: 6px;
  vertical-align: middle;
}
.sidebar-categories .cat-item .icon svg {
  display: block;
  stroke: var(--pv-blue);
}
.features-banner .feature-box .icon svg {
  display: block;
  stroke: var(--pv-blue);
}
.card-gift-box svg {
  stroke: var(--pv-red);
  margin-right: 4px;
}
