* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #f5f0e7;
  --cream-light: #fbf8f2;
  --deep-green: #173b32;
  --sage: #b8c7b5;
  --white: #ffffff;
  --text: #1d2924;
  --muted: #78837d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--cream);
  color: var(--text);
  padding-bottom: 105px;
}

/* WELCOME CAROUSEL */

.welcome-carousel {
  position: relative;
  margin: 8px 16px 14px;
  height: 180px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--deep-green);
  box-shadow: 0 10px 25px rgba(23, 59, 50, 0.14);
  touch-action: pan-y;
}

.welcome-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.welcome-slide {
  position: absolute;
  inset: 0;
  padding: 28px 34px;
  display: flex;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);

  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    visibility 0.55s ease;
}

.welcome-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* SLIDE BACKGROUNDS */

.welcome-slide:nth-child(1) {
  background:
    linear-gradient(
      135deg,
      rgba(23, 59, 50, 0.98),
      rgba(69, 91, 78, 0.92)
    );
}

.welcome-slide:nth-child(2) {
  background:
    linear-gradient(
      135deg,
      #173b32,
      #8fa593
    );
}

.welcome-slide:nth-child(3) {
  background:
    linear-gradient(
      135deg,
      #244d42,
      #b8c7b5
    );
}

.welcome-content {
  color: white;
  position: relative;
  z-index: 2;
}

.welcome-content p {
  margin-bottom: 5px;
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: bold;
}

.welcome-content h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.05;
}

.welcome-content button {
  border: none;
  background: white;
  color: var(--deep-green);
  padding: 8px 13px;
  border-radius: 13px;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
}

/* PAGINATION DOTS */

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 6;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.carousel-dot.active {
  width: 19px;
  border-radius: 8px;
  background: white;
}

/* MOBILE */

@media (max-width: 600px) {
  .welcome-carousel {
    height: 180px;
    margin-left: 16px;
    margin-right: 16px;
    border-radius: 28px;
  }

  .welcome-slide {
    padding: 24px 34px;
  }

  .welcome-content h1 {
    font-size: 23px;
  }
}

/* SMALL PHONES */

@media (max-width: 380px) {
  .welcome-carousel {
    height: 170px;
  }

  .welcome-slide {
    padding: 22px 28px;
  }

  .welcome-content h1 {
    font-size: 21px;
  }

  .welcome-content p {
    font-size: 7px;
  }
}

/* SECTIONS */

.section {
  padding: 0 4px;
  margin-bottom: 10px;
}

/* TRENDING STORE */

.trending-section {
  padding: 0 4px;
  margin-bottom: 8px;
}

.trending-section h2 {
  margin: 0 4px 7px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: bold;
}

.trending-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
  overscroll-behavior-x: contain;
}

.trending-row::-webkit-scrollbar {
  display: none;
}

.trending-card {
  flex: 0 0 105px;
  width: 105px;
  height: 145px;
  padding: 0;
  border: none;
  border-radius: 22px;
  overflow: hidden;
  background: var(--sage);
  box-shadow: 0 5px 12px rgba(23, 59, 50, 0.08);
}

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

/* CATEGORIES */

.categories-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 6px;
  margin-bottom: 4px;

  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;

  touch-action: auto;
  overscroll-behavior-x: contain;
}

.categories-row + .categories-row {
  margin-top: -12px;
}

.categories-row::-webkit-scrollbar {
  display: none;
}

.category-item {
  flex: 0 0 58px;
  width: 58px;
  text-align: center;
}

.category-item button {
  width: 58px;
  height: 58px;
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: var(--sage);
  box-shadow: 0 5px 12px rgba(23, 59, 50, 0.08);
}

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

.category-item span {
  display: block;
  margin-top: 6px;

  font-family: Arial, sans-serif;
  font-size: 9px;
  line-height: 1.15;
  color: var(--text);
  font-weight: 600;
}

/* PRODUCTS */

.products {
  column-count: 2;
  column-gap: 1px;
}

.product-card {
  break-inside: avoid;
  margin-bottom: 1px;
}

.product-card {
  overflow: hidden;
  background: var(--cream-light);
  border: 1px solid rgba(23, 59, 50, 0.06);
  border-radius: 17px;
  padding: 3px;
  box-shadow: 0 5px 14px rgba(23, 59, 50, 0.06);
  text-decoration: none;
  color: inherit;
}
a.product-card {
  display: block;
}

.product-image {
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  background: linear-gradient(
    145deg,
    #e4dfd5,
    #d4dcd3
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 9px;
}

.product-card h3 {
  font-size: 11px;
  line-height: 1.2;
  font-weight: bold;
  margin: 5px 3px 2px;
}

.product-card p {
  margin: 0 3px 3px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: var(--deep-green);
}

.product-card small {
  display: block;
  margin: 0 3px 2px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: normal;
  line-height: 1.15;
}

.product-card small:first-of-type {
  color: var(--text);
  margin-bottom: 2px;
}

/* BUTTONS */

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:active {
  transform: scale(0.97);
}

/* BOTTOM NAVIGATION */

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 64px;
  padding: 6px;
  background: var(--deep-green);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  z-index: 1000;
}


.nav-item {
  height: 52px;
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: Arial, sans-serif;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border-radius: 22px;
  text-decoration: none;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border-radius: 22px;
  font-weight: 600;
}

/* SMALL PHONES */

@media (max-width: 380px) {
  .product-image {
    height: 180px;
  }

  .categories {
    grid-template-rows: repeat(2, 54px);
  }
}

/* =================================
   PRODUCT DETAILS PAGE
   ================================= */

.product-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 110px;
}

.product-gallery {
  position: relative;
}



/* BACK AND CART ICON BUTTONS */

.back-button,
.product-cart-button {
  position: fixed;
  top: 18px;
  z-index: 1000;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: rgba(23, 59, 50, 0.55);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.back-button {
  left: max(18px, calc(50% - 300px));
}

.product-cart-button {
  right: max(18px, calc(50% - 300px));
}

.back-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-cart-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-button:active,
.product-cart-button:active {
  transform: scale(0.96);
}


.back-button {
  left: max(18px, calc(50% - 300px));
}

.product-cart-button {
  right: max(18px, calc(50% - 300px));
}

.back-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-cart-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-cart-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--deep-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  line-height: 1;
}

.product-cart-button.cart-bounce {
  animation: productCartBounce 0.5s ease;
}

@keyframes productCartBounce {
  0%, 100% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.18);
  }

  65% {
    transform: scale(0.94);
  }
}

.main-product-image {
  height: 300px;
  border-radius: 22px;
  background: #eee9df;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: Arial, sans-serif;
  box-shadow: 0 12px 30px rgba(23, 59, 50, 0.10);
  position: relative;
}

.main-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22px;
  display: block;
}

.product-information {
  margin-top: 12px;
}

.verified-badge {
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.product-information h1 {
  font-size: 19px;
  line-height: 1.25;
  margin: 5px 0;
}

.product-price {
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: bold;
  margin: 4px 0;
}

.product-condition,
.product-description {
  margin-top: 7px;
  line-height: 1.4;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.seller-card,
.protection-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--cream-light);
  box-shadow: 0 8px 22px rgba(23, 59, 50, 0.08);
}

.seller-card h2,
.protection-card h2 {
  font-size: 14px;
  margin-bottom: 10px;
}

.seller-card p,
.protection-card p {
  margin-top: 4px;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.buy-button {
  width: 100%;
  height: 48px;
  margin-top: 14px;
  border: none;
  border-radius: 16px;
  background: var(--deep-green);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.product-actions {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 8px;
  margin-top: 14px;
}

.product-actions .cart-button,
.product-actions .buy-button {
  width: 100%;
  height: 48px;
  margin-top: 0;
  border: none;
  border-radius: 16px;
  font-size: 14px;
  font-weight: bold;
}

.product-actions .cart-button {
  background: var(--cream-light);
  color: var(--deep-green);
  border: 1px solid rgba(23, 59, 50, 0.15);
}

.product-actions .buy-button {
  background: var(--deep-green);
  color: white;
}

/* RECOMMENDED */

.recommended {
  margin-top: 35px;
}

.recommended h2 {
  font-size: 15px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.recommended-card {
  padding: 7px;
  border-radius: 17px;
  background: var(--cream-light);
}

.recommended-card > div {
  height: 125px;
  border-radius: 18px;
  background: #e0e1d9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
}

.recommended-card > div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recommended-card h3 {
  font-size: 13px;
  margin: 7px 4px 4px;
}

.recommended-card p {
  margin: 0 4px;
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-weight: bold;
}

/* COMPACT COLOUR SELECTOR */

.color-options {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.color-option {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  color: var(--text);
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #b8b8b8;
}

.color-swatch.black {
  background: #111111;
}

.color-option.active .color-swatch {
  box-shadow: 0 0 0 2px var(--deep-green);
}

/* COMPACT PRODUCT INFO */

.sales-rating {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.sales-rating span:last-child {
  color: #b18a22;
  font-weight: bold;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
}

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

.seller-top strong {
  font-size: 14px;
}

.seller-top p {
  margin: 4px 0 0;
}

.seller-rating {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #b18a22;
}

/* PHOTO COUNTER */

.photo-counter {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  background: rgba(23, 59, 50, 0.9);
  color: white;
  border-radius: 7px;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: bold;
  line-height: 1.2;
  }
/* =================================
   CART PAGE
   ================================= */

.cart-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 22px 16px 170px;
}

.cart-header {
  margin-bottom: 20px;
}

.cart-header h1 {
  margin: 6px 0 6px;
  color: var(--deep-green);
  font-size: 26px;
}

.cart-header > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cart-items {
  margin-top: 10px;
}

.cart-swipe {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 18px;
  background: #d94b45;
}

.cart-swipe-delete {
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 100%;
  border: none;
  background: #d94b45;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
}

.cart-product {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 104px;
  padding: 10px 10px 34px;
  margin: 0;
  background: var(--cream-light);
  border: 1px solid rgba(23, 59, 50, 0.08);
  border-radius: 18px;
  box-shadow: 0 7px 18px rgba(23, 59, 50, 0.06);
  transition: transform 0.2s ease;
}
.cart-product-image {
  position: relative;
  width: 96px;
height: 100px;
  overflow: visible;
  border-radius: 14px;
  background: #e4dfd5;
}

.cart-product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}
.cart-product-seller {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -23px;
  margin: 0;
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-product-select {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 19px;
  height: 19px;
  margin: 0;
  cursor: pointer;
}

.cart-product-select input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cart-product-select span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid white;
  border-radius: 5px;
  background: rgba(23, 59, 50, 0.82);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.cart-product-select input:checked + span::after {
  content: "✓";
  color: white;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.cart-product-details {
  min-width: 0;
  padding-top: 2px;
}

.cart-product-details h2 {
  margin: 0 0 7px;
  color: var(--deep-green);
  font-size: 15px;
  line-height: 1.3;
}

.cart-product-price {
  margin: 0;
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
}

.cart-product-controls {
  display: flex;
  align-items: center;
  width: fit-content;
  height: 30px;
  margin-top: 10px;
  border: 1px solid rgba(23, 59, 50, 0.14);
  border-radius: 9px;
  overflow: hidden;
  background: white;
}

.cart-quantity-minus,
.cart-quantity-plus {
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: white;
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
}

.cart-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 3px;
  border-left: 1px solid rgba(23, 59, 50, 0.1);
  border-right: 1px solid rgba(23, 59, 50, 0.1);
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
}

.cart-remove {
  position: absolute;
  right: 12px;
  bottom: 9px;
  min-height: 26px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.cart-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.52);
}

.cart-confirm-box {
  width: min(100%, 360px);
  padding: 24px 20px 20px;
  border-radius: 18px;
  background: var(--cream-light);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  text-align: center;
}
.cart-confirm-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: normal;
  line-height: 1;
}

.cart-confirm-box {
  position: relative;
}
.cart-confirm-box h2 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.4;
}

.cart-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cart-confirm-cancel,
.cart-confirm-delete {
  min-height: 42px;
  border-radius: 9px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
}

.cart-confirm-cancel {
  border: 1px solid rgba(23, 59, 50, 0.18);
  background: white;
  color: var(--text);
}

.cart-confirm-delete {
  border: none;
  background: #222222;
  color: white;
}
.cart-empty {
  padding: 34px 20px;
  text-align: center;
  background: var(--cream-light);
  border: 1px solid rgba(23, 59, 50, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(23, 59, 50, 0.06);
}

.cart-empty h2 {
  margin: 0 0 8px;
  color: var(--deep-green);
  font-size: 18px;
}

.cart-empty p {
  margin: 0 auto 20px;
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.continue-shopping {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 15px;
  background: var(--deep-green);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}
/* =================================
   RECENTLY VIEWED
   ================================= */

.recently-viewed {
  margin-top: 30px;
}

.recently-viewed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.recently-viewed-header h2 {
  margin: 0;
  color: var(--deep-green);
  font-size: 18px;
}

.recently-viewed-header a {
  color: var(--deep-green);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recently-viewed-card {
  overflow: hidden;
  padding: 5px;
  border-radius: 17px;
  background: var(--cream-light);
  border: 1px solid rgba(23, 59, 50, 0.06);
  box-shadow: 0 5px 14px rgba(23, 59, 50, 0.06);
  color: inherit;
  text-decoration: none;
}

.recently-viewed-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 14px;
  background: #e4dfd5;
}

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

.recently-viewed-card h3 {
  margin: 8px 4px 3px;
  color: var(--deep-green);
  font-size: 13px;
  font-weight: 600;
}

.recently-viewed-card p {
  margin: 0 4px 6px;
  color: var(--deep-green);
  font-size: 12px;
  font-weight: bold;
}

.cart-order-summary {
  margin-top: 18px;
  padding: 16px;
  background: var(--cream-light);
  border: 1px solid rgba(23, 59, 50, 0.08);
  border-radius: 18px;
  box-shadow: 0 7px 18px rgba(23, 59, 50, 0.06);
}

.cart-order-summary h2 {
  margin: 0 0 14px;
  color: var(--deep-green);
  font-size: 17px;
}

.cart-summary-row,
.cart-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: Arial, sans-serif;
}

.cart-summary-row {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.cart-summary-row strong {
  color: var(--deep-green);
  font-size: 12px;
}

.cart-summary-total {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(23, 59, 50, 0.1);
  color: var(--deep-green);
  font-size: 15px;
  font-weight: bold;
}

.cart-checkout-button {
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border: none;
  border-radius: 12px;
  background: var(--deep-green);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
}
.checkout-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 22px 16px 120px;
}

.checkout-header {
  margin: 24px 0 20px;
}

.checkout-header h1 {
  margin: 6px 0 8px;
  color: var(--deep-green);
  font-size: 32px;
}

.checkout-header p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.checkout-section {
  margin-bottom: 16px;
  padding: 18px;
  background: var(--cream-light);
  border: 1px solid rgba(23, 59, 50, 0.08);
  border-radius: 18px;
  box-shadow: 0 7px 18px rgba(23, 59, 50, 0.05);
}

.checkout-section h2 {
  margin: 0 0 16px;
  color: var(--deep-green);
  font-size: 19px;
}

.checkout-section label {
  display: block;
  margin-bottom: 14px;
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
}

.checkout-section label:last-child {
  margin-bottom: 0;
}

.checkout-section input,
.checkout-section textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid rgba(23, 59, 50, 0.14);
  border-radius: 10px;
  background: white;
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 13px;
  box-sizing: border-box;
  outline: none;
}

.checkout-section textarea {
  resize: vertical;
}

.checkout-section input:focus,
.checkout-section textarea:focus {
  border-color: var(--deep-green);
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 59, 50, 0.1);
  color: var(--deep-green);
  font-size: 16px;
  font-weight: bold;
}

.checkout-place-order {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--deep-green);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  }
/* CHECKOUT ORDER SUMMARY */

.checkout-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.checkout-summary-header h2 {
  margin: 0;
}

#checkoutItemCount {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  margin-bottom: 10px;
  padding: 10px;
  background: white;
  border: 1px solid rgba(23, 59, 50, 0.08);
  border-radius: 14px;
  box-sizing: border-box;
}

.checkout-item:last-child {
  margin-bottom: 0;
}

.checkout-item-image {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
  background: #e4dfd5;
}

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

.checkout-item-details {
  min-width: 0;
}

.checkout-item-details h3 {
  margin: 0 0 4px;
  color: var(--deep-green);
  font-size: 15px;
  line-height: 1.2;
}

.checkout-item-seller {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.checkout-item-quantity {
  margin: 0;
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
}

.checkout-item-price {
  align-self: center;
  text-align: right;
  white-space: nowrap;
}

.checkout-item-price strong {
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.checkout-summary-lines {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 59, 50, 0.1);
}

.checkout-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.checkout-summary-row:last-child {
  margin-bottom: 0;
}

.checkout-summary-row strong {
  color: var(--deep-green);
  text-align: right;
  font-size: 12px;
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 59, 50, 0.12);
  color: var(--deep-green);
  font-size: 17px;
  font-weight: bold;
}

.checkout-total strong {
  font-size: 17px;
}

.checkout-empty {
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(23, 59, 50, 0.08);
  border-radius: 14px;
  background: white;
}

.checkout-empty p {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.checkout-empty .continue-shopping {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--deep-green);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}

/* MOBILE CHECKOUT */

@media (max-width: 480px) {

  .checkout-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 74px;
    padding: 8px;
  }

  .checkout-item-image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  .checkout-item-details h3 {
    font-size: 14px;
  }

  .checkout-item-price strong {
    font-size: 12px;
  }

  .checkout-summary-row {
    font-size: 11px;
  }

  .checkout-total {
    font-size: 16px;
  }

  .checkout-total strong {
    font-size: 16px;
  }
}

/* WERAE AUTHENTICATION */

.auth-page {
  max-width: 440px;
  margin: 0 auto;
  padding: 22px 16px 120px;
}

.auth-header {
  margin: 28px 0 22px;
  text-align: center;
}

.auth-header h1 {
  margin: 8px 0 8px;
  color: var(--deep-green);
  font-size: 30px;
  line-height: 1.15;
}

.auth-header p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.auth-card {
  padding: 20px;
  background: var(--cream-light);
  border: 1px solid rgba(23, 59, 50, 0.08);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(23, 59, 50, 0.08);
}

/* Tabs */

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
  padding: 4px;
  background: #e8e4db;
  border-radius: 14px;
}

.auth-tab {
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.auth-tab.active {
  background: white;
  color: var(--deep-green);
  box-shadow: 0 2px 6px rgba(23, 59, 50, 0.1);
}

/* Fields */

.field {
  margin-bottom: 16px;
}

.field label,
.field-row label {
  display: block;
  margin-bottom: 7px;
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
}

.field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-card form input[type="text"],
.auth-card form input[type="email"],
.auth-card form input[type="password"] {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(23, 59, 50, 0.14);
  border-radius: 12px;
  background: white;
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 16px;
  outline: none;
}

.auth-card form input::placeholder {
  color: #a3aba6;
}

.auth-card form input:focus {
  border-color: var(--deep-green);
  box-shadow: 0 0 0 3px rgba(23, 59, 50, 0.1);
}

/* Password eye toggle */

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 52px !important;
}

.toggle-password {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toggle-password .icon-eye-off {
  display: none;
}

.toggle-password.is-visible .icon-eye {
  display: none;
}

.toggle-password.is-visible .icon-eye-off {
  display: block;
}

/* Text links */

.text-link {
  padding: 0;
  border: none;
  background: none;
  color: #3a5a9b;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.text-link:hover {
  text-decoration: underline;
}

/* Checkbox rows */

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 8px;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--deep-green);
}

.check strong {
  text-decoration: underline;
}

/* Messages */

.auth-message {
  min-height: 18px;
  margin: 0 0 10px;
  color: #9b3d32;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.auth-message.info {
  color: var(--muted);
}

/* Primary button */

.auth-submit {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--deep-green);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(23, 59, 50, 0.22);
}

.auth-submit:active {
  transform: scale(0.99);
}

/* OR divider */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(23, 59, 50, 0.12);
}

/* Social buttons */

.social-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(23, 59, 50, 0.12);
  border-radius: 12px;
  background: #efebe3;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* Footer switch */

.auth-switch {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.auth-switch .text-link {
  font-size: 13px;
  margin-left: 4px;
}

.auth-card form[hidden] {
  display: none;
}

@media (max-width: 480px) {

  .auth-page {
    padding: 18px 14px 120px;
  }

  .auth-header h1 {
    font-size: 27px;
  }

  .auth-card {
    padding: 16px;
  }
}

/* BODEGS AUTH HEADING — KEEP VISIBLE */

.auth-tabs {
  display: none !important;
}

.auth-header {
  display: block;
  margin: 0 0 16px;
  text-align: center;
}

.auth-header .verified-badge {
  margin-bottom: 6px;
}

.auth-header h1 {
  margin: 6px 0;
  font-size: 26px;
}

.auth-header p:last-child {
  margin: 0;
  font-size: 13px;
  }

/* BODEGS AUTH PAGE — FIT PHONE SCREEN */

html:has(.auth-page),
body:has(.auth-page) {
  height: 100%;
  margin: 0;
  overflow: hidden !important;
}

.auth-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.auth-header {
  flex: 0 0 auto;
  margin: 0 0 10px;
}

.auth-card {
  box-sizing: border-box;
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  padding: 14px;
  overflow: hidden;
}

.auth-card .field {
  margin-bottom: 7px;
}

.auth-card form input[type="text"],
.auth-card form input[type="email"],
.auth-card form input[type="password"] {
  min-height: 40px;
}

.auth-card .check {
  min-height: 30px;
  margin-bottom: 2px;
}

.auth-card .auth-message {
  min-height: 0;
  margin: 0 0 5px;
}

.auth-card .auth-submit,
.auth-card .social-btn {
  min-height: 38px;
}

.auth-card .auth-divider {
  margin: 8px 0;
}

.auth-card .social-btn {
  margin-bottom: 6px;
}

.auth-card .auth-switch {
  margin: 8px 0 0;
}

@media (max-height: 700px) {
  .auth-page {
    padding: 6px 12px;
  }

  .auth-header {
    margin-bottom: 6px;
  }

  .auth-header h1 {
    font-size: 22px;
  }

  .auth-card {
    padding: 10px;
  }

  .auth-card .field {
    margin-bottom: 5px;
  }

  .auth-card .social-btn {
    min-height: 32px;
    margin-bottom: 4px;
  }

  .auth-card .auth-switch {
    margin-top: 5px;
  }
}

/* ==================================
   BODEGS OPENING SPLASH ANIMATION
   ================================== */

.bodegs-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #173b32;
  color: #f5f0e7;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease;
}

.splash-brand {
  text-align: center;
  padding: 24px;
}

.splash-brand h1 {
  margin: 0;
  color: #f5f0e7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.94);
  animation: bodegsLogoReveal 1.15s ease forwards;
}

.splash-brand p {
  margin: 12px 0 0;
  color: #f5f0e7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 4vw, 1.35rem);
  letter-spacing: 0.025em;
  opacity: 0;
  transform: translateY(8px);
  animation: bodegsTaglineReveal 0.8s ease 0.85s forwards;
}

.bodegs-splash.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes bodegsLogoReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes bodegsTaglineReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-brand h1,
  .splash-brand p {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .bodegs-splash {
    transition: none;
  }
  }


/* BODEGS SKELETON — MATCH HOME PAGE
   Sizes mirror the real home page. Colours follow the grey
   skeleton style: light grey page, slightly darker grey blocks.
   There is no bottom navigation in the skeleton. */

.bodegs-skeleton {
  --sk-bg: #f5f5f5;
  --sk-block: #dcdcdc;
  --sk-block-dark: #cfcfcf;
  --sk-shine: #ebebeb;

  position: fixed;
  inset: 0;
  z-index: 99998;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 0 24px;
  background: var(--sk-bg);

  /* Visible from the very first paint, sitting under the splash,
     so the home page never shows between splash and loading screen. */
  opacity: 1;
  visibility: visible;
  pointer-events: none;

  /* Failsafe: if the script never removes it, hide it after 12s. */
  animation: bodegsSkeletonFailsafe 0.01s linear 12s forwards;
}

@keyframes bodegsSkeletonFailsafe {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.sk-line,
.sk-store-card,
.sk-category-image,
.sk-product-image {
  background-color: var(--sk-block);
}

.sk-line {
  height: 10px;
  border-radius: 8px;
}

/* Welcome carousel: same box as .welcome-carousel */
.sk-welcome {
  position: relative;
  height: 180px;
  margin: 0 16px 14px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--sk-block);
}

.sk-welcome-content {
  padding: 34px 34px 0;
}

.sk-eyebrow {
  width: 90px;
  height: 7px;
  margin-bottom: 12px;
  background: var(--sk-block-dark);
}

.sk-title {
  width: 62%;
  height: 20px;
  margin-bottom: 8px;
  background: var(--sk-block-dark);
}

.sk-title-short {
  width: 44%;
}

.sk-button {
  width: 92px;
  height: 28px;
  margin-top: 14px;
  border-radius: 13px;
  background: var(--sk-bg);
}

.sk-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.sk-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sk-block-dark);
}

.sk-dots span:first-child {
  width: 19px;
  border-radius: 8px;
  background: var(--sk-bg);
}

/* Trending Store: cards are 105 x 145, radius 22, like .trending-card */
.sk-trending {
  padding: 0 4px;
  margin-bottom: 8px;
}

.sk-section-title {
  width: 92px;
  height: 13px;
  margin: 0 4px 7px;
}

.sk-store-row {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: 0 2px 2px;
}

.sk-store-card {
  flex: 0 0 105px;
  width: 105px;
  height: 145px;
  border-radius: 22px;
}

/* Categories: 58px tiles, radius 18, like .category-item */
.sk-categories {
  padding: 0 4px;
  margin-bottom: 16px;
}

.sk-category-row {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: 0 2px 6px;
  margin-bottom: 4px;
}

.sk-category-row + .sk-category-row {
  margin-top: -12px;
}

.sk-category {
  flex: 0 0 58px;
  width: 58px;
  text-align: center;
}

.sk-category-image {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.sk-category-label {
  width: 36px;
  height: 7px;
  margin: 10px auto 5px;
}

/* Products: two columns, card padding 3, radius 17, like .product-card */
.sk-products {
  padding: 0 4px;
  column-count: 2;
  column-gap: 1px;
}

.sk-product {
  break-inside: avoid;
  margin-bottom: 1px;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 17px;
  background: #fafafa;
}

.sk-product-image {
  width: 100%;
  border-radius: 15px;
}

.sk-product-name {
  width: 80%;
  height: 9px;
  margin: 8px 3px 6px;
}

.sk-product-price {
  width: 40%;
  height: 9px;
  margin: 0 3px 6px;
}

.sk-product-meta {
  width: 60%;
  height: 7px;
  margin: 0 3px 5px;
}

/* Shimmer on the big blocks */
.sk-shimmer {
  background-image: linear-gradient(
    100deg,
    var(--sk-block) 25%,
    var(--sk-shine) 40%,
    var(--sk-block) 60%
  );
  background-size: 200% 100%;
  animation: bodegsSkeletonShimmer 1.4s ease-in-out infinite;
}

@keyframes bodegsSkeletonShimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk-shimmer {
    animation: none;
  }
}
