:root {
  --primary: #0f766e;
  --primary-dark: #0b5f59;
  --primary-light: #14b8a6;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --soft: #f0fdfa;
  --soft-border: #ccfbf1;
  --danger: #e11d48;
  --success: #059669;
  --warning: #d97706;
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --radius: 16px;
}

/* Base Reset & Horizontal Scroll Prevention */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button, input, textarea, select {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  margin-top: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.muted {
  color: var(--muted);
}

/* Announcement Bar */
.announcement-bar {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Header & Navigation (Fixed Overlap & Mobile Collapse) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.brand-name {
  font-weight: 850;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-name span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}

.main-nav > a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #334155;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.main-nav > a:hover {
  background: var(--soft);
  color: var(--primary);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--soft);
  border: 1px solid var(--soft-border);
  padding: 7px 14px !important;
  border-radius: 99px !important;
  color: var(--primary) !important;
}

.cart-link:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
}

.cart-link:hover .cart-count {
  background: #ffffff;
  color: var(--primary);
}

.cart-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.15s ease;
}

/* Category Filter Badges / Navigation Strip */
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 2px 16px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  white-space: nowrap;
  padding: 7px 15px;
  border-radius: 99px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.25);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  margin: 12px 0 44px;
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 36px;
  background: radial-gradient(circle at 90% 20%, rgba(20, 184, 166, 0.14), transparent 45%), linear-gradient(135deg, #f0fdfa 0%, #ffffff 75%);
  border: 1px solid var(--soft-border);
  box-shadow: var(--shadow-sm);
}

.eyebrow {
  display: inline-flex;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background: #ffffff;
  border: 1px solid var(--soft-border);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 54px);
  margin: 16px 0 14px;
  font-weight: 850;
  letter-spacing: -0.035em;
  color: #0f172a;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 15px;
}

/* Shop Toolbar & Forms */
.shop-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.shop-toolbar h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.shop-toolbar p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.search-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 400px;
}

input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  font-size: 14px;
  transition: all 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

/* Products Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

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

.product-card.out-of-stock {
  opacity: 0.68;
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.product-info h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  font-size: 16px;
  font-weight: 850;
  color: var(--primary);
  margin-top: auto;
  margin-bottom: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.badge-success {
  background: #ecfdf5;
  color: var(--success);
}

.badge-warning {
  background: #fef3c7;
  color: var(--warning);
}

.badge-danger {
  background: #fee2e2;
  color: var(--danger);
}

.badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

/* Trust Strips */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.trust-strip div {
  padding: 12px 20px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: none;
}

.trust-strip strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.trust-strip span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Cart & Checkout Layout */
.cart-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 20px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

.cart-table th, .cart-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.cart-table th {
  background: #f8fafc;
  font-size: 12.5px;
  font-weight: 750;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.checkout-form, .order-summary {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

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

/* Footer (Clean, No Overlap, Balanced Columns) */
.site-footer {
  background: #081b1b;
  color: #d1e2df;
  margin-top: 60px;
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.footer-col h3, .footer-grid h3 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer-logo {
  display: block;
  max-width: 160px;
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 16px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-list a {
  color: #cbd5e1;
  transition: color 0.15s ease;
  display: inline-block;
}

.footer-list a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  font-size: 13px;
}

.footer-contact-item strong {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.payment-badges span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 36px;
  padding-top: 20px;
  color: #64748b;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* WhatsApp Floating Button (Above Footer Z-Index) */
.whatsapp-float-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 999;
}

.whatsapp-circle {
  width: 52px;
  height: 52px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}

.whatsapp-circle:hover {
  transform: scale(1.08);
}

.whatsapp-tooltip {
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-right: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  pointer-events: none;
}

/* ====================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ==================================================== */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
  }
  .footer-grid > div:last-child {
    grid-column: span 3;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 28px;
  }
  .hero-card {
    justify-self: start;
    max-width: 100%;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Header Overlap Prevention */
  .header-inner {
    height: 60px;
    gap: 10px;
  }

  .brand-logo {
    max-width: 160px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .main-nav {
    gap: 4px;
    font-size: 13px;
  }

  .main-nav > a {
    padding: 6px 8px;
  }

  .cart-link {
    padding: 5px 10px !important;
  }

  /* Product Catalog Grid on Mobile */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 13.5px;
    margin-bottom: 6px;
  }

  .price {
    font-size: 14.5px;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

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

  .trust-strip {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px;
  }

  .trust-strip div {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 4px;
  }

  .trust-strip div:last-child {
    border-bottom: none;
  }

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

  .whatsapp-tooltip {
    display: none;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid > div:last-child {
    grid-column: span 1;
  }

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

  .hero h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}