:root {
  /* Consistent palette used across the file */
  --color-silver: #a3922145; /* neutral surface */
  --color-timberwolf: #f5f5f5; /* page bg */
  --color-khaki: #aba69b; /* subtle hover */
  --color-night: #100f0f; /* text */
  --color-seal-brown: #57341e; /* brand primary */
  --color-white: #ffffff; /* white */
  --color-black: #000000; /* black */

  --color-earth: #95714F; /* earth */
  --color-moss: #8C916C; /* moss */
  --color-moss: #8C916C; /* moss */
  --color-almond: #EADED0; /* almond */
  --color-sage: #ACB087; /* sage */
  --color-sand: #C7AF94; /* sand */

  --size-regular: 0.9rem;

  /* Layout tokens */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-soft: 0 6px 20px rgb(64 64 64 / 8%);
  --shadow-card: 0 10px 30px rgba(16, 15, 15, 0.1);
  --container: 1200px;
}

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background-color: var(--color-almond);
  color: var(--color-night);
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* prevent horizontal scroll */
}
h1,
h2,
h3 {
  margin: 0 0 0.5rem 0;
  color: var(--color-seal-brown);
  font-family: "outfit", cursive;
  font-weight: 700;
  letter-spacing: 0.3px;
}
p {
  margin: 0 0 1rem 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
  border: none;
  border-color: transparent;
}
.grid {
  display: grid;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}
.close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem .5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}
.button-primary {
  background-color: var(--color-earth);
  color: var(--color-white);
}
.button-primary:hover {
  background-color: var(--color-khaki);
  color: var(--color-night);
}
.button-ghost {
  background: transparent;
  border-color: var(--color-seal-brown);
  color: var(--color-seal-brown);
}
.button-ghost:hover {
  background: var(--color-silver);
  color: var(--color-night);
}
.tag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--color-silver);
  font-size: 0.8rem;
}
.muted {
  opacity: 0.85;
}
.deep-muted {
  opacity: 0.65;
}
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Header (fixed responsive) */
header.site-header {
  padding: 0 1rem;
  position: relative;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: var(--color-earth);
  border-bottom: 1px solid rgba(16, 15, 15, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.desktop-cart {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-image: url("../images/logo.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 36px;
}
.brand-name {
  font-family: "outfit", cursive;
  font-size: 1.6rem;
  color: var(--color-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-links a {
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
}
.nav-links a.active,
.nav-links a:hover {
  background: var(--color-silver);
}

.cart {
  position: relative;
}
.cart-count {
  position: absolute;
  top: -20px;
  right: -16px;
  background: var(--color-seal-brown);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.6rem;
  padding: 0.1rem 0.15rem;
  min-width: 18px;
  text-align: center;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  margin-left: 0.5rem;
}
.hamburger {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(16, 15, 15, 0.12);
  background: var(--color-white);
  display: grid;
  place-items: center;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-night);
  position: relative;
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--color-night);
}
.hamburger span::before {
  top: -6px;
}
.hamburger span::after {
  top: 6px;
}

/* Hero */
.hero {
  position: relative;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1rem;
  /* padding: 1.2rem 0 0 0; */
}
.hero-card {
  background: var(--color-sand);
  border: 1px solid rgb(16 14 14 / 8%);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
}
.hero p {
  font-size: 1rem;
}
.hero-cta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  justify-content: center;
  font-size: small;
}

.hero-cta a {
  border-radius: 30px;
}

/* Sections */
section {
  padding: 1.2rem 0;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.section-title h2 {
  font-size: 1.6rem;
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.product-card {
  background: var(--color-sand);
  border: 1px solid rgba(16, 15, 15, 0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Consistent image aspect ratios to prevent layout shift */
.product-media {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: saturate(0.9) contrast(0.98);
}
.product-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.6rem;
  background: linear-gradient(
    180deg,
    rgba(16, 15, 15, 0) 35%,
    rgba(16, 15, 15, 0.35)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}
.product-actions {
  display: flex;
  gap: 0.4rem;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.product-card:hover .product-media img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.02);
}
.product-card:hover .product-overlay {
  opacity: 1;
}
.product-body {
  padding: 0.8rem;
  background: var(--color-sand);
  display: grid;
  gap: 0.3rem;
}
.product-name {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0;
  /* color: var(--color-seal-brown); */
}

/* Product subtitle styles */
.product-subtitle {
  font-family: 'Dancing Script', cursive;
  font-size: .9rem;
  color: var(--color-seal-brown);
  margin: 0.3rem 0;
  font-weight: 600;
  line-height: 1.1;
}

.product-subtitle-detail {
    font-family: 'Dancing Script', cursive;
    font-size: 1.1rem;
    color: var(--color-seal-brown);
    margin-bottom: 0.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-price {
  font-weight: 700;
  color: var(--color-seal-brown);
  margin-top: 0.2rem;
}
.quick-view {
  font-size: 0.85rem;
}

/* messenger button */
.messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #95714F;
  border-top-width: 0;
  height: 36px;
  border-bottom-width: 0;
  border-bottom-right-radius: 8px;
  flex-wrap: nowrap;
  box-sizing: border-box;
  border-bottom-left-radius: 8px;
  flex-direction: row;
  position: relative;
  z-index: 0;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
  border-left-width: 0;
  border-right-width: 0;
  color: #fff;
  margin-top: 10px;
}

.messenger-btn i {
  font-size: 1.1rem; /* Messenger icon size */
}

.messenger-btn:hover {
  background-color: #755536;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}


/* Standardized icon/image utility for categories, badges, etc. */
.icon-img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--color-white);
  border: 1px solid rgba(16, 15, 15, 0.08);
  overflow: hidden;
}
.icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* About / How it works cards */
.soft-card {
  background: var(--color-sand);
  border: 1px solid rgba(16, 15, 15, 0.06);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}
.soft-card ul {
  margin:.4rem 0 0 1rem;
  padding:0;
  font-size: var(--size-regular);
}

/* Detail page */
.detail {
  display: grid;
  gap: 1rem;
}
.gallery {
  display: grid;
  gap: 0.6rem;
}
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid rgba(16, 15, 15, 0.06);
}
/* Fix shaking: keep main gallery at fixed aspect ratio */
.gallery-main img {
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
  display: block;
}
.thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 22%;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}
.thumbs img {
  border-radius: 10px;
  height: 70px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
}
.thumbs img.active {
  border-color: var(--color-seal-brown);
}

/* Contact */
form.contact {
  display: grid;
  gap: 0.8rem;
}
.field {
  display: grid;
  gap: 0.3rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 15, 15, 0.15);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--color-seal-brown);
  box-shadow: 0 0 0 4px rgba(87, 52, 30, 0.12);
}

/* Footer */
footer {
  padding: 0 1rem;
  margin-top: 2rem;
  background: var(--color-earth);
  border-top: 1px solid rgba(16, 15, 15, 0.06);
  color: var(--color-white);
}
.footer-grid {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 0;
}
.footer-col {
  display: grid;
  gap: 0.4rem;
}
.qr {
  width: 110px;
  height: 110px;
  display: block;
  background: repeating-linear-gradient(
      90deg,
      var(--color-black) 0 4px,
      var(--color-white) 4px 8px
    ),
    repeating-linear-gradient(
      0deg,
      var(--color-black) 0 4px,
      var(--color-white) 4px 8px
    );
  border: 8px solid var(--color-white);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}
.socials {
  display: flex;
  gap: 0.6rem;
}
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--color-white);
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 15, 15, 0.06);
  transition: transform 0.2s ease;
  color: var(--color-earth);
}
.socials a:hover {
  transform: translateY(-2px);
}
.pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid rgba(16, 15, 15, 0.06);
}

/* Cart qty controls */
.qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.qty button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(16, 15, 15, 0.12);
  background: var(--color-white);
  cursor: pointer;
}
.qty input {
  width: 48px;
  text-align: center;
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(16, 15, 15, 0.18);
  background: var(--color-white);
}

/* Reviews */
.reviews {
  display: grid;
  gap: 0.6rem;
}
.review-item {
  border: 1px solid rgba(16, 15, 15, 0.08);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  background: var(--color-white);
}
.stars {
  letter-spacing: 2px;
}

/* Simple view wrappers for routing */
.view {
  display: none;
}
.view.active {
  display: block;
}
/* how to use toggle */
.how-to-use-container {
  margin: 0.8rem 0;
}

.how-to-use-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(16,15,15,0.1);
  padding-bottom: 0.8rem;
}

.how-to-use-tab {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius);
  background: var(--color-sand);
  color: var(--color-night);
  border: 1px solid rgba(16, 15, 15, 0.16);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
}

.how-to-use-tab:hover,
.how-to-use-tab.active {
  background: var(--color-earth);
  color: var(--color-white);
}

.how-to-use-content {
  display: grid;
  gap: 0.8rem;
}

.how-to-use-panel {
  display: none;
}

.how-to-use-panel.active {
  display: block;
}

.how-to-use-point {
  padding: 0.3rem 0.8rem;
  background: var(--color-earth);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  color: var(--color-white);
  font-size: var(--size-regular);
}

.how-to-use-point:last-child {
  margin-bottom: 0;
}

.how-to-use-point b {
  display: inline-block;
  color: var(--color-white);
}

/* zoom image */
.gallery-main {
  cursor: zoom-in;
}

.gallery-main.zoomed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  display: grid;
  place-items: center;
  cursor: zoom-out;
}

.gallery-main.zoomed img {
  width: 95%;
  height: 95%;
  object-fit: contain;
  transform: scale(1.1);
}

/* coming soon container */
.coming-soon-container {
  text-align: center;
  padding: 2rem 1rem;
}

.coming-soon-image {
  max-height: 280px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(66, 64, 64, 0.7);
  display: grid;
  place-items: center;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Checkout Styles */
.checkout-form {
  display: grid;
  gap: 0.1rem;
}

.shipping-field {
  margin-top: 1rem;
  display: block;
}

.shipping-options {
  display: flex;
  flex-direction: column; /* stack rows */
  gap: 0.2rem;
  margin-top: 0.2rem;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius, 8px);
  cursor: pointer;
}

.shipping-option input[type="radio"] {
  margin: 0;
}

.shipping-option .price {
  margin-left: auto; /* align price to the right */
  font-weight: 600;
}



.order-summary-title {
  margin: 1.5rem 0 1rem;
}

.checkout-items {
  margin-bottom: 1rem;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 0.8rem;
}


.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.checkout-item-details {
  display: grid;
  gap: 0.2rem;
}

.checkout-item-name {
  font-weight: 600;
}

.checkout-item-qty {
  opacity: 0.85;
  font-size: 0.9rem;
}

.checkout-item-price {
  font-weight: 600;
}

.checkout-summary {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1.1rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 0.5rem;
}

.checkout-submit {
  width: 100%;
}

.note-chars {
  font-size: 0.8rem;
  color: #f3eded;
}
.note-chars.warning {
  color: #c96c00; /* orange at ~150+ */
}
.note-chars.danger {
  color: #dc2626; /* red at ~190+ */
}

/* swal button */
.swal-confirm-btn {
  border-radius: var(--radius-sm) !important;
  padding: 0.8rem 1.5rem !important;
  font-weight: 600 !important;
}
.swal-title {
  font-weight: 600 !important;
  font-size: 1.2rem !important;
}

/* Responsive */
@media (min-width: 700px) {
  .hero-wrap {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.2rem;
    /* padding-top: 1.4rem; */
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: start;
  }
  .product-actions {
    flex-direction: column;
  }
}

/* products */
@media (min-width: 1000px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  section {
    padding: 1.6rem 0;
  }
}

/* navbar/ hamburger */
@media (max-width: 799px) {
  .mobile-nav-toggle {
    display: block;
    border: none;
    background: transparent;
  }
  .nav {
    gap: 0.5rem;
  }
  .nav-links {
    position: fixed;
    inset: 60px 12px auto 12px; /* below header */
    display: grid;
    gap: 0.4rem;
    padding: 0.6rem;
    border-radius: 12px;
    background: var(--color-white);
    border: 1px solid rgba(16, 15, 15, 0.08);
    box-shadow: var(--shadow-card);
    transform-origin: top center;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
  }
  .nav-links.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    background: transparent;
  }
}

/* messenger btn */
@media (max-width: 600px) {
  .messenger-btn {
    width: 100%;
    padding: 0.55rem;
    font-size: 1rem;
  }
  .product-actions {
    flex-direction: column;
  }
}

@media (min-width: 800px) {
  .cart-link {
    display: none;
  }
  .desktop-cart {
    display: block;
  }
}