/* ─── Announcement Bar ───────────────────────────────────────────── */
.announcement-bar {
  background: #111827;
  color: #fff;
  text-align: center;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ─── Header & Nav ───────────────────────────────────────────────── */
.header, .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
}

.navbar, .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.logo, .nav__logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #111827;
  flex-shrink: 0;
}
.logo span { color: #4F46E5; }

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-menu a {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  position: relative;
  padding-bottom: 3px;
  transition: color .25s;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4F46E5;
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: right;
}
.nav-menu a:hover,
.nav-menu a.active { color: #4F46E5; }
.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); transform-origin: left; }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-actions > a {
  font-size: 20px;
  color: #111827;
  transition: color .25s;
}
.nav-actions > a:hover { color: #4F46E5; }

/* Cart button */
.cart-btn, .nav__cart-btn {
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #EEF2FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #111827;
  transition: background .25s;
}
.cart-btn:hover { background: #E0E7FF; }

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #4F46E5;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 18px;
  color: #111827;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}
.nav-hamburger:hover { background: #f3f4f6; }

/* ─── Cart Drawer ─────────────────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.52);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
  z-index: 10000;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100vh;
  background: #fff;
  z-index: 10010;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: -24px 0 80px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-drawer.open { transform: translateX(0); }

/* Header */
.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
}
.cart-drawer-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #111827;
}
.cart-header-count {
  font-size: 14px;
  font-weight: 500;
  color: #9CA3AF;
}
.cart-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #6B7280;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.cart-close-btn:hover { background: #F3F4F6; color: #111827; }
.cart-close-btn:focus-visible { outline: 2px solid #4F46E5; outline-offset: 2px; border-radius: 8px; }

/* Scrollable items */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px;
}
.cart-items-list::-webkit-scrollbar { width: 4px; }
.cart-items-list::-webkit-scrollbar-track { background: transparent; }
.cart-items-list::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 4px; }

/* Sticky footer */
.cart-footer-wrap {
  flex-shrink: 0;
  border-top: 1px solid #E5E7EB;
  padding: 18px 24px 28px;
}

/* ── Free shipping progress ── */
.cart-ship-bar {
  padding: 14px 0 10px;
  border-bottom: 1px solid #F3F4F6;
  margin-bottom: 4px;
}
.cart-ship-msg {
  font-size: 13px;
  color: #4B5563;
  margin-bottom: 8px;
  line-height: 1.5;
}
.cart-ship-msg strong { color: #111827; }
.cart-ship-msg--done { color: #16A34A; font-weight: 600; }
.cart-ship-msg--done strong { color: inherit; }
.cart-ship-track {
  height: 6px;
  background: #F3F4F6;
  border-radius: 99px;
  overflow: hidden;
}
.cart-ship-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #7C3AED);
  border-radius: 99px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}

/* ── Cart items ── */
.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #F3F4F6;
  transition: opacity .22s ease, transform .22s ease;
}
.cart-item:last-child { border-bottom: none; }
.cart-item.removing {
  opacity: 0;
  transform: translateX(22px);
  pointer-events: none;
}
.cart-item--incomplete {
  background: #FAFAFA;
}

/* ── Inline option selectors (for incomplete cart items) ── */
.cart-item-opts {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-opt-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cart-opt-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6B7280;
}
.cart-opt-values {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cart-opt-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1.5px solid #E5E7EB;
  color: #374151;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  min-width: 44px;
  min-height: 32px;
  text-align: center;
  white-space: nowrap;
}
.cart-opt-btn:hover {
  border-color: #9CA3AF;
  background: #F3F4F6;
}
.cart-opt-btn:focus-visible {
  outline: 2px solid #4F46E5;
  outline-offset: 2px;
}
.cart-opt-btn--selected {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.cart-opt-btn--selected:hover {
  background: #1F2937;
  border-color: #1F2937;
}

/* ── Checkout blocked warning ── */
.cart-incomplete-msg {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #92400E;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 10px;
}
.cart-incomplete-msg i {
  color: #D97706;
  font-size: 13px;
  margin-top: 1px;
  flex-shrink: 0;
}

.cart-item__img-wrap {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  overflow: hidden;
  background: #F9FAFB;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item__img-wrap--ph::after {
  content: '📦';
  font-size: 28px;
}
.cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.cart-item__top {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.cart-item__name {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: #111827;
  word-break: break-word;
}

.cart-item__del {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9CA3AF;
  flex-shrink: 0;
  transition: background .18s, color .18s;
}
.cart-item__del:hover { background: #FEE2E2; color: #EF4444; }
.cart-item__del:focus-visible { outline: 2px solid #4F46E5; outline-offset: 2px; border-radius: 6px; }

.cart-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cart-item__tag {
  font-size: 11.5px;
  color: #6B7280;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 2px 7px;
}
.cart-item__tag b { font-weight: 600; color: #374151; }
.cart-item__tag--bundle {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: #4F46E5;
}
.cart-item__tag--edit {
  font-size: 11.5px;
  color: #374151;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 2px 6px 2px 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  transition: background .15s, border-color .15s;
}
.cart-item__tag--edit b { font-weight: 600; }
.cart-item__tag--edit .fa-chevron-down { font-size: 8px; color: #9CA3AF; margin-left: 1px; }
.cart-item__tag--edit:hover { background: #F3F4F6; border-color: #9CA3AF; }
.cart-item__tag--edit:focus-visible { outline: 2px solid #4F46E5; outline-offset: 2px; }

#cart-opt-popover {
  position: fixed;
  z-index: 10020;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 120px;
  max-width: 240px;
}
#cart-opt-popover[hidden] { display: none; }
.cart-opt-popover-val {
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  padding: 5px 11px;
  border-radius: 7px;
  border: 1.5px solid #E5E7EB;
  background: #fff;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.cart-opt-popover-val:hover { background: #F3F4F6; border-color: #9CA3AF; }
.cart-opt-popover-val.selected { background: #111827; color: #fff; border-color: #111827; }
.cart-opt-popover-val:focus-visible { outline: 2px solid #4F46E5; outline-offset: 2px; }

.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}
.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  color: #374151;
  background: transparent;
  transition: background .18s;
  user-select: none;
}
.qty-btn:hover { background: #F9FAFB; }
.qty-btn:focus-visible { outline: 2px solid #4F46E5; outline-offset: -2px; }
.qty-val {
  font-size: 14px;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
  border-left: 1.5px solid #E5E7EB;
  border-right: 1.5px solid #E5E7EB;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}
.cart-item__price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.cart-item__price {
  font-weight: 800;
  font-size: 15px;
  color: #111827;
  white-space: nowrap;
}
.cart-item__compare {
  font-size: 11.5px;
  color: #9CA3AF;
  text-decoration: line-through;
  white-space: nowrap;
}

/* ── Cart summary ── */
.cart-summary { margin-bottom: 14px; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #4B5563;
  padding: 5px 0;
}
.cart-summary-row--total {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  padding-top: 10px;
}
.cart-summary-line { height: 1px; background: #E5E7EB; margin: 6px 0; }
.cart-summary-free { color: #16A34A; font-weight: 700; font-size: 13px; }
.cart-summary-tbd { color: #9CA3AF; font-size: 12px; }

/* ── Trust signals ── */
.cart-trust {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cart-trust-item {
  font-size: 11.5px;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cart-trust-item i { color: #9CA3AF; font-size: 10.5px; }

/* ── Checkout CTA ── */
.btn--checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #111827;
  color: #fff;
  border-radius: 14px;
  padding: 17px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.btn--checkout:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(17,24,39,.22); }
.btn--checkout:active { transform: translateY(0); }
.btn--checkout:focus-visible { outline: 2px solid #4F46E5; outline-offset: 3px; border-radius: 14px; }
.btn--checkout:disabled { background: #D1D5DB; color: #9CA3AF; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Empty cart ── */
.cart-empty {
  text-align: center;
  padding: 48px 20px 32px;
}
.cart-empty-icon {
  font-size: 44px;
  color: #D1D5DB;
  margin-bottom: 16px;
}
.cart-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.cart-empty-msg {
  font-size: 14px;
  color: #9CA3AF;
  margin-bottom: 24px;
  line-height: 1.6;
}
.cart-empty-cta {
  display: inline-flex;
  align-items: center;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  transition: transform .2s, box-shadow .2s;
}
.cart-empty-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17,24,39,.18); }

/* ── Mobile ── */
@media (max-width: 480px) {
  .cart-drawer { width: 100%; }
  .cart-items-list { padding: 0 16px; }
  .cart-footer-wrap { padding: 16px 16px 28px; }
  .cart-drawer-head { padding: 18px 16px 16px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-ship-fill, .cart-item,
  .btn--checkout, .cart-empty-cta, .drawer-overlay { transition: none; }
  .cart-item.removing { opacity: 0; }
}

/* ─── Trust Signals (product page) ───────────────────────────────── */
.trust-signals { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.trust-item { font-size: 14px; color: #6B7280; }

/* ─── Product Form (product page) ────────────────────────────────── */
.product-form-section {
  padding: 56px 0;
  border-top: 1px solid #E5E7EB;
}
.product-form { max-width: 560px; }

.option-group { margin-bottom: 24px; }
.option-group__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 10px;
}
.option-group__values { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn {
  padding: 9px 18px;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  transition: border-color .2s, background .2s;
}
.option-btn:hover { border-color: #111827; }
.option-btn--selected { border-color: #111827; background: #111827; color: #fff; }

.bundle-group { margin-bottom: 24px; }
.bundle-group__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 12px;
}
.bundle-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  transition: border-color .2s, background .2s;
}
.bundle-option:hover { border-color: #111827; }
.bundle-option--selected { border-color: #111827; background: #FAFAFA; }
.bundle-option--popular { border-color: #F59E0B; }
.bundle-option__radio { accent-color: #111827; flex-shrink: 0; }
.bundle-option__body { flex: 1; }
.bundle-option__name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.bundle-option__pricing { display: flex; align-items: center; gap: 8px; }
.bundle-option__price { font-weight: 800; font-size: 16px; }
.bundle-option__compare { font-size: 14px; color: #9CA3AF; text-decoration: line-through; }
.bundle-option__savings { font-size: 12px; color: #22C55E; font-weight: 700; background: #F0FDF4; padding: 2px 8px; border-radius: 99px; }
.bundle-option__badge {
  position: absolute;
  top: -10px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #F59E0B;
  color: #fff;
  padding: 2px 10px;
  border-radius: 99px;
}

.btn--atc {
  width: 100%;
  height: 58px;
  background: #111827;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 20px 45px rgba(17,24,39,.22);
  transition: transform .3s, box-shadow .3s;
}
.btn--atc:hover { transform: translateY(-3px); box-shadow: 0 28px 55px rgba(17,24,39,.30); }
.atc-price { font-size: 16px; font-weight: 800; }
.atc-subtext { font-size: 12px; color: #9CA3AF; text-align: center; margin-top: 10px; }

/* ─── Simple footer (product page) ───────────────────────────────── */
.site-footer {
  background: #111827;
  padding: 32px 0;
  text-align: center;
}
.site-footer p { color: rgba(255,255,255,.6); font-size: 14px; }
.footer__brand { font-size: 22px; font-weight: 800; letter-spacing: -1px; color: #fff; margin-bottom: 8px; }
.footer__tagline { color: rgba(255,255,255,.72); font-size: 14px; }
.footer__copy { color: rgba(255,255,255,.45); font-size: 13px; margin-top: 8px; }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    padding: 20px 24px 28px;
    gap: 20px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
  }
  .nav-hamburger { display: flex; }
  .header, .site-header { position: sticky; }
}
