/* ==========================================================================
   WhatsApp Business Catalog Style - Store Theme
   Modern, Clean, Mobile-First Static Store Stylesheet
   ========================================================================== */

:root {
  --wa-teal-dark: #075E54;
  --wa-teal: #128C7E;
  --wa-green: #25D366;
  --wa-green-dark: #1EBE5D;
  --wa-light-bg: #F0F2F5;
  --wa-card-bg: #FFFFFF;
  --wa-border: #E2E8F0;
  --wa-text-primary: #111B21;
  --wa-text-secondary: #667781;
  --wa-text-muted: #8696A0;
  --wa-accent-soft: #DCF8C6;
  --wa-danger: #EA4335;
  --wa-shadow-sm: 0 1px 3px rgba(11, 20, 26, 0.08);
  --wa-shadow-md: 0 4px 12px rgba(11, 20, 26, 0.1);
  --wa-shadow-lg: 0 8px 24px rgba(11, 20, 26, 0.16);
  --wa-radius-sm: 8px;
  --wa-radius-md: 12px;
  --wa-radius-lg: 16px;
  --wa-radius-full: 9999px;
}

/* Global Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--wa-light-bg);
  color: var(--wa-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Limit max width on desktop for comfortable catalog viewing */
.app-container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Main Content Area */
.app-main {
  flex: 1 0 auto;
  padding-bottom: 90px; /* spacing for sticky cart bar */
}

.app-main-no-cart {
  flex: 1 0 auto;
  padding-bottom: 40px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.store-header {
  background-color: var(--wa-teal-dark);
  color: #FFFFFF;
  padding: 8px 10px;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: var(--wa-shadow-md);
}

.store-header a {
  color: #FFFFFF;
  text-decoration: none;
}

.store-header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.header-col-left,
.header-col-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-col-left {
  min-width: 36px;
  gap: 8px;
}

.header-col-right {
  justify-content: flex-end;
  gap: 6px;
}

/* Header Language Dropdown */
.header-lang-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header-lang-btn:hover,
.header-lang-btn:focus,
.header-lang-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.6);
}

.header-lang-dropdown .dropdown-menu {
  min-width: 120px;
  border-radius: var(--wa-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  padding: 4px 0;
  z-index: 1050;
}

.header-lang-dropdown .dropdown-item {
  padding: 6px 12px;
  color: var(--wa-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.header-lang-dropdown .dropdown-item:hover {
  background-color: #F0F2F5;
  color: var(--wa-teal-dark);
}

.header-lang-dropdown .dropdown-item.active,
.header-lang-dropdown .dropdown-item:active {
  background-color: var(--wa-teal);
  color: #FFFFFF;
}

.header-brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  flex: 1;
}

.header-brand-logo {
  width: 75px;
  height: 50px;
  border-radius: var(--wa-radius-sm);
  object-fit: cover;
  background: #000000;
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.page-header-title,
.store-name-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* In mobile view, hide header title completely as requested */
@media (max-width: 767.98px) {
  .page-header-title,
  .store-name-title {
    display: none !important;
  }
}

.header-brand-center .store-badge-subtitle {
  font-size: 0.76rem;
  color: #DCF8C6;
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.status-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--wa-green);
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.header-nav-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: background-color 0.15s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.header-nav-btn:hover, .header-nav-btn:active {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.cart-icon-btn {
  position: relative;
}

.cart-badge-pill {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--wa-green);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--wa-teal-dark);
}

/* Category Page Banner / Store Info Card */
.store-intro-bar {
  background-color: #F8F9FA;
  border-bottom: 1px solid var(--wa-border);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--wa-text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-intro-bar i {
  color: var(--wa-teal);
}

/* Section Title Bar */
.section-heading-bar {
  padding: 14px 16px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-heading-bar h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wa-text-primary);
  margin: 0;
}

.section-badge-counter {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wa-teal);
  background: #E8F5E9;
  padding: 3px 8px;
  border-radius: var(--wa-radius-full);
}

/* ==========================================================================
   Category & Subcategory Cards
   ========================================================================== */

.category-card {
  background-color: #FFFFFF;
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius-md);
  padding: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
}

.category-card:hover {
  color: inherit;
  transform: translateY(-2px);
  border-color: var(--wa-teal);
  box-shadow: var(--wa-shadow-md);
}

.category-card:active {
  transform: scale(0.98);
}

.category-img-box {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: var(--wa-radius-sm);
  overflow: hidden;
  background-color: #F8F9FA;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-info {
  flex: 1;
  min-width: 0;
}

.category-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--wa-text-primary);
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.category-desc {
  font-size: 0.8rem;
  color: var(--wa-text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-arrow {
  color: var(--wa-text-muted);
  font-size: 1.1rem;
}

/* Breadcrumb / Subcategory Header */
.catalog-breadcrumb {
  background-color: #E8F5E9;
  border-bottom: 1px solid #C8E6C9;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wa-teal-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Product Grid & Product Cards
   Requirements:
   - Mobile: col-6 (2 products per row)
   - Desktop: col-lg-4 (3 products per row)
   ========================================================================== */

.product-card {
  background-color: #FFFFFF;
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.product-card:hover {
  border-color: var(--wa-teal);
  box-shadow: var(--wa-shadow-sm);
}

.product-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--wa-radius-sm);
  background: #F8F9FA;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 8px;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: transform 0.2s ease;
}

.product-card:hover .product-image-container img {
  transform: scale(1.03);
}

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

.product-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--wa-text-primary);
  margin-bottom: 6px;
  height: 2.5em; /* roughly 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  margin-top: auto;
  margin-bottom: 8px;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wa-teal-dark);
}

.product-mrp-cut {
  font-size: 0.75rem;
  color: var(--wa-text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}

/* Quantity Controls in Product Card */
.qty-controller-wrapper {
  margin-top: auto;
}

.btn-add-product {
  width: 100%;
  height: 36px;
  background-color: #FFFFFF;
  color: var(--wa-teal-dark);
  border: 1.5px solid var(--wa-teal);
  border-radius: var(--wa-radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-add-product:hover, .btn-add-product:active {
  background-color: var(--wa-teal);
  color: #FFFFFF;
}

.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 36px;
  background-color: var(--wa-accent-soft);
  border: 1.5px solid var(--wa-green-dark);
  border-radius: var(--wa-radius-sm);
  padding: 2px;
}

.qty-btn {
  width: 32px;
  height: 30px;
  background: #FFFFFF;
  border: none;
  border-radius: 6px;
  color: var(--wa-teal-dark);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: transform 0.1s ease, background-color 0.1s ease;
  touch-action: manipulation;
}

.qty-btn:active {
  transform: scale(0.9);
  background-color: #E2E8F0;
}

.qty-count-display {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--wa-teal-dark);
  text-align: center;
  flex: 1;
}

/* ==========================================================================
   Sticky Bottom View Cart Bar
   Prominent, responsive, floating bottom action
   ========================================================================== */

.sticky-bottom-cart-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 12px 16px;
  pointer-events: none; /* allows clicking through edges */
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
}

.sticky-bottom-cart-wrapper.cart-hidden {
  transform: translateY(120%);
  opacity: 0;
}

.sticky-cart-bar {
  max-width: 868px; /* matches app-container minus padding */
  margin: 0 auto;
  background: linear-gradient(135deg, var(--wa-teal-dark) 0%, var(--wa-teal) 100%);
  color: #FFFFFF;
  border-radius: var(--wa-radius-md);
  padding: 12px 16px;
  box-shadow: var(--wa-shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.cart-bar-items-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #DCF8C6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-bar-total-amount {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
}

.cart-bar-action-btn {
  background-color: var(--wa-green);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: var(--wa-radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.cart-bar-action-btn:hover {
  background-color: var(--wa-green-dark);
  color: #FFFFFF;
}

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

/* ==========================================================================
   Cart Page (cart.html)
   ========================================================================== */

.cart-item-card {
  background-color: #FFFFFF;
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--wa-shadow-sm);
}

.cart-item-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.cart-item-img {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: var(--wa-radius-sm);
  background-color: #F8F9FA;
  padding: 4px;
  object-fit: contain;
  border: 1px solid #ECEFF1;
  flex-shrink: 0;
}

.cart-item-title-block {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wa-text-primary);
  margin-bottom: 2px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.cart-item-unit-price {
  font-size: 0.82rem;
  color: var(--wa-text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.cart-item-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 8px;
  border-top: 1px dashed var(--wa-border);
}

.cart-item-subtotal-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cart-item-subtotal-label {
  font-size: 0.82rem;
  color: var(--wa-text-secondary);
}

.cart-item-subtotal {
  font-size: 1rem;
  font-weight: 800;
  color: var(--wa-teal-dark);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #F0F2F5;
  border-radius: var(--wa-radius-sm);
  padding: 3px 6px;
}

.cart-stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: #FFFFFF;
  color: var(--wa-teal-dark);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  font-size: 1.05rem;
  line-height: 1;
}

.cart-stepper-btn:hover {
  background-color: #E2E8F0;
}

.cart-stepper-qty {
  font-size: 0.92rem;
  font-weight: 800;
  min-width: 22px;
  text-align: center;
  color: var(--wa-text-primary);
}

.btn-remove-item {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #FFCDD2;
  background-color: #FFEBEE;
  color: #D32F2F;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.95rem;
}

.btn-remove-item:hover {
  background-color: #FFCDD2;
  color: #B71C1C;
}

/* Order Summary Box */
.order-summary-card {
  background-color: #FFFFFF;
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius-md);
  padding: 16px;
  margin-top: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--wa-text-secondary);
  margin-bottom: 8px;
}

.summary-row.total-row {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--wa-text-primary);
  border-top: 1px dashed var(--wa-border);
  padding-top: 12px;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Empty Cart State */
.empty-cart-container {
  padding: 60px 20px;
  text-align: center;
}

.empty-cart-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #E8F5E9;
  color: var(--wa-teal);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

/* ==========================================================================
   Place Order Form (place-order.html)
   ========================================================================== */

.checkout-card {
  background-color: #FFFFFF;
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius-md);
  padding: 20px;
  box-shadow: var(--wa-shadow-sm);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wa-text-primary);
  margin-bottom: 4px;
}

.form-control, .form-select {
  border-radius: var(--wa-radius-sm);
  border: 1px solid var(--wa-border);
  padding: 10px 12px;
  font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--wa-teal);
  box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.18);
}

/* Order overview pill in checkout */
.checkout-summary-pill {
  background-color: #E8F5E9;
  border: 1px solid #C8E6C9;
  border-radius: var(--wa-radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-summary-pill .items-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wa-teal-dark);
}

.checkout-summary-pill .amount-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--wa-teal-dark);
}

/* ==========================================================================
   Order Mobile Number Modal
   ========================================================================== */
#orderMobileModal .modal-header {
  padding: 16px 20px 8px 20px;
}

#orderMobileModal .modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  color: var(--wa-text-primary);
}

/* Reduced font size on mobile view so modal title stays on a single line */
@media (max-width: 767.98px) {
  #orderMobileModal .modal-header {
    padding: 14px 16px 6px 16px;
  }

  #orderMobileModal .modal-title {
    font-size: 1rem !important;
    white-space: nowrap;
    line-height: 1.2;
  }
}

@media (max-width: 400px) {
  #orderMobileModal .modal-title {
    font-size: 0.92rem !important;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Thank You Page (thank-you.html)
   ========================================================================== */

.thank-you-box {
  padding: 40px 0px;
  text-align: center;
}

.success-check-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #FFFFFF;
  font-size: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.thank-you-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--wa-text-primary);
  margin-bottom: 8px;
}

.thank-you-subtitle {
  font-size: 0.95rem;
  color: var(--wa-text-secondary);
  margin-bottom: 24px;
}

.order-receipt-card {
  background-color: #F8F9FA;
  border: 1px solid var(--wa-border);
  border-radius: var(--wa-radius-md);
  padding: 16px;
  text-align: left;
  margin: 0 auto 24px auto;
  max-width: 480px;
}

.order-receipt-card .receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.order-receipt-card .receipt-row span:last-child {
  text-align: right;
  word-break: break-word;
}

.order-receipt-card .receipt-row:last-child {
  margin-bottom: 0;
  border-top: 1px dashed var(--wa-border);
  padding-top: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.whatsapp-notice-banner {
  background-color: #DCF8C6;
  border: 1px solid #BCEBA5;
  border-radius: var(--wa-radius-sm);
  padding: 12px;
  font-size: 0.85rem;
  color: #075E54;
  margin: 0 auto 24px auto;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

/* Primary Action Buttons */
.btn-primary-wa {
  background-color: var(--wa-teal);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--wa-radius-sm);
  transition: background-color 0.15s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary-wa:hover {
  background-color: var(--wa-teal-dark);
  color: #FFFFFF;
}

.btn-primary-wa:active {
  transform: scale(0.98);
}

.btn-green-wa {
  background-color: var(--wa-green);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--wa-radius-sm);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  transition: background-color 0.15s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-green-wa:hover {
  background-color: var(--wa-green-dark);
  color: #FFFFFF;
}

.btn-green-wa:active {
  transform: scale(0.98);
}

/* Footer / Disclaimer */
.store-footer {
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
  color: var(--wa-text-muted);
  border-top: 1px solid var(--wa-border);
  background-color: #FAFAFA;
}

.store-footer a {
  color: var(--wa-teal);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.store-footer a:hover {
  color: var(--wa-teal-dark);
  text-decoration: underline;
}

.header-brand-link {
  display: inline-flex;
}

.out-of-stock-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background-color: var(--wa-danger);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--wa-radius-full);
  letter-spacing: 0.02em;
}

.product-unit-text {
  display: block;
  font-size: 0.72rem;
  color: var(--wa-text-muted);
  margin-bottom: 2px;
}

.product-loader {
  text-align: center;
  padding: 18px 0;
  color: var(--wa-text-secondary);
  font-size: 0.85rem;
}

.product-sentinel {
  height: 1px;
}

.empty-state-box {
  text-align: center;
  padding: 40px 16px;
  color: var(--wa-text-secondary);
}

.empty-state-box i {
  font-size: 2.4rem;
  color: var(--wa-text-muted);
  display: block;
  margin-bottom: 8px;
}

.cart-out-of-stock {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--wa-danger);
}

.verified-customer-box {
  background-color: var(--wa-accent-soft);
  border: 1px solid #A7E3A0;
  border-radius: var(--wa-radius-sm);
  padding: 8px 12px;
  color: #0B6B35;
}

.verified-customer-box .customer-name {
  font-weight: 800;
  font-size: 1rem;
  color: #0B6B35;
}

.cart-loading {
  text-align: center;
  padding: 30px 0;
  color: var(--wa-text-secondary);
}

.btn-green-wa:disabled,
.btn-green-wa.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.product-name {
  line-height: 1.5;
  height: calc(3em + 4px);
  padding: 2px 0;
}

.page-header-title,
.store-name-title {
  line-height: 1.45;
  padding: 2px 0;
}

.category-name {
  line-height: 1.45;
}


.product-gallery-trigger {
  cursor: zoom-in;
}

.product-photo-count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  background: rgba(17, 27, 33, 0.7);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--wa-radius-full);
}

.gallery-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--wa-radius-md);
  background: #F8F9FA;
  touch-action: pan-y;
}

.gallery-track {
  display: flex;
  transition: transform 0.4s ease;
}

.gallery-track video {
  flex: 0 0 100%;
  width: 100%;
  height: min(70vh, 520px);
  object-fit: contain;
  background: #000000;
}

.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  height: min(70vh, 520px);
  object-fit: contain;
  padding: 8px;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--wa-teal-dark);
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wa-shadow-md);
  padding: 0 0 4px;
  z-index: 2;
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border: none;
  padding: 0;
  border-radius: 50%;
  background: rgba(7, 94, 84, 0.25);
  transition: width 0.2s ease, background 0.2s ease;
}

.gallery-dot.active {
  width: 20px;
  border-radius: 4px;
  background: var(--wa-teal-dark);
}
