@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: 9px 8px;
  background: #f1f5f9;
  color: var(--pv-dark);
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-detail:hover {
  background: #e2e8f0;
  color: var(--pv-blue);
  border-color: #cbd5e1;
}
.btn-buy {
  padding: 9px 8px;
  background: linear-gradient(135deg, #1462f3 0%, #0d47a1 100%);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 98, 243, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-buy:hover {
  box-shadow: 0 4px 12px rgba(20, 98, 243, 0.35);
  transform: translateY(-1px);
}
.btn-buy:active,
.btn-detail:active {
  transform: scale(0.97);
}

.modal-actions-bar {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}
.modal-btn-primary {
  flex: 1.5;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1462f3 0%, #0d47a1 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 13px;
  border-radius: 10px;
  padding: 13px 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(20, 98, 243, 0.3);
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}
.modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 98, 243, 0.42);
}
.modal-btn-primary:active {
  transform: scale(0.98);
}
.modal-btn-secondary {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f0fdf4;
  color: #15803d !important;
  border: 1.5px solid #86efac;
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  padding: 13px 12px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}
.modal-btn-secondary:hover {
  background: #dcfce7;
  border-color: #4ade80;
  color: #166534 !important;
}
.modal-btn-secondary:active {
  transform: scale(0.98);
}
.modal-btn-danger {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fef2f2;
  color: #ef4444 !important;
  border: 1.5px solid #fecaca;
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}
.modal-btn-danger:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #dc2626 !important;
}
.modal-btn-danger:active {
  transform: scale(0.98);
}

.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) {
  body {
    padding-bottom: 66px;
  }
  .top-bar {
    display: none;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 12px;
  }
  .logo {
    order: 1;
    padding: 3px 8px;
  }
  .header-logo-img {
    height: 28px;
    max-width: 135px;
  }
  .category-trigger {
    display: none;
  }
  .header-actions {
    order: 2;
    margin-left: auto;
    gap: 8px;
  }
  .header-actions .header-action-item {
    display: none;
  }
  .cart-btn {
    padding: 6px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }
  .cart-btn svg {
    stroke: var(--pv-blue) !important;
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
  }
  .cart-btn span:not(.cart-counter) {
    display: none;
  }
  .cart-btn .cart-counter {
    margin-left: 0;
  }
  .search-box {
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    margin-top: 4px;
  }
  .search-form {
    height: 38px;
  }
  .search-form input {
    font-size: 13px;
    padding: 0 12px;
  }
  .search-form button {
    padding: 0 14px;
  }
  .search-form button span {
    display: none;
  }

  .sub-nav-inner {
    gap: 14px;
    padding: 0 12px;
    scrollbar-width: none;
  }
  .sub-nav-inner::-webkit-scrollbar {
    display: none;
  }
  .sub-nav-item {
    font-size: 12px;
    padding: 8px 0;
  }

  .hero-section {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }
  .sidebar-categories, .side-promos {
    display: none;
  }
  .hero-banner-main {
    padding: 20px 14px;
    min-height: 190px;
  }
  .hero-banner-main h2 {
    font-size: 18px;
    line-height: 1.3;
  }
  .hero-banner-main p {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .carousel-cta {
    padding: 8px 16px;
    font-size: 12px;
  }

  .flash-sale-section {
    padding: 0 10px;
    margin-bottom: 20px;
  }
  .flash-sale-box {
    padding: 12px 10px;
  }
  .flash-sale-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .flash-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .main-container {
    padding: 0 10px;
  }
  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 10px;
  }
  .filter-pills {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-pills::-webkit-scrollbar {
    display: none;
  }
  .pill {
    flex-shrink: 0;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 24px;
  }
  .pv-card {
    padding: 8px;
  }
  .card-img-wrapper {
    height: 125px;
  }
  .card-img-wrapper img {
    max-height: 120px;
  }
  .angle-toolbar {
    gap: 2px;
    margin: 4px 0;
  }
  .angle-btn {
    padding: 2px 4px;
    font-size: 9px;
  }
  .card-title {
    font-size: 12px;
    height: 32px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-specs-row {
    display: none;
  }
  .card-pricing {
    margin: 6px 0;
  }
  .price-current {
    font-size: 14px;
  }
  .price-original {
    font-size: 10px;
  }
  .card-gift-box {
    display: none;
  }
  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .card-actions .btn-detail,
  .card-actions .btn-buy {
    padding: 7px 8px;
    font-size: 11px;
    font-weight: 700;
    width: 100%;
    border-radius: 6px;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }
  .modal-actions-bar {
    flex-direction: column;
    gap: 8px;
  }
  .modal-btn-primary,
  .modal-btn-secondary {
    width: 100% !important;
    flex: none !important;
    padding: 12px 14px;
    font-size: 13px;
    box-sizing: border-box;
  }

  dialog.modal-dialog {
    padding: 0;
    max-width: 95vw !important;
    width: 95vw !important;
    margin: auto;
  }
  .modal-card {
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .modal-gallery-main {
    height: 190px !important;
  }
  .modal-gallery-thumbs {
    gap: 6px;
  }
  .modal-thumb-btn img {
    height: 38px;
  }
  .modal-thumb-btn span {
    font-size: 10px;
  }
  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .order-summary-list {
    max-height: 160px;
  }
  .cart-row {
    gap: 8px;
    padding: 8px;
  }
  .cart-row img {
    width: 48px;
    height: 48px;
  }
  .cart-row-title {
    font-size: 12px;
  }

  .features-banner {
    padding: 16px 10px;
  }
  .features-inner {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 24px 14px;
  }
  .footer-col h4 {
    margin-bottom: 10px;
  }

  .mobile-bottom-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid var(--pv-border);
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
    z-index: 99999;
    align-items: center;
    justify-content: space-around;
  }
  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: #64748b;
    text-decoration: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, transform 0.1s ease;
  }
  .mobile-nav-item:active {
    transform: scale(0.94);
  }
  .mobile-nav-item svg {
    display: block;
    stroke: currentColor;
    transition: stroke 0.15s ease;
  }
  .mobile-nav-item.active,
  .mobile-nav-item:hover {
    color: var(--pv-blue);
  }
  .mobile-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--pv-red);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 14px;
    text-align: center;
    line-height: 1.2;
  }
}

.mobile-bottom-bar {
  display: none;
}

.category-trigger svg {
  margin-right: 8px;
  stroke: #ffffff;
}
.header-action-item .icon svg {
  stroke: var(--pv-blue);
  display: block;
}
.cart-btn svg {
  stroke: var(--pv-blue);
  display: block;
}
.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;
}
.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pv-border);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  margin-top: 6px;
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  background: #f1f5f9;
  border: none;
  font-weight: 700;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}
.cart-qty-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.cart-qty-input {
  width: 42px;
  height: 26px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--pv-border);
  border-right: 1px solid var(--pv-border);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}
.auth-tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.auth-tab-btn.active {
  color: var(--pv-blue);
}
.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pv-blue);
}

.form-group {
  margin-bottom: 14px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.form-label span.req {
  color: #ef4444;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--pv-border);
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--pv-blue);
  box-shadow: 0 0 0 3px rgba(20, 98, 243, 0.12);
}
.form-textarea {
  resize: vertical;
  min-height: 64px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}
@media (max-width: 820px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--pv-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #ffffff;
}
.payment-option:hover {
  border-color: var(--pv-blue);
  background: #f8fafc;
}
.payment-option.active {
  border-color: var(--pv-blue);
  background: #eff6ff;
}
.payment-option input[type='radio'] {
  accent-color: var(--pv-blue);
  width: 18px;
  height: 18px;
}
.payment-option-info {
  flex: 1;
}
.payment-option-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.payment-option-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.order-summary-card {
  background: #f8fafc;
  border: 1px solid var(--pv-border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-summary-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pv-border);
}
.order-summary-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}
.order-summary-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.order-summary-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--pv-border);
  padding: 2px;
}
.order-summary-item-name {
  flex: 1;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}
.order-summary-item-price {
  font-weight: 700;
  color: var(--pv-red);
  white-space: nowrap;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}
.order-summary-row.total {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  padding-top: 10px;
  border-top: 1px solid var(--pv-border);
}
.order-summary-row.total strong {
  color: var(--pv-red);
  font-size: 18px;
}

.qr-payment-card {
  background: #f0fdf4;
  border: 1.5px dashed #10b981;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  margin-top: 10px;
}
.qr-payment-card img {
  max-width: 180px;
  margin: 10px auto;
  display: block;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.qr-bank-info {
  font-size: 12px;
  color: #065f46;
  line-height: 1.6;
}

.order-success-card {
  text-align: center;
  padding: 24px 16px;
}
.order-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.order-success-icon svg {
  width: 36px;
  height: 36px;
}
.order-code-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 800;
  font-size: 18px;
  padding: 8px 18px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  margin: 12px 0 16px;
  border: 1px dashed #38bdf8;
}
