*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream: #F7F3EE; --warm-white: #FDFAF7; --sand: #E8E0D4;
  --tan: #C9B99A; --brown: #8B6E52; --dark: #2C2318;
  --green: #3D5A4A; --green-light: #EEF3F0;
  --rose: #C4927A; --rose-light: #F5EDE8;
  --text-muted: #7A6A58;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 12px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--dark); }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,250,247,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 64px;
}
.nav-logo { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--dark); text-decoration: none; }
.nav-logo span { color: var(--rose); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.88rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.nav-cta { background: var(--dark); color: #fff; padding: 0.55rem 1.4rem; border-radius: 99px; font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: background 0.2s; }
.nav-cta:hover { background: var(--brown); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }
.nav-mobile { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--warm-white); border-bottom: 1px solid var(--sand); padding: 1.5rem 2rem; z-index: 99; }
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile a { font-size: 1rem; color: var(--dark); text-decoration: none; }

/* PAGE HEADER */
.page-header { background: var(--dark); padding: 3.5rem 4rem 3rem; }
.page-header .eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tan); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.page-header .eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--tan); }
.page-header h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; color: #fff; margin-bottom: 0.5rem; }
.page-header .page-desc { font-size: 0.95rem; color: rgba(255,255,255,0.5); }
.breadcrumb { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--tan); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* TOOLBAR */
.toolbar { background: var(--warm-white); border-bottom: 1px solid var(--sand); padding: 0; display: flex; flex-direction: column; }
.cat-tabs {
  display: flex; align-items: center; gap: 0; overflow-x: auto;
  border-bottom: 1px solid var(--sand);
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0; padding: 0.65rem 1.25rem;
  font-size: 0.8rem; font-weight: 500; font-family: var(--sans);
  color: var(--text-muted); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.cat-tab:hover { color: var(--dark); }
.cat-tab.active { color: var(--dark); border-bottom-color: var(--dark); font-weight: 600; }
.cat-select {
  display: none;
  width: calc(100% - 3rem); margin: 0.75rem 1.5rem;
  padding: 0.6rem 2rem 0.6rem 1rem;
  border: 1.5px solid var(--sand); border-radius: 99px;
  font-family: var(--sans); font-size: 0.88rem;
  background: var(--cream); color: var(--dark);
  outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B6E52' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
}
.toolbar-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.85rem 4rem; }
.search-wrap { flex: 1; min-width: 200px; position: relative; }
.search-wrap svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.search-input { width: 100%; padding: 0.65rem 1rem 0.65rem 2.5rem; border: 1.5px solid var(--sand); border-radius: 99px; font-family: var(--sans); font-size: 0.88rem; background: var(--cream); color: var(--dark); outline: none; transition: border-color 0.2s; }
.search-input:focus { border-color: var(--brown); }
.sort-select { padding: 0.65rem 1.25rem; border: 1.5px solid var(--sand); border-radius: 99px; font-family: var(--sans); font-size: 0.85rem; background: var(--cream); color: var(--dark); outline: none; cursor: pointer; appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B6E52' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; }
.results-count { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }

/* PRODUCT LIST */
.products-wrap { max-width: 1100px; margin: 0 auto; padding: 2.5rem 4rem; }
.product-card { background: var(--warm-white); border: 1px solid var(--sand); border-radius: var(--radius); display: grid; grid-template-columns: 140px 1fr auto; gap: 0; margin-bottom: 1rem; overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s, background 0.2s; }
.product-card:hover { border-color: var(--tan); box-shadow: 0 4px 20px rgba(44,35,24,0.07); background: #F0E9DF; }

.product-img-wrap {
  display: flex; flex-direction: column; align-items: stretch;
  border-right: 1px solid var(--sand); flex-shrink: 0;
  width: 140px;
}
.product-img { width: 100%; height: 160px; background: var(--cream); position: relative; overflow: hidden; cursor: zoom-in; }
.product-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.2s; }
.product-img:hover img { transform: scale(1.04); }
.product-img .img-initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 600; font-family: var(--serif); }

/* carousel arrows */
.img-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.88); border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--dark); z-index: 2; opacity: 0; transition: opacity 0.15s; box-shadow: 0 1px 4px rgba(0,0,0,0.15); padding: 0; line-height: 1; }
.img-arrow.prev { left: 3px; }
.img-arrow.next { right: 3px; }
.product-img:hover .img-arrow { opacity: 1; }
.img-arrow:hover { background: #fff; }

/* dot indicators */
.img-dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.img-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(44,35,24,0.25); transition: background 0.2s; cursor: pointer; border: none; padding: 0; }
.img-dot.active { background: var(--dark); }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(20,15,10,0.92); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-inner { position: relative; width: 100vw; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 52px 12px 12px; box-sizing: border-box; }
.lb-img-wrap { position: relative; display: flex; align-items: center; gap: 12px; flex: 1; width: 100%; overflow: hidden; border-radius: 4px; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; display: block; margin: auto; transform-origin: center; transition: transform 0.08s ease; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
/* zoom bar */
.lb-zoom-bar { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); border-radius: 24px; padding: 4px 10px; }
.lb-zoom-btn { background: rgba(255,255,255,0.12); border: none; border-radius: 50%; width: 30px; height: 30px; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; transition: background 0.15s; }
.lb-zoom-btn:hover:not(:disabled) { background: rgba(255,255,255,0.28); }
.lb-zoom-btn:disabled { opacity: 0.25; cursor: default; }
.lb-zoom-reset { font-size: 14px; }
.lb-zoom-label { color: rgba(255,255,255,0.6); font-size: 12px; min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.lb-arrow { background: rgba(255,255,255,0.12); border: none; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; flex-shrink: 0; }
.lb-arrow:hover { background: rgba(255,255,255,0.25); }
.lb-arrow:disabled { opacity: 0.2; cursor: default; }
.lb-close { position: fixed; top: 16px; right: 16px; z-index: 1010; background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); border: 1.5px solid rgba(255,255,255,0.25); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; transition: background 0.18s, transform 0.15s; }
.lb-close:hover { background: rgba(255,255,255,0.28); transform: scale(1.1); }
.lb-counter { font-size: 0.8rem; color: rgba(255,255,255,0.45); letter-spacing: 0.05em; }
.lb-caption { font-size: 0.9rem; color: rgba(255,255,255,0.7); font-family: var(--serif); font-style: italic; text-align: center; max-width: 500px; }
.lb-thumbs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lb-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 5px; cursor: pointer; opacity: 0.4; border: 2px solid transparent; transition: all 0.18s; flex-shrink: 0; }
.lb-thumb:hover { opacity: 0.75; }
.lb-thumb.active { opacity: 1; border-color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.35); transform: scale(1.1); }

/* PRODUCT BODY */
.product-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; }
.product-top { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.product-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--dark); }
.product-badge { font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 99px; background: var(--rose-light); color: var(--rose); white-space: nowrap; }
.product-badge--new { background: #E8F4EC; color: #2E7D4F; }
.product-brand { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.product-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.product-susan { font-size: 0.83rem; color: var(--brown); font-style: italic; line-height: 1.5; }
.product-susan::before { content: '\201C'; }
.product-susan::after { content: '\201D'; }

/* RATING */
.product-rating { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.2rem; }
.stars { display: flex; gap: 2px; line-height: 1; }
.star { font-size: 13px; }
.star.filled { color: #C9A84C; }
.star.empty { color: #DDD; }
.rating-label { font-size: 0.75rem; color: var(--text-muted); }

/* PROS / CONS */
.pros-cons { display: flex; gap: 1.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.pros-block, .cons-block { flex: 1; min-width: 130px; }
.pros-title, .cons-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem; }
.pros-title { color: var(--green); }
.cons-title { color: var(--rose); }
.pros-list, .cons-list { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; }
.pros-list li, .cons-list li { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; padding-left: 1rem; position: relative; }
.pros-list li::before { content: '+'; color: var(--green); position: absolute; left: 0; font-weight: 700; }
.cons-list li::before { content: '\2212'; color: var(--rose); position: absolute; left: 0; font-weight: 700; }

/* ACTIONS */
.product-actions { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 0.5rem; border-left: 1px solid var(--sand); min-width: 160px; flex-shrink: 0; }
.product-price { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--dark); display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.price-from { font-family: var(--sans); font-size: 0.68rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.product-price-mobile .price-from { font-size: 0.65rem; margin-right: 2px; }
.buy-btn { display: flex; align-items: center; justify-content: center; width: 140px; padding: 0.5rem 1rem; border-radius: 99px; border: 1.5px solid var(--dark); background: var(--dark); color: #fff; font-size: 0.78rem; font-weight: 600; font-family: var(--sans); text-decoration: none; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.buy-btn:hover { background: var(--brown); border-color: var(--brown); }
.buy-btn span { font-size: 0.7rem; opacity: 0.7; }
.video-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  width: 140px; padding: 0.5rem 1rem;
  border-radius: 99px; border: 1.5px solid var(--dark);
  background: var(--dark); color: #fff;
  font-size: 0.78rem; font-weight: 600; font-family: var(--sans);
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.video-btn:hover { background: var(--brown); border-color: var(--brown); }
.video-btn svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }

.video-btn-under {
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  background: var(--dark); color: #fff;
  font-size: 0.72rem; font-weight: 600; font-family: var(--sans);
  text-decoration: none; transition: background 0.2s;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.video-btn-under:hover { background: var(--brown); }
.video-btn-under svg { width: 11px; height: 11px; fill: currentColor; flex-shrink: 0; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 5rem 2rem; color: var(--text-muted); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.empty-state h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--dark); margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.92rem; line-height: 1.7; }
.empty-state a { color: var(--rose); text-decoration: none; }
.empty-state a:hover { text-decoration: underline; }

/* FOOTER */
footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 2.5rem 4rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--serif); font-size: 1rem; color: rgba(255,255,255,0.7); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-note { font-size: 0.72rem; width: 100%; }

/* CARD HIGHLIGHT on direct link */
@keyframes cardHighlight {
  0%   { box-shadow: 0 0 0 3px var(--tan), 0 4px 24px rgba(201,185,154,0.4); background: #EDE4D8; }
  60%  { box-shadow: 0 0 0 3px var(--tan), 0 4px 24px rgba(201,185,154,0.4); background: #EDE4D8; }
  100% { box-shadow: none; background: var(--warm-white); }
}
.product-card.highlighted { animation: cardHighlight 2.2s ease forwards; }

/* RESPONSIVE */
@media (max-width: 860px) {
  nav { padding: 0 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .page-header { padding: 2.5rem 1.5rem 2rem; }
  .toolbar { padding: 0; }
  .toolbar-controls { padding: 0.85rem 1.5rem; }
  .products-wrap { padding: 1.5rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; gap: 1.25rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
  .cat-tabs { display: none; }
  .cat-select { display: block; }
  /* prevent iOS Safari zoom on input focus */
  .search-input, .sort-select, .cat-select { font-size: 16px; }
}
@media (max-width: 600px) {
  .product-card { grid-template-columns: 100px 1fr; }
  .product-img-wrap { width: 100px; }
  .product-img { height: 130px; }
  .video-btn-under { font-size: 0.68rem; padding: 0.4rem 0.35rem; }
  .product-actions { display: none; }
  .product-body { padding: 0.85rem; }
  .product-top { flex-wrap: wrap; gap: 0.35rem; }
  .pros-cons { flex-direction: column; gap: 0.75rem; }
  .product-mobile-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
  .buy-btn-sm { padding: 0.45rem 0.9rem; border-radius: 99px; border: 1.5px solid var(--dark); background: var(--dark); color: #fff; font-size: 0.75rem; font-weight: 600; font-family: var(--sans); text-decoration: none; transition: all 0.2s; }
  .buy-btn-sm:hover { background: var(--brown); border-color: var(--brown); }
  .product-price-mobile { font-family: var(--serif); font-size: 1rem; font-weight: 500; color: var(--dark); margin-top: 0.25rem; }
  .product-desc, .product-susan { font-size: 0.82rem; }
  .pros-title, .cons-title { font-size: 0.7rem; }
  .pros-list li, .cons-list li { font-size: 0.8rem; }
}
@media (min-width: 601px) {
  .product-mobile-actions, .product-price-mobile { display: none; }
}
@media (max-width: 400px) {
  .product-card { grid-template-columns: 85px 1fr; }
  .product-img-wrap { width: 85px; }
  .product-img { height: 110px; }
}
