/* ==========================================================================
   AegisVision™ Design System & E-Commerce Theme
   Inspired by drpenofficial.com DTC High-Converting Architecture
   ========================================================================== */

:root {
  --color-primary: #0f172a;
  --color-primary-dark: #020617;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-cyan: #06b6d4;
  --color-gold: #f59e0b;
  --color-green: #10b981;
  --color-danger: #ef4444;
  
  --color-bg-main: #f8fafc;
  --color-bg-card: #ffffff;
  --color-bg-dark: #0b1120;
  --color-bg-muted: #f1f5f9;
  
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-text-inverse: #ffffff;
  
  --color-border: #e2e8f0;
  --color-border-dark: #1e293b;
  
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, select {
  font-family: inherit;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  color: #f8fafc;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-content {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.announcement-badge {
  background-color: var(--color-danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.announcement-tools {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.announcement-tools span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}

.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-logo span.tag {
  font-size: 0.65rem;
  background-color: #eff6ff;
  color: #2563eb;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid #bfdbfe;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: -4px;
}

.brand-logo {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.1vw, 1.25rem);
  flex-shrink: 1;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav-link.has-badge::after {
  content: 'HOT';
  font-size: 0.65rem;
  background-color: #ef4444;
  color: white;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  font-weight: 700;
}

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

.currency-select {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
}

.action-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}

.action-btn:hover {
  background-color: var(--color-bg-muted);
  color: var(--color-accent);
}

.cart-count-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: radial-gradient(circle at 80% 20%, #1e293b 0%, #090d16 100%);
  color: white;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: #f8fafc;
}

.btn-block {
  width: 100%;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.rating-stars {
  color: var(--color-gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.proof-text {
  font-size: 0.9rem;
  color: #94a3b8;
}

.proof-text strong {
  color: white;
}

.hero-media-wrap {
  position: relative;
}

.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.hero-floating-card {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-xl);
}

.hero-floating-card.top-right {
  top: -15px;
  right: -15px;
}

.hero-floating-card.bottom-left {
  bottom: -20px;
  left: -20px;
}

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.floating-icon.blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.floating-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.floating-text p {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ==========================================================================
   Trust / As Seen On Bar
   ========================================================================== */
.press-bar {
  background: #ffffff;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.press-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.press-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  opacity: 0.75;
}

.press-item {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Product Grid & Cards (Homepage Section)
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.product-section {
  padding: 5rem 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: white;
}

.badge-bestseller {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-heavy {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.badge-glare {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.badge-oled {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.product-media {
  position: relative;
  background-color: #0f172a;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.rating-count {
  color: var(--color-text-muted);
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.product-title a:hover {
  color: var(--color-accent);
}

.product-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.size-selector-compact {
  margin-bottom: 1rem;
}

.size-selector-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.size-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.size-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: white;
  cursor: pointer;
  transition: var(--transition);
}

.size-btn:hover {
  border-color: var(--color-accent);
}

.size-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 1rem;
}

.price-current {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
}

.price-original {
  font-size: 0.95rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.price-save {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-danger);
  background: #fee2e2;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-card-cart {
  background: #f1f5f9;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  padding: 0.6rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-cart:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.btn-card-buy {
  background: var(--color-primary);
  color: white;
  border: none;
  font-size: 0.85rem;
  padding: 0.6rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-buy:hover {
  background: var(--color-accent);
}

/* ==========================================================================
   Tech / Benefit Breakdown Section
   ========================================================================== */
.feature-showcase {
  background: white;
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-box {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #93c5fd;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.feature-box p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Comparison Table Section
   ========================================================================== */
.comparison-section {
  padding: 5rem 0;
  background: #fafafa;
}

.comparison-table-wrap {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th, .comp-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.comp-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--color-primary);
}

.comp-table th.highlight-col, .comp-table td.highlight-col {
  background: #eff6ff;
  color: var(--color-accent);
  font-weight: 700;
  border-left: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}

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

.check-icon {
  color: var(--color-green);
  font-weight: bold;
}

.cross-icon {
  color: var(--color-danger);
  font-weight: bold;
}

/* ==========================================================================
   Judge.me Style UGC & Reviews Section
   ========================================================================== */
.reviews-section {
  padding: 5rem 0;
  background: white;
}

.reviews-summary-card {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 280px 1fr 220px;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.score-big {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: white;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.review-author {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-tag {
  font-size: 0.7rem;
  color: var(--color-green);
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.review-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.review-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.review-body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.review-product-tag {
  font-size: 0.75rem;
  color: var(--color-accent);
  background: #eff6ff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  align-self: flex-start;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 5rem 0;
  background: var(--color-bg-main);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-arrow {
  transition: transform 0.2s ease;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 5rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
}

.newsletter-input {
  background: #1e293b;
  border: 1px solid #334155;
  color: white;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  flex-grow: 1;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.payment-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.payment-pill {
  background: white;
  color: #1e293b;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Product Detail Page (PDP) Layout
   ========================================================================== */
.pdp-section {
  padding: 3rem 0 5rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.pdp-gallery-sticky {
  position: sticky;
  top: 96px;
}

.pdp-main-image {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  margin-bottom: 1rem;
}

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

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  gap: 12px;
}

.thumb-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #000;
  aspect-ratio: 4/3;
  transition: var(--transition);
}

.thumb-item.active, .thumb-item:hover {
  border-color: var(--color-accent);
}

.pdp-stock-alert {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #b91c1c;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.pdp-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.pdp-ratings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.pdp-pricing-box {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.pdp-pricing-box .price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pdp-pricing-box .price-now {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.pdp-pricing-box .price-was {
  font-size: 1.15rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.installments-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.installments-text strong {
  color: var(--color-primary);
}

/* PDP Size Selection Matrix */
.pdp-variants-wrap {
  margin-bottom: 1.5rem;
}

.variant-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.size-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.size-pill {
  border: 2px solid var(--color-border);
  background: white;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.size-pill:hover {
  border-color: #93c5fd;
}

.size-pill.active {
  border-color: var(--color-accent);
  background: #eff6ff;
}

.size-pill .inch-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
}

.size-pill .dim-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* PDP CTA Buttons */
.pdp-cta-block {
  margin-bottom: 2rem;
}

.qty-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  overflow: hidden;
  width: 120px;
}

.qty-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  width: 36px;
  height: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  transition: var(--transition);
}

.qty-btn:hover {
  background: #f1f5f9;
}

.qty-input {
  width: 48px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.btn-add-cart {
  flex-grow: 1;
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: #f1f5f9;
}

.btn-buy-instant {
  width: 100%;
  padding: 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-buy-instant:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* ==========================================================================
   Streamlined Gallery Trust Badges (Under Product Main Image & Thumbnails)
   ========================================================================== */
.pdp-gallery-trust {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pdp-trust-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: all 0.2s ease;
}

.pdp-trust-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pdp-trust-card .trust-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.pdp-trust-card .trust-content strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 2px;
}

.pdp-trust-card .trust-content p {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

@media (max-width: 992px) {
  .pdp-gallery-trust {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Full-Width PDP Tabs Section (Overview / Specs & Fit / 30-Sec Install / Guarantee)
/* ==========================================================================
   Sequential 4-Block PDP Sections (Overview -> Specs & Fit -> 30-Sec Install -> Guarantee)
   ========================================================================== */
.pdp-sections-container {
  width: 100%;
  margin-top: 3.5rem;
  padding-top: 1rem;
}

/* Sticky Quick Jump Bar */
.pdp-sections-sticky-nav {
  position: sticky;
  top: 72px; /* below top navbar */
  z-index: 80;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
  padding: 0.5rem 0.75rem;
}

.sticky-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.sticky-nav-inner::-webkit-scrollbar {
  display: none;
}

.pdp-nav-anchor {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.pdp-nav-anchor .nav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
}

.pdp-nav-anchor:hover {
  color: #1e293b;
  background: #f8fafc;
}

.pdp-nav-anchor.active {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.pdp-nav-anchor.active .nav-num {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Sections Stack */
.pdp-sections-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.pdp-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  scroll-margin-top: 150px;
}

.pdp-section-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
}

.section-card-header {
  padding: 2.25rem 2.5rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.header-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-index-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.section-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.section-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.section-card-desc {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.section-card-body {
  padding: 2.5rem;
}

/* Content Typography & Layouts */
.pdp-lead-para {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #1e293b;
  font-weight: 500;
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  padding: 1.25rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin-bottom: 1.5rem;
}

.pdp-para {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 1.15rem;
}
.pdp-para:last-child {
  margin-bottom: 0;
}

/* Specs 2-Column Key-Value Cards */
.pdp-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.15rem;
}

.pdp-spec-item {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.pdp-spec-item:hover {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.pdp-spec-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.01em;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pdp-spec-val {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #1e293b;
  font-weight: 500;
}

/* 30-Sec Install Sequential Step Cards */
.pdp-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
}

.pdp-step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.pdp-step-card:hover {
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.pdp-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pdp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.05rem;
  font-weight: 900;
}

.pdp-step-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  background: #ecfdf5;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.pdp-step-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.pdp-step-desc {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* Guarantee Trust Cards */
.pdp-guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.35rem;
}

.pdp-guarantee-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.25s ease;
}

.pdp-guarantee-card:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.1);
}

.pdp-guarantee-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.pdp-guarantee-info {
  display: flex;
  flex-direction: column;
}

.pdp-guarantee-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.pdp-guarantee-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

@media (max-width: 768px) {
  .section-card-header {
    padding: 1.5rem 1.25rem;
  }
  .section-card-body {
    padding: 1.25rem;
  }
  .pdp-sections-sticky-nav {
    top: 60px;
    margin-bottom: 1.5rem;
  }
  .pdp-nav-anchor {
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
  }
  .pdp-specs-grid,
  .pdp-steps-grid,
  .pdp-guarantee-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Slide-Over Cart Drawer
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: white;
  z-index: 1000;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.close-drawer-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.free-shipping-progress {
  padding: 0.85rem 1.5rem;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
}

.progress-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.progress-bar-bg {
  height: 6px;
  background: #bfdbfe;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  width: 100%;
}

.cart-drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-img {
  width: 75px;
  height: 75px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #0f172a;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.cart-item-variant {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-price {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-primary);
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: #f8fafc;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.btn-checkout-drawer {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-checkout-drawer:hover {
  background: var(--color-accent);
}

/* ==========================================================================
   Checkout Page & Third-Party Payment Gateway
   ========================================================================== */
.checkout-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  background: white;
}

.checkout-container {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
}

.checkout-panel {
  background: transparent;
}

.express-checkout-box {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.express-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.express-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-express {
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-shoppay {
  background: #5a31f4;
  color: white;
}

.btn-shoppay:hover {
  background: #461fe0;
}

.btn-paypal {
  background: #ffc439;
  color: #003087;
}

.btn-paypal:hover {
  background: #f4b620;
}

.btn-applepay {
  background: #000000;
  color: white;
}

.btn-applepay:hover {
  background: #222222;
}

.btn-gpay {
  background: #ffffff;
  color: #3c4043;
  border: 1px solid var(--color-border);
}

.btn-gpay:hover {
  background: #f1f3f4;
}

.checkout-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.75rem 0;
  color: var(--color-text-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.checkout-divider::before, .checkout-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.checkout-divider:not(:empty)::before {
  margin-right: 1em;
}

.checkout-divider:not(:empty)::after {
  margin-left: 1em;
}

.checkout-form-section {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.checkout-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

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

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--color-text-main);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Payment Gateway Selector Tabs */
.payment-tabs {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.payment-tab-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.payment-tab-header:hover {
  background: #f1f5f9;
}

.payment-tab-header.active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.tab-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.payment-tab-body {
  padding: 1.25rem;
  background: white;
  display: none;
}

.payment-tab-body.active {
  display: block;
}

.card-input-wrap {
  position: relative;
}

.card-logos {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
}

/* Order Summary Box (Checkout Right Column) */
.order-summary-box {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 96px;
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.85rem;
}

.summary-item-card {
  display: flex;
  gap: 14px;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.summary-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #0f172a;
}

.summary-item-info {
  flex-grow: 1;
}

.summary-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.summary-item-spec {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.summary-item-cost {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-top: 6px;
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.btn-apply-coupon {
  padding: 0 1.25rem;
  background: #f1f5f9;
  border: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-apply-coupon:hover {
  background: #e2e8f0;
}

.summary-cost-rows {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  color: var(--color-text-muted);
}

.cost-row.total-row {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-top: 0.75rem;
}

.checkout-guarantees {
  margin-top: 1.5rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Modal for Simulated Live Payment */
.payment-processing-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.payment-processing-modal.active {
  display: flex;
}

.processing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modalScale 0.3s ease;
}

@keyframes modalScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--color-accent);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid-3, .reviews-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid, .pdp-grid, .checkout-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .reviews-summary-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .announcement-bar {
    font-size: 0.75rem;
  }
  .announcement-tools {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-floating-card {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-group-row, .express-buttons-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Universal Custom Dialog (Alert, Confirm, Prompt) & Toast System
   ========================================================================== */

/* Toast Container (Top-Right Floating) */
.custom-toast-container {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.custom-toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid #2563eb;
  transform: translateX(110%);
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-toast.custom-toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.custom-toast.custom-toast-hiding {
  transform: translateX(110%);
  opacity: 0;
}

.custom-toast-success { border-left-color: #10b981; }
.custom-toast-error { border-left-color: #ef4444; }
.custom-toast-warning { border-left-color: #f59e0b; }
.custom-toast-info { border-left-color: #2563eb; }

.custom-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}
.custom-toast-success .custom-toast-icon { background: #dcfce7; color: #15803d; }
.custom-toast-error .custom-toast-icon { background: #fee2e2; color: #b91c1c; }
.custom-toast-warning .custom-toast-icon { background: #fef3c7; color: #b45309; }
.custom-toast-info .custom-toast-icon { background: #dbeafe; color: #1d4ed8; }

.custom-toast-body {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.custom-toast-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s ease;
}
.custom-toast-close:hover {
  color: #0f172a;
}

/* Modal Dialog Backdrop & Card */
.custom-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: cdFadeIn 0.2s ease forwards;
}

.custom-dialog-backdrop.active {
  display: flex;
}

@keyframes cdFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.custom-dialog-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transform: scale(0.92);
  opacity: 0;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  padding: 2rem 1.75rem 1.5rem;
}

.custom-dialog-card.active {
  transform: scale(1);
  opacity: 1;
}

.custom-dialog-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.custom-dialog-icon-wrap.type-success {
  background: #dcfce7;
  color: #15803d;
}
.custom-dialog-icon-wrap.type-error, .custom-dialog-icon-wrap.type-danger {
  background: #fee2e2;
  color: #b91c1c;
}
.custom-dialog-icon-wrap.type-warning {
  background: #fef3c7;
  color: #b45309;
}
.custom-dialog-icon-wrap.type-info {
  background: #eff6ff;
  color: #2563eb;
}

.custom-dialog-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}

.custom-dialog-message {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.custom-dialog-input-wrap {
  margin-bottom: 1.25rem;
}

.custom-dialog-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.custom-dialog-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.custom-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cd-btn {
  flex: 1;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cd-btn-confirm {
  background: #2563eb;
  color: white;
}
.cd-btn-confirm:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.cd-btn-danger {
  background: #ef4444;
  color: white;
}
.cd-btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.cd-btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
.cd-btn-cancel:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* ==========================================================================
   Storefront Customer Authentication & Google Sign-In Styles
   ========================================================================== */

/* Top Header User Badge & Dropdown */
.header-user-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-full) !important;
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  color: var(--color-accent) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
  line-height: 1 !important;
}
.header-user-btn span {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline !important;
}
.header-user-btn:hover {
  background: rgba(37, 99, 235, 0.15) !important;
  transform: translateY(-1px);
}

.header-user-wrapper {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
}

.header-user-logged {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: max-content;
}
.header-user-logged:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.header-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.header-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  z-index: 1050;
  display: none;
  animation: fadeInDown 0.2s ease-out;
}
.header-user-dropdown.show {
  display: block;
}

.hud-header {
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 6px;
}
.hud-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-text-main);
}
.hud-email {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hud-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.hud-item:hover {
  background: var(--color-bg-muted);
}
.hud-item.text-danger {
  color: var(--color-danger);
}
.hud-item.text-danger:hover {
  background: #fef2f2;
}

/* Auth Modal Backdrop & Card */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 16px;
}
.auth-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-card {
  background: #ffffff !important;
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45), 0 0 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2001;
}
.auth-modal-overlay.active .auth-modal-card {
  transform: scale(1) translateY(0);
}

.auth-modal-header {
  padding: 24px 24px 16px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border);
}
.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.auth-modal-close:hover {
  background: #e2e8f0;
  color: var(--color-text-main);
}

.auth-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-modal-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.auth-alert-notice {
  margin: 16px 24px 0;
  padding: 10px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-modal-body {
  padding: 20px 24px 28px;
}

/* Google Quick Registration Button */
.btn-google-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3c4043;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: var(--transition);
  margin-bottom: 20px;
}
.btn-google-auth:hover {
  background: #f8fafd;
  border-color: #4285f4;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.15);
  transform: translateY(-1px);
}
.google-g-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 20px;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Auth Tabs */
.auth-nav-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.auth-nav-tab {
  padding: 9px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-nav-tab.active {
  background: #ffffff;
  color: var(--color-accent);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* Forms */
.auth-form-group {
  margin-bottom: 14px;
}
.auth-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.auth-form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: var(--transition);
  background: #ffffff;
}
.auth-form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-code-wrapper {
  display: flex;
  gap: 8px;
}
.btn-send-code {
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px solid var(--color-accent);
  background: #eff6ff;
  color: var(--color-accent);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-send-code:hover:not(:disabled) {
  background: var(--color-accent);
  color: white;
}
.btn-send-code:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
}

.auth-code-hint {
  font-size: 0.72rem;
  color: #059669;
  margin-top: 4px;
  line-height: 1.4;
  background: #ecfdf5;
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-auth-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.auth-quick-demo {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-demo-link {
  color: var(--color-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ==========================================================================
   Bilingual Language Switcher (EN / 中文)
   ========================================================================== */
.lang-switcher {
  display: inline-flex !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9999px !important;
  padding: 2px 4px !important;
  font-size: 0.775rem !important;
  font-weight: 700 !important;
  margin-left: 6px !important;
  user-select: none !important;
  box-sizing: border-box !important;
}
.site-header .lang-switcher {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}
.lang-btn {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}
.site-header .lang-btn {
  color: #64748b !important;
}
.lang-btn:hover {
  color: #0f172a !important;
}
.site-header .lang-btn:hover {
  color: #0f172a !important;
}
.lang-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.35) !important;
}
.lang-divider {
  color: #94a3b8 !important;
  font-size: 0.7rem !important;
  padding: 0 1px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}
.site-header .lang-divider {
  color: #94a3b8 !important;
}



