.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--secondary-color);
}
.contact-map-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 60px 20px;
}
.contact-form-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.contact-info-card {
  background: linear-gradient(150deg, var(--primary-color) 0%, #5f1326 55%, var(--accent-color) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 30px;
  box-shadow: var(--shadow-lg);
}
.contact-form-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.contact-form-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 6px;
}
.contact-form-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 20px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-ivory);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(107, 29, 47, 0.1);
  background: #fff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-row label {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.contact-detail-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.contact-social-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}
.contact-detail-value {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.5;
}
.contact-detail-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-info-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  margin: 0;
}
.contact-info-title {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
  margin-bottom: 60px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary-color);
  font-weight: 600;
}
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.contact-section {
  padding: 80px 0;
}
.quick-highlights-section {
  padding: 60px 0;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   Brand Promise & Why Choose Us
   -------------------------------------------------------------------------- */
.why-us-section {
  padding: 80px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--bg-white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  border-top: var(--primary-color) 4px solid;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: rgba(197, 155, 39, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.why-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.page-hero {
  text-align: center;
  padding: 70px 0 50px;
  background: linear-gradient(135deg, var(--bg-ivory) 0%, var(--bg-cream) 100%);
  position: relative;
  margin: top 10px;
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(197, 155, 39, 0.15);
  color: var(--primary-color);
  border: 1px solid var(--secondary-color);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  margin-top: 70px;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.page-hero h1 span {
  font-style: italic;
  color: var(--secondary-color);
}

.page-hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #501422;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}




@media (max-width: 992px) {
  .hero-grid, .craft-grid, .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quickview-modal-content {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .kolam-pattern {
    width: 120px;
    height: 120px;
  }
  .contact-info-card {
    padding: 36px 28px;
  }
  .contact-form-card {
    padding: 36px 28px;
  }
}

@media (max-width: 768px) {
  /* .nav-menu mobile styling now lives solely in styles.css to avoid
     cascade conflicts — this file previously redefined it with an
     undefined --bg-ivory variable, which made the panel background
     render transparent on mobile. */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .story-card {
    padding: 24px;
  }
  .page-hero {
    padding: 50px 0 36px;
  }
  .quick-highlights-section,
  .contact-section {
    padding: 50px 0;
  }
  .contact-layout {
    gap: 28px;
    margin-bottom: 40px;
  }
  .contact-info-card,
  .contact-form-card {
    padding: 30px 24px;
  }
  .contact-social-row {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-hero-tag {
    font-size: 0.7rem;
    padding: 5px 14px;
  }
  .breadcrumb {
    font-size: 0.78rem;
    margin-bottom: 22px;
  }
  .contact-info-card,
  .contact-form-card {
    padding: 26px 20px;
    border-radius: var(--radius-md);
  }
  .contact-detail-item {
    gap: 12px;
  }
  .contact-detail-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .checkbox-row {
    align-items: flex-start;
  }
  
}

/* ==========================================================================
   SUBPAGE & TEMPLATE COMPONENT STYLES
   ========================================================================== */

/* Announcement Ribbon */
.top-ribbon {
  background: linear-gradient(90deg, var(--primary) 0%, #5a0818 50%, var(--accent-gold-dark) 100%);
  color: var(--text-light);
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
}
.top-ribbon-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ribbon-badge {
  background: rgba(212, 175, 55, 0.25);
  border: 1px solid var(--accent-gold);
  color: #FFF;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Subpage Navbar */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn-crimson {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.icon-btn-crimson:hover {
  background: var(--primary);
  color: #FFF;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFF;
}

.btn-outline-crimson {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-outline-crimson:hover {
  background: var(--primary);
  color: #FFF;
}
.btn-green {
  background: var(--primary);
  color: #FFF;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--primary);
}
.btn-green:hover {
  background: var(--primary-hover);
  color: #FFF;
}

/* Auth Cards & Layout */
.auth-wrapper {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-subtle) 100%);
}
.auth-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 100%);
}
.auth-card-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  text-align: center;
}
.auth-card-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

/* OTP Inputs */
.otp-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
/* .otp-box {
  width: 52px;
  height: 60px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-heading);
  background: var(--bg-subtle);
  transition: var(--transition-fast);
  outline: none;
}
.otp-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132, 12, 36, 0.12);
  background: #FFF;
} */

/* Cart & Checkout Layout */
.cart-layout, .payment-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
}
.cart-items-card, .payment-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cart-items-header, .payment-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}


.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}
.summary-row.total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  padding: 16px 0 4px;
}
.summary-row.total .amount {
  color: var(--primary);
  font-size: 1.4rem;
}

/* Step Trackers */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}
.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s ease;
}
.step-dot.done {
  background: var(--primary);
  color: #FFF;
}
.step-dot.active {
  background: linear-gradient(135deg, var(--primary), var(--accent-gold-dark));
  color: #FFF;
  box-shadow: 0 4px 12px rgba(132, 12, 36, 0.3);
}
.step-dot.pending {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 2px solid var(--border-light);
}
.step-line {
  flex: 1;
  height: 3px;
  background: var(--border-light);
  transition: background 0.25s ease;
}
.step-line.done {
  background: var(--primary);
}
.step-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  font-weight: 600;
}

/* Alerts */
.alert-success {
  background: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
  color: var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.alert-error {
  background: var(--primary-light);
  border: 1px solid rgba(132, 12, 36, 0.3);
  color: var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* Footer Subpage Overrides */
.footer-top-line {
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 50%, var(--primary) 100%);
}
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding: 60px 0;
  align-items: start;
}

.profile-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.profile-avatar-section {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-crimson) 100%);
  padding: 36px 24px;
  text-align: center;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-light);
  margin: 0 auto 14px;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.profile-avatar-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.profile-avatar-email {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.gradient-text-crimson {
  background: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-crimson-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-nav {
  padding: 16px 0;
}

.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.profile-nav-item:hover,
.profile-nav-item.active {
  color: var(--color-green);
  background: var(--bg-green-subtle);
  border-left-color: var(--color-green);
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-light);
}

.profile-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-card-body {
  padding: 28px;
}
.main-content {padding:20px 0;margin-top:40px}
.payment-section { padding: 10px 0; background: var(--bg-secondary); }
.payment-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.payment-card { background: var(--bg-card); border-radius: var(--radius-xl); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 24px; }
.payment-card-header { padding: 22px 28px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 12px; }
.step-circle { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--color-green), var(--color-green-dark)); color: var(--text-light); font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.payment-card-body { padding: 28px; }
.payment-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.payment-method-btn { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 2px solid var(--border-light); border-radius: var(--radius-md); background: var(--bg-secondary); cursor: pointer; transition: var(--transition); font-weight: 600; color: var(--text-main); font-size: 0.95rem; }
.payment-method-btn:hover, .payment-method-btn.active { border-color: var(--color-green); background: var(--bg-green-subtle); }
.payment-method-btn input[type="radio"] { accent-color: var(--color-green); width: 18px; height: 18px; }
.pay-icon { font-size: 1.5rem; }
.card-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-form-grid .full { grid-column: 1 / -1; }
.secure-badge { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--bg-green-subtle); color: var(--color-green-dark); font-size: 0.85rem; font-weight: 600; margin-top: 20px; }
.order-summary-card { background: var(--bg-card); border-radius: var(--radius-xl); border: 1px solid var(--border-light); box-shadow: var(--shadow-md); overflow: hidden; position: sticky; top: 100px; }
.order-summary-header { padding: 20px 24px; background: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-crimson-dark) 100%); color: var(--text-light); font-weight: 700; font-size: 0.95rem; }
.order-summary-body { padding: 20px 24px; }
.order-summary-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.order-summary-item:last-of-type { border-bottom: none; }
.order-sum-img { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; border: 1px solid var(--border-light); }
.order-sum-info { flex: 1; }
.order-sum-name { font-size: 0.88rem; font-weight: 600; color: var(--text-main); }
.order-sum-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.order-sum-price { font-weight: 700; font-size: 0.92rem; color: var(--text-main); }

/* ================================================================
   CART / CHECKOUT — Mobile Responsiveness (cart.html)
   Moved out of cart.html's inline <style> block and expanded with
   additional coverage. Breakpoints match the rest of the site:
   768px / 480px.
   ================================================================ */

@media (max-width: 768px) {
  /* ---------- Page hero on the checkout page ---------- */
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero p { font-size: 0.85rem; padding: 0 12px; }

  /* ---------- Step indicator ---------- */
  .step-indicator { margin-bottom: 22px; }
  .step-dot { width: 26px; height: 26px; font-size: 0.72rem; }
  .step-label { font-size: 0.65rem; }

  /* ---------- Stack checkout column above the order-summary sidebar,
     summary moves below the form steps (Amazon-style mobile checkout) ---------- */
  .payment-layout { display: flex; flex-direction: column; gap: 20px; }
  .order-summary-card { position: static; top: auto; width: 100%; order: 2; margin-top: 0; }

  .payment-card-header { flex-direction: column; align-items: flex-start !important; gap: 8px; padding: 14px 16px !important; }
  .payment-card-body { padding: 16px !important; }

  /* Address form (Step 2): single column instead of 2-column grid */
  .payment-card-body div[style*="grid-template-columns:1fr 1fr"],
  .payment-card-body div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .payment-card-body div[style*="grid-column: span 2"],
  .payment-card-body div[style*="grid-column: span 1"] { grid-column: span 1 !important; }
  .card-form-grid { grid-template-columns: 1fr; }

  /* Cart line items (Step 1): stack image/info and quantity/price controls */
  #step1-cart-container > div { flex-direction: column; align-items: flex-start !important; gap: 10px !important; }
  #step1-cart-container > div > div:last-child { width: 100%; justify-content: space-between; }

  /* Back / Continue action rows wrap and stack cleanly */
  .payment-card-body > div[style*="justify-content:space-between"] { flex-direction: column-reverse; }
  .payment-card-body > div[style*="justify-content:space-between"] > .btn,
  .payment-card-body > div[style*="justify-content:space-between"] > a.btn { width: 100%; justify-content: center; box-sizing: border-box; }

  /* Payment method selection */
  .payment-methods { gap: 8px; }
  .payment-method-btn { padding: 12px !important; }

  /* Order summary sidebar contents */
  .order-summary-item { flex-wrap: wrap; }
  .order-summary-header { padding: 16px 18px; }
  .order-summary-body { padding: 16px 18px; }
  #btn-sidebar-place-order { font-size: 0.92rem !important; padding: 12px !important; }

  /* Order confirmation (Step 4) */
  #step-view-4 .payment-card { padding: 36px 18px !important; }
  #step-view-4 h2 { font-size: 1.4rem !important; }
  #step-view-4 > .payment-card > div[style*="display:flex; justify-content:center"] { flex-direction: column; align-items: stretch; }
  #step-view-4 > .payment-card > div[style*="display:flex; justify-content:center"] .btn { width: 100%; justify-content: center; box-sizing: border-box; }

  /* Success / center popup modals */
  #order-success-modal > div { padding: 36px 20px !important; }
  #order-success-modal div[style*="display:flex; gap:12px"] { flex-direction: column; }
  #order-success-modal div[style*="display:flex; gap:12px"] .btn { width: 100%; justify-content: center; }
  #custom-center-popup > div { width: 90% !important; padding: 30px 22px !important; }

  /* Sticky place-order CTA is easier to reach on small screens */
  .order-summary-card { padding-bottom: 4px; }
}

@media (max-width: 480px) {
  .step-label { display: none; }
  .order-sum-name { font-size: 0.88rem; }
  .payment-card-header > div { font-size: 0.98rem !important; }

  /* Tighter card padding and type scale on very small phones */
  .payment-card-body { padding: 14px !important; }
  .payment-method-btn { padding: 10px !important; gap: 10px; }
  .payment-method-btn div[style*="font-size:0.8rem"] { font-size: 0.74rem !important; }
  .secure-badge { font-size: 0.78rem; padding: 10px 12px; }

  /* Cart line item image + text shrink slightly to leave room for controls */
  #step1-cart-container img,
  #step1-cart-container > div > div:first-child > div[style*="width:60px"] { width: 48px !important; height: 48px !important; }

  /* Quantity stepper and price wrap onto their own row cleanly */
  #step1-cart-container > div > div:last-child { flex-wrap: wrap; gap: 12px !important; }

  .order-summary-header { font-size: 0.88rem; }
  .summary-row { font-size: 0.85rem; }
  .summary-row.total { font-size: 1rem; }
  .summary-row.total .amount { font-size: 1.2rem; }
}