/* ==========================================================================
   Shalma Steel & Furniture — Design System
   Palette: Deep Navy #0F2A4A, Navy Light #16385F, Gold #C9A44C,
            Cream BG #F7F5F0, Charcoal Text #1F2937, White #FFFFFF
   Type: Poppins (display), Inter (body)
   ========================================================================== */

:root {
  --navy: #0F2A4A;
  --navy-light: #16385F;
  --navy-dark: #081A30;
  --gold: #C9A44C;
  --gold-light: #E0C173;
  --cream: #F7F5F0;
  --white: #FFFFFF;
  --charcoal: #1F2937;
  --grey: #6B7280;
  --grey-light: #E5E7EB;
  --success: #1B8A5A;
  --danger: #C0392B;
  --warn: #D68910;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(15, 42, 74, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 42, 74, 0.12);
  --shadow-lg: 0 16px 40px rgba(15, 42, 74, 0.18);
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1EBE5A; transform: translateY(-2px); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #a53225; }
.btn-disabled { background: var(--grey-light); color: var(--grey); cursor: not-allowed; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.text-discount { color: var(--danger); }
.text-muted { color: var(--grey); font-weight: 400; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { height: 42px; width: auto; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy); }
.main-nav { display: flex; flex-wrap: nowrap; gap: 22px; }
.main-nav a { font-weight: 500; font-size: 15px; color: var(--charcoal); transition: color 0.2s; white-space: nowrap; }
.main-nav a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-search { display: flex; align-items: center; background: var(--cream); border-radius: 20px; padding: 4px 6px 4px 14px; flex-shrink: 0; }
.header-search input { border: none; background: none; outline: none; width: 130px; font-size: 14px; }
.header-search button { background: none; border: none; font-size: 15px; padding: 6px; }
.lang-switcher { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--grey); }
.lang-switcher a { padding: 4px 6px; border-radius: 6px; color: var(--grey); }
.lang-switcher a.active { color: var(--navy); background: var(--cream); }
.mobile-lang-switcher { display: flex; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--grey-light); }
.mobile-lang-switcher a { flex: 1; text-align: center; padding: 10px; border-radius: var(--radius-sm); background: var(--cream); font-weight: 600; font-size: 13px; }
.mobile-lang-switcher a.active { background: var(--navy); color: var(--white); }
/* Bengali text uses a dedicated web font for correct glyph rendering/shaping */
body.lang-bn { font-family: 'Noto Sans Bengali', var(--font-body); }
body.lang-bn h1, body.lang-bn h2, body.lang-bn h3, body.lang-bn h4, body.lang-bn h5 { font-family: 'Noto Sans Bengali', var(--font-display); }
.cart-link { position: relative; font-size: 22px; }
.cart-count {
  position: absolute; top: -6px; right: -10px;
  background: var(--gold); color: var(--navy-dark);
  font-size: 11px; font-weight: 700;
  border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--navy); }
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  box-shadow: var(--shadow-lg);
  padding: 80px 24px 24px;
  transition: right 0.3s ease;
  z-index: 200;
}
.mobile-nav.open { right: 0; }
.mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--grey-light); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); padding: 64px 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-block; background: rgba(201,164,76,0.15); color: var(--gold-light);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
  border: 1px solid rgba(201,164,76,0.35);
}
.hero-content h1 { color: var(--white); font-size: 44px; line-height: 1.15; margin-bottom: 18px; }
.hero-subtitle { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 32px; max-width: 480px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
/* Buttons sitting on the navy hero background need their own contrast —
   the default .btn-primary/.btn-outline colors are navy-on-navy here and
   become unreadable (the outline button's navy border+text vanish into
   the hero background entirely). Use gold/white instead. */
.hero-ctas .btn-primary { background: var(--gold); color: var(--navy-dark); }
.hero-ctas .btn-primary:hover { background: var(--gold-light); }
.hero-ctas .btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.hero-ctas .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.section-header.center { justify-content: center; text-align: center; flex-direction: column; gap: 6px; }
.section-header h2 { font-size: 30px; }
.section-link { color: var(--gold); font-weight: 600; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Category Grid ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-grid-lg { grid-template-columns: repeat(4, 1fr); }
.category-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column; text-align: center;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.category-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--grey-light); }
.category-card-img img { width: 100%; height: 100%; object-fit: cover; }
.category-card-name { padding: 14px 10px 4px; font-weight: 600; color: var(--navy); }
.category-card-count { padding: 0 10px 14px; font-size: 13px; color: var(--grey); }

/* ---------- Product Grid & Cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card-img { position: relative; aspect-ratio: 1/1; background: var(--grey-light); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.badge-discount, .badge-outofstock {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: var(--white);
}
.badge-discount { background: var(--danger); }
.badge-outofstock { background: var(--grey); left: auto; right: 10px; }
.product-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-title { font-weight: 600; font-size: 15px; color: var(--navy); }
.product-card-price { display: flex; align-items: center; gap: 8px; }
.price-current, .price-discount, .price-current-lg, .price-discount-lg { font-weight: 700; color: var(--navy); }
.price-discount, .price-discount-lg { color: var(--danger); }
.price-original, .price-original-lg { color: var(--grey); text-decoration: line-through; font-size: 13px; }
.product-card-actions { margin-top: auto; }

/* ---------- Why Choose Us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: var(--white); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); }
.why-icon { font-size: 34px; margin-bottom: 12px; }
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p { color: var(--grey); font-size: 14px; }

/* ---------- About Preview ---------- */
.about-preview-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-preview-img img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.about-preview-content h2 { font-size: 30px; margin: 8px 0 16px; }
.about-preview-content p { color: var(--grey); margin-bottom: 24px; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { text-align: center; padding: 20px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold);
  color: var(--navy-dark); font-weight: 700; font-family: var(--font-display); margin-bottom: 14px;
}
.step-card h3 { font-size: 16px; margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--grey); }

/* ---------- Final CTA ---------- */
.final-cta-section { background: var(--gold); text-align: center; }
.final-cta-inner h2 { font-size: 28px; margin-bottom: 24px; }
.final-cta-inner .hero-ctas { justify-content: center; }

/* ---------- Page Header ---------- */
.page-header { background: var(--navy); padding: 40px 0; }
.page-header h1 { color: var(--white); font-size: 30px; }
.page-header p { color: rgba(255,255,255,0.7); margin-top: 6px; }

/* ---------- Products Listing ---------- */
.products-listing-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.filters-sidebar { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.filters-sidebar h3 { font-size: 16px; margin-bottom: 12px; }
.filter-list li a { display: block; padding: 8px 0; color: var(--charcoal); font-size: 14px; border-bottom: 1px solid var(--grey-light); }
.filter-list li a.active, .filter-list li a:hover { color: var(--gold); font-weight: 600; }
.sidebar-search { display: flex; gap: 8px; margin-top: 16px; }
.sidebar-search input { flex: 1; padding: 8px 10px; border: 1px solid var(--grey-light); border-radius: var(--radius-sm); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-sm); font-weight: 600;
}
.pagination a.active { background: var(--navy); color: var(--white); }

/* ---------- Empty States ---------- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state p { color: var(--grey); margin-bottom: 20px; font-size: 16px; }

/* ---------- Product Detail ---------- */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.product-gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); aspect-ratio: 1/1; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; opacity: 0.6; border: 2px solid transparent; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--gold); }
.product-category-tag { color: var(--gold); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-info h1 { font-size: 28px; margin: 6px 0 4px; }
.product-sku { color: var(--grey); font-size: 13px; margin-bottom: 16px; }
.product-price-block { margin-bottom: 12px; }
.price-current-lg, .price-discount-lg { font-size: 28px; }
.product-availability { font-weight: 600; margin-bottom: 16px; font-size: 14px; }
.product-availability.in { color: var(--success); }
.product-availability.out { color: var(--danger); }
.product-short-desc { color: var(--grey); margin-bottom: 20px; }
.product-order-box { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.qty-selector { display: flex; align-items: center; border: 1px solid var(--grey-light); border-radius: var(--radius-sm); overflow: hidden; }
.qty-selector button { background: var(--cream); border: none; width: 36px; height: 42px; font-size: 16px; }
.qty-selector input { width: 48px; text-align: center; border: none; height: 42px; }
.product-tabs { margin-top: 20px; }
.product-tab-content { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.product-tab-content h2 { font-size: 20px; margin: 16px 0 10px; }
.product-tab-content h2:first-child { margin-top: 0; }
.spec-list li { padding: 6px 0; border-bottom: 1px solid var(--grey-light); color: var(--charcoal); font-size: 14px; }
.spec-list { list-style: disc; padding-left: 20px; }

/* ---------- Cart ---------- */
.cart-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid; grid-template-columns: 70px 1fr auto auto auto; align-items: center; gap: 14px;
  background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm);
}
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-info { display: flex; flex-direction: column; gap: 4px; }
.cart-item-info a { font-weight: 600; color: var(--navy); }
.cart-item-price { color: var(--grey); font-size: 13px; }
.cart-qty { transform: scale(0.9); }
.cart-item-subtotal { font-weight: 700; color: var(--navy); min-width: 80px; text-align: right; }
.cart-remove-btn { background: none; border: none; font-size: 18px; }
.cart-summary { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.cart-summary h3 { margin-bottom: 16px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-weight: 600; border-top: 1px solid var(--grey-light); margin-top: 8px; }
.cart-summary-note { font-size: 12px; color: var(--grey); margin-bottom: 16px; }
.cart-summary .btn { margin-top: 10px; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.checkout-form { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.checkout-form h3 { margin-top: 8px; }
.checkout-form label, .contact-form label, .admin-form label, .install-form label {
  display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy);
}
.checkout-form input, .checkout-form textarea, .contact-form input, .contact-form textarea,
.admin-form input, .admin-form textarea, .admin-form select, .install-form input {
  padding: 11px 14px; border: 1px solid var(--grey-light); border-radius: var(--radius-sm); font-weight: 400; color: var(--charcoal);
}
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; }
.payment-instructions { font-size: 13px; color: var(--grey); background: var(--cream); padding: 12px; border-radius: var(--radius-sm); }
.checkout-summary-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }

/* ---------- Order Success ---------- */
.order-success-section { padding: 80px 0; }
.order-success-card { max-width: 560px; margin: 0 auto; background: var(--white); border-radius: var(--radius); padding: 48px; text-align: center; box-shadow: var(--shadow-md); }
.success-icon { font-size: 56px; margin-bottom: 16px; }
.order-number { color: var(--gold); font-size: 18px; margin: 16px 0 24px; }
.order-success-details { text-align: left; background: var(--cream); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 24px; }

/* ---------- Content Pages ---------- */
.content-page { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); max-width: 800px; margin: 0 auto; line-height: 1.8; }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--grey-light); }
.faq-item:last-child { border-bottom: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info-col, .contact-form-col { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-info-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--grey-light); }
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.contact-map { margin-top: 16px; border-radius: var(--radius-sm); overflow: hidden; }
.contact-map iframe { width: 100%; height: 260px; border: 0; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.alert-error { background: #FDECEA; color: var(--danger); border: 1px solid #F5C6C0; }
.alert-success { background: #E9F7EF; color: var(--success); border: 1px solid #B7E4C7; }
.alert ul { list-style: disc; padding-left: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 20px; }
.footer-logo { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; opacity: 0.75; margin-bottom: 16px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { font-size: 13px; color: var(--gold-light); }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-address, .footer-hours { font-size: 13px; opacity: 0.7; margin-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; font-size: 13px; opacity: 0.6; }

/* ---------- Floating Buttons ---------- */
.floating-btn {
  position: fixed; bottom: 24px; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); z-index: 150; border: none; transition: transform 0.2s;
}
.floating-btn:hover { transform: scale(1.08); }
.floating-whatsapp { right: 24px; background: #25D366; color: var(--white); }
.floating-ai { right: 92px; background: var(--gold); color: var(--navy-dark); }

/* ---------- AI Chat Widget ---------- */
.ai-chat-window {
  position: fixed; bottom: 96px; right: 24px; width: 350px; max-width: 90vw; height: 480px; max-height: 70vh;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden; z-index: 160;
}
.ai-chat-window.open { display: flex; }
.ai-chat-header { background: var(--navy); color: var(--white); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.ai-chat-header-info { display: flex; align-items: center; gap: 10px; }
.ai-avatar { width: 36px; height: 36px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ai-chat-title { font-weight: 600; font-size: 14px; }
.ai-chat-status { font-size: 11px; color: #7BE7A0; }
.ai-chat-header button { background: none; border: none; color: var(--white); font-size: 16px; }
.ai-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.ai-msg-bot { background: var(--cream); color: var(--charcoal); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg-user { background: var(--navy); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-msg-error { background: #FDECEA; color: var(--danger); align-self: flex-start; }
.ai-typing-indicator { display: flex; gap: 4px; padding: 0 16px 10px; }
.ai-typing-indicator span { width: 6px; height: 6px; background: var(--grey); border-radius: 50%; animation: aiTyping 1.2s infinite ease-in-out; }
.ai-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiTyping { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.ai-chat-input { display: flex; border-top: 1px solid var(--grey-light); padding: 10px; gap: 8px; }
.ai-chat-input input { flex: 1; border: 1px solid var(--grey-light); border-radius: 20px; padding: 10px 16px; font-size: 14px; }
.ai-chat-input button { background: var(--navy); color: var(--white); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; }

/* ---------- Toasts ---------- */
.toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--navy); color: var(--white); padding: 12px 22px; border-radius: 24px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-md); animation: toastIn 0.3s ease;
}
.toast.toast-error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Install / Admin Login ---------- */
.install-body { background: var(--navy); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.install-wrap { width: 100%; max-width: 440px; }
.install-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); text-align: center; }
.install-logo { height: 50px; margin: 0 auto 20px; }
.install-card h1 { font-size: 22px; margin-bottom: 6px; }
.install-sub { color: var(--grey); font-size: 14px; margin-bottom: 24px; }
.install-form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.install-back { margin-top: 18px; font-size: 13px; }
.install-back a { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .about-preview-inner, .product-detail-grid, .products-listing-grid,
  .cart-grid, .checkout-grid, .contact-grid, .admin-form-grid { grid-template-columns: 1fr !important; }
  .category-grid, .category-grid-lg, .product-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* The full nav + search + language switcher only really has room on wide
   desktop screens — on laptop/tablet widths they were squeezing against
   each other and wrapping nav labels onto 2-3 lines (worse in Bangla,
   where labels like "সচরাচর জিজ্ঞাসা" are much longer), breaking the
   header layout. Switch to the hamburger menu earlier to avoid that. */
@media (max-width: 1100px) {
  .main-nav, .header-search, .lang-switcher { display: none; }
  .mobile-menu-toggle { display: block; }
  .mobile-nav { display: flex; }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 32px; }
  .category-grid, .category-grid-lg, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  /* Cart items switch to a flexible wrap layout on mobile instead of the
     fixed 5-column grid used on desktop — the old rule used an absolutely
     positioned remove button with a hard-coded 300px margin, which pushed
     it off-screen on most phones. */
  .cart-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .cart-item img { width: 56px; height: 56px; }
  .cart-item-info { flex: 1 1 140px; }
  .cart-qty { order: 3; }
  .cart-item-subtotal { order: 4; margin-left: auto; text-align: right; }
  .cart-remove-btn { order: 5; position: static; margin-left: 0; }
  .floating-whatsapp { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .floating-ai { right: 74px; bottom: 16px; width: 50px; height: 50px; }
  .ai-chat-window { right: 10px; bottom: 78px; width: calc(100vw - 20px); }
}

@media (max-width: 480px) {
  .category-grid, .category-grid-lg, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { padding: 40px 0; }
  .hero-content h1 { font-size: 26px; }
  .install-card { padding: 28px 20px; }
}
