* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Variant Selection Reminder Tooltip */
.variant-reminder-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  z-index: 1000;
  min-width: 300px;
  max-width: 400px;
  animation: tooltipSlideDown 0.4s ease;
  position: absolute;
}

.variant-reminder-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #764ba2;
}

@keyframes tooltipSlideDown {
  from {
    opacity: 0;
    margin-bottom: 0;
  }
  to {
    opacity: 1;
    margin-bottom: 16px;
  }
}

.tooltip-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.tooltip-close svg {
  width: 14px;
  height: 14px;
  display: block;
}

.tooltip-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.tooltip-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.tooltip-text {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.tooltip-text strong {
  font-weight: 600;
}

.tooltip-action {
  background: white;
  color: #667eea;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tooltip-action:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tooltip-action:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .variant-reminder-tooltip {
    min-width: 250px;
    max-width: 90%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .tooltip-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }
  
  .tooltip-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .tooltip-action {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
}

/* Navigation */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-bar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #667eea;
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.nav-cta {
  background: #ff6b6b;
  color: white !important;
  padding: 10px 25px !important;
  border-radius: 25px;
  border: none !important;
}

.nav-cta:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

/* 3D Slideshow Container */
.slideshow-container {
  position: relative;
  max-width: 700px;
  margin: 60px auto;
  perspective: 1500px;
  padding: 0 60px;
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 550px;
  transform-style: preserve-3d;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%) rotateY(45deg) scale(0.8);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.slide.slide-left {
  transform: translateX(-100%) rotateY(-45deg) scale(0.8);
}

.slide.slide-right {
  transform: translateX(100%) rotateY(45deg) scale(0.8);
}

.slide.active {
  opacity: 1;
  transform: translateX(0) rotateY(0deg) scale(1);
  z-index: 10;
  pointer-events: auto;
}

.slide.prev {
  opacity: 0.4;
  transform: translateX(-80%) rotateY(-25deg) scale(0.75);
  z-index: 5;
  filter: blur(2px);
}

.slide.next {
  opacity: 0.4;
  transform: translateX(80%) rotateY(25deg) scale(0.75);
  z-index: 5;
  filter: blur(2px);
}

.slide img {
  height: auto;
  max-height: 550px;
  object-fit: contain;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s ease;
}

.slide-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
  white-space: nowrap;
}

.slide.active .slide-caption {
  opacity: 1;
}

/* Navigation Buttons */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.slide-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.slide-nav svg {
  width: 24px;
  height: 24px;
  color: #667eea;
}

.slide-nav.prev {
  left: 0;
}

.slide-nav.next {
  right: 0;
}

/* Dot Indicators */
.slide-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 100;
  backdrop-filter: blur(4px);
}

/* ===== Hero Flash Sale Banner ===== */
.hero-flashsale-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(105deg, #ee3a43 0%, #f06040 50%, #f28849 100%);
  padding: 10px 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-flashsale-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.13) 50%, transparent 60%);
  animation: fsBannerSweep 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fsBannerSweep {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(200%); }
  100% { transform: translateX(200%); }
}

/* Left: price group */
.hero-flashsale-left {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-flashsale-badge {
  background: #fff;
  color: #ee3a43;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  line-height: 1.3;
}

.hero-flashsale-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.hero-flashsale-oldprice {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  text-decoration: line-through;
  align-self: flex-end;
  margin-bottom: 2px;
}

/* Right: Flash Sale label + countdown */
.hero-flashsale-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hero-flashsale-bolt-bg {
  width: auto;
  height: 68px;
  color: rgba(255,255,255,0.12);
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.hero-flashsale-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.hero-flashsale-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.hero-flashsale-bolt {
  width: 16px;
  height: 16px;
  color: #ffda00;
  flex-shrink: 0;
}

.hero-flashsale-timer {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  font-variant-numeric: tabular-nums;
}

.hero-flashsale-timer span {
  font-weight: 700;
}

/* ================================== */

/* Progress Bar */
.slide-progress {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: white;
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 2px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 20px 0;
  line-height: 1.2;
}

.hero .subheadline {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
  opacity: 0.95;
}

.key-benefits {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 80px 0 40px 0;
  flex-wrap: wrap;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit-item span {
  font-size: 1.8rem;
}

.cta-button {
  display: inline-block;
  background: #ff6b6b;
  color: white;
  padding: 18px 50px;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: #ff5252;
}

.price-tag {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 30px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.old-price {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: 1.8rem;
}

.current-price {
  color: #fff;
}

.freeship-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 25px;
  letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(245, 87, 108, 0.6);
  }
}

/* Flash Sale & Countdown */
.flash-sale-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 82, 82, 0.1) 0%,
    rgba(255, 165, 0, 0.1) 100%
  );
  border-radius: 15px;
  border: 2px solid rgba(255, 82, 82, 0.3);
}

.flash-sale-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #ff5252 0%, #ff8a00 100%);
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 10px 30px;
  border-radius: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(255, 82, 82, 0.5);
  animation: flashPulse 1.5s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

@keyframes flashPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(255, 82, 82, 0.5);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(255, 82, 82, 0.7);
  }
}

.countdown-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.countdown-label {
  font-size: 1rem;
  font-weight: 600;
  color: #ff5252;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  min-width: 70px;
}

.time-value {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.time-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #bdc3c7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.time-separator {
  font-size: 2rem;
  font-weight: 700;
  color: #ff5252;
  margin: 0 5px;
}

/* Mobile Flash Sale Adjustments */
@media (max-width: 768px) {
  .flash-sale-container {
    padding: 15px;
    margin: 15px;
    gap: 12px;
  }

  .flash-sale-badge {
    font-size: 1.1rem;
    padding: 8px 20px;
  }

  .countdown-label {
    font-size: 0.9rem;
  }

  .countdown-display {
    gap: 6px;
  }

  .time-unit {
    padding: 10px 12px;
    min-width: 60px;
  }

  .time-value {
    font-size: 1.6rem;
  }

  .time-label {
    font-size: 0.65rem;
  }

  .time-separator {
    font-size: 1.6rem;
    margin: 0 3px;
  }
}

/* Section Styles */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: #2c3e50;
  font-weight: 700;
}

.problem-solution {
  background: #f8f9fa;
}

.ps-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.problem,
.solution {
  padding: 30px;
  height: 100%;
}

.problem {
  background: white;
  border-left: 5px solid #e74c3c;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.solution {
  background: white;
  border-left: 5px solid #27ae60;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.problem h3,
.solution h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.problem ul,
.solution ul {
  list-style: none;
  padding-left: 0;
}

.problem li,
.solution li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
}

.problem li:before {
  content: "❌";
  position: absolute;
  left: 0;
}

.solution li:before {
  content: "✅";
  position: absolute;
  left: 0;
}

/* Features */
.features {
  background: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
  background: #f8f9fa;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.feature-card p {
  color: #666;
  line-height: 1.8;
}

.product-image {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: 30px 0;
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

.feature-showcase img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .feature-showcase {
    grid-template-columns: 1fr;
  }
}

/* Port Breakdown */
.port-breakdown {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.port-breakdown h2 {
  color: white;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.port-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.port-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #fff;
}

.port-power {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffd93d;
  margin-bottom: 10px;
}

.port-description {
  opacity: 0.9;
  line-height: 1.8;
}

/* Gift Section */
.gift-section {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.gift-section h2 {
  color: white;
}

.gift-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.gift-badge {
  display: inline-block;
  background: #ffd93d;
  color: #333;
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.gift-container h3 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.cable-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.cable-feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 15px;
}

.cable-feature h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Who Is It For */
.target-audience {
  background: #f8f9fa;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.audience-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.audience-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.audience-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

/* Technical Specs */
.specs-section {
  background: white;
}

.specs-table {
  background: #f8f9fa;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid #e0e0e0;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  padding: 25px 30px;
  background: #667eea;
  color: white;
  font-weight: 700;
}

.spec-value {
  padding: 25px 30px;
  background: white;
}

/* Warranty */
.warranty-section {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.warranty-section h2 {
  color: white;
}

.warranty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.warranty-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.warranty-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.warranty-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Testimonials - TikTok Style */
.testimonials {
  background: white;
  padding: 50px 0;
}

/* Reviews Header */
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

.reviews-title-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 8px 0;
}

.reviews-subtitle {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
}

.reviews-rating-box {
  text-align: center;
  padding: 12px 24px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
  border: 2px solid #fff3e0;
  flex-shrink: 0;
}

.rating-score-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff9800;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.rating-stars-large {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.rating-count {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  background: white;
  padding: 16px 0;
  border-bottom: 1px solid #ebebeb;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.review-user-info {
  flex: 1;
}

.review-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 2px 0;
}

.review-purchased {
  font-size: 0.8rem;
  color: #999;
}

.review-stars {
  font-size: 0.85rem;
  color: #ff9800;
  margin-bottom: 10px;
  display: block;
}

.review-content {
  position: relative;
  margin-bottom: 10px;
  overflow: hidden;
}

.review-product-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  float: right;
  margin-left: 12px;
  margin-bottom: 8px;
}

.review-text {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #999;
  clear: both;
}

.review-date {
  color: #999;
}

.review-variant {
  color: #999;
}

/* View More Button */
.view-more-btn {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-more-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* FAQ */
.faq-section {
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #f8f9fa;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 25px 30px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #2c3e50;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 30px 25px;
  color: #666;
  line-height: 1.8;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 100px 0;
}

.final-cta h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 30px;
}

.urgency-text {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.guarantee-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px 40px;
  border-radius: 50px;
  margin-top: 30px;
  font-weight: 600;
}

/* Order Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.modal-dialog {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  animation: slideUp 0.3s ease forwards;
  overflow: hidden;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}

.modal-header {
  padding: 30px;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header .modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  color: #2c3e50;
}

.close-btn {
  background: #f0f0f0;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.close-btn:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}

.steps-indicator {
  display: flex;
  justify-content: space-between;
  padding: 20px 20px 0 20px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: #e0e0e0;
  z-index: -1;
}

.step.active:not(:last-child)::after {
  background: #667eea;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #667eea;
  color: white;
  transform: scale(1.1);
}

.step.completed .step-number {
  background: #27ae60;
  color: white;
}

.step-label {
  font-size: 0.85rem;
  color: #666;
}

.step.active .step-label {
  color: #667eea;
  font-weight: 600;
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #ff6b6b;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 5px;
}

.payment-options {
  display: grid;
  gap: 15px;
}

.payment-option {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.payment-option:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.payment-option.selected {
  border-color: #667eea;
  background: #f8f9ff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.payment-option input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.payment-option-content {
  flex: 1;
}

.payment-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.payment-option-title {
  font-weight: 600;
  color: #2c3e50;
}

.variants-section {
  width: 100%;
  margin-bottom: 20px;
  padding: 0 15px;
}

.variants-section h3 {
  margin-bottom: 10px;
  color: #2c3e50;
  font-size: 0.95rem;
}

.variants-selector-grid {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: calc((100% - 3 * 8px) / 4);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.variant-selector-card {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  position: relative;
  text-align: center;
  background: white;
  aspect-ratio: 1;
  overflow: hidden;
}

.variant-selector-card:hover {
  border-color: #667eea;
}

.variant-selector-card.selected {
  border: 3px solid #667eea;
}

.variant-selector-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.variant-selector-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variant-selector-code {
  font-size: 0.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.variant-selector-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  margin-bottom: 2px;
}

.variant-selector-attr {
  background: #e8e8ff;
  color: #667eea;
  font-size: 0.45rem;
  padding: 0px 2px;
  border-radius: 2px;
  font-weight: 600;
  text-transform: uppercase;
}

.variant-selector-price {
  font-size: 0.55rem;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 1px;
}

.variant-selector-check {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Responsive variants selector */
@media (max-width: 768px) {
  .variants-selector-grid {
    gap: 6px;
    grid-auto-columns: calc((100% - 3 * 6px) / 4);
  }

  .variant-selector-image {
    aspect-ratio: 1 / 1;
  }

  .variants-section h3 {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .variants-selector-grid {
    gap: 6px;
    grid-auto-columns: calc((100% - 3 * 6px) / 4);
  }

  .variant-selector-card {
    padding: 3px;
  }
}

/* Variant Grid */
.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.variant-card {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.variant-card:hover {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.variant-card.selected {
  border-color: #667eea;
  background: #f8f9ff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.variant-image {
  width: 100%;
  height: 120px;
  margin-bottom: 8px;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.variant-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variant-id {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.variant-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 6px;
}

.variant-attribute {
  background: #e8e8ff;
  color: #667eea;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.variant-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ff6b6b;
}

/* Color Options */
.color-options {
  display: flex;
  gap: 10px;
  align-items: center;
}

.color-option {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  min-width: 90px;
}

.color-option:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.color-option.selected {
  border-color: #667eea;
  background: #f8f9ff;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.color-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

.color-option.disabled:hover {
  border-color: #e0e0e0;
  background: #f5f5f5;
}

.color-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-option-content {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-direction: row;
}

.color-preview {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.color-name {
  font-weight: 500;
  color: #2c3e50;
  font-size: 0.9rem;
  white-space: nowrap;
}

.out-of-stock-badge {
  background: #ff6b6b;
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.out-of-stock {
  cursor: not-allowed !important;
  pointer-events: none;
  position: relative;
}

.out-of-stock img {
  filter: grayscale(80%);
  opacity: 0.5;
}

.out-of-stock::after {
  content: 'Hết hàng';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translate(-50%, 0%);
  background: rgba(255, 91, 91, 0.95);
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2;
}

.qr-payment {
  text-align: center;
  padding: 20px;
}

.qr-code {
  width: 300px;
  height: 300px;
  margin: 20px auto;
  border: 3px solid #667eea;
  border-radius: 15px;
  padding: 15px;
  background: white;
}

.qr-code img {
  width: 100%;
  height: 100%;
}

.bank-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: left;
}

.bank-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.bank-info-row:last-child {
  border-bottom: none;
}

.bank-info-label {
  font-weight: 600;
  color: #666;
}

.bank-info-value {
  font-weight: 700;
  color: #2c3e50;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: #27ae60;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 3rem;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-message {
  padding-top: 1rem;
  text-align: center;
}

.success-message h3 {
  color: #27ae60;
  font-size: 2rem;
  margin-bottom: 20px;
}

.success-message p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.order-summary {
  border-radius: 10px;
  margin: 20px 0;
  text-align: left;
}

.order-summary h4 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: #666;
}

.summary-row span {
  white-space: nowrap;
  margin-right: 10px;
}

.summary-row strong {
  color: #2c3e50;
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.cart-summary {
  margin: 15px 0;
  border: 1px solid #ddd;
  overflow: hidden;
  background: white;
}

.cart-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-summary-table thead {
  background: white;
  color: #000;
  border-bottom: 1px solid #ddd;
}

.cart-summary-table thead th {
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.85rem;
  border-right: 1px solid #ddd;
}

.cart-summary-table thead th:last-child {
  border-right: none;
}

.cart-summary-table tbody tr {
  border-bottom: 1px solid #eee;
}

.cart-summary-table tbody tr:last-child {
  border-bottom: none;
}

.cart-summary-table tbody td {
  padding: 8px 10px;
  color: #000;
  font-size: 0.85rem;
  background: white;
  border-right: 1px solid #eee;
}

.cart-summary-table tbody td:last-child {
  font-weight: 600;
  border-right: none;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  flex-shrink: 0;
  background: white;
}

.btn {
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary {
  background: #e0e0e0;
  color: #666;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-success {
  background: #27ae60;
  color: white;
}

.btn-success:hover {
  background: #229954;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.desktop-hide {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 10px;
  }

  .modal-header {
    padding: 10px 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .steps-indicator {
    display: none;
  }

  .qr-code {
    width: 300px;
    height: 300px;
  }

  .btn {
    width: 100%;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    gap: 20px;
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Hero Mobile - TikTok Shop Style */
  .hero {
    padding: 0 0 30px 0;
    background: white;
  }

  .hero .container {
    padding: 0;
  }

  .hero .title {
    color: #000000;
    padding: 20px 15px 0 15px;
    text-align: left;
  }

  .hero .title h1 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    line-height: 1.2;
  }

  .hero .title p {
    font-size: 1rem;
    margin: 0;
    color: #686868;
  }

  /* Slideshow Responsive - Full Width Gallery */
  .slideshow-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    perspective: none;
  }

  .slideshow-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    transform-style: flat;
    background: #f8f9fa;
  }

  .slide {
    transform: translateX(100%) !important;
    filter: none !important;
    transition: transform 0.4s ease, opacity 0.4s ease !important;
  }

  .slide.slide-left {
    transform: translateX(-100%) !important;
  }

  .slide.slide-right {
    transform: translateX(100%) !important;
  }

  .slide.active {
    transform: translateX(0) !important;
    opacity: 1 !important;
    z-index: 10;
  }

  .slide.prev,
  .slide.next {
    opacity: 0;
    z-index: 1;
  }

  .slide.prev {
    transform: translateX(-100%) !important;
  }

  .slide.next {
    transform: translateX(100%) !important;
  }

  .slide img {
    max-height: none;
    height: 100%;
    width: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    animation: none;
    background: white;
  }

  .slide.active img {
    box-shadow: none;
  }

  .slide-nav {
    display: none;
  }

  .slide-caption {
    display: none;
  }

  .slide-counter {
    bottom: 10px;
    right: 10px;
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .key-benefits {
    display: none;
  }

  .hero .cta-button {
    display: none;
  }

  /* Fixed Bottom Buy Button - TikTok Style */
  .hero .cta-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    width: 100%;
    padding: 18px 20px;
    font-size: 1.1rem;
    border-radius: 0;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #ff6b6b;
    color: white;
    text-decoration: none;
  }

  .hero .cta-button:active {
    background: #ff5252;
  }

  .ps-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  section {
    padding: 40px 0;
  }

  section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .container {
    padding: 0 15px;
  }

  .spec-row {
    grid-template-columns: 1fr 2fr;
    font-size: 0.9rem;
  }

  .spec-label {
    padding: 20px 15px;
  }

  .spec-value {
    padding: 20px 15px;
  }

  .final-cta h2 {
    font-size: 2rem;
  }

  .problem,
  .solution {
    border-left: none;
    border-top: 5px solid;
  }

  .problem {
    border-color: #e74c3c;
  }

  .solution {
    border-color: #27ae60;
  }

  .features {
    background: #f8f9fa;
  }

  .feature-card {
    background: white;
  }

  .gift-container {
    padding: 0;
    border: none;
    background: none;
  }

  .desktop-hide {
    display: block;
  }

  .mobile-hide {
    display: none;
  }

  /* Testimonials Mobile */
  .reviews-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }

  .reviews-title-section h2 {
    font-size: 1.4rem;
  }

  .reviews-subtitle {
    font-size: 0.85rem;
  }

  .reviews-rating-box {
    padding: 16px;
  }

  .rating-score-large {
    font-size: 2rem;
  }

  .rating-stars-large {
    font-size: 1rem;
  }

  .rating-count {
    font-size: 0.8rem;
  }

  .review-item {
    padding: 12px 0;
  }

  .review-avatar {
    width: 28px;
    height: 28px;
  }

  .review-user-name {
    font-size: 0.85rem;
  }

  .review-purchased {
    font-size: 0.75rem;
  }

  .review-stars {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .review-product-img {
    width: 60px;
    height: 60px;
  }

  .review-text {
    font-size: 0.85rem;
  }

  .review-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.8rem;
  }

  .modal-overlay {
    padding: 0;
  }

  .modal-dialog {
    margin: 0;
    max-width: none;
    max-height: none;
    height: 100%;
    width: 100%;
    border-radius: 0;
  }

  .problem h3,
  .solution h3 {
    font-size: 1.5rem;
  }

  /* Hide desktop-only autocomplete on mobile */
  .desktop-only {
    display: none !important;
  }
}

/* Address Fullscreen Dialog - Mobile Only */
.address-fullscreen-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 99999;
}

@media (max-width: 768px) {
  .address-fullscreen-dialog {
    display: flex;
    flex-direction: column;
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.address-fullscreen-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
}

.address-fullscreen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.address-fullscreen-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  flex: 1;
  text-align: center;
}

.address-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-ok-btn {
  border: none;
  background: #4caf50;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 46px;
  cursor: pointer;
}

.address-ok-btn:active {
  transform: scale(0.98);
}

.address-back-btn,
.address-location-btn {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  width: 40px;
  height: 40px;
}

.address-back-btn:active,
.address-location-btn:active {
  background: rgba(102, 126, 234, 0.1);
}

.address-back-btn svg {
  width: 24px;
  height: 24px;
}

.address-location-btn {
  font-size: 1.2rem;
}

.address-location-btn svg {
  width: 20px;
  height: 20px;
}

.address-location-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.address-fullscreen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f5f5f5;
}

.address-fullscreen-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px 10px;
}

.address-current-btn {
  border: none;
  background: #eef4ff;
  color: #234c9f;
  border-radius: 10px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
}

.address-current-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.address-current-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.address-textarea-wrap {
  position: relative;
}

.address-clear-btn {
  width: 16px;
  height: 16px;
  padding: 0;
  font-size: 0.8rem;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
}

.address-clear-btn:active {
  transform: scale(0.96);
}

.address-fullscreen-body textarea {
  width: 100%;
  padding: 16px;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  background: white;
}

.address-input-loading-bar {
  height: 3px;
  background: #e8edf8;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.address-input-loading-bar-inner {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  border-radius: 4px;
  animation: addressBarSlide 1.2s ease-in-out infinite;
}

@keyframes addressBarSlide {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(375%); }
}

.address-suggestions-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #5f6b7a;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.address-suggestions-loading-inline {
  position: absolute;
  left: 10px;
  right: 10px;
  top: calc(100% + 4px);
  z-index: 120;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f6b7a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.address-loading-dot {
  width: 16px;
  height: 16px;
  border: 2px solid #d7e3ff;
  border-top-color: #5a7ee8;
  border-radius: 50%;
  animation: addressSpin 0.8s linear infinite;
}

@keyframes addressSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.address-fullscreen-body textarea:focus {
  outline: none;
  border-bottom-color: #667eea;
}

.address-fullscreen-suggestions {
  flex: 1;
  overflow-y: auto;
  background: white;
  padding: 8px 0;
}

.address-suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.address-suggestion-item:active {
  background: #f5f5f5;
}

.address-suggestion-item.selected {
  background: #f0f4ff;
}

.suggestion-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.suggestion-content {
  flex: 1;
  min-width: 0;
}

.address-suggestion-item .suggestion-text {
  font-size: 0.95rem;
  color: #2c3e50;
  line-height: 1.4;
  margin-bottom: 4px;
}

.address-suggestion-item .suggestion-detail {
  font-size: 0.8rem;
  color: #757575;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.no-suggestions {
  padding: 40px 16px;
  text-align: center;
  color: #757575;
}

.no-suggestions p {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .gift-container h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  /* Mobile Fixed Buy Button */
  .mobile-buy-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 0;
    z-index: 999;
  }

  .mobile-buy-info {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .mobile-price {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-price-old {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
  }

  .mobile-price-current {
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 800;
    color: #ff6b6b;
  }

  .mobile-freeship {
    font-size: 0.75rem;
    color: #27ae60;
    font-weight: 600;
  }

  .mobile-buy-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  .mobile-buy-btn:active:not(:disabled) {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  }

  .mobile-buy-btn:disabled {
    background: linear-gradient(135deg, #ccc 0%, #aaa 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  footer {
    margin-bottom: 70px;
  }
}

/* Hide mobile buy button on desktop */
.mobile-buy-button {
  display: none;
  flex-direction: column;
  padding: 0;
}

.mobile-flash-bar {
  width: 100%;
  background: linear-gradient(135deg, #ff5252 0%, #ff8a00 100%);
  padding: 5px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-flash-text {
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.mobile-timer {
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Courier New", monospace;
  letter-spacing: 0.5px;
}

.mobile-buy-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  gap: 12px;
}

@media (max-width: 768px) {
  .mobile-buy-button {
    display: flex;
  }
}

/* Mobile Section Indicators */
.mobile-section-indicators {
  display: none;
  position: fixed;
  left: 0;
  top: 66.67%;
  transform: translateY(-50%);
  z-index: 999;
  flex-direction: column;
  gap: 20px;
  padding: 20px 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 0 25px 25px 0;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-section-indicators {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-section-indicators.fade {
  transform: translateY(-50%) translateX(-100%);
  opacity: 0;
}

.mobile-section-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.3);
  border: 2px solid rgba(102, 126, 234, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: block;
}

.mobile-section-indicators .indicator.active {
  background: #667eea;
  border-color: #667eea;
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

/* Section Title Popup (Water Drop Style) */
.section-title-popup {
  display: none;
  position: fixed;
  left: 45px;
  transform: translateY(-50%) translateX(-20px) scale(0.8);
  z-index: 998;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  filter: drop-shadow(0 8px 24px rgba(102, 126, 234, 0.4))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.section-title-popup::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 25px;
  z-index: -1;
}

.section-title-popup.show {
  transform: translateY(-50%) translateX(0) scale(1);
  opacity: 1;
}

.section-title-popup .section-title-text {
  position: relative;
  z-index: 1;
}

.section-title-popup::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #667eea;
  border-radius: 2px 0 12px 0;
  z-index: -2;
}

@keyframes shimmer {
  0% {
    transform: translateY(-50%) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.6;
  }
}

@media (max-width: 768px) {
  .section-title-popup {
    display: block;
  }

  .mobile-section-indicators {
    display: flex;
  }

  /* Hide navigation on mobile */
  .nav-bar {
    display: none;
  }
}

/* Quantity Input Group */
.quantity-input-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.quantity-input-group input:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.qty-btn {
  background: #f5f5f5;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
  flex: 0 0 40px;
  height: 40px;
}

.qty-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0 auto;
}

.qty-btn:hover {
  background: #e0e0e0;
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qty-plus {
  border-left: 1px solid #e0e0e0;
  color: #27ae60;
}

.qty-minus {
  border-right: 1px solid #e0e0e0;
  color: #e74c3c;
}

.quantity-input-group input {
  flex: 1;
  border: none;
  padding: 8px 10px;
  font-size: 16px;
  text-align: center;
  width: 60px;
  outline: none;
}

/* Address Suggestions */
.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.address-suggestions > div {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.address-suggestions > div:hover,
.address-suggestions > div.selected {
  background: #f9f9f9;
}

.suggestion-text {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.suggestion-detail {
  font-size: 12px;
  color: #999;
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff6b6b;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Price Display with Discount */
.price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.btn-continue {
  padding: 5px 20px !important;
  text-align: center;
  background-color: #fc4760;
  color: white;
}

.btn-continue:hover {
  background-color: #fc4760;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 41, 52, 0.4);
}

.btn-continue .price{
  display: inline-block;
  font-size: 0.65rem;
  color: #e6e6e6;
  text-align: center;
}

button, a {
  touch-action: manipulation;
}

.add-to-cart-btn {
  position: relative;
  height: 40px;
  padding: 0 20px;
  border-radius: 5px;
  background: #ff6b6b;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

}

.in-cart-count-badge {
  position: absolute;
  bottom: 3px;
  left: 3px;
  background: #ff6b6b;
  color: white;
  width: auto;
  height: 18px;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}