@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

:root {
  --md-bg: #FFFBF5;
  --md-on-bg: #1D1B16;
  --md-primary: #1D1B16;
  --md-on-primary: #FFFFFF;
  --md-surface-variant: #F3EDE2;
  --md-on-surface-variant: #4A463E;
  --md-accent: #C8960F;
  --md-outline: #79746E;
  --md-error: #BA1A1A;
  
  --shape-md: 12px;
  --shape-lg: 16px;
  --shape-full: 9999px;
  
  --font-family: 'Noto Sans Bengali', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  background-color: var(--md-bg);
  color: var(--md-on-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

.top-bar { padding: 16px 0; background-color: var(--md-bg); }

.hero-headline { font-size: clamp(24px, 5vw, 36px); text-align: center; margin: 24px 0 32px 0; }
.gold-highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.gold-highlight::after {
  content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 8px;
  background-color: var(--md-accent); opacity: 0.3; z-index: -1;
}
@keyframes draw-line {
  0%, 20% { background-size: 0% 4px; }
  40%, 90% { background-size: 100% 4px; }
  100% { background-size: 0% 4px; }
}
.highlight-live {
  display: inline-block;
  background: linear-gradient(90deg, var(--md-accent), var(--md-accent));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 4px;
  animation: draw-line 4s infinite ease-in-out;
  padding-bottom: 4px;
}

@keyframes free-zoom-shake {
  0%, 80%, 100% { transform: scale(1) rotate(0deg); }
  84% { transform: scale(1.15) rotate(-3deg); }
  88% { transform: scale(1.15) rotate(3deg); }
  92% { transform: scale(1.15) rotate(-2deg); }
  96% { transform: scale(1.15) rotate(2deg); }
}
.free-animate {
  display: inline-block;
  animation: free-zoom-shake 4s infinite ease-in-out;
  color: var(--md-accent);
  font-weight: 700;
  transform-origin: center;
}

/* 30% discount shakes staying in place once every 4 seconds */
@keyframes stationary-shake {
  0%, 82%, 100% { transform: translate(0, 0) rotate(0deg); }
  85% { transform: translate(-2px, 0) rotate(-1.5deg); }
  88% { transform: translate(2px, 0) rotate(1.5deg); }
  91% { transform: translate(-2px, 0) rotate(-1deg); }
  94% { transform: translate(2px, 0) rotate(1deg); }
  97% { transform: translate(-1px, 0) rotate(-0.5deg); }
}
.badge-discount {
  display: inline-block;
  animation: stationary-shake 4s infinite ease-in-out;
  transform-origin: center;
}

.desktop-split { display: grid; gap: 32px; }
@media(min-width: 1024px) {
  .desktop-split { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
}

/*... existing carousel CSS untouched ...*/
.carousel-wrapper { position: relative; border-radius: var(--shape-lg); overflow: hidden; background: var(--md-surface-variant); }
.carousel-scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-scroller::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; flex: 0 0 100%; display: flex; justify-content: center; align-items: center; background: var(--md-surface-variant); }
.carousel-item img { object-fit: contain; max-height: 500px; width: 100%; }
.reviews-carousel .carousel-item img { max-height: 350px; border-radius: var(--shape-md); padding: 16px; box-sizing: border-box; }
.viewable-image { cursor: zoom-in; }
.carousel-nav {
  position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%);
  display: flex; justify-content: space-between; padding: 0 16px; pointer-events: none;
}
.nav-btn {
  pointer-events: auto; width: 40px; height: 40px; border-radius: var(--shape-full);
  background: rgba(255,255,255,0.8); border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; color: var(--md-on-bg);
}
.nav-btn:hover { background: #fff; }

.btn-filled {
  background-color: var(--md-primary); color: var(--md-on-primary); border: none; border-radius: var(--shape-md);
  padding: 14px 24px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-family);
}
.btn-filled:hover { background-color: #333; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.btn-filled:disabled { background-color: #ccc; cursor: not-allowed; }

.btn-outlined {
  background-color: transparent; color: var(--md-on-bg); border: 1px solid var(--md-outline); border-radius: var(--shape-md);
  padding: 14px 24px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-outlined:hover { background-color: rgba(29,27,22,0.08); }

.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.hero-actions .action-order { width: 100%; padding: 16px; font-size: 18px; }
.hero-actions-row { display: flex; gap: 12px; }
.hero-actions-row > * { flex: 1; }

.action-call { background-color: #1A73E8 !important; color: #fff !important; border-color: #1A73E8 !important; }
.action-call:hover, .call-dropdown-btn:hover { background-color: #1557B0 !important; color: #fff !important; border-color: #1557B0 !important; }
.action-wa { background-color: #25D366 !important; color: #fff !important; border-color: #25D366 !important; }
.action-wa:hover { background-color: #128C7E !important; color: #fff !important; border-color: #128C7E !important; }

.call-btn-main { flex: 1; }
@media(max-width: 1023px) {
  .desktop-only-flex { display: none !important; }
}
@media(min-width: 1024px) {
  .call-btn-main { border-top-right-radius: 0; border-bottom-right-radius: 0; }
  .desktop-only-flex { display: inline-flex !important; }
  .hero-actions { flex-direction: row; }
  .hero-actions .action-order { flex: 1; }
}

.tonal-surface { background-color: var(--md-surface-variant); color: var(--md-on-bg); }
.price-card { padding: 24px; border-radius: var(--shape-lg); margin-bottom: 24px; }
.price-old { color: var(--md-on-surface-variant); font-size: 16px; }
.price-new { font-size: 32px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.badge-gold { background-color: var(--md-accent); color: #fff; font-size: 14px; padding: 4px 12px; border-radius: 8px; font-weight: 600; white-space: nowrap; }

.features-card h2 { margin-bottom: 20px; }
.check-list { list-style: none; margin-bottom: 24px; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; font-size: 16px; color: var(--md-on-surface-variant); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--md-accent); font-weight: 700; font-size: 18px; }
.features-footer { font-weight: 600; color: var(--md-on-bg); }

.md-text-field { position: relative; margin-bottom: 24px; }
.md-text-field input, .md-text-field textarea {
  width: 100%; padding: 16px; border: 1px solid var(--md-outline); border-radius: var(--shape-md);
  background: transparent; font-family: inherit; font-size: 16px; color: var(--md-on-bg); transition: border-color 0.2s;
}
.md-text-field textarea { resize: vertical; min-height: 80px; }
.md-text-field input:focus, .md-text-field textarea:focus { outline: none; border-color: var(--md-primary); border-width: 2px; padding: 15px; }
.md-text-field label {
  position: absolute; top: 16px; left: 16px; background: var(--md-bg); padding: 0 4px;
  color: var(--md-outline); transition: 0.2s ease; pointer-events: none; font-size: 16px;
}
.md-text-field input:focus ~ label, .md-text-field input:not(:placeholder-shown) ~ label,
.md-text-field textarea:focus ~ label, .md-text-field textarea:not(:placeholder-shown) ~ label { top: -10px; font-size: 12px; color: var(--md-primary); }

.order-section { background: var(--md-bg); }

/* Updated Pack Selection for Quantities */
.pack-selection { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.pack-card { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: var(--shape-md); background: var(--md-surface-variant); box-shadow: inset 0 0 0 1px var(--md-outline); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.pack-card.selected { box-shadow: inset 0 0 0 2px var(--md-accent), 0 4px 12px rgba(200,150,15,0.15); background: #FFF9E6; transform: scale(1.02) translateY(-2px); }
.pack-info { flex: 1; pointer-events: none; }
.pack-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; pointer-events: none; color: var(--md-on-bg); transition: color 0.3s ease; }
.pack-card.selected .pack-name { color: var(--md-accent); }
.pack-price { font-weight: 600; color: var(--md-on-surface-variant); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.badge-free { background: var(--md-accent); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; display: inline-block; pointer-events: none; }

.qty-stepper { display: flex; align-items: center; gap: 12px; background: #fff; padding: 4px 8px; border-radius: var(--shape-full); box-shadow: inset 0 0 0 1px var(--md-outline); pointer-events: auto; transition: box-shadow 0.3s ease; }
.pack-card.selected .qty-stepper { box-shadow: inset 0 0 0 2px var(--md-accent); }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--md-surface-variant); font-size: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.qty-btn:active { transform: scale(0.95); }
.qty-display { font-size: 16px; font-weight: 700; min-width: 16px; text-align: center; }

/* Size Chips Forced onto One Line */
.size-row { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.size-label { display: block; font-weight: 600; margin-bottom: 8px; }
.size-chips { display: flex; gap: 8px; width: 100%; justify-content: space-between; }
.chip { flex: 1; min-width: 0; position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: block; width: 100%; text-align: center; padding: 10px 0; border: 1px solid var(--md-outline); border-radius: 8px; cursor: pointer; transition: 0.2s; font-weight: 600; font-size: 15px; }
.chip input:checked + span { background: var(--md-primary); color: var(--md-on-primary); border-color: var(--md-primary); }

.expandable-wrapper { margin-bottom: 24px; }
.btn-text { background: none; border: none; color: var(--md-accent); font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: var(--font-family); }

.optional-fields-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, margin-top 0.4s ease-out;
  margin-top: 0;
}
.optional-fields-container.open {
  max-height: 200px;
  margin-top: 24px;
}


.order-summary-card { padding: 24px; border-radius: var(--shape-lg); position: sticky; top: 24px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 16px; }
.divider { border: none; border-top: 1px solid rgba(0,0,0,0.1); margin: 16px 0; }
.total-row { font-size: 20px; font-weight: 700; }
.payment-badge { margin-top: 24px; padding: 12px; background: rgba(30,86,49,0.1); color: #1E5631; border-radius: 8px; text-align: center; font-weight: 700; font-size: 16px; }

.section { margin-top: 48px; }
.section-title { margin-bottom: 24px; font-size: clamp(20px, 4vw, 24px); line-height: 1.4; color: var(--md-primary); }
.form-col { margin-bottom: 32px; }

.footer { text-align: center; padding: 48px 16px; background: var(--md-surface-variant); color: var(--md-on-surface-variant); font-size: 14px; margin-top: 48px; }
/* Text Reviews Display */
.text-reviews-carousel { margin-top: 24px; }
.text-review-card { flex: 0 0 100%; scroll-snap-align: center; padding: 16px; background: var(--md-surface-variant); border-radius: var(--shape-md); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.stars { color: var(--md-accent); letter-spacing: 2px; }

/* Write Review Form */
.review-form-container { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out, opacity 0.5s; opacity: 0; }
.review-form-container.open { max-height: 800px; opacity: 1; margin-top: 16px; }
.review-form-card { background: var(--md-surface-variant); color: var(--md-on-bg); padding: 24px; border-radius: var(--shape-lg); }
.review-form-header { margin-bottom: 24px; text-align: left; }
.review-form-header h3 { font-size: 20px; color: var(--md-primary); }
.review-form-header p { font-size: 14px; color: var(--md-on-surface-variant); }

.review-form-card .md-text-field label { background: var(--md-surface-variant); color: var(--md-on-surface-variant); }
.review-form-card .md-text-field input, .review-form-card .md-text-field textarea { color: var(--md-on-bg); border-color: var(--md-outline); }
.review-form-card .md-text-field input:focus, .review-form-card .md-text-field textarea:focus { border-color: var(--md-primary); }
.review-form-card .md-text-field input:focus ~ label, .review-form-card .md-text-field textarea:focus ~ label { color: var(--md-primary); }

.rating-field { margin-bottom: 24px; }
.rating-field label { display: block; font-size: 12px; font-weight: 700; color: var(--md-on-surface-variant); letter-spacing: 1px; margin-bottom: 12px; text-transform: uppercase; }
.star-rating { display: flex; gap: 8px; cursor: pointer; }
.star-rating .star svg { fill: none; stroke: var(--md-outline); transition: all 0.2s, transform 0.1s; }
.star-rating .star.active svg { fill: var(--md-accent); stroke: var(--md-accent); }
.star-rating .star:active svg { transform: scale(0.85); }
.review-form-card .btn-filled { background: var(--md-primary); color: #fff; font-weight: 700; border-radius: 8px; }
.review-form-card .btn-filled:hover { background: #333; }
.sticky-bottom-bar {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: var(--md-bg); border-top: 1px solid rgba(0,0,0,0.1);
  padding: 12px 16px; display: flex; gap: 12px; z-index: 100;
  transform: translateY(100%); transition: transform 0.3s;
}
.sticky-bottom-bar.visible { transform: translateY(0); }
@media(min-width: 768px) { .sticky-bottom-bar { display: none !important; } }
.btn-icon-tonal {
  width: 48px; height: 48px; border-radius: var(--shape-md); border: none;
  background: var(--md-surface-variant); color: var(--md-on-bg);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

.error-msg { display: none; color: var(--md-error); background: #FFEDEA; padding: 12px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.success-panel { text-align: center; padding: 48px 24px; border-radius: var(--shape-lg); }
.spinner { display: none; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

dialog { margin: auto; border: none; border-radius: var(--shape-lg); padding: 0; max-width: 90vw; max-height: 90vh; background: transparent; }
dialog::backdrop { background: rgba(0,0,0,0.8); }
dialog img { max-height: 90vh; border-radius: var(--shape-lg); display: block; }
