:root {
  --ink: #241c1a;
  --ink-soft: #6b5d58;
  --paper: #fbf7f2;
  --card: #ffffff;
  --line: #e8ddd3;
  --accent: #a83232;
  --accent-dark: #7e2222;
  --accent-soft: #f6e4e0;
  --success: #2c6e49;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}
header.site nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.92rem;
}
header.site nav a { text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
header.site nav a:hover { color: var(--accent); }
.cart-link {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
}

@media (max-width: 480px) {
  header.site { padding: 0.85rem 1rem; }
  header.site nav { gap: 0.85rem; font-size: 0.85rem; }
  /* Redundant on small screens — "Cart" already opens the same page. */
  header.site nav .cart-link { display: none; }
}

main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.deal-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.deal-box {
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 6.5rem;
  justify-content: center;
  transition: transform 0.15s ease;
}
.deal-box:hover { transform: translateY(-2px); }
.deal-box .eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.deal-box .headline { font-size: 1.25rem; font-weight: 700; }
.deal-box .sub { font-size: 0.85rem; opacity: 0.9; }
.deal-box.one { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); }
.deal-box.two { background: linear-gradient(135deg, #2c6e49 0%, #1f5136 100%); }
@media (max-width: 600px) { .deal-boxes { grid-template-columns: 1fr; } }

.carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 220px;
  margin-bottom: 1.75rem;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 2.5rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide h2 { margin: 0 0 0.4rem; font-size: 1.6rem; }
.carousel-slide p { margin: 0; font-size: 0.95rem; opacity: 0.92; max-width: 32ch; }
.carousel-dots {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}
.carousel-dots button {
  width: 0.5rem; height: 0.5rem; border-radius: 999px; border: none;
  background: rgba(255,255,255,0.5); cursor: pointer; padding: 0;
}
.carousel-dots button.active { background: #fff; }
@media (max-width: 600px) {
  .carousel { height: 180px; }
  .carousel-slide { padding: 1.5rem; }
  .carousel-slide h2 { font-size: 1.25rem; }
}

.categories-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.categories-bar a {
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.categories-bar a.active, .categories-bar a:hover { border-color: var(--accent); color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(36,28,26,0.08); }
.product-card .thumb {
  aspect-ratio: 1;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2rem;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .info { padding: 0.85rem; }
.product-card .name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.product-card .price { color: var(--accent-dark); font-weight: 700; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

form.stacked { display: flex; flex-direction: column; gap: 0.9rem; max-width: 420px; }
label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 0.3rem; }
input, textarea, select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.error-box {
  background: #fbe9e7;
  border: 1px solid #e0a8a0;
  color: var(--accent-dark);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}
.success-box {
  background: #e5f2e9;
  border: 1px solid #a8d4b9;
  color: var(--success);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.product-detail .thumb-lg {
  aspect-ratio: 1;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 3rem;
  overflow: hidden;
}
.product-detail .thumb-lg img { width: 100%; height: 100%; object-fit: cover; }
.product-detail h1 { margin-top: 0; }
.product-detail .price-lg { font-size: 1.6rem; font-weight: 700; color: var(--accent-dark); margin: 0.5rem 0 1rem; }
@media (max-width: 700px) { .product-detail { grid-template-columns: 1fr; } }

.cart-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-row .thumb-sm {
  width: 4rem; height: 4rem; border-radius: 6px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.cart-row .thumb-sm img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.qty-input { width: 4rem; }

@media (max-width: 480px) {
  /* Four grid columns don't fit a narrow screen — wrap qty + remove onto
     their own line under the product info instead of squeezing everything
     into one cramped row. */
  .cart-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.75rem;
  }
  .cart-row .thumb-sm { flex: 0 0 3.5rem; width: 3.5rem; height: 3.5rem; }
  .cart-row > div:nth-child(2) { flex: 1 1 auto; min-width: 0; }
  .cart-row .qty-input { flex: 0 0 4rem; order: 1; }
  .cart-row [data-remove] { order: 2; margin-left: auto; }
}
.cart-total {
  display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 700;
  padding-top: 1rem; margin-top: 0.5rem;
}

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
footer.site { text-align: center; padding: 2rem; color: var(--ink-soft); font-size: 0.85rem; }

/* Affiliate comparison storefront */
.affiliate-hero{min-height:370px;border-radius:18px;padding:3.2rem;display:grid;grid-template-columns:1.5fr .7fr;align-items:center;background:linear-gradient(125deg,#351313,#8e2727);color:#fff;margin-bottom:1rem;overflow:hidden}.affiliate-hero h1{font-size:clamp(2.3rem,5vw,4.4rem);line-height:.98;letter-spacing:-.05em;margin:.6rem 0 1rem}.affiliate-hero p{max-width:650px;color:#f4dddd;font-size:1.05rem}.eyebrow{font-size:.72rem;letter-spacing:.16em;font-weight:800;color:#bd6a56}.affiliate-hero .eyebrow{color:#f2b39f}.hero-mark{font-size:7rem;font-weight:900;opacity:.15;transform:rotate(-8deg)}.hero-mark span{display:block;font-size:1rem;letter-spacing:.4em}.affiliate-note{font-size:.78rem;color:var(--ink-soft);margin:1rem 0 2.5rem}.section-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin:2.5rem 0 1.2rem}.section-head h2{margin:.2rem 0 0;font-size:2rem}.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:.8rem}.category-tile{background:#fff;border:1px solid var(--line);padding:1.25rem;border-radius:12px;text-decoration:none;display:flex;flex-direction:column;gap:.25rem;transition:.2s}.category-tile:hover{transform:translateY(-3px);border-color:#c58f83;box-shadow:0 10px 24px rgba(60,20,20,.08)}.category-tile>span{font-size:1.7rem;color:var(--accent)}.category-tile small,.compare-card small{color:var(--ink-soft)}.compare-card .thumb{height:230px}.compare-card .rating,.rating{color:#d78312;font-weight:700;font-size:.86rem}.rating span{color:var(--ink-soft);font-weight:400}.compare-price{display:flex;justify-content:space-between;align-items:end;margin-top:1rem}.compare-price span{font-size:.75rem;color:var(--ink-soft)}.compare-price strong{font-size:1.15rem}.compare-link{margin-top:.7rem;color:var(--accent);font-weight:700;font-size:.85rem}.breadcrumbs{font-size:.82rem;color:var(--ink-soft);margin-bottom:1.5rem}.comparison-product{display:grid;grid-template-columns:minmax(280px,.8fr) 1.2fr;gap:3rem;align-items:center}.product-media{background:#fff;border:1px solid var(--line);border-radius:16px;min-height:430px;display:grid;place-items:center;font-size:6rem;color:var(--accent)}.product-media img{width:100%;height:430px;object-fit:contain}.comparison-product h1{font-size:clamp(2rem,4vw,3.4rem);line-height:1.05;margin:.6rem 0 1rem}.rating.big{font-size:1rem;margin-bottom:1rem}.offers-section{margin-top:4rem}.offer-list{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.offer-row{display:grid;grid-template-columns:1fr auto auto;gap:1.5rem;align-items:center;padding:1.25rem;border-bottom:1px solid var(--line)}.offer-row:last-child{border:0}.offer-row.best{background:#fffaf3}.offer-row>div:first-child{display:flex;flex-direction:column}.best-badge{display:inline-block;width:max-content;margin:.3rem 0;padding:.15rem .45rem;border-radius:4px;background:#e8f5eb;color:#287440;font-size:.68rem;font-weight:800}.offer-price{display:flex;flex-direction:column;text-align:right}.offer-price del{color:var(--ink-soft);font-size:.78rem}.offer-price strong{font-size:1.3rem}.buy-btn{min-width:190px;text-align:center}.specs{margin-top:3rem}.specs dl{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.specs dl div{display:grid;grid-template-columns:1fr 2fr;padding:.8rem 1rem;border-bottom:1px solid var(--line)}.specs dt{color:var(--ink-soft)}.specs dd{margin:0;font-weight:600}
@media(max-width:700px){.affiliate-hero{grid-template-columns:1fr;padding:2rem 1.3rem;min-height:330px}.hero-mark{display:none}.section-head{align-items:stretch;flex-direction:column}.section-head input{width:100%;max-width:none!important}.comparison-product{grid-template-columns:1fr;gap:1.5rem}.product-media,.product-media img{min-height:280px;height:280px}.offer-row{grid-template-columns:1fr auto}.offer-row .buy-btn{grid-column:1/-1;width:100%}.specs dl div{grid-template-columns:1fr;gap:.2rem}}
.load-more-wrap{text-align:center;margin-top:2rem}.stock-unavailable{font-weight:700;color:#9a3412;padding:.75rem 1.2rem;background:#ffedd5;border-radius:8px}

/* Organized large-catalog storefront */
.affiliate-store{background:#f7f5f1}.catalog-header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);padding:0;border-bottom:1px solid #e8e2da}.header-inner{width:min(1180px,calc(100% - 2rem));height:68px;margin:auto;display:flex;align-items:center;justify-content:space-between}.catalog-header nav{display:flex;gap:1.5rem}.catalog-header nav a{font-size:.88rem;font-weight:650;text-decoration:none;color:var(--ink)}.affiliate-store main{width:min(1180px,calc(100% - 2rem));margin:2rem auto 5rem}.organized-hero{min-height:340px;margin:0;padding:3rem 3.5rem;grid-template-columns:1.35fr .65fr;background:linear-gradient(125deg,#301616,#772326)}.organized-hero h1{font-size:clamp(2.5rem,5vw,4.25rem)}.hero-actions{display:flex;align-items:center;gap:1.4rem;margin-top:1.5rem}.text-link{color:#f8ddd6;font-weight:700;text-decoration:none}.hero-category-list{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.hero-category-list span{padding:1rem;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(255,255,255,.06);font-weight:700;text-align:center}.category-section{margin:4rem 0}.section-head.clean{margin-bottom:1.4rem}.section-head.clean p,.catalog-toolbar p{margin:.35rem 0 0;color:var(--ink-soft)}.organized-categories{grid-template-columns:repeat(4,1fr);gap:.75rem}.organized-categories .category-tile{display:grid;grid-template-columns:42px 1fr auto;align-items:center;padding:1rem 1.1rem;min-height:82px;gap:.75rem}.organized-categories .category-tile>span{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:#f7ece8;font-size:1.25rem}.organized-categories .category-tile div{display:flex;flex-direction:column;min-width:0}.organized-categories .category-tile strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.organized-categories .category-tile b{color:var(--accent)}.organized-categories .category-tile.active{border-color:var(--accent);background:#fff9f6}.catalog-shell{padding:2rem;border-radius:18px;background:#fff;border:1px solid #e7e1d9}.catalog-toolbar{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin-bottom:1.5rem}.catalog-toolbar h2{font-size:2rem;margin:.2rem 0 0}.catalog-search{width:min(380px,100%);font-size:.72rem;color:var(--ink-soft);font-weight:700}.catalog-search span{display:block;margin-bottom:.4rem}.catalog-search input{width:100%;height:46px;border:1px solid #d8d1c8;border-radius:9px;padding:0 .9rem;background:#fbfaf8}.organized-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.organized-card{border:1px solid #e7e1d9;border-radius:12px;box-shadow:none;overflow:hidden;display:flex;flex-direction:column;min-width:0}.organized-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(54,31,21,.09);border-color:#cdb7ad}.organized-card .thumb{height:205px;background:#faf9f7;position:relative;padding:.75rem}.organized-card .thumb img{width:100%;height:100%;object-fit:contain}.stock-label{position:absolute;top:.7rem;left:.7rem;padding:.28rem .5rem;border-radius:5px;background:#fff0e6;color:#9a3412;font-size:.68rem;font-weight:800}.organized-card .info{display:flex;flex-direction:column;flex:1;padding:1rem}.product-meta{display:flex;justify-content:space-between;gap:.5rem;align-items:center}.product-meta small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.organized-card .name{font-size:.93rem;font-weight:750;line-height:1.35;margin:.55rem 0 .35rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.52rem}.brand-line{font-size:.75rem;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-bottom{display:flex;align-items:end;justify-content:space-between;gap:.75rem;margin-top:auto;padding-top:1rem}.organized-card .compare-price{display:flex;flex-direction:column;align-items:flex-start;margin:0}.organized-card .compare-price strong{font-size:1.05rem}.round-arrow{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#f2e6e1;color:var(--accent);font-weight:800}.btn.secondary{background:#fff;color:var(--accent);border:1px solid var(--accent)}
@media(max-width:980px){.organized-categories,.organized-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.catalog-header nav a:last-child{display:none}.affiliate-store main{width:min(100% - 1rem,1180px);margin-top:.5rem}.organized-hero{padding:2rem 1.25rem;grid-template-columns:1fr;min-height:380px}.hero-category-list{grid-template-columns:repeat(3,1fr);margin-top:1.25rem}.hero-category-list span{padding:.65rem .3rem;font-size:.76rem}.organized-categories{grid-template-columns:1fr 1fr}.organized-categories .category-tile{grid-template-columns:35px 1fr;padding:.75rem;min-height:70px}.organized-categories .category-tile>span{width:35px;height:35px}.organized-categories .category-tile b{display:none}.catalog-shell{padding:1rem}.catalog-toolbar{align-items:stretch;flex-direction:column}.organized-grid{grid-template-columns:1fr 1fr;gap:.65rem}.organized-card .thumb{height:160px}.organized-card .info{padding:.8rem}.organized-card .name{font-size:.85rem}.organized-card .compare-price strong{font-size:.92rem}}
@media(max-width:390px){.organized-categories{grid-template-columns:1fr}.organized-card .thumb{height:145px}}
.seo-category{margin-top:1rem}.seo-category .catalog-toolbar h1{font-size:clamp(2rem,4vw,3rem);margin:.2rem 0}.seo-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;margin-top:2rem}.seo-pagination a:first-child{justify-self:start}.seo-pagination a:last-child{justify-self:end}.seo-pagination span{text-align:center;color:var(--ink-soft);font-size:.85rem}
@media(max-width:600px){.seo-pagination{grid-template-columns:1fr 1fr}.seo-pagination span{grid-column:1/-1;grid-row:1}.seo-pagination .btn{padding:.65rem .8rem}}
