/* ==========================================================
   SIVAKASI CRACKERS - MODERN E-COMMERCE STYLESHEET
   Accurate recreation of the provided UI mockup
   ========================================================== */

:root {
  --primary-red: #e52b2b;
  --primary-red-hover: #c91f1f;
  --primary-red-light: #fef2f2;
  --primary-red-border: #fecaca;
  
  --gold-accent: #f59e0b;
  --gold-light: #fef8ee;
  --gold-border: #fed7aa;
  
  --whatsapp-green: #25d366;
  --whatsapp-green-dark: #128c7e;
  --discount-green: #16a34a;

  --text-dark: #111827;
  --text-medium: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  --bg-page: #fbfbfd;
  --bg-card: #ffffff;
  --border-light: #e5e7eb;
  --border-table: #edf0f3;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.04);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  outline: none;
}

input, textarea {
  font-family: inherit;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================
   TOP ANNOUNCEMENT BAR
   ========================================================== */
.top-announcement {
  background: linear-gradient(90deg, #780206 0%, #061161 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-svg-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-shrink: 0;
}

.flame-icon {
  color: #fde047;
}

.support-contact {
  color: #fde047;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================
   SITE HEADER / NAVBAR
   ========================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.header-main-row {
  display: contents;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  border: 1.5px solid #fed7aa;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(229, 43, 43, 0.25);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 440px;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(229, 43, 43, 0.12);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--text-dark);
}

.search-box input::placeholder {
  color: #9ca3af;
}

.search-box button {
  background-color: var(--primary-red);
  color: #ffffff;
  width: 44px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease;
}

.search-box button:hover {
  background-color: var(--primary-red-hover);
}

/* Header Right Info Pills */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-info-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-medium);
  font-size: 11px;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.header-info-pill:hover {
  transform: translateY(-1px);
}

.info-icon {
  color: var(--text-medium);
  display: flex;
  align-items: center;
}

.whatsapp-green {
  color: var(--whatsapp-green);
}

.info-text span {
  display: block;
  color: var(--text-muted);
}

.info-text strong {
  display: block;
  font-size: 12px;
  color: var(--text-dark);
}

/* Header Round Icons */
.icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  position: relative;
  transition: all 0.2s ease;
  background-color: #fff;
}

.icon-circle-btn:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.cart-trigger-btn {
  border-color: #fecaca;
  color: var(--primary-red);
}

.cart-badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* ==========================================================
   HERO BANNER
   ========================================================== */
.hero-banner {
  position: relative;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #2b030b;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.92);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(30, 2, 8, 0.45) 0%, rgba(15, 0, 4, 0.75) 100%);
}

.hero-content-box {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 34px 20px;
}

.diwali-badge {
  display: inline-block;
  color: #ffde59;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.3px;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 13.5px;
  color: #fef08a;
  opacity: 0.95;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ==========================================================
   FEATURE RIBBON (BENEFITS BAR)
   ========================================================== */
.feature-ribbon {
  background-color: var(--gold-light);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: 12px 0;
}

.feature-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.red-icon {
  color: var(--primary-red);
}

.green-icon {
  color: var(--whatsapp-green);
}

.feature-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.feature-label strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.feature-label span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================
   CATEGORY TABS
   ========================================================== */
.category-filter-wrap {
  margin-top: 20px;
  margin-bottom: 14px;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.cat-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-medium);
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.cat-pill:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.cat-pill.active {
  background-color: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
  box-shadow: 0 2px 8px rgba(229, 43, 43, 0.25);
}

/* ==========================================================
   MAIN LAYOUT (2-COLUMN: PRODUCTS TABLE + STICKY CART)
   ========================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}

/* ==========================================================
   PRODUCTS TABLE SECTION
   ========================================================== */
.products-section {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.table-responsive-wrapper {
  overflow-x: auto;
}

.product-price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.product-price-table thead {
  background-color: #f9fafb;
  border-bottom: 1px solid var(--border-light);
}

.product-price-table th {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: capitalize;
}

.product-price-table th.col-num {
  width: 44px;
  text-align: center;
}

.product-price-table th.col-price {
  width: 140px;
}

.product-price-table th.col-qty {
  width: 180px;
}

/* Table Rows */
.product-price-table tbody tr {
  border-bottom: 1px solid var(--border-table);
  transition: background-color 0.15s ease;
}

.product-price-table tbody tr:hover {
  background-color: #fffaf9;
}

.product-price-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

.col-num-cell {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Product Info Cell */
.product-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-thumb {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  border: 1px solid #f1f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.product-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.product-price-table tr:hover .product-thumb img {
  transform: scale(1.06);
}

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

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.product-spec {
  font-size: 12px;
  color: var(--text-muted);
}

.product-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 3px;
  width: fit-content;
  letter-spacing: 0.2px;
}

/* Price Cell */
.price-cell {
  white-space: nowrap;
}

.price-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-red);
}

.price-unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Quantity Stepper Cell */
.qty-cell {
  white-space: nowrap;
}

.qty-stepper-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #f87171;
  border-radius: 4px;
  background-color: #ffffff;
  overflow: hidden;
  height: 28px;
}

.stepper-btn {
  width: 26px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-minus {
  background-color: #ffffff;
  color: var(--primary-red);
  border-right: 1px solid #fca5a5;
}

.btn-minus:hover {
  background-color: #fee2e2;
}

.btn-minus:disabled,
.btn-minus.disabled {
  color: #fca5a5;
  background-color: #ffffff;
  cursor: default;
}

.qty-input {
  width: 38px;
  height: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  border: none;
  background-color: transparent;
  padding: 0;
}

/* Remove number spin arrows */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input[type=number] {
  -moz-appearance: textfield;
}

.btn-plus {
  background-color: var(--primary-red);
  color: #ffffff;
  border-left: 1px solid #f87171;
}

.btn-plus:hover {
  background-color: var(--primary-red-hover);
}

.unit-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Highlight row when qty > 0 */
.product-price-table tbody tr.has-qty {
  background-color: #fffbfb;
}

/* No Results Found Box */
.no-results-box {
  padding: 48px 20px;
  text-align: center;
}

.no-results-box svg {
  margin-bottom: 12px;
}

.no-results-box h3 {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.no-results-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-reset-search {
  background-color: var(--primary-red);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-reset-search:hover {
  background-color: var(--primary-red-hover);
}

/* ==========================================================
   RIGHT STICKY CART SIDEBAR
   ========================================================== */
.cart-sidebar {
  position: sticky;
  top: 86px;
}

.cart-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px;
}

/* Cart Header */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-table);
  gap: 12px;
}

.cart-header-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.cart-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.btn-clear-cart {
  color: var(--primary-red);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.btn-clear-cart:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.btn-close-cart-drawer {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fee2e2;
  color: var(--primary-red);
  font-size: 16px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-close-cart-drawer:hover {
  background-color: #fecaca;
}

.cart-backdrop {
  display: none;
}

/* Cart Items List */
.cart-items-list {
  max-height: 460px;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: thin;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cart-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: #fff;
  border: 1px solid #f1f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  flex-shrink: 0;
}

.cart-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

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

.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.cart-item-spec {
  font-size: 11px;
  color: var(--text-muted);
}

.cart-item-calc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.cart-item-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-dark);
  text-align: right;
  white-space: nowrap;
}

.cart-item-delete {
  color: var(--primary-red);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.15s;
}

.cart-item-delete:hover {
  background-color: #fee2e2;
}

/* Empty Cart State */
.cart-empty-state {
  text-align: center;
  padding: 30px 10px;
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.empty-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.empty-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

/* Coupon Section */
.coupon-section {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border-table);
}

.coupon-input-group {
  display: flex;
  gap: 8px;
}

.coupon-input-group input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--text-dark);
  text-transform: uppercase;
  transition: border-color 0.2s;
}

.coupon-input-group input:focus {
  border-color: var(--primary-red);
}

.btn-apply-coupon {
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color 0.18s;
}

.btn-apply-coupon:hover {
  background-color: var(--primary-red-hover);
}

.coupon-message {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.coupon-message.success {
  color: var(--discount-green);
}

.coupon-message.error {
  color: var(--primary-red);
}

.quick-coupon-hints {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hint-code {
  color: var(--primary-red);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Billing Summary */
.billing-summary {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-table);
}

.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 7px;
}

.bill-label {
  color: var(--text-medium);
}

.bill-value {
  font-weight: 700;
  color: var(--text-dark);
}

.green-text {
  color: var(--discount-green);
}

.bill-divider {
  height: 1px;
  background-color: var(--border-table);
  margin: 10px 0;
}

.total-row {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 0;
}

.total-red {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-red);
}

/* Cart Action Buttons */
.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn-checkout {
  width: 100%;
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(229, 43, 43, 0.28);
  transition: all 0.2s ease;
}

.btn-checkout:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(229, 43, 43, 0.35);
}

.btn-whatsapp-order {
  width: 100%;
  background-color: #ffffff;
  color: var(--whatsapp-green-dark);
  border: 1.5px solid var(--whatsapp-green);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-whatsapp-order:hover {
  background-color: #f0fdf4;
  border-color: var(--whatsapp-green-dark);
  color: var(--whatsapp-green-dark);
}

/* Free Delivery Badge Card */
.free-delivery-badge {
  background-color: var(--primary-red-light);
  border: 1px dashed var(--primary-red-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.delivery-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-badge-text h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1.2;
}

.delivery-badge-text p {
  font-size: 11px;
  color: var(--text-medium);
  margin-top: 2px;
  line-height: 1.2;
}

/* ==========================================================
   BOTTOM TRUST FOOTER BAR (6 BADGES)
   ========================================================== */
.trust-footer-bar {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
  margin-top: 20px;
}

.trust-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.trust-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-info {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.trust-info strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.trust-info span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================
   SITE FOOTER
   ========================================================== */
.site-footer {
  background-color: #111827;
  color: #d1d5db;
  padding-top: 48px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid #fed7aa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-logo .brand-name {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 13px;
  color: #9ca3af;
  margin: 12px 0;
  line-height: 1.6;
}

.licence-note {
  font-size: 11px;
  color: #f59e0b;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  font-size: 13px;
  color: #9ca3af;
  transition: color 0.18s;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.store-address-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.store-address-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #9ca3af;
}

.footer-address-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom-bar {
  background-color: #0b0f19;
  border-top: 1px solid #1f2937;
  padding: 16px 0;
  font-size: 12px;
  color: #6b7280;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.payment-methods span {
  color: #9ca3af;
}

/* ==========================================================
   MODAL / POPUP
   ========================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-backdrop.show .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  background-color: #fff9f9;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-red);
}

.btn-close-modal {
  font-size: 18px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.btn-close-modal:hover {
  background-color: #fee2e2;
  color: var(--primary-red);
}

.checkout-form {
  padding: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-dark);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(229, 43, 43, 0.12);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.radio-label:hover {
  background-color: #f9fafb;
}

.modal-order-summary {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.mos-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-dark);
}

.mos-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-red);
}

.mos-info {
  display: block;
  font-size: 11.5px;
  color: var(--discount-green);
  font-weight: 600;
  margin-top: 3px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-confirm-order {
  width: 100%;
  background-color: var(--primary-red);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  transition: background-color 0.2s;
}

.btn-confirm-order:hover {
  background-color: var(--primary-red-hover);
}

.btn-modal-wa {
  width: 100%;
  background-color: #25d366;
  color: #fff;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s;
}

.btn-modal-wa:hover {
  background-color: #1eb857;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #111827;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 250;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 24px;
}

.toast-content h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fde047;
}

.toast-content p {
  font-size: 12px;
  color: #e5e7eb;
}

/* Mobile Floating Cart Bar */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  padding: 12px 18px;
  z-index: 95;
  justify-content: space-between;
  align-items: center;
}

.mcb-details {
  display: flex;
  flex-direction: column;
}

.mcb-items {
  font-size: 11.5px;
  color: var(--text-muted);
}

.mcb-total {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-red);
}

.mcb-btn {
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background-color 0.18s;
}

.mcb-btn:hover {
  background-color: var(--primary-red-hover);
}

/* ==========================================================
   RESPONSIVE DESIGN / MEDIA QUERIES
   ========================================================== */

@media (max-width: 1100px) {
  .trust-container {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 16px;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
  }
}

/* Tablet & Mobile Breakpoint (<= 992px) */
@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 70px;
  }
  
  /* Mobile Cart Drawer */
  .cart-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 150;
    transform: translateY(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow-y: auto;
    background: transparent;
    padding: 0;
  }

  .cart-sidebar.drawer-open {
    transform: translateY(0);
  }

  .cart-card {
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.22);
    border: none;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px 18px max(20px, env(safe-area-inset-bottom));
  }

  .btn-close-cart-drawer {
    display: flex;
  }

  /* Cart Backdrop */
  .cart-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .cart-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* Floating Mobile Cart Bottom Bar */
  .mobile-cart-bar {
    display: flex;
    padding: 10px 16px max(12px, env(safe-area-inset-bottom));
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .top-announcement {
    display: none;
  }

  .site-header {
    padding: 0;
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 16px;
  }

  .header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .brand-logo {
    gap: 9px;
  }

  .logo-icon svg {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 18.5px;
    line-height: 1.1;
  }

  .brand-tagline {
    font-size: 10px;
  }

  .header-right {
    gap: 10px;
  }

  .desktop-only {
    display: none !important;
  }

  .header-info-pill {
    padding: 4px;
  }

  .icon-circle-btn {
    width: 36px;
    height: 36px;
  }

  .search-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .search-box {
    height: 38px;
  }

  .search-box input {
    font-size: 13px;
    padding: 8px 12px;
  }

  .search-box button {
    width: 40px;
    height: 38px;
  }

  /* Hero Section */
  .hero-banner {
    min-height: 170px;
  }

  .hero-content-box {
    padding: 22px 14px;
  }

  .diwali-badge {
    font-size: 11.5px;
    margin-bottom: 4px;
  }

  .hero-title {
    font-size: 22px;
    line-height: 1.22;
    margin-bottom: 4px;
  }

  .hero-subtitle {
    font-size: 11.5px;
    line-height: 1.35;
    opacity: 0.9;
  }

  /* Feature Ribbon Bar */
  .feature-ribbon {
    padding: 10px 0;
  }

  .feature-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 18px;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .feature-container::-webkit-scrollbar {
    display: none;
  }

  .feature-item {
    flex-shrink: 0;
    gap: 8px;
  }

  .feature-label strong {
    font-size: 12px;
  }

  .feature-label span {
    font-size: 10px;
  }

  /* Category Filter Tabs */
  .category-filter-wrap {
    margin-top: 14px;
    margin-bottom: 10px;
    padding: 0 16px;
  }

  .category-tabs {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .cat-pill {
    padding: 6px 12px;
    font-size: 11.5px;
  }

  /* Main Container */
  .main-layout {
    padding: 0 12px;
  }

  /* Product Table on Mobile */
  .col-num, 
  .col-num-cell {
    display: none; /* Hide # index column on mobile for clean breathing room */
  }

  .product-price-table th {
    padding: 10px 8px;
    font-size: 12px;
  }

  .product-price-table td {
    padding: 10px 8px;
  }

  .product-cell {
    gap: 8px;
  }

  .product-thumb {
    width: 44px;
    height: 44px;
    padding: 2px;
  }

  .product-title {
    font-size: 12.5px;
    line-height: 1.25;
  }

  .product-spec {
    font-size: 10.5px;
  }

  .price-cell {
    padding-right: 4px;
  }

  .price-val {
    font-size: 13.5px;
  }

  .price-unit {
    font-size: 10.5px;
  }

  .qty-cell {
    padding-left: 4px;
  }

  .qty-stepper-wrap {
    gap: 6px;
  }

  .qty-stepper {
    height: 28px;
  }

  .stepper-btn {
    width: 26px;
    height: 28px;
    font-size: 14px;
  }

  .qty-input {
    width: 30px;
    height: 28px;
    font-size: 12.5px;
  }

  .unit-label {
    font-size: 11.5px;
  }

  /* Trust Cards */
  .trust-footer-bar {
    padding: 18px 0;
  }

  .trust-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
  }

  .trust-card {
    gap: 10px;
  }

  .trust-icon svg {
    width: 20px;
    height: 20px;
  }

  .trust-info strong {
    font-size: 11.5px;
  }

  .trust-info span {
    font-size: 10px;
  }

  /* Footer */
  .site-footer {
    padding-top: 36px;
    padding-bottom: 72px; /* Leave space for bottom floating cart bar */
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Modal */
  .modal-card {
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .checkout-form {
    padding: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Small Phones (<= 420px) */
@media (max-width: 420px) {
  .product-price-table th.col-price, 
  .product-price-table td.price-cell {
    width: 75px;
  }

  .product-price-table th.col-qty, 
  .product-price-table td.qty-cell {
    width: 105px;
  }

  .qty-stepper-wrap {
    gap: 4px;
  }

  .unit-label {
    display: none; /* Already indicated in price cell '/ box' */
  }

  .product-thumb {
    width: 40px;
    height: 40px;
  }

  .product-title {
    font-size: 12px;
  }

  .mcb-items {
    font-size: 11px;
  }

  .mcb-total {
    font-size: 15px;
  }

  .mcb-btn {
    padding: 8px 14px;
    font-size: 12.5px;
  }
}

