/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #2563eb;
  --primary-h: #1d4ed8;
  --danger:    #dc2626;
  --danger-h:  #b91c1c;
  --success:   #16a34a;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-400:  #9ca3af;
  --gray-600:  #4b5563;
  --gray-800:  #1f2937;
  --radius:    8px;
  --shadow:    0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Navbar ─── */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-brand:hover { text-decoration: none; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navbar-nav a {
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--gray-600);
  font-size: 0.9rem;
  transition: background .15s, color .15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
.navbar-nav a:hover { background: var(--gray-100); color: var(--gray-800); }
.navbar-nav a.active { background: var(--primary); color: #fff; }
.cart-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* ─── Main container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ─── Page header ─── */
.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-800);
}
.page-header p {
  color: var(--gray-600);
  margin-top: 4px;
}

/* ─── Alerts / Messages ─── */
.messages { list-style: none; margin-bottom: 1.5rem; }
.message {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.message.success { background: #dcfce7; color: #166534; border-left: 3px solid var(--success); }
.message.error   { background: #fee2e2; color: #991b1b; border-left: 3px solid var(--danger); }
.message.warning { background: #fef3c7; color: #92400e; border-left: 3px solid #d97706; }
.message.info    { background: #dbeafe; color: #1e40af; border-left: 3px solid var(--primary); }

/* ─── Product Grid ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}
.product-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray-400);
}
.product-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--gray-800);
}
.product-card-body .desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  flex: 1;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.product-card-actions {
  display: flex;
  gap: 8px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); color: #fff; }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-danger:hover  { background: var(--danger-h); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }

/* ─── Product Detail ─── */
.product-detail {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 900px;
}
.product-detail img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.product-detail-img-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--gray-400);
}
.product-detail-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.product-detail-info h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.product-detail-info .price { font-size: 1.75rem; margin-bottom: 1rem; }
.product-detail-info .desc { color: var(--gray-600); margin-bottom: 1.5rem; flex: 1; }
.qty-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.qty-selector label { font-weight: 500; }
.qty-selector input {
  width: 70px;
  padding: 6px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  text-align: center;
}
.qty-selector input:focus { outline: none; border-color: var(--primary); }

/* ─── Cart ─── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}
.cart-items { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.cart-item:last-child { border-bottom: none; }
.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--gray-100);
}
.cart-item-img-placeholder {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--gray-400);
}
.cart-item-info h4 { font-weight: 600; margin-bottom: 4px; }
.cart-item-info .item-price { color: var(--gray-600); font-size: 0.9rem; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-subtotal { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.qty-form { display: flex; align-items: center; gap: 6px; }
.qty-form input {
  width: 60px;
  padding: 4px 8px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.9rem;
}

/* Cart Summary */
.cart-summary {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}
.cart-summary h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.summary-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  border-bottom: none;
  padding-top: 12px;
}
.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-400);
}
.empty-cart .icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-cart p { margin-bottom: 1.5rem; color: var(--gray-600); }

/* ─── Auth Forms ─── */
.auth-wrapper {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}
.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--gray-600);
}
.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color .15s;
  background: #fff;
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ─── Order Confirmation ─── */
.confirmation-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem;
  text-align: center;
}
.confirmation-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.confirmation-card h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.confirmation-card p { color: var(--gray-600); margin-bottom: 1.5rem; }
.order-meta {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.order-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-200);
}
.order-meta-row:last-child { border-bottom: none; }
.order-meta-row span:first-child { color: var(--gray-600); }
.order-meta-row span:last-child  { font-weight: 600; }

/* ─── Orders list ─── */
.order-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}
.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 8px;
}
.order-card-header h3 { font-size: 1rem; font-weight: 600; }
.badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dbeafe; color: #1e40af; }
.badge-shipped   { background: #ede9fe; color: #5b21b6; }
.badge-delivered { background: #dcfce7; color: #166534; }
.order-items-list { padding: 0.5rem 1.25rem; }
.order-item-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}
.order-item-row:last-child { border-bottom: none; }
.order-card-footer {
  padding: 0.75rem 1.25rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--gray-400);
  font-size: 0.85rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 4rem;
  background: #fff;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-detail img, .product-detail-img-placeholder { height: 250px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item-actions { grid-column: 1/-1; flex-direction: row; justify-content: flex-start; }
}

/* Storefront refresh: shared design for catalog, account, cart and orders. */
:root {
  --primary: #234c3c;
  --primary-h: #16382b;
  --success: #234c3c;
  --gray-50: #faf9f6;
  --gray-100: #f3f2ec;
  --gray-200: #dedfd6;
  --gray-400: #6e766c;
  --gray-600: #586255;
  --gray-800: #202b24;
  --radius: 16px;
  --shadow: 0 3px 16px rgba(33, 49, 37, .04);
  --shadow-md: 0 12px 32px rgba(33, 49, 37, .09);
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { background: #faf9f6; display: flex; flex-direction: column; }
main { flex: 1; }
button, input, select { font: inherit; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #997039; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; background: white; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.announcement { padding: 8px 16px; text-align: center; color: #f6f3e9; background: var(--primary); font-size: .75rem; letter-spacing: .06em; }
.navbar { background: rgba(250,249,246,.97); box-shadow: none; }
.navbar-inner { height: 82px; max-width: 1280px; gap: 20px; }
.navbar-brand { color: var(--gray-800); letter-spacing: -.04em; font-size: 1.35rem; gap: 10px; }
.brand-mark { background: var(--primary); color: #fff; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: Georgia, serif; }
.navbar-nav { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.navbar-nav a { min-height: 42px; padding: 9px 14px; font-size: .85rem; }
.navbar-nav a.active { background: #e6ecdf; color: var(--primary); font-weight: 600; }
.cart-badge { background: var(--primary); }
.container { max-width: 1280px; padding: 40px 24px; width: 100%; }
.storefront { padding-top: 24px; }
.hero { background: #e9edde; border: 1px solid #e0e4d4; border-radius: 24px; display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; min-height: 430px; margin-bottom: 56px; }
.hero-copy { padding: 58px 52px; position: relative; z-index: 1; }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .16em; color: var(--primary); margin-bottom: 16px; }
.hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.7rem, 4.6vw, 4.4rem); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; }
.hero h1 span { color: #527059; }
.hero-description { max-width: 355px; font-size: .95rem; color: var(--gray-600); margin: 24px 0 28px; }
.hero .btn { padding: 13px 22px; gap: 24px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 360px; isolation: isolate; }
.art-orbit { width: 330px; height: 330px; background: #d3dcc3; border-radius: 50%; position: absolute; z-index: -1; }
.art-orbit::after { content: ''; position: absolute; inset: -25px; border: 1px solid #c4cfb3; border-radius: 50%; }
.art-bag { width: 205px; height: 230px; border-radius: 8px 8px 18px 18px; background: linear-gradient(110deg, #345b45, #193f2d); transform: rotate(-12deg); box-shadow: 20px 28px 35px #344e3225; position: relative; display: grid; place-items: center; color: #e9eddf; }
.art-bag::before { content: ''; position: absolute; width: 90px; height: 90px; border: 10px solid #234c3c; border-bottom: 0; border-radius: 60px 60px 0 0; top: -64px; left: 57px; }
.art-bag span { font: 88px Georgia, serif; letter-spacing: -.08em; }
.art-label { position: absolute; bottom: 50px; right: 30px; background: #faf6e9; border: 1px solid #dedac9; transform: rotate(8deg); padding: 14px 24px; font: 18px/1.5 Georgia, serif; box-shadow: var(--shadow); }
.collection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.collection-heading .eyebrow { margin-bottom: 8px; }
.collection-heading h2 { font: 36px/1.2 Georgia, serif; letter-spacing: -.03em; }
.collection-heading h2 span, .footer-brand span { color: #718663; }
#product-count { color: var(--gray-600); font-size: .85rem; white-space: nowrap; }
.catalog-tools { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-200); }
.search-field { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 0 16px; flex: 1; max-width: 480px; }
.search-field span { font-size: 25px; color: var(--gray-600); }
.search-field input { border: none; background: transparent; padding: 12px 0; width: 100%; min-width: 0; color: var(--gray-800); }
.search-field:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.search-field input:focus { outline: none; }
.sort-field { display: flex; gap: 12px; align-items: center; font-size: .85rem; }
.sort-field label { color: var(--gray-600); }
.sort-field select { border: 1px solid var(--gray-200); border-radius: 12px; padding: 12px; background: #fff; color: var(--gray-800); max-width: 100%; }
.product-grid { grid-template-columns: repeat(auto-fill,minmax(245px,1fr)); gap: 24px; }
.product-card { border: 1px solid #e5e6de; border-radius: 16px; box-shadow: none; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-image-link { display: block; position: relative; background: #f1f0eb; overflow: hidden; }
.product-card img { display: block; height: 255px; transition: transform .35s; }
.product-card:hover img { transform: scale(1.035); }
.image-arrow { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 34px; height: 34px; background: #ffffffed; border-radius: 50%; color: var(--primary); }
.product-card-img-placeholder { height: 255px; background: #e9edde; font: 64px Georgia, serif; color: #587153; }
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 1rem; margin-bottom: 8px; }
.product-card-body h3 a { color: var(--gray-800); }
.product-card-body .desc { line-height: 1.6; margin-bottom: 18px; }
.price { color: var(--gray-800); font-size: 1.2rem; letter-spacing: -.025em; }
.product-card-actions { padding-top: 12px; border-top: 1px solid var(--gray-100); gap: 10px; }
.add-cart-form { flex: 1; }
.btn { border-radius: 10px; min-height: 44px; font-weight: 600; padding: 10px 18px; }
.btn-sm { min-height: 40px; padding: 9px 12px; }
.btn-outline { border: 1px solid var(--gray-200); color: var(--primary); background: white; }
.btn-outline:hover { background: #eef2e8; color: var(--primary); border-color: var(--primary); }
.btn-success:hover { background: var(--primary-h); }
.btn-danger { background: #fbece9; color: #a23022; }
.btn-danger:hover { background: #f3d4ce; color: #822416; }
.page-header h1 { font-size: 2rem; letter-spacing: -.035em; }
.product-detail { max-width: none; border: 1px solid var(--gray-200); border-radius: 24px; }
.product-detail img, .product-detail-img-placeholder { height: 100%; min-height: 440px; }
.product-detail-info { padding: 42px; }
.product-detail-info h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 20px; }
.qty-selector input, .qty-form input { min-height: 42px; background: var(--gray-50); }
.cart-items, .cart-summary, .auth-card, .order-card, .confirmation-card { border: 1px solid var(--gray-200); }
.cart-item { padding: 24px; }
.cart-item-info { min-width: 0; overflow-wrap: anywhere; }
.qty-form { margin-top: 10px; }
.cart-summary { top: 110px; padding: 26px; }
.summary-row { gap: 16px; }
.summary-row span:last-child { white-space: nowrap; }
.auth-wrapper { min-height: auto; padding: 64px 24px; background: radial-gradient(ellipse at center,#e9edde,transparent 70%); }
.auth-card { max-width: 460px; padding: 36px; border-radius: 24px; }
.auth-card h2 { letter-spacing: -.035em; }
.form-group input { min-height: 48px; background: var(--gray-50); }
.form-group input:focus { box-shadow: 0 0 0 3px #234c3c20; }
.empty-cart { border: 1px dashed var(--gray-200); border-radius: 20px; background: white; color: var(--gray-800); margin-top: 20px; }
.empty-cart h2, .empty-cart h3 { margin-bottom: 12px; }
.order-card { margin-bottom: 20px; }
.order-card-header, .order-card-footer { padding: 20px 24px; }
.order-items-list { padding: 12px 24px; }
.order-item-row { gap: 16px; }
.confirmation-card { border-radius: 24px; padding: 40px; }
.footer { margin-top: 64px; padding: 40px 24px 20px; text-align: left; color: var(--gray-600); background: #f0f1e9; }
.footer-inner, .footer-bottom { max-width: 1232px; margin: auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 32px; }
.footer-brand { color: var(--gray-800); font-size: 1.4rem; font-weight: 700; letter-spacing: -.04em; }
.footer-inner p { margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--gray-600); }
.footer-bottom { border-top: 1px solid var(--gray-200); padding-top: 18px; font-size: .75rem; }
@media (max-width: 900px) {
  .hero-copy { padding: 40px 30px; }
  .art-orbit { width: 240px; height: 240px; }
  .art-bag { width: 160px; height: 190px; }
  .art-bag::before { left: 35px; }
  .art-label { bottom: 35px; right: 16px; padding: 12px 18px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 640px) {
  .navbar-inner { height: auto; min-height: 76px; padding: 14px 18px; flex-wrap: wrap; gap: 12px; }
  .navbar-nav { width: 100%; justify-content: flex-start; gap: 2px; }
  .navbar-nav a { padding: 7px 10px; font-size: .8rem; overflow-wrap: anywhere; }
  .container { padding: 24px 16px; }
  .hero { grid-template-columns: 1fr; margin-bottom: 36px; border-radius: 18px; }
  .hero-copy { padding: 32px 24px; }
  .hero h1 { font-size: 2.9rem; }
  .hero-art { min-height: 270px; }
  .art-label { right: 24px; bottom: 24px; }
  .collection-heading { align-items: center; gap: 10px; }
  .collection-heading h2 { font-size: 28px; }
  .eyebrow { font-size: .6rem; letter-spacing: .1em; }
  .catalog-tools { flex-direction: column; gap: 12px; }
  .search-field { max-width: none; }
  .sort-field { justify-content: space-between; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .product-card img, .product-card-img-placeholder { height: 180px; }
  .product-card-body { padding: 14px; }
  .product-card-body h3 { font-size: .9rem; overflow-wrap: anywhere; }
  .product-card-actions { flex-direction: column; }
  .product-detail-info { padding: 24px; }
  .product-detail img, .product-detail-img-placeholder { height: 300px; min-height: 0; }
  .cart-item { padding: 18px; }
  .auth-card, .confirmation-card { padding: 26px 20px; }
  .auth-wrapper { padding: 32px 16px; }
  .footer { margin-top: 36px; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
  .collection-heading { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Hebrew layout and mixed-direction content. */
html[dir="rtl"] body { font-family: 'Segoe UI', Arial, sans-serif; }
html[dir="rtl"] .hero h1,
html[dir="rtl"] .collection-heading h2 { font-family: 'Segoe UI', Arial, sans-serif; letter-spacing: -.035em; font-weight: 600; }
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .announcement,
html[dir="rtl"] .badge { letter-spacing: normal; }
html[dir="rtl"] .hero h1 { font-size: clamp(2.5rem, 4.2vw, 4rem); line-height: 1.2; }
html[dir="rtl"] .footer,
html[dir="rtl"] .order-meta { text-align: start; }
html[dir="rtl"] .message { border-left: 0; border-right: 3px solid; }
html[dir="rtl"] .message.success { border-right-color: var(--success); }
html[dir="rtl"] .message.error { border-right-color: var(--danger); }
html[dir="rtl"] .message.warning { border-right-color: #d97706; }
html[dir="rtl"] .message.info { border-right-color: var(--primary); }
html[dir="rtl"] .skip-link { left: auto; right: 16px; }
html[dir="rtl"] .image-arrow { right: auto; left: 14px; }
html[dir="rtl"] .art-label { right: auto; left: 30px; font-family: 'Segoe UI', Arial, sans-serif; }
.brand-mark, .art-bag, .footer-brand { direction: ltr; unicode-bidi: isolate; }
.price, .cart-item-subtotal, .item-price { unicode-bidi: isolate; }
input[type="email"], input[type="number"] { direction: ltr; }
@media (max-width: 900px) {
  html[dir="rtl"] .art-label { left: 16px; }
}
@media (max-width: 640px) {
  html[dir="rtl"] .art-label { left: 24px; }
  html[dir="rtl"] .hero h1 { font-size: 2.6rem; }
}

.demo-note { padding: 14px 18px; border: 1px solid var(--gray-200); background: #f0f2e8; border-radius: 12px; color: var(--gray-600); font-size: .85rem; margin-bottom: 24px; }
.product-detail-info .demo-note, .cart-summary .demo-note { margin-top: 20px; }
.demo-back { margin-bottom: 20px; }
button:disabled { opacity: .6; cursor: wait; }
