/* AuraStore — Shopify Minimalist White Theme */
:root {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --brand-black: #09090b;
  --brand-accent: #2563eb;
  --brand-sale: #dc2626;
  --brand-green: #16a34a;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-drawer: -4px 0 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 1. Announcement Bar */
.announcement-bar {
  background-color: var(--brand-black);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* 2. Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand-black);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  font-weight: 600;
}

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

.btn-icon-action {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  padding: 6px;
}

.cart-count-bubble {
  position: absolute;
  top: -2px;
  right: -4px;
  background-color: var(--brand-black);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-admin-portal {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-admin-portal:hover {
  background-color: var(--border-subtle);
}

/* 3. Hero Section */
.store-hero {
  max-width: 1240px;
  margin: 32px auto 24px;
  padding: 0 24px;
}

.hero-banner-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 50%, #e0f2fe 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero-tag {
  background: #ffffff;
  color: var(--brand-black);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-light);
}

.hero-banner-card h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-black);
  max-width: 700px;
  letter-spacing: -1px;
}

.hero-banner-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 580px;
}

/* 4. Filter Toolbar */
.store-toolbar {
  max-width: 1240px;
  margin: 0 auto 32px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn.active, .pill-btn:hover {
  background-color: var(--brand-black);
  color: #ffffff;
  border-color: var(--brand-black);
}

/* 5. Products Grid */
.products-container {
  max-width: 1240px;
  margin: 0 auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

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

.product-thumb-box {
  width: 100%;
  height: 260px;
  background-color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.product-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb-box img {
  transform: scale(1.04);
}

.product-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 8px;
  line-height: 1.35;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 16px;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-black);
}

.original-price {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.btn-add-to-cart {
  width: 100%;
  background-color: var(--brand-black);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.btn-add-to-cart:hover {
  background-color: #27272a;
}

/* 6. Shopify Slide-Out Cart Drawer */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 480px;
  max-width: 92vw;
  height: 100vh;
  background: #ffffff;
  z-index: 210;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-drawer);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title-text {
  font-size: 1.15rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-black);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-remove {
  color: var(--brand-sale);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
}

.cart-footer-box {
  padding: 24px;
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cart-summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-black);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

.btn-proceed-checkout {
  width: 100%;
  background-color: var(--brand-black);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  transition: opacity 0.15s ease;
}

.btn-proceed-checkout:hover {
  opacity: 0.9;
}

/* 7. Checkout Modal with Address & Razorpay/UPI */
.checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-modal {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.checkout-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.checkout-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-black);
}

.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.payment-card-opt {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}

.payment-card-opt.selected {
  border-color: var(--brand-black);
  background: #f8fafc;
}

.btn-place-order {
  background-color: var(--brand-black);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 8. Advanced 3D Thermal Receipt Print Animation (Pixel-Perfect from preview.html & Reference) */
.printer-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.printer-scene {
  width: min(100%, 390px);
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
  margin: auto;
}

/* 3D Hardware Thermal Printer */
.printer {
  width: 100%;
  height: 155px;
  position: relative;
  z-index: 5;
  border: 1px solid #415069;
  border-radius: 26px 26px 16px 16px;
  background: linear-gradient(
    145deg,
    #596a80,
    #29374b 25%,
    #1b293c 65%,
    #101a2a
  );
  box-shadow:
    0 25px 40px rgba(0, 0, 0, 0.5),
    inset 0 3px 4px rgba(255, 255, 255, 0.17),
    inset 0 -12px 20px rgba(0, 0, 0, 0.45);
}

.printer::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  height: 44px;
  border-radius: 18px;
  background: linear-gradient(rgba(255, 255, 255, 0.08), transparent);
}

.printer-brand {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(216, 229, 248, 0.65);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.led {
  position: absolute;
  top: 32px;
  left: 26px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #37e6ae;
  box-shadow: 0 0 14px #37e6ae;
  animation: ledPulse 1.5s infinite alternate;
}

.printer.busy .led {
  background: #ffd166;
  box-shadow: 0 0 14px #ffd166;
}

@keyframes ledPulse {
  to { opacity: 0.4; }
}

.hardware-button {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #7d8ea6, #29384d);
  border: 1px solid #7d8ea6;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hardware-button:active {
  transform: translateY(2px);
}

.printer-display {
  position: absolute;
  left: 26px;
  top: 62px;
  padding: 4px 8px;
  background: #071321;
  color: #7eeac7;
  border: 1px solid #34445b;
  border-radius: 5px;
  font: 8px 'IBM Plex Mono', monospace;
  letter-spacing: 1px;
}

.printer-vents {
  position: absolute;
  right: 26px;
  bottom: 22px;
  width: 64px;
  height: 5px;
  background: repeating-linear-gradient(
    90deg, #070e19 0 3px, transparent 3px 7px
  );
}

.printer-slot {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 14px;
  border-radius: 8px;
  background: #02060b;
  border: 1px solid #080d15;
  box-shadow: inset 0 5px 9px #000;
}

/* Mechanical Paper Sliding Window */
.paper-window {
  position: relative;
  width: 295px;
  height: 0;
  margin-top: -5px;
  overflow: hidden;
  z-index: 3;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.35));
  transition: height 2.6s linear;
}

.paper-window.printing {
  height: var(--paper-height, 530px);
}

.receipt-paper {
  width: 100%;
  min-height: 480px;
  padding: 24px 20px 32px;
  position: relative;
  color: #1e293b;
  background: #fffefa;
  font: 9.5px 'IBM Plex Mono', monospace, -apple-system, sans-serif;
  transform: translateY(-100%);
  transition: transform 2.6s linear;
  box-sizing: border-box;
}

.receipt-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 9px;
  background:
    linear-gradient(135deg, transparent 50%, #fffefa 50%) 0 0/12px 12px,
    linear-gradient(225deg, transparent 50%, #fffefa 50%) 0 0/12px 12px;
}

.paper-window.printing .receipt-paper {
  transform: translateY(0);
}

.paper-window.tearing {
  overflow: visible;
  transition: transform 0.8s ease, opacity 0.8s ease;
  transform: translate(15px, 530px) rotate(9deg);
  opacity: 0;
}

/* Inside Receipt Paper Elements */
.receipt-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
}

.receipt-company {
  font: 800 13px 'DM Sans', sans-serif;
  color: #0f172a;
}

.receipt-kind {
  margin-top: 3px;
  color: #64748b;
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.receipt-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 2px solid #2563eb;
  color: #2563eb;
  border-radius: 7px;
  font: bold 16px 'DM Sans', sans-serif;
}

.receipt-client {
  margin-top: 12px;
  color: #64748b;
  font-size: 8px;
  line-height: 1.4;
}

.receipt-client strong {
  display: block;
  color: #0f172a;
  margin-top: 2px;
  font-size: 9.5px;
}

.receipt-amount {
  position: relative;
  margin: 18px 0;
  text-align: center;
}

.receipt-total {
  font: 800 28px 'DM Sans', sans-serif;
  color: #09090b;
}

.receipt-date {
  color: #64748b;
  font-size: 7.5px;
  margin-top: 2px;
}

.paid-stamp {
  position: absolute;
  top: 4px;
  right: 0;
  padding: 3px 8px;
  border: 1.5px solid #16a34a;
  border-radius: 4px;
  color: #16a34a;
  font: 800 10px 'DM Sans', sans-serif;
  transform: rotate(-12deg);
  letter-spacing: 0.5px;
}

.receipt-items {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-top: 1px dashed #cbd5e1;
  border-bottom: 1px dashed #cbd5e1;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 8.5px;
}

.receipt-totals {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: #64748b;
  font-size: 8.5px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.total-row.discount {
  color: #ef4444;
}

.grand-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  color: #09090b;
  font-weight: 800;
  font-size: 10.5px;
}

.thanks {
  margin: 14px 0 10px;
  text-align: center;
  color: #64748b;
  font-size: 7.5px;
  line-height: 1.5;
}

.barcode {
  width: 82%;
  height: 32px;
  margin: auto;
  background: repeating-linear-gradient(
    90deg,
    #111 0 2px,
    transparent 2px 4px,
    #111 4px 6px,
    transparent 6px 9px
  );
}

.barcode-label {
  text-align: center;
  color: #64748b;
  font-size: 7.5px;
  margin-top: 4px;
  letter-spacing: 1px;
}

.shadow {
  width: 80%;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(10px);
  margin-top: -6px;
}

/* Modern Bottom Actions Card */
.receipt-bottom-actions-card {
  width: 295px;
  background: #ffffff;
  padding: 16px 14px;
  margin-top: 16px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  text-align: center;
  z-index: 10;
}

.receipt-buttons-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-receipt-action {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-receipt-action:hover:not(:disabled) {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.btn-receipt-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 9. Floating Live Chat Widget */
.floating-chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--brand-black);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 150;
  transition: transform 0.2s ease;
}

.floating-chat-trigger:hover {
  transform: scale(1.06);
}

.chat-popup-box {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-width: 90vw;
  height: 480px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 160;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-popup-box.open {
  display: flex;
}

.chat-header {
  background: var(--brand-black);
  color: #ffffff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-msgs-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-bubble.agent {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  align-self: flex-start;
}

.chat-bubble.customer {
  background: var(--brand-black);
  color: #ffffff;
  align-self: flex-end;
}

.chat-input-bar {
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}

.chat-input-bar input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.85rem;
}

.chat-input-bar input:focus {
  outline: none;
  border-color: var(--brand-black);
}

.chat-send-btn {
  background: var(--brand-black);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

/* 10. Footer */
.store-footer {
  border-top: 1px solid var(--border-light);
  background-color: #ffffff;
  padding: 48px 36px 32px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-copy {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

/* WhatsApp Quick Enquiry Buttons */
.chat-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #ffffff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35);
}

.chat-whatsapp-btn:hover {
  background: #1eb956;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
}

.chat-header-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #25d366;
  color: #ffffff !important;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.chat-header-wa-btn:hover {
  background: #1eb956;
}

/* Product Card Actions Row (Add to Bag + WhatsApp Enquiry) */
.product-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.product-actions-row .btn-add-to-cart {
  flex: 1;
  margin-top: 0;
}

.btn-whatsapp-enquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-enquire:hover {
  background: #1eb956;
  transform: scale(1.05);
}
