/* Popular Products Section Styles */
.popular-products-section {
  padding: 0rem 0;
  margin-top: 6rem;
  background: transparent;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.popular-products-section .container {
  max-width: 1400px;
  background: rgba(168, 196, 178, 0.25);
  border-radius: 32px;
  padding: 3rem 3rem;
  box-shadow: 0 2px 12px rgba(44, 74, 60, 0.04);
}

.popular-products-section .section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.popular-products-section .section-intro h2 {
  font-size: 3rem;
  font-weight: 300;
  color: var(--dark-brown);
  margin: 0 0 1rem 0;
  font-family: var(--font-main);
  letter-spacing: -0.02em;
}

.popular-products-section .section-subtitle {
  font-size: 1.3rem;
  color: #666;
  font-weight: 300;
  line-height: 1.6;
}

.popular-products-section .whats-included {
  font-size: 1.05rem;
  color: rgba(59, 42, 31, 0.7);
  font-style: italic;
  display: block;
  margin-top: 0.5rem;
}

.view-all-link {
  color: var(--forest-green);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.view-all-link:hover {
  color: var(--dark-brown);
  transform: translateX(4px);
}

.view-all-link span {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.view-all-link:hover span {
  transform: translateX(2px);
}

/* Unified Product Box */
.unified-product-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(44, 74, 60, 0.06);
  border: 1px solid rgba(44, 74, 60, 0.08);
}

.unified-product-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-green);
  border-radius: 12px;
  overflow: hidden;
  min-height: 500px;
}

/* Break carousel to own row at 1200px */
@media (max-width: 1200px) {
  .unified-product-box {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  
  .unified-product-image {
    min-height: 700px;
    order: 1;
  }
  
  .unified-product-config {
    order: 2;
  }
}

.unified-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.unified-product-config {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .unified-product-config {
    gap: 1.125rem;
  }
}

.unified-product-config h3 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--dark-brown);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.product-savings-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.35rem 0.875rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  letter-spacing: 0.01em;
  margin: 0 0 0 0.5rem;
}

.unified-product-description {
  color: #666;
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.5;
}

/* Product Highlights */
.product-highlights {
  margin-bottom: 0.5rem;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.highlights-list li {
  color: var(--forest-green);
  font-size: 1rem;
  font-weight: 500;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.5;
}

.highlights-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--forest-green);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Quantity Selection */
.unified-quantity-section {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .unified-quantity-section {
    padding-bottom: 0.875rem;
  }
  
  .unified-frame-section {
    padding-bottom: 0.875rem;
  }
  
  .bundle-label {
    font-size: 0.95rem;
    margin-top: 1rem;
  }
  
  .product-savings-badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.875rem;
  }
  
  .bundle-options-wrapper {
    grid-template-columns: 1fr;
  }
}

.unified-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin-bottom: 0.75rem;
  display: block;
}

.unified-quantity-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.unified-quantity-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

/* Make the first option (Single) full width */
.unified-quantity-option:first-child {
  width: 100%;
}

/* Container for the bundle options */
.bundle-options-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.bundle-label {
  display: flex;
  align-items: center;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--forest-green);
  font-size: 1.05rem;
  font-weight: 600;
}

.unified-quantity-option:hover {
  border-color: var(--forest-green);
  background: rgba(44, 74, 60, 0.02);
}

.unified-quantity-option.active {
  border-color: var(--forest-green);
  border-width: 2px;
  background: var(--light-green);
}

.unified-quantity-option.active .option-name,
.unified-quantity-option.active .option-qty,
.unified-quantity-option.active .option-price {
  color: var(--forest-green);
}

.unified-quantity-option.active .option-price {
  font-size: 2.5rem;
  font-weight: 700;
}

.unified-quantity-option.active .option-price small {
  color: rgba(44, 74, 60, 0.6);
}

.unified-quantity-option .option-name {
  font-weight: 600;
  color: var(--forest-green);
  font-size: 1.125rem;
  flex: 1;
  text-align: left;
}

.unified-quantity-option .option-qty {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--forest-green);
  line-height: 1;
  margin-right: 0.5rem;
  opacity: 0.7;
}

.unified-quantity-option .option-price {
  color: var(--forest-green);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}

.unified-quantity-option .option-price small {
  text-decoration: line-through;
  color: #aaa;
  margin-left: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.unified-quantity-option .most-popular-tag {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--forest-green);
  color: white;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 10;
}

.unified-quantity-option .mission-price-badge {
  width: 100%;
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--dark-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.375rem 0.5rem;
  background: var(--light-red);
  border-radius: 4px;
  border: 1px solid var(--medium-red);
}

/* USB-C Promo Banner */
.usbc-promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background: #F9F9F9;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  box-shadow: none;
}

.usbc-promo-banner svg {
  color: #666;
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
}

.usbc-promo-banner span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 768px) {
  .unified-quantity-option .most-popular-tag {
    font-size: 0.6rem;
    padding: 3px 6px;
    top: -8px;
    right: 10px;
    border-radius: 4px;
    letter-spacing: 0.2px;
  }
  
  .unified-quantity-option .mission-price-badge {
    font-size: 0.65rem;
    margin-top: 0.625rem;
    padding: 0.35rem 0.5rem;
  }
  
  .usbc-promo-banner {
    margin-top: 0.875rem;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    flex-direction: row;
    align-items: flex-start;
  }
  
  .usbc-promo-banner svg {
    width: 15px;
    height: 15px;
    margin-top: 3px;
  }
  
  .usbc-promo-banner span {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}

/* Frame Selection */
.unified-frame-section {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.unified-frame-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.unified-frame-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: white;
  color: var(--dark-brown);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.unified-frame-option:hover {
  border-color: var(--forest-green);
  background: rgba(44, 74, 60, 0.02);
}

.unified-frame-option.active {
  border-color: var(--forest-green);
  border-width: 2px;
  background: var(--light-green);
  color: var(--forest-green);
  font-weight: 600;
}

.unified-frame-option .frame-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.unified-frame-option .frame-light { 
  background: url('../images/wood-grains-white-oak.png') center/cover;
}
.unified-frame-option .frame-dark { 
  background: url('../images/wood-grains-walnut.png') center/cover;
}
.unified-frame-option .frame-black { 
  background: #1a1a1a;
}
.unified-frame-option .frame-white { 
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.3);
}

/* Pricing and CTA */
.unified-pricing {
  margin-top: auto;
}

.unified-price-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.unified-price {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--forest-green);
  line-height: 1;
}

.unified-original-price {
  font-size: 1.5rem;
  color: #999;
  text-decoration: line-through;
}

.unified-add-to-cart-btn {
  width: 100%;
  background: var(--forest-green);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1.125rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.unified-add-to-cart-btn:hover {
  background: #1e3529;
}

.unified-add-to-cart-btn:active {
  background: #152820;
}

.button-price {
  font-weight: 700;
  font-size: 1.3rem;
  color: white;
}

.product-app-badges {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.app-badges-label {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 500;
}

.app-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.app-badges-row a {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.app-badges-row a:hover {
  transform: translateY(-2px);
}

/* Popular Products Grid */
.popular-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.popular-product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(44, 74, 60, 0.12);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(44, 74, 60, 0.1);
  position: relative;
}

.popular-product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 74, 60, 0.02);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.popular-product-card:hover::after {
  opacity: 1;
}

.popular-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(44, 74, 60, 0.18);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--light-green);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.popular-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.popular-product-card:hover .popular-product-image {
  transform: scale(1.05);
}

/* Discount Badges */
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--forest-green);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

/* When multiple badges exist, position them differently */
.product-image-container .discount-badge:first-child {
  top: 12px;
  left: 12px;
}

.product-image-container .discount-badge:nth-child(2) {
  top: 12px;
  right: 12px;
  left: auto;
}

/* Ensure special badge (Most Popular) is positioned on the right */
.discount-badge.special {
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Product Content */
.popular-product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 300px; /* Ensure enough space for buttons */
  background: var(--forest-green);
}

.popular-product-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.popular-product-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

/* Pricing */
.popular-product-pricing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.popular-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.original-price {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
}

/* Product Meta */
.popular-product-meta {
  margin-bottom: 1rem;
}

.shipping-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.shipping-details span {
  display: flex;
  align-items: center;
}

.shipping-details span:before {
  content: "•";
  color: var(--light-green);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Add to Cart Button */
.popular-add-to-cart-btn {
  width: 100%;
  background: white;
  color: var(--forest-green);
  border: 2px solid white;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

.popular-add-to-cart-btn:hover {
  background: var(--light-green);
  color: var(--forest-green);
  border-color: var(--light-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.popular-add-to-cart-btn:active {
  transform: translateY(0);
}

/* Popular Products Frame Selection */
.popular-frame-selection {
  margin: 1rem 0;
}

.popular-frame-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.popular-frame-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.popular-frame-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popular-frame-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.popular-frame-option.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
}

.popular-frame-option .frame-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Frame swatch colors for popular products - use actual frame images */
.popular-frame-option .frame-light { 
  background: url('../images/wood-grains-white-oak.png') center/cover;
}
.popular-frame-option .frame-medium { 
  background: url('../images/wood-grains-cherry.png') center/cover;
}
.popular-frame-option .frame-dark { 
  background: url('../images/wood-grains-walnut.png') center/cover;
}
.popular-frame-option .frame-maple { 
  background: url('../images/wood-grains-maple.png') center/cover;
}


/* Trust Signals for Popular Products */
.popular-trust-signals {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2.5rem;
  padding: 1.5rem 0;
}

.popular-trust-signals .trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--forest-green);
  font-size: 1.1rem;
  font-weight: 500;
}

.popular-trust-signals .trust-icon {
  color: var(--forest-green);
  width: 26px;
  height: 26px;
}

.popular-trust-signals .trust-icon svg {
  width: 26px;
  height: 26px;
}

/* Coupon Code Styles */
.coupon-section {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 0.75rem;
}

.coupon-input-group {
  display: flex;
  gap: 0.5rem;
}

.coupon-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #f9f9f9;
}

.coupon-input:focus {
  outline: none;
  border-color: var(--forest-green);
  background: white;
}

.apply-coupon-btn {
  background: var(--forest-green);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.apply-coupon-btn:hover {
  background: var(--dark-green);
}

.coupon-message {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  min-height: 1rem;
}

.coupon-message.success {
  color: #28a745;
}

.coupon-message.error {
  color: #dc3545;
}

.total-row.coupon-discount {
  color: #28a745;
  font-weight: 500;
}

/* Flash Message */
.cart-empty-flash {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  animation: flashMessage 2s ease-in-out;
}

@keyframes flashMessage {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .popular-products-section {
    padding: 3rem 0;
    margin-top: 4rem;
  }
  
  .popular-products-section .container {
    padding: 2rem 1rem;
    border-radius: 20px;
  }
  
  .popular-products-section .section-intro {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }
  
  .popular-products-section .section-intro h2 {
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.3;
  }
  
  .popular-products-section .section-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .unified-product-box {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .unified-product-image {
    min-height: 550px;
    max-height: 550px;
  }
  
  .unified-product-config h3 {
    font-size: 1.375rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }
  
  .unified-product-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .product-highlights {
    margin: 1rem 0 1.25rem 0;
  }
  
  .highlights-list li {
    font-size: 0.8rem;
    padding-left: 1.5rem;
    margin-bottom: 0.375rem;
  }
  
  .highlights-list li::before {
    font-size: 0.95rem;
  }
  
  .unified-label {
    font-size: 0.875rem;
    margin-bottom: 0.625rem;
    font-weight: 600;
  }
  
  .unified-quantity-options {
    gap: 0.625rem;
  }
  
  .unified-quantity-option {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  
  .bundle-options-wrapper {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }
  
  .unified-quantity-option .option-name {
    font-size: 1rem;
    font-weight: 600;
  }
  
  .unified-quantity-option .option-qty {
    font-size: 0.7rem;
    font-weight: 500;
  }
  
  .unified-quantity-option .option-price {
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
  }
  
  .unified-quantity-option .option-price small {
    margin-left: 0;
    display: block;
    font-size: 0.75rem;
  }
  
  .unified-frame-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .unified-frame-option {
    font-size: 0.8rem;
    padding: 0.625rem 0.75rem;
    gap: 0.5rem;
  }
  
  .unified-frame-option .frame-swatch {
    width: 20px;
    height: 20px;
  }
  
  .unified-price {
    font-size: 2rem;
  }
  
  .unified-add-to-cart-btn {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
  
  .button-price {
    font-size: 1.1rem;
  }
  
  .popular-products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-image-container {
    height: 180px;
  }
  
  .popular-product-content {
    padding: 1rem;
  }
  
  .popular-trust-signals {
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .popular-products-section {
    padding: 2.5rem 0;
    margin-top: 1rem;
  }
  
  .popular-products-section .container {
    padding: 1.5rem 0.75rem;
    border-radius: 16px;
  }
  
  .popular-products-section .section-intro {
    padding: 0 0.5rem;
    margin-bottom: 1.25rem;
  }
  
  .popular-products-section .section-intro h2 {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.3;
  }
  
  .popular-products-section .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .unified-product-box {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  
  .unified-product-image {
    min-height: 400px;
    max-height: 400px;
    height: 400px;
  }
  
  .unified-product-config {
    margin-top: 1.5rem;
  }
  
  .unified-product-config h3 {
    font-size: 1.35rem;
    line-height: 1.3;
  }
  
  .unified-product-description {
    font-size: 0.875rem;
  }
  
  .product-highlights {
    margin: 1rem 0 1.25rem 0;
  }
  
  .highlights-list {
    margin: 0;
  }
  
  .highlights-list li {
    font-size: 0.8rem;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .unified-quantity-options {
    gap: 0.5rem;
  }
  
  .unified-quantity-option {
    padding: 0.75rem 0.875rem;
    gap: 0.625rem;
  }
  
  .unified-quantity-option .option-name {
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  .unified-quantity-option .option-qty {
    font-size: 0.65rem;
    font-weight: 500;
    margin-right: 0.375rem;
  }
  
  .unified-quantity-option .option-price {
    font-size: 0.8rem;
  }
  
  .bundle-options-wrapper {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .unified-quantity-option .option-price {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
  }
  
  .unified-quantity-option .option-price small {
    margin-left: 0;
    display: block;
    font-size: 0.7rem;
  }
  
  .unified-frame-option {
    font-size: 0.75rem;
    padding: 0.625rem 0.625rem;
    gap: 0.5rem;
  }
  
  .unified-frame-option .frame-swatch {
    width: 18px;
    height: 18px;
  }
  
  .unified-price {
    font-size: 1.75rem;
  }
  
  .unified-add-to-cart-btn {
    font-size: 0.95rem;
    padding: 0.95rem 1.25rem;
  }
  
  .button-price {
    font-size: 1rem;
  }
  
  .unified-product-description {
    font-size: 0.95rem;
  }
  
  .unified-label {
    font-size: 0.95rem;
  }
  
  .unified-quantity-option {
    padding: 0.75rem 0.625rem;
  }
  
  .unified-quantity-option .option-name {
    font-size: 0.85rem;
    font-weight: 600;
  }
  
  .unified-quantity-option .option-qty {
    font-size: 0.6rem;
    font-weight: 500;
    margin-right: 0.25rem;
  }
  
  .unified-quantity-option .option-price {
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
  }
  
  .unified-quantity-option .option-price small {
    margin-left: 0;
    display: block;
    font-size: 0.65rem;
  }
  
  .unified-frame-options {
    grid-template-columns: 1fr 1fr;
  }
  
  .unified-frame-option {
    font-size: 0.75rem;
    padding: 0.625rem 0.625rem;
    gap: 0.5rem;
  }
  
  .unified-frame-option .frame-swatch {
    width: 18px;
    height: 18px;
  }
  
  .unified-price {
    font-size: 2rem;
  }
  
  .unified-add-to-cart-btn {
    font-size: 1.05rem;
    padding: 1.15rem 1.25rem;
  }
  
  .button-price {
    font-size: 1.15rem;
  }
  
  .popular-products-grid {
    grid-template-columns: 1fr;
  }
  
  .popular-product-card {
    margin: 0 0.5rem;
  }
  
  .popular-trust-signals {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Additional mobile modal fixes */
@media (max-width: 768px) {
  .frame-help-modal {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin: 0 !important;
    max-height: calc(100vh - 2rem) !important;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .popular-product-card {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .popular-product-content h3 {
    color: white;
  }
  
  .popular-product-description {
    color: #ccc;
  }
  
  .popular-price {
    color: white;
  }
}

/* Help Me Choose Link */
.help-me-choose-link {
  font-size: 0.875rem;
  color: var(--forest-green);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.help-me-choose-link:hover {
  color: var(--dark-green);
  text-decoration: underline;
}
