/* YOGA PYRO PARK - FESTIVE MODERN STYLES */
@import url('https://fonts.googleapis.com/css2?family=Hind+Madurai:wght@400;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #070913;
  --bg-card: #0f152a;
  --bg-card-hover: #16203c;
  --primary-gold: #ffb703;
  --primary-gold-glow: rgba(255, 183, 3, 0.3);
  --accent-red: #e63946;
  --accent-green: #2a9d8f;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-gold: rgba(255, 183, 3, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-main: 'Outfit', 'Hind Madurai', -apple-system, sans-serif;
  --shadow-glow: 0 0 25px rgba(255, 183, 3, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  padding-bottom: 110px; /* Space for sticky mobile toolbar */
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Banner & Poster Header */
.poster-header {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 21, 42, 0.8) 0%, var(--bg-dark) 100%);
  border-bottom: 2px solid var(--border-gold);
  margin-bottom: 16px;
  overflow: hidden;
}

.banner-wrapper {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-info-bar {
  background: rgba(15, 21, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  margin: -30px 12px 16px 12px;
  padding: 16px;
  position: relative;
  z-index: 5;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.store-title-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37, #ffd700);
  color: #070913;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.store-name {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--primary-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.store-subtitle {
  color: var(--primary-gold);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.store-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--primary-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.phone-pill:hover {
  background: var(--primary-gold);
  color: #070913;
}

.header-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-header-action {
  background: linear-gradient(135deg, #2a9d8f, #21867a);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-header-action:active {
  transform: scale(0.97);
}

.btn-header-action.btn-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  box-shadow: none;
}

/* Sticky Controls & Categories */
.controls-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 19, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  margin-bottom: 10px;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  padding: 12px 16px 12px 42px;
  border-radius: 30px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 15px var(--primary-gold-glow);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-gold);
  font-size: 1.1rem;
}

.categories-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none; /* Firefox */
}

.categories-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.cat-pill {
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.cat-pill.active {
  background: var(--primary-gold);
  color: #070913;
  border-color: var(--primary-gold);
  box-shadow: 0 2px 10px var(--primary-gold-glow);
}

.cat-pill .cat-count {
  background: rgba(255,255,255,0.15);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.cat-pill.active .cat-count {
  background: rgba(0,0,0,0.15);
}

/* Category Section Header */
.category-title-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.category-title-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-title-header .tamil-cat-name {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

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

/* Product Item Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}

.product-card.has-qty {
  border-color: var(--primary-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.1);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sno-badge {
  background: rgba(255, 183, 3, 0.15);
  color: var(--primary-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.pcs-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.unit-tag {
  color: var(--accent-green);
  font-size: 0.8rem;
  font-weight: 600;
}

.product-name-en {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.25;
}

.product-name-ta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-mrp {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-gold);
}

.discount-badge {
  background: rgba(42, 157, 143, 0.2);
  color: #2a9d8f;
  border: 1px solid rgba(42, 157, 143, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.discount-badge.gift-badge {
  background: rgba(255, 183, 3, 0.15);
  color: var(--primary-gold);
  border: 1px solid var(--border-gold);
}

.quantity-controls {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2px;
}

.product-card.has-qty .quantity-controls {
  border-color: var(--primary-gold);
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.qty-btn:active {
  transform: scale(0.9);
}

.qty-btn.plus {
  background: var(--primary-gold);
  color: #070913;
}

.qty-input {
  width: 38px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

/* Sticky Bottom Mobile Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(15, 21, 42, 0.95);
  backdrop-filter: blur(16px);
  border-top: 2px solid var(--primary-gold);
  padding: 10px 16px 14px 16px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.7);
}

.bottom-bar-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary-text {
  display: flex;
  flex-direction: column;
}

.cart-item-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cart-grand-total {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-gold);
  line-height: 1;
}

.bottom-bar-actions {
  display: flex;
  gap: 8px;
}

.btn-whatsapp-order {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-view-cart {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* Modals & Cart Bottom Sheet */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

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

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
}

@media (min-width: 640px) {
  .modal-card {
    border-radius: var(--radius-lg);
    transform: translateY(20px);
  }
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-gold);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary-gold);
  font-size: 0.95rem;
}

.customer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-top: 12px;
}

.form-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-gold);
}

.modal-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.empty-cart-state {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-muted);
}

.empty-cart-state .icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

/* Quick Notice Banner */
.notice-banner {
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.2), rgba(255, 183, 3, 0.2));
  border: 1px solid rgba(255, 183, 3, 0.3);
  color: var(--primary-gold);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  text-align: center;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Printable Price List View */
@media print {
  body {
    background: white !important;
    color: black !important;
    padding-bottom: 0 !important;
  }

  .poster-header, .controls-wrapper, .bottom-bar, .modal-overlay, .btn-header-action {
    display: none !important;
  }

  .print-only-header {
    display: block !important;
    text-align: center;
    margin-bottom: 20px;
  }

  .products-grid {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .product-card {
    display: table-row !important;
    background: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
  }
}

.print-only-header {
  display: none;
}
