/* =========================================
   KGARELO — COMPLETE WEBSITE STYLES
   ========================================= */

:root {
  --cream: #f6efe4;
  --warm-white: #fdf9f3;
  --sand: #dcc4a8;
  --clay: #b06a3b;
  --brown: #4a382c;
  --coffee: #2f231b;
  --muted-ink: #7a6754;

  --background: var(--cream);
  --foreground: var(--coffee);
  --muted-foreground: var(--muted-ink);
  --accent: var(--clay);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Karla", system-ui, sans-serif;

  --shadow-soft:
    0 12px 34px rgba(47, 35, 27, 0.08);

  --shadow-lifted:
    0 24px 70px rgba(47, 35, 27, 0.16);

  --nav-h: 60px;
}


/* =========================================
   RESET
   ========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}


/* =========================================
   NAVIGATION
   ========================================= */

.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  border-bottom:
    1px solid rgba(220, 196, 168, 0.5);
  background: rgba(246, 239, 228, 0.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 16px 24px;
}

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

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand span {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  gap: 36px;
  color: rgba(47, 35, 27, 0.75);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  list-style: none;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--accent);
}

.menu-btn {
  display: none;
  padding: 4px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.menu-btn svg {
  width: 22px;
  height: 22px;
}

.mobile-menu {
  border-top:
    1px solid rgba(220, 196, 168, 0.5);
  background: rgba(246, 239, 228, 0.97);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu ul {
  max-width: 72rem;
  margin: 0 auto;
  padding: 8px 24px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  list-style: none;
  text-transform: uppercase;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
}

.mobile-menu a:hover {
  color: var(--accent);
}


/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(35, 25, 18, 0.88),
      rgba(35, 25, 18, 0.25) 55%,
      transparent
    );
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 28px 80px;
}

.hero-eyebrow {
  margin-bottom: 16px;
  color: rgba(246, 239, 228, 0.8);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.9rem, 8vw, 5.5rem);
  line-height: 1.02;
}

.hero h1 em {
  font-style: italic;
}

.hero-copy {
  max-width: 28rem;
  margin-top: 24px;
  color: rgba(246, 239, 228, 0.85);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition:
    background-color 250ms ease,
    border-color 250ms ease,
    color 250ms ease;
}

.btn-solid {
  background: var(--cream);
  color: var(--coffee);
}

.btn-solid:hover {
  background: var(--sand);
}

.btn-ghost {
  border:
    1px solid rgba(246, 239, 228, 0.6);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(246, 239, 228, 0.12);
}


/* =========================================
   SECTIONS
   ========================================= */

.section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-alt {
  background: rgba(246, 239, 228, 0.55);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.section-sub {
  max-width: 28rem;
  margin-top: 12px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.link-underline {
  padding-bottom: 4px;
  border-bottom:
    1px solid var(--foreground);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.link-underline:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* =========================================
   SHOP HEADER AND CART
   ========================================= */

.shop-header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cart-link:hover {
  color: var(--accent);
}

#cart-count,
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.35rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0;
}


.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 4px 6px;
  color: inherit;
}

.nav-links + .nav-cart {
  margin-left: 24px;
}

.nav-cart:hover {
  color: var(--accent);
}

.nav-cart svg {
  width: 22px;
  height: 22px;
}

.nav-cart .cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  font-size: 0.7rem;
}


/* =========================================
   PRODUCT GRID
   ========================================= */

.grid {
  display: grid;
  gap: 56px 16px;
}

.grid-4,
.grid-3 {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.card {
  min-width: 0;
}

.card.offset {
  margin-top: 40px;
}


/* =========================================
   PRODUCT IMAGE AREA
   ========================================= */

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background:
    rgba(220, 196, 168, 0.35);
}

/*
  All images occupy the same space.

  The first image is visible before JavaScript
  starts so customers never see a blank card.
*/
.card-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition:
    opacity 350ms ease,
    transform 700ms ease;
}

.card-media > img:first-of-type {
  opacity: 1;
}

.card-media .bag-view {
  display: block;
}

.card-media .duplicate-view {
  display: none !important;
}


/* =========================================
   MULTIPLE-VIEW PRODUCTS
   ========================================= */

.card-media.is-previewable {
  cursor: zoom-in;
}

.card-media.has-multiple-views {
  cursor: zoom-in;
}

.card-media.has-multiple-views .bag-view {
  z-index: 1;
  opacity: 0;
}

.card-media.has-multiple-views
.bag-view.is-active {
  z-index: 2;
  opacity: 1;
}

/*
  Only the active image enlarges on hover.
*/
.card:hover
.card-media
.bag-view.is-active {
  transform: scale(1.04);
}

.card-media.has-multiple-views:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}


/* =========================================
   VIEW BADGE
   ========================================= */

.card-media .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 4px 10px;
  background:
    rgba(246, 239, 228, 0.92);
  color: var(--foreground);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  pointer-events: none;
  text-transform: uppercase;
}


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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.card-meta > div:first-child {
  min-width: 0;
}

.card-meta h3 {
  font-size: 1.125rem;
  line-height: 1.2;
}

.card-meta p {
  margin-top: 4px;
  color: var(--muted-foreground);
  font-size: 0.7rem;
  line-height: 1.5;
}

.enquire {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/* =========================================
   PRICE AND CART BUTTON
   ========================================= */

.card-actions {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.price {
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.price-unavailable {
  color: var(--muted-foreground);
  font-size: 0.7rem;
  font-weight: 400;
  white-space: normal;
}

.add-to-cart {
  appearance: none;
  padding: 0.65rem 0.9rem;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--foreground);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.add-to-cart:hover {
  border-color: var(--coffee);
  background: var(--coffee);
  color: var(--warm-white);
}

.add-to-cart:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.add-to-cart:disabled {
  cursor: default;
  opacity: 0.65;
}


/* =========================================
   ABOUT
   ========================================= */

.about {
  padding: 96px 24px;
  background:
    rgba(220, 196, 168, 0.25);
}

.about-inner {
  display: grid;
  gap: 48px;
  max-width: 64rem;
  margin: 0 auto;
}

.about-img {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    rgba(220, 196, 168, 0.35);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about h2 {
  margin-top: 8px;
  font-size: clamp(1.9rem, 5vw, 3rem);
}

.italic {
  font-style: italic;
}

.about p {
  margin-top: 20px;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.75;
}

.learn {
  display: inline-block;
  margin-top: 28px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}


/* =========================================
   CONTACT
   ========================================= */

.contact {
  max-width: 40rem;
  margin: 0 auto;
  padding: 96px 28px;
}

.contact-head {
  text-align: center;
}

.contact-head h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.contact-head p {
  margin-top: 14px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom:
    1px solid var(--sand);
  background: transparent;
  font-size: 0.9rem;
  resize: none;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: var(--accent);
  outline: none;
}

#contactForm button {
  margin-top: 8px;
  padding: 16px;
  border: 0;
  background: var(--brown);
  color: var(--warm-white);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  cursor: pointer;
  text-transform: uppercase;
  transition:
    background-color 250ms ease;
}

#contactForm button:hover {
  background: var(--coffee);
}

#contactForm button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
  padding: 56px 24px;
  background: var(--coffee);
  color: rgba(246, 239, 228, 0.85);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 72rem;
  margin: 0 auto;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
}

.footer-inner .brand span {
  font-size: 1rem;
  letter-spacing: 0.22em;
}

.footer-inner .dim {
  opacity: 0.5;
}




/* =========================================
   PRODUCT PREVIEW POP-UP
   ========================================= */

body.product-preview-open {
  overflow: hidden;
}

.product-preview {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.product-preview[hidden] {
  display: none;
}

.product-preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 25, 18, 0.76);
  backdrop-filter: blur(8px);
}

.product-preview__dialog {
  position: relative;
  z-index: 1;
  width: min(76rem, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 32px;
  overflow-y: auto;
  background: var(--warm-white);
  box-shadow: var(--shadow-lifted);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.product-preview.is-open
.product-preview__dialog {
  opacity: 1;
  transform: none;
}

.product-preview__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: rgba(253, 249, 243, 0.94);
  color: var(--foreground);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.product-preview__close:hover,
.product-preview__close:focus-visible,
.product-preview__arrow:hover,
.product-preview__arrow:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.product-preview__header {
  padding-right: 56px;
  margin-bottom: 24px;
}

.product-preview__header h2 {
  margin-top: 7px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.product-preview__header p {
  max-width: 36rem;
  margin-top: 9px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

.product-preview__viewport {
  min-width: 0;
  outline: none;
}

.product-preview__viewport:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.product-preview__track {
  display: grid;
  gap: 16px;
}

.product-preview__track.is-count-1 {
  grid-template-columns: minmax(0, 28rem);
  justify-content: center;
}

.product-preview__track.is-count-2 {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.product-preview__track.is-count-3 {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}

.product-preview__figure {
  min-width: 0;
  background: rgba(220, 196, 168, 0.22);
}

.product-preview__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.product-preview__figure figcaption {
  padding: 10px 12px;
  color: var(--muted-foreground);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.product-preview__controls,
.product-preview__dots {
  display: none;
}

.product-preview__arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.product-preview__arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.product-preview__count {
  min-width: 5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.product-preview__dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--foreground);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.product-preview__dot.is-active {
  background: var(--foreground);
}


/* =========================================
   PRODUCT PREVIEW — MOBILE SLIDER
   ========================================= */

@media (max-width: 767px) {
  .product-preview {
    align-items: end;
    padding: 10px 0 0;
  }

  .product-preview__dialog {
    width: 100%;
    max-height: calc(100vh - 10px);
    max-height: calc(100dvh - 10px);
    padding: 26px 20px 22px;
  }

  .product-preview__close {
    top: 14px;
    right: 14px;
  }

  .product-preview__header {
    margin-bottom: 18px;
  }

  .product-preview__viewport {
    margin-right: -20px;
    margin-left: -20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-preview__viewport::-webkit-scrollbar {
    display: none;
  }

  .product-preview__track,
  .product-preview__track.is-count-1,
  .product-preview__track.is-count-2,
  .product-preview__track.is-count-3 {
    display: flex;
    width: max-content;
    padding: 0 20px 8px;
    gap: 12px;
  }

  .product-preview__figure {
    flex: 0 0 min(82vw, 22rem);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .product-preview__track.is-count-1
  .product-preview__figure {
    flex-basis: min(88vw, 24rem);
  }

  .product-preview__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
  }

  .product-preview__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }
}


/* =========================================
   FLOATING BUTTONS
   ========================================= */

.whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: #25d366;
  box-shadow: var(--shadow-lifted);
  color: #fff;
  transition: transform 200ms ease;
}

.whatsapp:hover {
  transform: scale(1.06);
}

.whatsapp svg {
  width: 24px;
  height: 24px;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background:
    rgba(246, 239, 228, 0.9);
  box-shadow: var(--shadow-soft);
  color: var(--foreground);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 300ms ease,
    transform 300ms ease,
    border-color 300ms ease,
    color 300ms ease;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.to-top svg {
  width: 16px;
  height: 16px;
}


/* =========================================
   TOUCH DEVICES
   ========================================= */

@media (hover: none), (pointer: coarse) {
  .card-media.has-multiple-views {
    cursor: pointer;
    touch-action: manipulation;
  }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .nav-cart {
    margin-left: auto;
    margin-right: 8px;
  }

  .section-head {
    align-items: flex-start;
  }

  .shop-header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
  }

  .card.offset {
    margin-top: 40px;
  }

  .card-meta {
    align-items: flex-start;
    gap: 1rem;
  }

  .card-actions {
    align-items: flex-end;
  }
}


/* =========================================
   VERY SMALL MOBILE
   ========================================= */

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

  .grid {
    column-gap: 12px;
  }

  .card-meta {
    flex-direction: column;
  }

  .card-actions {
    width: 100%;
    align-items: flex-start;
  }

  .add-to-cart {
    width: 100%;
    text-align: center;
  }
}


/* =========================================
   TABLET AND DESKTOP
   ========================================= */

@media (min-width: 768px) {
  :root {
    --nav-h: 68px;
  }

  .nav-inner {
    padding: 20px 40px;
  }

  .section {
    padding: 128px 40px;
  }

  .about {
    padding: 128px 40px;
  }

  .grid {
    gap: 80px 24px;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .card.offset {
    margin-top: 0;
  }

  .about-inner {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 64px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hero-content {
    padding: 0 40px 112px;
  }
}


/* =========================================
   LARGE DESKTOP
   ========================================= */

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration:
      0.01ms !important;
    animation-duration:
      0.01ms !important;
    animation-iteration-count:
      1 !important;
  }
}

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

.notice-box{
    background:#fff;
    max-width:760px;
    width:100%;
    border-radius:18px;
    padding:35px;
    max-height:90vh;
    overflow-y:auto;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
}

.notice-box h2{
    margin-top:0;
    margin-bottom:20px;
}

.notice-box p{
    margin-bottom:18px;
    line-height:1.7;
}

.courier-table{
    width:100%;
    border-collapse:collapse;
    margin:25px 0;
    font-size:.95rem;
}

.courier-table th,
.courier-table td{
    border-bottom:1px solid #ddd;
    padding:12px;
    text-align:left;
}

.courier-table th{
    background:#f8f8f8;
}

.notice-box button{
    margin-top:15px;
    width:100%;
}

@media (max-width: 640px){
    .notice-overlay{
        padding:12px;
        align-items:flex-end;
    }

    .notice-box{
        padding:22px 18px;
        border-radius:16px;
        max-height:88vh;
        max-height:88dvh;
    }

    .notice-box h2{
        font-size:1.35rem;
        margin-bottom:14px;
    }

    .notice-box h3{
        font-size:1rem;
    }

    .notice-box p{
        font-size:0.95rem;
        margin-bottom:14px;
    }

    .courier-table{
        display:block;
        margin:18px 0;
        font-size:0.9rem;
    }

    .courier-table thead{
        display:none;
    }

    .courier-table tbody,
    .courier-table tr,
    .courier-table td{
        display:block;
        width:100%;
    }

    .courier-table tr{
        margin-bottom:14px;
        padding:12px 14px;
        border:1px solid #e6e0d6;
        border-radius:12px;
        background:#faf7f2;
    }

    .courier-table td{
        display:flex;
        align-items:baseline;
        justify-content:space-between;
        gap:12px;
        padding:6px 0;
        border-bottom:0;
        text-align:right;
    }

    .courier-table td::before{
        content:attr(data-label);
        font-size:0.75rem;
        letter-spacing:0.08em;
        text-transform:uppercase;
        opacity:0.65;
        text-align:left;
    }

    .courier-table td.courier-name{
        display:block;
        text-align:left;
        font-weight:600;
        padding-bottom:10px;
        margin-bottom:6px;
        border-bottom:1px solid #e6e0d6;
    }

    .courier-table td.courier-name::before{
        display:block;
        margin-bottom:2px;
        font-weight:400;
    }
}

/* checkout page */

    .checkout-page {
      width: min(900px, calc(100% - 2rem));
      margin: 0 auto;
      padding: 4rem 0;
    }

    .checkout-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 2rem;
      margin-bottom: 3rem;
    }

    .checkout-header a {
      color: inherit;
    }

    .checkout-list {
      display: grid;
      gap: 1rem;
    }

    .checkout-item {
      display: grid;
      grid-template-columns: 1fr auto auto;
      align-items: center;
      gap: 1.5rem;
      padding: 1.25rem 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    }

    .checkout-item h2 {
      margin: 0 0 0.35rem;
      font-size: 1.1rem;
    }

    .checkout-item p {
      margin: 0;
    }

    .quantity-controls {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .quantity-button,
    .remove-button {
      appearance: none;
      border: 1px solid currentColor;
      background: transparent;
      color: inherit;
      cursor: pointer;
      font: inherit;
    }

    .quantity-button {
      width: 2rem;
      height: 2rem;
    }

    .remove-button {
      margin-top: 0.6rem;
      padding: 0.35rem 0.55rem;
      font-size: 0.75rem;
    }

    .item-subtotal {
      min-width: 5rem;
      text-align: right;
      font-weight: 600;
    }

    .checkout-summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 2rem;
      margin-top: 3rem;
      padding-top: 1.5rem;
      border-top: 2px solid currentColor;
    }

    .checkout-total {
      font-size: 1.35rem;
      font-weight: 600;
    }

    .request-button {
      appearance: none;
      padding: 1rem 1.5rem;
      border: 1px solid #111;
      background: #111;
      color: #fff;
      font: inherit;
      font-weight: 600;
      cursor: pointer;
    }

    .request-button:disabled {
      cursor: not-allowed;
      opacity: 0.45;
    }

    .empty-cart {
      padding: 3rem 0;
      text-align: center;
    }

    .empty-cart a {
      display: inline-block;
      margin-top: 1rem;
      color: inherit;
    }

    @media (max-width: 650px) {
      .checkout-header,
      .checkout-summary {
        flex-direction: column;
        align-items: stretch;
      }

      .checkout-item {
        grid-template-columns: 1fr auto;
      }

      .item-subtotal {
        grid-column: 2;
      }

      .request-button {
        width: 100%;
      }
    }
  