/* ==========================================================================
   Manik.click - Ultra-Fast One-Page eCommerce Landing Page Styles
   Optimized for high conversion, mobile-first responsiveness, and <200ms load time.
   ========================================================================== */

:root {
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-light: #fee2e2;
  --primary-dark: #991b1b;
  --accent: #2563eb;
  --success: #16a34a;
  --success-dark: #15803d;
  --success-light: #dcfce7;
  --warning: #f59e0b;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #dc2626;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Noto Sans Bengali";
  --container-max: 1140px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); /* Space for mobile sticky footer */
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  touch-action: manipulation;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

/* ==========================================================================
   Top Notice Banner
   ========================================================================== */
.top-notice {
  background: linear-gradient(90deg, #b91c1c 0%, #dc2626 50%, #ea580c 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-notice .badge-flash {
  background: #ffffff;
  color: #dc2626;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  animation: pulse 1.5s infinite;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .top-notice {
    font-size: 11.5px;
    padding: 6px 10px;
    gap: 4px 6px;
    line-height: 1.35;
  }
  .top-notice .badge-flash {
    font-size: 10px;
    padding: 1px 6px;
  }
  .top-notice-extra {
    display: block;
    width: 100%;
    font-size: 11px;
  }
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-brand span {
  color: var(--primary);
}

.logo-tagline {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hotline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.2s;
}

.btn-hotline:hover {
  background-color: #e2e8f0;
  color: var(--primary);
}

.btn-header-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  transition: all 0.2s;
}

.btn-header-order:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .site-header .container {
    height: 56px;
  }
  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  .logo-brand {
    font-size: 17px;
  }
  .logo-tagline {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .btn-hotline {
    padding: 7px 10px;
    font-size: 12.5px;
    gap: 4px;
  }
  .btn-hotline .hotline-text {
    display: none;
  }
  .btn-header-order {
    padding: 7px 12px;
    font-size: 13px;
    gap: 4px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 24px 0 32px;
  background: white;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1.15fr;
    gap: 40px;
    align-items: start;
  }
}

/* Gallery */
.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-image-wrapper:hover img {
  transform: scale(1.03);
}

.discount-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.stock-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.thumb-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn.active, .thumb-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.25);
}

/* Product Info */
.product-details-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text-main);
}

@media (min-width: 768px) {
  .product-title {
    font-size: 28px;
  }
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.stars {
  color: #f59e0b;
  display: flex;
  gap: 2px;
}

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

.verified-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Price Box */
.price-container {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.current-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.original-price {
  font-size: 18px;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 600;
}

.discount-save-tag {
  background: var(--primary);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

/* Quick highlights bullet points */
.quick-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.quick-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-main);
}

.quick-highlights li svg {
  flex-shrink: 0;
  color: var(--success);
  margin-top: 2px;
}

/* CTA buttons in hero */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

@media (min-width: 500px) {
  .hero-cta-group {
    flex-direction: row;
  }
}

.btn-primary-large {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
  transition: all 0.2s;
  text-align: center;
}

.btn-primary-large:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: white;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s;
  text-align: center;
}

.btn-whatsapp-large:hover {
  background: #20ba59;
  transform: translateY(-2px);
}

/* Trust mini bar */
.trust-mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.trust-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 8px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  gap: 4px;
}

.trust-mini-card svg {
  color: var(--primary);
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */
.trust-bar-section {
  background: #ffffff;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
}

.trust-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 520px) {
  .trust-features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (min-width: 768px) {
  .trust-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.trust-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-feature-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.trust-feature-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Title Common
   ========================================================================== */
.section-wrapper {
  padding: 48px 0;
}

.section-wrapper.bg-alt {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header-center {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 36px;
}

.section-subtitle-pill {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 32px;
  }
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
}

/* ==========================================================================
   Key Highlights Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-box {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.feature-icon-bubble {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #fee2e2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-box h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.feature-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Use Cases Grid (Where can it be used?)
   ========================================================================== */
.usecases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .usecases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.usecase-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.usecase-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.usecase-img-wrap {
  height: 180px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.usecase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.usecase-card:hover .usecase-img-wrap img {
  transform: scale(1.05);
}

.usecase-body {
  padding: 18px;
}

.usecase-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.usecase-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.usecase-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Specs & Package
   ========================================================================== */
.specs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 840px) {
  .specs-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.specs-table-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
}

.specs-table-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

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

.specs-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: #f8fafc;
  width: 40%;
}

.specs-table td {
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--text-main);
  font-weight: 500;
}

.package-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.package-card h3 {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 600;
}

.package-item-badge {
  background: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.caution-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.5;
}

.caution-box strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #78350f;
}

/* ==========================================================================
   Reviews / Testimonials
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #475569;
  font-size: 14px;
}

.reviewer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.reviewer-location {
  font-size: 11.5px;
  color: var(--text-muted);
}

.review-text {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
}

.review-date {
  font-size: 11px;
  color: var(--text-light);
  margin-top: auto;
}

/* ==========================================================================
   Express Checkout Section (High-converting 1-step form)
   ========================================================================== */
.checkout-section {
  padding: 50px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff1f2 100%);
}

.checkout-container-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid #fecdd3;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.checkout-header {
  background: var(--primary);
  color: white;
  padding: 20px 24px;
  text-align: center;
}

.checkout-header h2 {
  font-size: 22px;
  font-weight: 800;
}

.checkout-header p {
  font-size: 13.5px;
  opacity: 0.95;
  margin-top: 4px;
}

.checkout-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 24px;
  gap: 28px;
}

@media (min-width: 768px) {
  .checkout-body-grid {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 32px;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom on focus */
  color: var(--text-main);
  background: #f8fafc;
  transition: all 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Quantity Offer Pills */
.quantity-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.qty-option-card {
  position: relative;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.2s;
  user-select: none;
}

.qty-option-card input {
  display: none;
}

.qty-option-card:hover {
  border-color: #cbd5e1;
}

.qty-option-card.selected {
  border-color: var(--primary);
  background: #fff1f2;
}

.qty-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.qty-amount {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.qty-subtext {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Delivery Area Radio cards */
.delivery-options-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-radio-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  user-select: none;
}

.delivery-radio-card input {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
}

.delivery-radio-card.selected {
  border-color: var(--primary);
  background: #fff1f2;
}

.delivery-info-text strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-main);
}

.delivery-info-text span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Order Summary box */
.order-summary-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.summary-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-product-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.summary-product-details {
  flex: 1;
}

.summary-product-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.summary-product-price {
  font-size: 13px;
  color: var(--primary);
  font-weight: 800;
}

.summary-calc-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  font-size: 13.5px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.calc-row.total-row {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.calc-row.total-row .total-amount {
  color: var(--primary);
}

.cod-badge {
  background: var(--success-light);
  color: var(--success-dark);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* Submit Actions */
.submit-buttons-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn-confirm-order {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-confirm-order:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-whatsapp-order {
  width: 100%;
  background: #25d366;
  color: white;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-whatsapp-order:hover {
  background: #20ba59;
}

/* ==========================================================================
   Order Confirmation Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-card {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-content-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.modal-order-summary {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  font-size: 13.5px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-order-summary .row {
  display: flex;
  justify-content: space-between;
}

.modal-order-summary .row strong {
  color: var(--text-main);
}

/* ==========================================================================
   Admin Orders Modal
   ========================================================================== */
.admin-modal-card {
  max-width: 720px;
  text-align: left;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.admin-orders-list {
  overflow-y: auto;
  max-height: 50vh;
  margin: 16px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.admin-order-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-order-item:nth-child(even) {
  background: #f8fafc;
}

.admin-order-item:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Mobile Sticky Footer Bar
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-color);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-price-wrap {
  display: flex;
  flex-direction: column;
}

.mobile-price-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.mobile-price-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.mobile-cta-btn {
  flex: 1;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Floating WhatsApp / Phone Buttons */
.floating-actions {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  right: 14px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 640px) {
  .floating-actions {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 12px;
  }
  .floating-btn {
    width: 44px;
    height: 44px;
  }
  .floating-btn.call {
    display: none; /* Keep screen uncluttered; call is already in sticky header */
  }
}

@media (min-width: 768px) {
  .floating-actions {
    bottom: 24px;
    right: 24px;
  }
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
  cursor: pointer;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn.whatsapp {
  background: #25d366;
}

.floating-btn.call {
  background: var(--primary);
}

/* Mobile Small Screens (< 500px) Refinements */
@media (max-width: 500px) {
  .checkout-section {
    padding: 28px 0;
  }
  .checkout-header {
    padding: 16px 14px;
  }
  .checkout-header h2 {
    font-size: 19px;
  }
  .checkout-body-grid {
    padding: 16px 12px;
    gap: 18px;
  }
  .quantity-options {
    gap: 6px;
    margin-bottom: 14px;
  }
  .qty-option-card {
    padding: 10px 4px;
  }
  .qty-badge {
    font-size: 9px;
    padding: 1px 5px;
    top: -8px;
  }
  .qty-amount {
    font-size: 14px;
  }
  .qty-subtext {
    font-size: 10.5px;
  }
  .delivery-options-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .order-summary-box {
    padding: 16px 12px;
    gap: 12px;
  }
  .modal-content-card {
    padding: 20px 16px;
    max-height: 92vh;
    overflow-y: auto;
  }
  .specs-table-card, .package-card {
    padding: 16px 14px;
  }
  .specs-table th, .specs-table td {
    padding: 8px 10px;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 24px;
  font-size: 13.5px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.admin-link-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
}

.admin-link-btn:hover {
  color: #94a3b8;
}
