/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000;
  --white: #fff;
  --gray-50:  #fafafa;
  --gray-100: #f4f4f4;
  --gray-200: #e5e5e5;
  --gray-300: #d0d0d0;
  --gray-400: #a3a3a3;
  --gray-600: #525252;
  --gray-800: #1a1a1a;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 2px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--black); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: 56px;
  display: flex; align-items: center;
  padding: 0 32px;
  gap: 16px;
}
.navbar__logo {
  font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  flex: 1;
}
.navbar__actions { display: flex; align-items: center; gap: 4px; }
.nav-btn {
  background: none; border: none; cursor: pointer;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--black); border-radius: var(--radius);
  transition: background 0.15s;
  position: relative;
}
.nav-btn:hover { background: var(--gray-100); }
.nav-btn svg { width: 18px; height: 18px; stroke-width: 1.8; }

.cart-badge {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px;
  background: var(--black); color: var(--white);
  border-radius: 50%;
  font-size: 9px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.4);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { display: flex; }

.search-box {
  background: var(--white);
  width: 100%; max-width: 600px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.search-input-wrap {
  display: flex; align-items: center;
  padding: 0 16px; gap: 10px;
  border-bottom: 1px solid var(--gray-200);
}
.search-input-wrap svg { width: 16px; height: 16px; color: var(--gray-400); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1; border: none; outline: none;
  font-size: 15px; padding: 14px 0;
  background: transparent; color: var(--black);
}
.search-input-wrap input::placeholder { color: var(--gray-400); }
.search-close {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); padding: 4px;
  font-size: 20px; line-height: 1;
}
.search-close:hover { color: var(--black); }

.search-results { max-height: 360px; overflow-y: auto; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; cursor: pointer;
  transition: background 0.1s;
}
.search-result-item:hover { background: var(--gray-50); }
.search-result-img {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
}
.search-result-img svg { width: 18px; height: 18px; color: var(--gray-300); }
.search-result-img img { width: 100%; height: 100%; object-fit: cover; }
.search-result-name { font-size: 13px; font-weight: 500; }
.search-result-price { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.search-empty { padding: 24px 16px; text-align: center; color: var(--gray-400); font-size: 13px; }

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.4);
  display: none;
}
.cart-overlay.open { display: block; }

.cart-drawer {
  position: fixed; top: 0; right: -420px; z-index: 401;
  width: 380px; max-width: 100vw; height: 100vh;
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  transition: right 0.3s ease;
}
.cart-drawer.open { right: 0; }

.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}
.cart-drawer__title { font-size: 14px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.cart-drawer__close {
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); border-radius: var(--radius);
}
.cart-drawer__close:hover { background: var(--gray-100); color: var(--black); }
.cart-drawer__close svg { width: 16px; height: 16px; }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 0; }
.cart-drawer__empty {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--gray-400); padding: 40px;
}
.cart-drawer__empty svg { width: 40px; height: 40px; stroke-width: 1; }
.cart-drawer__empty p { font-size: 13px; }
.cart-drawer__empty a {
  font-size: 13px; font-weight: 500;
  color: var(--black); text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-item {
  display: flex; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.cart-item__img {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
}
.cart-item__img svg { width: 20px; height: 20px; color: var(--gray-300); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 13px; font-weight: 500; line-height: 1.4; }
.cart-item__price { font-size: 12px; color: var(--gray-600); margin-top: 4px; }
.cart-item__controls {
  display: flex; align-items: center; gap: 0;
  margin-top: 8px;
  border: 1px solid var(--gray-300);
  width: fit-content;
}
.cart-item__controls button {
  width: 28px; height: 28px; background: none; border: none;
  cursor: pointer; font-size: 14px; color: var(--black);
  display: flex; align-items: center; justify-content: center;
}
.cart-item__controls button:hover { background: var(--gray-100); }
.cart-item__controls span {
  width: 32px; text-align: center; font-size: 13px;
  border-left: 1px solid var(--gray-300);
  border-right: 1px solid var(--gray-300);
  line-height: 28px;
}
.cart-item__remove {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); padding: 4px; align-self: flex-start;
}
.cart-item__remove:hover { color: var(--black); }
.cart-item__remove svg { width: 14px; height: 14px; }

.cart-drawer__foot {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.cart-subtotal__label { font-size: 13px; color: var(--gray-600); }
.cart-subtotal__value { font-size: 14px; font-weight: 600; }
.cart-subtotal__note { font-size: 11px; color: var(--gray-400); margin-top: 2px; text-align: right; }

.btn-checkout {
  display: block; width: 100%;
  padding: 13px;
  background: var(--black); color: var(--white);
  border: none; cursor: pointer;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.15s;
}
.btn-checkout:hover { background: var(--gray-800); }

/* ===== ACCOUNT / LOGIN MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.45);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  width: 100%; max-width: 400px;
  border: 1px solid var(--gray-200);
  padding: 36px 32px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}
.modal__title {
  font-size: 20px; font-weight: 700;
  margin-bottom: 6px;
}
.modal__sub { font-size: 13px; color: var(--gray-400); margin-bottom: 24px; }
.modal__field { margin-bottom: 16px; }
.modal__field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 6px; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.04em; }
.modal__field input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--gray-300); outline: none;
  font-size: 14px; font-family: inherit;
  transition: border-color 0.15s;
}
.modal__field input:focus { border-color: var(--black); }
.modal__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.btn-primary {
  display: block; width: 100%; padding: 12px;
  background: var(--black); color: var(--white);
  border: none; cursor: pointer;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--gray-800); }
.btn-secondary {
  display: block; width: 100%; padding: 12px;
  background: var(--white); color: var(--black);
  border: 1px solid var(--gray-300); cursor: pointer;
  font-size: 13px; font-weight: 500;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--black); background: var(--gray-50); }
.modal__close-row { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.modal__close-btn {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.modal__close-btn:hover { color: var(--black); }
.modal__close-btn svg { width: 16px; height: 16px; }

.modal__success { text-align: center; padding: 20px 0; }
.modal__success svg { width: 48px; height: 48px; color: var(--black); margin: 0 auto 16px; display: block; }
.modal__success h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.modal__success p { font-size: 13px; color: var(--gray-600); }

/* Toggle row (already have account / create account) */
.modal__toggle-row {
  font-size: 13px; color: var(--gray-400);
  margin-bottom: 18px;
}
.modal__toggle-link {
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--black);
  text-decoration: underline; text-underline-offset: 2px;
  padding: 0;
}
.modal__toggle-link:hover { color: var(--gray-600); }

/* Two-column name row */
.modal__field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

/* Optional label */
.modal__optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--gray-400); font-size: 11px; }

/* Hint text below input */
.modal__hint { font-size: 11px; color: var(--gray-400); margin-top: 6px; }

/* Divider */
.modal__divider { border: none; border-top: 1px solid var(--gray-200); margin: 18px 0; }

/* Consent block */
.modal__consent { display: flex; flex-direction: column; gap: 8px; }
.modal__consent-heading {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gray-600); margin-bottom: 8px;
}
.modal__consent-row { display: flex; gap: 10px; align-items: flex-start; }
.modal__consent-row input[type="checkbox"] {
  width: 14px; height: 14px; flex-shrink: 0;
  margin-top: 2px; accent-color: var(--black); cursor: pointer;
}
.modal__consent-text { font-size: 12px; color: var(--gray-600); line-height: 1.55; }
.modal__consent-text strong { color: var(--black); }
.modal__consent-note { font-size: 11px; color: var(--gray-400); line-height: 1.5; padding-left: 24px; }
.modal__consent-note strong { color: var(--gray-600); }

/* Terms note */
.modal__terms-note {
  font-size: 12px; color: var(--gray-400);
  text-align: center; line-height: 1.6; margin-bottom: 14px;
}
.modal__terms-note a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }
.modal__terms-note a:hover { color: var(--gray-600); }

/* Wider modal for create account */
.modal { transition: max-width 0.2s; }
@media (min-width: 480px) {
  .modal-overlay.open .modal { max-width: 460px; }
}
@media (max-width: 479px) {
  .modal__field-row { grid-template-columns: 1fr; }
}

/* ===== MAIN ===== */
main { max-width: 1200px; margin: 0 auto; padding: 40px 32px 80px; }

/* ===== SECTION HEADING ===== */
.section-heading {
  font-size: 16px; font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.product-section { margin-bottom: 52px; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== PRODUCT CARD ===== */
.product-card { cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.product-card:hover .product-card__img { border-color: var(--gray-400); }
.product-card__img {
  width: 100%; aspect-ratio: 1;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s; overflow: hidden;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__img svg { width: 36px; height: 36px; color: var(--gray-300); stroke-width: 1.2; }
.product-card__name { font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--black); }
.product-card__price { font-size: 12px; color: var(--gray-600); }

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  margin-bottom: 56px;
}
@media (max-width: 720px) { .product-detail { grid-template-columns: 1fr; gap: 24px; } }

.product-detail__img {
  width: 100%; aspect-ratio: 1;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__img svg { width: 72px; height: 72px; color: var(--gray-300); stroke-width: 1; }

.product-detail__info { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.product-detail__name { font-size: 24px; font-weight: 600; line-height: 1.3; }
.product-detail__price { font-size: 17px; color: var(--gray-800); }
.product-detail__shipping { font-size: 12px; color: var(--gray-400); border-bottom: 1px solid currentColor; display: inline; }
.product-detail__qty-label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-600); margin-bottom: 8px; }

.qty-ctrl {
  display: flex; align-items: center;
  border: 1px solid var(--gray-300); width: fit-content;
}
.qty-ctrl button {
  width: 36px; height: 36px; background: none; border: none;
  cursor: pointer; font-size: 16px; color: var(--black);
  display: flex; align-items: center; justify-content: center;
}
.qty-ctrl button:hover { background: var(--gray-100); }
.qty-ctrl span {
  width: 44px; text-align: center; font-size: 14px;
  border-left: 1px solid var(--gray-300);
  border-right: 1px solid var(--gray-300);
  line-height: 36px;
}

.btn-add {
  display: block; width: 100%; padding: 13px;
  background: var(--white); color: var(--black);
  border: 1px solid var(--black); cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: background 0.15s;
}
.btn-add:hover { background: var(--gray-100); }

.btn-buy {
  display: block; width: 100%; padding: 13px;
  background: #f5a623; color: var(--black);
  border: none; cursor: pointer;
  font-size: 13px; font-weight: 600;
  transition: background 0.15s;
}
.btn-buy:hover { background: #e09a1e; }

.product-detail__desc { font-size: 13px; color: var(--gray-600); line-height: 1.7; }
.product-detail__share {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gray-600);
  cursor: pointer; width: fit-content;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.product-detail__share:hover { border-bottom-color: var(--gray-400); }
.product-detail__share svg { width: 14px; height: 14px; }

/* ===== RELATED ===== */
.related-section { margin-top: 40px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--black); color: var(--white);
  padding: 10px 20px; font-size: 13px;
  opacity: 0; pointer-events: none; z-index: 600;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== FOOTER ===== */
footer { border-top: 1px solid var(--gray-200); padding: 28px 32px; }
.footer__address {
  max-width: 1200px; margin: 0 auto 20px;
  display: flex; flex-direction: column; gap: 3px;
  padding-bottom: 20px; border-bottom: 1px solid var(--gray-200);
  align-items: center; text-align: center;
}
.footer__address strong { font-size: 12px; font-weight: 600; color: var(--black); letter-spacing: 0.03em; }
.footer__address span { font-size: 12px; color: var(--gray-400); }
.footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer__copy { font-size: 12px; color: var(--gray-400); }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; }
.footer__links a { font-size: 12px; color: var(--gray-400); }
.footer__links a:hover { color: var(--black); }
.footer__country { font-size: 12px; color: var(--gray-400); }

/* ===== STATIC PAGES ===== */
.static-page { max-width: 720px; margin: 0 auto; padding: 56px 32px; }
.static-page h1 { font-size: 26px; font-weight: 700; margin-bottom: 28px; }
.static-page h2 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin: 26px 0 8px; }
.static-page p { font-size: 14px; color: var(--gray-600); margin-bottom: 12px; line-height: 1.7; }
.static-page ul { padding-left: 18px; margin-bottom: 12px; }
.static-page ul li { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 4px; }

.static-contact-box {
  margin-top: 28px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 24px 28px;
}
.static-contact-box h2 { margin-top: 0; }
.static-contact-box a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }

/* ===== NAV PROFILE DOT ===== */
.nav-btn--profile { position: relative; text-decoration: none; }
.nav-profile-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #16a34a; border: 1.5px solid var(--white);
}

/* ===== CHECKOUT PAGE ===== */
.checkout-wrap {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 0; max-width: 1100px; margin: 0 auto;
  padding: 0; min-height: calc(100vh - 56px);
}
.checkout-left {
  padding: 48px 56px 80px 40px;
  border-right: 1px solid var(--gray-200);
}
.checkout-right {
  padding: 40px 40px 80px 48px;
  background: var(--gray-50);
}
.checkout-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gray-400); margin-bottom: 28px;
}
.checkout-breadcrumb a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }
.checkout-breadcrumb__active { color: var(--black); font-weight: 500; }
.checkout-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.checkout-section-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--gray-600);
  margin-bottom: 10px; margin-top: 4px;
}
.checkout-field { margin-bottom: 10px; }
.checkout-field input,
.checkout-field select {
  width: 100%; padding: 11px 12px;
  border: 1px solid var(--gray-300); outline: none;
  font-size: 14px; font-family: inherit; background: var(--white);
  transition: border-color 0.15s; border-radius: 4px;
}
.checkout-field input:focus,
.checkout-field select:focus { border-color: var(--black); }
.checkout-field--checkbox { margin-top: 4px; }
.checkout-field--checkbox label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gray-600); cursor: pointer;
}
.checkout-field--checkbox input { width: auto; }
.checkout-field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.checkout-field-row .checkout-field { margin-bottom: 0; }

.checkout-payment-option {
  border: 1px solid var(--gray-300); border-radius: 4px;
  padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start;
}
.checkout-payment-option--active { border-color: var(--black); }
.checkout-payment-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--black); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.checkout-radio-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--black);
}
.checkout-payment-name {
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.checkout-payment-desc { font-size: 12px; color: var(--gray-400); line-height: 1.5; }

/* Checkout summary (right column) */
.checkout-summary__items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.checkout-summary__item {
  display: grid; grid-template-columns: 52px 1fr auto;
  gap: 12px; align-items: center;
}
.checkout-summary__img {
  width: 52px; height: 52px; position: relative;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
}
.checkout-summary__img svg { width: 18px; height: 18px; color: var(--gray-300); }
.checkout-summary__img img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.checkout-summary__qty {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gray-400); color: var(--white);
  font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.checkout-summary__name { font-size: 13px; font-weight: 500; line-height: 1.4; }
.checkout-summary__price { font-size: 13px; color: var(--gray-600); white-space: nowrap; }
.checkout-summary__divider { border: none; border-top: 1px solid var(--gray-200); margin: 16px 0; }
.checkout-summary__row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--gray-600); margin-bottom: 8px;
}
.checkout-summary__total { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 0; }
.checkout-summary__free-ship { font-size: 11px; color: #16a34a; margin-top: -4px; margin-bottom: 8px; }
.checkout-summary__cod-badge {
  margin-top: 16px; display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--gray-600);
  background: var(--gray-100); border: 1px solid var(--gray-200);
  padding: 8px 12px; border-radius: 4px;
}

/* ===== ORDER CONFIRMATION PAGE ===== */
.confirm-wrap { max-width: 600px; margin: 0 auto; padding: 48px 32px 80px; }
.confirm-box { display: flex; flex-direction: column; align-items: center; text-align: center; }
.confirm-icon {
  width: 56px; height: 56px;
  background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #16a34a; margin-bottom: 16px;
}
.confirm-icon svg { width: 28px; height: 28px; }
.confirm-tag {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: #16a34a; margin-bottom: 10px;
}
.confirm-title { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.confirm-sub { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin-bottom: 28px; max-width: 460px; }
.confirm-card {
  width: 100%; border: 1px solid var(--gray-200); padding: 20px 24px;
  margin-bottom: 24px; text-align: left; border-radius: 4px;
}
.confirm-card__row {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 13px; gap: 16px;
  padding: 8px 0; border-bottom: 1px solid var(--gray-100);
}
.confirm-card__row:last-child { border-bottom: none; }
.confirm-card__row span { color: var(--gray-600); }
.confirm-card__row strong { text-align: right; max-width: 300px; }
.confirm-items { width: 100%; margin-bottom: 20px; text-align: left; }
.confirm-items__label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gray-600); margin-bottom: 12px;
}
.confirm-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--gray-100);
}
.confirm-item:last-child { border-bottom: none; }
.confirm-item__img {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
}
.confirm-item__img svg { width: 16px; height: 16px; color: var(--gray-300); }
.confirm-item__img img { width: 100%; height: 100%; object-fit: cover; }
.confirm-item__name { font-size: 13px; font-weight: 500; flex: 1; line-height: 1.4; }
.confirm-item__meta { font-size: 12px; color: var(--gray-400); }
.confirm-totals { width: 100%; border-top: 1px solid var(--gray-200); padding-top: 14px; margin-bottom: 20px; text-align: left; }
.confirm-totals__row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--gray-600); padding: 4px 0;
}
.confirm-totals__row--total { font-size: 15px; font-weight: 700; color: var(--black); padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--gray-200); }
.confirm-cod-note {
  width: 100%; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gray-600);
  background: #fffbeb; border: 1px solid #fde68a;
  padding: 12px 16px; border-radius: 4px; margin-bottom: 24px; text-align: left;
}
.confirm-actions { width: 100%; }

/* ===== PROFILE PAGE ===== */
.profile-wrap {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 0; max-width: 1100px; margin: 0 auto;
  min-height: calc(100vh - 56px); padding: 0;
}
.profile-sidebar {
  padding: 48px 32px;
  border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; margin-bottom: 12px;
}
.profile-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.profile-email { font-size: 12px; color: var(--gray-400); margin-bottom: 28px; }
.profile-nav { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.profile-nav__link {
  display: block; width: 100%; padding: 9px 14px;
  font-size: 13px; text-align: left; border-radius: 4px;
  color: var(--gray-600); text-decoration: none;
  transition: background 0.15s; cursor: pointer;
  background: none; border: none; font-family: inherit;
}
.profile-nav__link:hover { background: var(--gray-100); color: var(--black); }
.profile-nav__link--active { background: var(--gray-100); color: var(--black); font-weight: 500; }
.profile-nav__signout { color: var(--gray-400); }
.profile-nav__signout:hover { color: #dc2626; background: #fef2f2; }

.profile-main { padding: 48px 40px 80px; }
.profile-heading { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.profile-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; color: var(--gray-400); gap: 12px; text-align: center;
}
.profile-empty p { font-size: 14px; }
.profile-empty a { font-size: 13px; color: var(--black); text-decoration: underline; text-underline-offset: 2px; }

.profile-orders { display: flex; flex-direction: column; gap: 16px; }
.profile-order {
  border: 1px solid var(--gray-200); border-radius: 4px; overflow: hidden;
}
.profile-order__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 14px 18px; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.profile-order__id { font-size: 13px; font-weight: 600; }
.profile-order__date { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.profile-order__status { font-size: 12px; font-weight: 600; }
.profile-order__items { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.profile-order__item { display: flex; gap: 12px; align-items: center; }
.profile-order__item-img {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
}
.profile-order__item-img svg { width: 16px; height: 16px; color: var(--gray-300); }
.profile-order__item-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-order__item-name { font-size: 13px; font-weight: 500; line-height: 1.4; }
.profile-order__item-meta { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.profile-order__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px; border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.profile-order__payment { font-size: 12px; color: var(--gray-400); display: flex; align-items: center; gap: 5px; }
.profile-order__total { font-size: 13px; color: var(--gray-600); }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 600px) {
  /* Navbar */
  .navbar { padding: 0 16px; gap: 8px; }
  .navbar__logo { font-size: 11px; }
  .nav-btn { width: 34px; height: 34px; }

  /* Page wrapper */
  .page-wrap { padding: 20px 16px; }

  /* Category sections */
  .section-head { padding: 0; margin-bottom: 12px; }
  .section-head h2 { font-size: 13px; }

  /* Product grid — 2 columns on small screens */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__name { font-size: 11px; }
  .product-card__price { font-size: 11px; }

  /* Product detail */
  .product-detail { gap: 18px; }
  .product-detail__name { font-size: 19px; }
  .product-detail__price { font-size: 15px; }

  /* Cart drawer */
  .cart-drawer { width: 100%; right: -100%; }
  .cart-drawer.open { right: 0; }

  /* Search overlay */
  .search-box { padding: 16px; }
  .search-input-wrap input { font-size: 15px; }
  .search-result-item { padding: 10px 0; }

  /* Account modal */
  .modal { padding: 24px 20px; }
  .modal__title { font-size: 18px; }

  /* Static pages */
  .static-page { padding: 32px 16px; }
  .static-page h1 { font-size: 22px; margin-bottom: 20px; }
  .static-page h2 { font-size: 13px; }
  .static-contact-box { padding: 18px 16px; }

  /* Footer */
  footer { padding: 20px 16px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__links { gap: 12px; }

  /* Toast */
  .toast { font-size: 12px; padding: 8px 16px; white-space: normal; text-align: center; max-width: 80vw; }
}

@media (max-width: 400px) {
  .product-grid { gap: 8px; }
  .navbar__logo { font-size: 10px; letter-spacing: 0.03em; }
}

/* Checkout mobile */
@media (max-width: 860px) {
  .checkout-wrap { grid-template-columns: 1fr; }
  .checkout-right { order: -1; padding: 24px 20px; border-right: none; border-bottom: 1px solid var(--gray-200); }
  .checkout-left { padding: 24px 20px 60px; border-right: none; }
  .checkout-field-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .checkout-field-row { grid-template-columns: 1fr; }
}

/* Profile mobile */
@media (max-width: 720px) {
  .profile-wrap { grid-template-columns: 1fr; }
  .profile-sidebar { padding: 28px 20px; border-right: none; border-bottom: 1px solid var(--gray-200); flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 16px; text-align: left; }
  .profile-avatar { width: 48px; height: 48px; font-size: 18px; margin-bottom: 0; }
  .profile-name, .profile-email { margin-bottom: 0; }
  .profile-nav { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .profile-main { padding: 24px 20px 60px; }
}

/* Confirmation mobile */
@media (max-width: 600px) {
  .confirm-wrap { padding: 32px 16px 60px; }
  .confirm-title { font-size: 20px; }
  .confirm-card { padding: 14px 16px; }
}
