/* EmbroLab — ported from cart-popup.html. Header/footer/base + .form-field* come from embrolab.css. */

:root{
  --color-maroon: #7a1f2b;
  --color-maroon-soft-03: rgba(122,31,43,0.03);
  --color-maroon-soft-10: rgba(122,31,43,0.1);
  --color-nav-bg: #f1ebe7;
  --color-surface-bg: #f8f8f8;
  --color-page-bg: #ffffff;
  --color-icon-bg: #ede5e1;
  --color-text-dark: #111111;
  --color-text-muted-60: rgba(17,17,17,0.6);
  --color-text-muted-70: rgba(17,17,17,0.7);
  --color-text-muted-80: rgba(17,17,17,0.8);
  --color-border-light: rgba(17,17,17,0.2);
  --color-white: #ffffff;
  --color-red-badge: #ee0000;
  --color-footer-bg: #281d16;
  --color-footer-text: #ffffff;
  --color-footer-text-muted: rgba(255,255,255,0.7);
  --color-footer-gold: #d4a017;
  --color-footer-icon-bg: #7a1f2b;

  --color-price-current: #7a1f2b;
  --color-price-strike: #707070;
  --color-discount-tag: #a11a39;
  --color-gold: #d4a017;
  --color-save-badge: #009d52;

  --font-primary: 'Roboto', sans-serif;
  --font-footer-heading: 'Host Grotesk', sans-serif;
  --font-footer-tagline: 'Inter Tight', sans-serif;

  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;

  --container-max: 1720px;
  --radius-pill: 100px;
  --radius-card: 20px;
}

/* =========================================================
   CART POPUP OVERLAY + DRAWER
   ========================================================= */
.cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.55);
  z-index: 100;
  min-height: 100vh;
}
.cart-panel{
  position: fixed;
  top: 0;
  right: 0;
  width: 26.875rem; /* 430px */
  max-width: 100vw;
  height: auto;
  max-height: min(47.3125rem, 100vh); /* 757px, capped to viewport on short screens */
  background: var(--color-surface-bg);
  border-radius: 0 0 0 1.25rem;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  overflow-y: auto;
  z-index: 101;
}
.cart-panel__header{
  position: sticky;
  top: 0;
  background: var(--color-nav-bg);
  height: 4.1875rem; /* 67px */
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.cart-panel__title{
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--color-text-dark);
  text-transform: capitalize;
}
.cart-panel__close{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--color-white);
  border: none;
  flex-shrink: 0;
}
.cart-panel__close img{ width: 11px; height: 11px; object-fit: contain; }

.cart-items{ padding: 1.25rem; display: flex; flex-direction: column; }
.cart-item{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(17,17,17,0.08);
}
.cart-items > .cart-item:first-child{ padding-top: 0; }
.cart-item__thumb{
  width: 5.99rem; /* 95.84px */
  height: 6.6875rem; /* 107px */
  border-radius: 0.6975rem;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.cart-item__thumb img{
  position: absolute;
  top: 9%;
  left: 13%;
  width: 80%;
  height: 88%;
  object-fit: cover;
}
.cart-item__body{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.cart-item__info{ display: flex; flex-direction: column; gap: 1.25rem; }
.cart-item__name{
  font-family: var(--font-footer-heading);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  color: #121212;
  text-transform: capitalize;
}
.cart-item__price-row{ display: flex; align-items: center; gap: 0.4375rem; flex-wrap: wrap; }
.cart-item__price{ font-weight: 700; font-size: 1rem; color: var(--color-text-dark); }
.cart-item__price-original{ font-size: 0.75rem; color: var(--color-price-strike); text-decoration: line-through; }
.cart-item__save{
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
  background: var(--color-save-badge);
  color: var(--color-white);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  height: 18px;
  padding: 0 0.5625rem;
  border-radius: var(--radius-pill);
}
.cart-item__qty{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 4.6992rem; /* 75.187px */
  height: 1.5417rem; /* 24.667px */
  background: var(--color-white);
  border: 1px solid rgba(18,18,18,0.1);
  border-radius: var(--radius-pill);
}
.cart-item__qty-btn{
  border: none;
  background: transparent;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #121212;
  font-size: 1rem;
  line-height: 1;
}
.cart-item__qty-value{ font-family: var(--font-footer-heading); font-weight: 500; font-size: 1rem; color: #121212; }
.cart-item__delete{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 0.5rem;
  background: #ffe4e4;
  border: none;
}
.cart-item__delete img{ width: 15px; height: 15px; object-fit: contain; }

.cart-summary{ padding: 1.25rem; display: flex; flex-direction: column; gap: 1.875rem; }
.cart-summary__box{ display: flex; flex-direction: column; gap: 1rem; }
.cart-summary__title{ font-weight: 700; font-size: 1.125rem; color: #000204; }
.cart-summary__rows{ display: flex; flex-direction: column; gap: 1rem; font-size: 1rem; line-height: 1.4; }
.cart-summary__row{ display: flex; align-items: center; justify-content: space-between; }
.cart-summary__label{ color: #5e666c; }
.cart-summary__value{ color: #231f20; text-align: right; }
.cart-summary__divider{ border: none; border-top: 1px solid rgba(17,17,17,0.1); margin: 0; }
.cart-summary__total{ display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 1.125rem; color: #000204; }
.cart-checkout-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  background: #92251f;
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.875rem 1.875rem;
  font-weight: 600;
  font-size: 1rem;
}
.cart-checkout-btn img{ width: 14px; height: 28px; object-fit: contain; transform: rotate(90deg); }

/* =========================================================
   RESPONSIVE — TABLET (≤1024px)
   ========================================================= */
@media (max-width: 1024px){
  .navbar__inner{ padding: 1rem 1.25rem; position: relative; }
  .navbar__toggle{ display: flex; }
  .navbar__collapse{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-nav-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
    z-index: 20;
  }
  .navbar__collapse.is-open{
    max-height: 32rem;
    opacity: 1;
    padding: 1.25rem;
    border-top: 1px solid rgba(17,17,17,0.08);
  }
  .navbar__links{ flex-direction: column; align-items: flex-start; gap: 1.125rem; width: 100%; }
  .navbar__actions{ width: 100%; justify-content: flex-start; }

  .breadcrumb-bar{ padding: 0.75rem 1.25rem; }
  .breadcrumb-bar__inner{ flex-direction: column; align-items: flex-start; }
  .sort-select{ max-width: 100%; gap: 1rem; }

  .site-footer__top{ padding: 4rem 1.25rem 2.5rem; gap: 2.5rem; }
  .site-footer__links{ gap: 2.5rem 3rem; }

  .cart-panel{ width: 22rem; }
}

/* =========================================================
   RESPONSIVE — MOBILE (≤768px)
   ========================================================= */
@media (max-width: 768px){
  .announcement-bar{ padding: 0.625rem 2.25rem; }
  .announcement-bar__text{ font-size: 0.8125rem; line-height: 1.25rem; }
  .navbar__logo{ width: 7.5rem; }
  .breadcrumb__item{ font-size: var(--fs-xs); }

  .cart-panel{ width: 100vw; max-height: 100vh; border-radius: 0; }
  .cart-item__thumb{ width: 4.5rem; height: 5rem; }
  .cart-item__name{ font-size: 0.9375rem; }

  .site-footer__top{ flex-direction: column; padding: 3rem 1.25rem 2rem; gap: 2.5rem; }
  .footer-brand{ max-width: 100%; }
  .site-footer__links{ flex-direction: column; gap: 2rem; }
  .site-footer__illustration{ margin-top: -1rem; }
}
