:root {
  /* From `web/src/styles/globals.css` for template 010 */
  --main-color-light: var(--main-color-light-010);
  --main-color-normal: var(--main-color-normal-010);
  --main-color-deep: var(--main-color-deep-010);

  --main-color-light-010: 22, 93%, 90%;
  --main-color-normal-010: 22, 93%, 55%;
  --main-color-deep-010: 22, 93%, 50%;
}

/* Tailwind-like helper colors (used by classnames in template10) */
.bg-mainColorLight {
  background-color: hsl(var(--main-color-light));
}
.bg-mainColorNormal {
  background-color: hsl(var(--main-color-normal));
}
.bg-mainColorDeep {
  background-color: hsl(var(--main-color-deep));
}
.text-mainColorNormal {
  color: hsl(var(--main-color-normal));
}
.hover\:text-mainColorNormal:hover {
  color: hsl(var(--main-color-normal));
}
.hover\:bg-mainColorDeep:hover {
  background-color: hsl(var(--main-color-deep));
}
.hover\:bg-mainColorNormal:hover {
  background-color: hsl(var(--main-color-normal));
}

/* Alpha variants referenced by template10 */
.bg-mainColorNormalAlpha-50 {
  background-color: hsla(var(--main-color-normal), 0.5);
}
.bg-mainColorNormalAlpha-20 {
  background-color: hsla(var(--main-color-normal), 0.2);
}
.bg-mainColorNormalAlpha-80 {
  background-color: hsla(var(--main-color-normal), 0.8);
}

/* Border utilities used by templates */
.border-mainColorLight {
  border-color: hsl(var(--main-color-light));
}
.border-mainColorNormal {
  border-color: hsl(var(--main-color-normal));
}

/* Gradient helpers for classes used in templates */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}
.from-mainColorNormal {
  --tw-gradient-from: hsl(var(--main-color-normal));
}
.to-mainColorNormalAlpha-50 {
  --tw-gradient-to: hsla(var(--main-color-normal), 0.5);
}

/* Match `Carousel` button styling from the React component */
.hero-nav-btn {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  backdrop-filter: blur(6px);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  background-color: hsla(var(--main-color-normal), 0.5);
}
.hero-nav-btn:hover {
  background-color: hsl(var(--main-color-normal));
}

@media (min-width: 768px) {
  .hero-nav-btn {
    display: flex;
  }
}

/* Minimal Swiper pagination styling (keep close to default) */
.swiper-pagination-bullet {
  opacity: 0.75;
}
.swiper-pagination-bullet-active {
  background: hsl(var(--main-color-normal));
  opacity: 1;
}

/* ---------- Top nav (centered + hover dropdown) ---------- */
.topnav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 5rem; /* 80px */
}
.topnav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.topnav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #374151; /* gray-700 */
  font-weight: 500;
  transition: color 200ms ease;
  padding: 0.25rem 0;
}
.topnav-link:hover {
  color: hsl(var(--main-color-normal));
}
.topnav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 100%;
  height: 2px;
  background: hsl(var(--main-color-normal));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
  opacity: 0.9;
}
.topnav-link:hover::after {
  transform: scaleX(1);
}

.topnav-item {
  position: relative;
}
.topnav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb; /* gray-200 */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  translate: 0 -6px;
  transition: opacity 160ms ease, visibility 160ms ease, translate 160ms ease;
  z-index: 60;
}
.topnav-item:hover .topnav-dropdown,
.topnav-item:focus-within .topnav-dropdown {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.topnav-dd-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #111827; /* gray-900 */
  font-size: 0.875rem;
  transition: background-color 160ms ease, color 160ms ease;
}
.topnav-dd-link:hover {
  background: hsla(var(--main-color-normal), 0.12);
  color: hsl(var(--main-color-deep));
}

@media (max-width: 768px) {
  .topnav {
    grid-template-columns: auto 1fr;
  }
  .topnav-menu {
    display: none; /* use mobile drawer instead */
  }
  .topnav-dropdown {
    left: auto;
    right: 0;
    transform: none;
  }
}

/* ---------- Mobile drawer nav (matches provided screenshots) ---------- */
.topnav-mobile-btn {
  display: none;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
.topnav-mobile-btn:hover {
  border-color: hsla(var(--main-color-normal), 0.5);
  color: hsl(var(--main-color-deep));
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(92vw, 360px);
  background: #fff;
  z-index: 81;
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}
.mobile-drawer-open .mobile-drawer-overlay {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 10px;
}
.mobile-drawer-close {
  height: 40px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #111827;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.mobile-drawer-close:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.mobile-drawer-nav {
  padding: 10px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border-radius: 12px;
  color: #111827;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}
.mobile-drawer-link:hover {
  background: hsla(var(--main-color-normal), 0.12);
  color: hsl(var(--main-color-deep));
}

.mobile-accordion-panel {
  padding: 4px 10px 10px;
  display: none;
}
.mobile-accordion-open .mobile-accordion-panel {
  display: block;
}
.mobile-accordion-item {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: #374151;
  font-weight: 500;
}
.mobile-accordion-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding: 14px 18px 18px;
  border-top: 1px solid #eee;
}
.mobile-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 12px;
}
.mobile-social-link {
  color: #111827;
  opacity: 0.9;
  transition: color 160ms ease, opacity 160ms ease;
}
.mobile-social-link:hover {
  color: hsl(var(--main-color-deep));
  opacity: 1;
}

@media (max-width: 768px) {
  .topnav-mobile-btn {
    display: inline-flex;
    justify-self: end;
  }
}

/* ---------- PDP buy box (qty + buttons) ---------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  height: 40px;
  background: #fff;
}
.qty-btn {
  width: 42px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: #fff;
  transition: background-color 160ms ease;
}
.qty-btn:hover {
  background: #f3f4f6;
}
.qty-input {
  width: 54px;
  height: 40px;
  text-align: center;
  font-weight: 600;
  color: #111827;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}
.btn-black {
  background: #000;
  color: #fff;
  height: 44px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 160ms ease, transform 160ms ease;
}
.btn-black:hover {
  opacity: 0.92;
}
.btn-gray {
  background: #9b6f6f; /* muted brown/pink like screenshot */
  color: #fff;
  height: 44px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 160ms ease, transform 160ms ease;
}
.btn-gray:hover {
  opacity: 0.92;
}

/* ---------- H5 cart drawer (like screenshot) ---------- */
.cart-fab {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 70;
  height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}
.cart-fab-badge {
  height: 22px;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(92vw, 420px);
  background: #fff;
  z-index: 91;
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}
.cart-open .cart-overlay {
  opacity: 1;
  visibility: visible;
}
.cart-open .cart-drawer {
  transform: translateX(0);
}
.cart-header {
  background: #000;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
}
.cart-close {
  height: 36px;
  width: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  transition: background-color 160ms ease;
}
.cart-close:hover { background: rgba(255,255,255,0.14); }
.cart-body {
  padding: 14px 16px;
  overflow: auto;
  flex: 1;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}
.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.cart-title {
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}
.cart-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.cart-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.cart-trash {
  height: 30px;
  width: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  color: #111827;
}
.cart-trash:hover { background: #f3f4f6; }
.cart-price {
  font-weight: 800;
  color: #111827;
  margin-top: 10px;
  text-align: right;
}
.cart-footer {
  border-top: 2px solid #000;
  padding: 12px 16px 16px;
}
.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}
.cart-checkout {
  height: 48px;
  width: 100%;
  background: #000;
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
}
.cart-checkout:hover { opacity: 0.92; }
.cart-view {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: #111827;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cart-fab { display: inline-flex; }
  .cart-drawer { width: 92vw; }
}
