/* ────────────────────────────────────────────────────────────────────────
   _shop.css — Shared styles for all /shop pages
   Loaded via <link rel="stylesheet" href="/shop/_shop.css">
   Mirrors index.html's design language exactly.
   ──────────────────────────────────────────────────────────────────────── */

html, body { overflow-x: hidden; max-width: 100vw; }
* { box-sizing: border-box; min-width: 0; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --camel: #A0702A;
  --camel-dark: #7A5218;
  --camel-pale: #F7EFE3;
  --camel-mid: #D4A96A;
  --white: #FFFFFF;
  --off-white: #FAFAF8;
  --warm-gray: #F5F4F1;
  --border: #EBEBEB;
  --text: #111111;
  --muted: #6B6B6B;
  --light: #ADADAD;
  --error: #C8492C;
  --success: #2D7C4D;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* HEADER */
header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 300; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; height: 68px; gap: 40px; }
.logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 400; color: var(--text); text-decoration: none; letter-spacing: 0.3px; flex-shrink: 0; }
.logo span { color: var(--camel); font-style: italic; }
nav { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: center; }
nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 400; transition: color 0.15s; }
nav a:hover { color: var(--text); }
nav a.active { color: var(--camel); font-weight: 500; }
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cart-link { position: relative; padding: 6px 14px 6px 32px; font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.cart-link::before { content: '🛒'; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 16px; }
.cart-link:hover { color: var(--text); }
.cart-count { background: var(--camel); color: white; border-radius: 10px; font-size: 10px; font-weight: 600; padding: 2px 6px; margin-left: 4px; min-width: 18px; display: inline-block; text-align: center; }
.cart-count[data-count="0"] { display: none; }
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0; margin-left: auto; }
.hamburger span { width: 22px; height: 2px; background: var(--text); display: block; }

/* BUTTONS */
.btn-outline { border: 1.5px solid var(--text); background: none; color: var(--text); padding: 8px 18px; font-size: 12px; font-family: 'DM Sans', sans-serif; font-weight: 500; letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block; border-radius: 2px; }
.btn-outline:hover { background: var(--text); color: white; }
.btn-camel { border: none; background: var(--camel); color: white; padding: 9px 22px; font-size: 12px; font-family: 'DM Sans', sans-serif; font-weight: 500; letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block; border-radius: 2px; }
.btn-camel:hover { background: var(--camel-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(160,112,42,0.3); }
.btn-camel:disabled { background: #C7B391; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-camel.btn-large { padding: 14px 32px; font-size: 13px; }
.btn-text { background: none; border: none; color: var(--camel); font-size: 12px; font-weight: 500; cursor: pointer; text-decoration: underline; padding: 4px 0; }

/* MOBILE MENU */
.mob-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: white; z-index: 999; padding: 80px 32px 32px; overflow-y: auto; }
.mob-menu.open { display: flex; flex-direction: column; gap: 8px; }
.mob-menu a { color: var(--text); text-decoration: none; font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mob-menu .close { position: absolute; top: 24px; right: 24px; background: none; border: none; font-size: 24px; cursor: pointer; }

/* TYPOGRAPHY */
.kicker { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--camel); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ''; width: 20px; height: 1.5px; background: var(--camel); }
h1 { font-family: 'Playfair Display', serif; font-size: clamp(36px, 5vw, 56px); font-weight: 400; line-height: 1.12; color: var(--text); margin-bottom: 20px; }
h1 em { font-style: italic; color: var(--camel); }
h2 { font-family: 'Playfair Display', serif; font-size: clamp(24px, 3vw, 36px); font-weight: 400; color: var(--text); line-height: 1.2; margin-bottom: 14px; }
h2 em { font-style: italic; color: var(--camel); }
h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 400; color: var(--text); margin-bottom: 10px; }

/* BREADCRUMB */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 24px 40px 0; font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--camel); }
.breadcrumb .sep { color: var(--light); margin: 0 8px; }
.breadcrumb .current { color: var(--text); }

/* CATEGORY HEADER */
.cat-hero { max-width: 1100px; margin: 0 auto; padding: 32px 40px 32px; }
.cat-hero h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.cat-hero p { color: var(--muted); font-size: 16px; max-width: 640px; line-height: 1.65; }

/* PRODUCT CARDS — used on category pages */
.product-grid { display: grid; gap: 24px; }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.product-card { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.2s; cursor: pointer; display: flex; flex-direction: column; position: relative; }
.product-card:hover { border-color: var(--camel-mid); box-shadow: 0 8px 28px rgba(0,0,0,0.06); transform: translateY(-2px); }
.product-card.selected { border: 2px solid var(--camel); }
.product-card .pc-img { aspect-ratio: 1; background: var(--camel-pale); position: relative; overflow: hidden; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-img.placeholder img { object-fit: contain; padding: 16px; }
.product-card .pc-badge { position: absolute; top: 12px; right: 12px; background: var(--camel); color: white; font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 12px; }
.product-card .pc-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.product-card .pc-name { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 400; color: var(--text); margin-bottom: 4px; }
.product-card .pc-meta { font-size: 11px; color: var(--light); margin-bottom: 8px; }
.product-card .pc-desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; flex: 1; }
.product-card .pc-price { display: flex; justify-content: space-between; align-items: baseline; }
.product-card .pc-price-num { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--camel-dark); }
.product-card .pc-price-note { font-size: 10px; color: var(--light); }

/* CONFIGURATOR PANEL */
.configurator { max-width: 1100px; margin: 24px auto 0; padding: 0 40px 64px; }
.config-card { background: var(--off-white); border: 1px solid var(--border); border-radius: 14px; padding: 32px; box-sizing: border-box; min-width: 0; }
.config-section { margin-bottom: 24px; min-width: 0; }
.config-section:last-child { margin-bottom: 0; }
.config-section-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* QUANTITY / TIER SELECTOR */
.tier-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tier-btn { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 14px 12px; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.15s; text-align: center; }
.tier-btn:hover { border-color: var(--camel-mid); }
.tier-btn.active { border-color: var(--camel); background: var(--camel-pale); }
.tier-btn .tb-label { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.tier-btn .tb-price { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--camel-dark); margin-bottom: 2px; }
.tier-btn .tb-rate { font-size: 10px; color: var(--muted); }

/* FORM ELEMENTS */
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 300;
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 6px;
  background: white; width: 100%; color: var(--text);
  transition: border-color 0.15s;
}
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, input[type=number]:focus,
select:focus, textarea:focus { outline: none; border-color: var(--camel); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-row.cols-1 { grid-template-columns: 1fr; }
.form-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-label { font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 4px; display: block; }
.form-label .required { color: var(--error); }
.form-help { font-size: 11px; color: var(--light); margin-top: 4px; }

/* CHECKBOX / TOGGLE */
.toggle-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: white; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: border-color 0.15s; }
.toggle-row:hover { border-color: var(--camel-mid); }
.toggle-row input[type=checkbox] { margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.toggle-row .tr-label { font-size: 13px; color: var(--text); }
.toggle-row .tr-help { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* PRICE SUMMARY */
.price-summary { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; margin-top: 20px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; font-size: 13px; color: var(--muted); }
.price-row.total { padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--border); font-size: 16px; font-weight: 500; color: var(--text); }
.price-row.due-today { color: var(--camel-dark); font-weight: 500; }
.price-summary-note { font-size: 11px; color: var(--light); margin-top: 8px; line-height: 1.5; }

/* ADD TO CART CTA */
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.cta-row .cta-summary { font-size: 13px; color: var(--muted); }
.cta-row .cta-summary strong { color: var(--text); font-weight: 500; }

/* ADDED-TO-CART TOAST */
.km-toast { position: fixed; bottom: 24px; right: 24px; background: var(--text); color: white; padding: 14px 20px; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); z-index: 1000; font-size: 13px; transform: translateY(80px); opacity: 0; transition: all 0.3s; max-width: 360px; }
.km-toast.show { transform: translateY(0); opacity: 1; }
.km-toast strong { display: block; font-weight: 500; margin-bottom: 4px; }
.km-toast a { color: var(--camel-mid); text-decoration: underline; font-size: 12px; }

/* TRUST BAR */
.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--off-white); }
.trust-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; align-items: stretch; }
.trust-item { flex: 1; display: flex; align-items: center; gap: 12px; padding: 18px 32px; border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: none; }
.trust-item-icon { font-size: 20px; flex-shrink: 0; }
.trust-item strong { display: block; color: var(--text); font-weight: 500; font-size: 13px; }
.trust-item span { font-size: 12px; color: var(--muted); font-weight: 300; }

/* FOOTER */
footer { background: #0F0F0F; padding: 64px 40px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 32px; }
.footer-brand h4 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 400; color: white; margin-bottom: 12px; }
.footer-brand h4 span { color: var(--camel-mid); font-style: italic; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 320px; }
.footer-col h4 { font-size: 11px; font-weight: 600; color: white; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 12px; }
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 11px; }
.footer-bottom .links a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom .links a:hover { color: white; }

/* LOADING */
.loading { padding: 80px 40px; text-align: center; color: var(--muted); }
.loading-spinner { display: inline-block; width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--camel); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 900px) {
  .header-inner { padding: 0 20px; gap: 12px; }
  nav { display: none; }
  .hamburger { display: flex; }
  .header-right .btn-outline { display: none; }
  .header-right { gap: 6px; }

  .cat-hero, .configurator { padding-left: 24px; padding-right: 24px; }
  .breadcrumb { padding: 16px 24px 0; }

  .product-grid.cols-2, .product-grid.cols-3, .product-grid.cols-4, .product-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .config-card { padding: 24px 20px; }
  .form-row, .form-row.cols-3 { grid-template-columns: 1fr; }

  .trust-inner { flex-direction: column; padding: 0; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--border); padding: 16px 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 500px) {
  .product-grid.cols-2, .product-grid.cols-3, .product-grid.cols-4, .product-grid.cols-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  .km-toast { left: 16px; right: 16px; max-width: none; bottom: 16px; }
}
