/* ==========================================================
   COLORS AND SIZES: edit these to restyle the whole site.
   --accent-color         = highlight color (orange)
   --strong-color         = main color for buttons (light on the black theme)
   --star-color           = rating star color
   --header-control-height = height of logo, search bar and menu button
   --section-title-size   = size of ALL section headings
   --card-image-ratio     = card image shape (4 / 3 default, 16 / 10 shorter, 1 / 1 tall)
   Black theme: all colors below are the dark theme.
   ========================================================== */
:root {
  --header-control-height: 46px;
  /* Phones: header has 2 rows (logo + menu button, then search bar) */
  --header-height: calc(var(--header-control-height) * 2 + 30px);
  --section-title-size: clamp(1.7rem, 4.5vw, 2.1rem);
  --card-image-ratio: 4 / 3;
  --page-background: #090c10;
  --header-background: #0d1217;
  --card-background: #12181f;
  --input-background: #1a222b;
  --text-color: #f1f4f7;
  --muted-text-color: #9aa6b2;
  --border-color: #232c36;
  --strong-color: #f1f4f7;
  --text-on-strong-color: #0b1620;
  --accent-color: #ff7a1a;
  --text-on-accent-color: #0b1620;
  --focus-ring-color: #ff9a4d;
  --star-color: #ffb400;
  --card-shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.35);
  --card-shadow-hover: 0 14px 30px rgba(0,0,0,.6);
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Tablets and computers: header is one row */
@media (min-width: 760px) {
  :root { --header-height: calc(var(--header-control-height) + 20px); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-family); color: var(--text-color); line-height: 1.5;
  background: radial-gradient(700px 320px at 50% -60px, rgba(255,122,26,.12), transparent 70%) no-repeat, var(--page-background);
  -webkit-text-size-adjust: 100%;
}
.page-width { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
main, section[id], .contact-section { scroll-margin-top: calc(var(--header-height) + 8px); }
:focus-visible { outline: 3px solid var(--focus-ring-color); outline-offset: 3px; }
.screen-reader-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-to-products-link { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--accent-color); color: var(--text-on-accent-color); padding: 8px 12px; border-radius: 8px; }
.skip-to-products-link:focus { left: 8px; }

/* One heading style for every section */
.section-title { font-size: var(--section-title-size); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-align: center; }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--accent-color); margin: 10px auto 0; }

/* ---------- Header (logo, search bar, menu) ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-background); border-bottom: 1px solid var(--border-color); }
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: color-mix(in srgb, var(--header-background) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
}
/* Phones: row 1 = logo + menu button, row 2 = search bar (full width) */
.site-header-inner { max-width: 1100px; margin: 0 auto; padding: 10px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.brand-logo-link { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* Brand name written in white next to the logo */
.brand-name-text { color: #fff; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; line-height: 1; }
/* Round logo with a ring; the whole logo (S + name) sits inside the circle */
.brand-logo-circle { position: relative; display: block; width: var(--header-control-height); height: var(--header-control-height); border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid var(--strong-color); transition: transform .2s ease; }
.brand-logo-circle img { position: absolute; display: block; max-width: none; width: 112.3%; height: 112.3%; left: -4.1%; top: 2.3%; }
.brand-logo-link:active .brand-logo-circle { transform: scale(.92); }
@media (hover: hover) { .brand-logo-link:hover .brand-logo-circle { transform: scale(1.06); } }

.search-box { order: 3; flex: 1 0 100%; position: relative; min-width: 0; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-text-color); pointer-events: none; }
.search-box input {
  width: 100%; height: var(--header-control-height); padding: 0 14px 0 42px; font: inherit; font-size: 1rem;
  color: var(--text-color); background: var(--input-background); border: 1px solid var(--border-color); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-box input::placeholder { color: var(--muted-text-color); }
.search-box input:focus { outline: none; background: var(--card-background); border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(255,122,26,.22); }

.menu-toggle-button { flex: none; margin-left: auto; width: var(--header-control-height); height: var(--header-control-height); display: grid; place-items: center; background: transparent; color: var(--text-color); border: 1px solid var(--border-color); border-radius: 12px; cursor: pointer; transition: background .2s, transform .15s; }
.menu-toggle-button:hover { background: var(--input-background); }
.menu-toggle-button:active { transform: scale(.92); }
.nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px; background: var(--header-background); border-bottom: 1px solid var(--border-color); box-shadow: 0 12px 24px rgba(0,0,0,.12); }
.nav-menu.is-open { display: flex; }
.nav-menu a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--border-color); }
.nav-menu a:last-child { border-bottom: 0; }

/* Tablets and computers: one row = logo | wide search bar | menu links */
@media (min-width: 760px) {
  .site-header-inner { height: var(--header-height); flex-wrap: nowrap; padding: 0 16px; gap: 16px; }
  .search-box { order: 0; flex: 1; max-width: 640px; margin: 0 auto; }
  .menu-toggle-button { display: none; }
  .nav-menu { display: flex; position: static; flex-direction: row; gap: 4px; margin-left: auto; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .nav-menu a { border: 0; padding: 0 14px; border-radius: 999px; min-height: 44px; transition: background .2s, transform .15s; }
  .nav-menu a:hover { background: var(--input-background); }
  .nav-menu a:active { transform: scale(.95); }
}
/* Wide screens: logo left, search bar exactly in the center, menu right */
@media (min-width: 1240px) {
  .site-header-inner { max-width: 1280px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px) minmax(0, 1fr); }
  .search-box { max-width: none; margin: 0; }
}

/* ---------- Products section ---------- */
.products-section { padding-top: 32px; }
.products-heading { text-align: center; }
.products-subtitle { margin-top: 10px; color: var(--muted-text-color); }
/* Notice above the products: affiliate disclosure + shipping/tax note */
.shopping-notice { margin-top: 20px; padding: 10px 14px; font-size: .85rem; line-height: 1.5; color: var(--muted-text-color); background: var(--card-background); border: 1px solid var(--border-color); border-left: 4px solid var(--accent-color); border-radius: 10px; }
.shopping-notice a { color: var(--accent-color); }
.affiliate-link-note { margin-top: 6px; text-align: center; font-size: .72rem; color: var(--muted-text-color); }
/* Left: sort dropdown + product count. Right: category buttons. */
.filter-bar { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 20px 0 18px; }
@media (min-width: 900px) { .filter-bar { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; } .category-filters { justify-content: flex-end; } }
.category-filters { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.category-button { min-height: 44px; padding: 0 16px; background: var(--card-background); color: var(--text-color); border: 1px solid var(--border-color); border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.category-button:hover { border-color: var(--strong-color); }
.category-button:active { transform: scale(.93); }
.category-button[aria-pressed="true"] { background: var(--strong-color); border-color: var(--strong-color); color: var(--text-on-strong-color); }
.sort-and-count-group { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; }
.product-count { color: var(--muted-text-color); font-size: .88rem; }
.sort-dropdown { min-height: 40px; padding: 0 14px; font: inherit; font-size: .9rem; color: var(--text-color); background: var(--card-background); border: 1px solid var(--border-color); border-radius: 999px; cursor: pointer; }

/* Phones: 1 card per row. Bigger screens: 2, 3, then 4 cards per row. */
.product-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px)  { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 700px)  { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Product card ---------- */
@keyframes card-fade-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.product-card {
  display: flex; flex-direction: column; background: var(--card-background); border: 1px solid var(--border-color);
  border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: card-fade-in .5s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--animation-order, 0) * 55ms);
}
.product-card[hidden] { display: none; }
.product-card:active { transform: scale(.985); }
.card-image-area { position: relative; overflow: hidden; background: var(--input-background); aspect-ratio: var(--card-image-ratio); }
.card-image-area img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-badge { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(11,22,32,.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
/* Popular products: orange border, glow and a ribbon so people notice them */
.popular-card { border: 2px solid var(--accent-color); box-shadow: 0 0 0 4px rgba(255,122,26,.15), var(--card-shadow); }
.popular-ribbon { position: absolute; top: 0; right: 0; padding: 5px 12px 6px 14px; border-radius: 0 0 0 14px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, #ff7a1a, #ff3d54); box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.popular-card .sold-count { color: var(--accent-color); }
/* Tags: Best Seller, New, Deal */
.product-tag { position: absolute; bottom: 8px; left: 8px; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; color: #0b1620; background: var(--accent-color); box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.product-tag[data-tag="Best Seller"] { background: #ffb400; }
.product-tag[data-tag="New"] { background: #3ddc97; }
.product-tag[data-tag="Deal"] { background: #ff4d5e; color: #fff; }
@media (hover: hover) {
  .product-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); border-color: var(--accent-color); }
  .product-card:hover .card-image-area img { transform: scale(1.08); }
}
.card-text-area { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 10px 12px 12px; }
.product-card h3 { font-size: .95rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Description: up to 3 lines (change the 3 to show more or fewer) */
.product-description { font-size: .82rem; line-height: 1.4; color: var(--muted-text-color); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rating-and-sold-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 2px; }
.rating-box { display: flex; align-items: center; gap: 4px; font-size: .9rem; }
.rating-star { color: var(--star-color); font-size: 1.1rem; line-height: 1; }
.rating-number { font-weight: 700; }
.review-count { color: var(--muted-text-color); }
.sold-count { font-size: .85rem; font-weight: 600; color: var(--muted-text-color); }
.buy-button-area { margin-top: auto; padding-top: 8px; }
.buy-button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; text-align: center; text-decoration: none; font-size: .88rem; font-weight: 700; background: var(--strong-color); color: var(--text-on-strong-color); border-radius: 12px; transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.buy-button::after { content: "→"; display: inline-block; transition: transform .2s; }
.buy-button:hover { background: var(--accent-color); color: var(--text-on-accent-color); box-shadow: 0 6px 16px rgba(255,122,26,.38); }
.buy-button:hover::after { transform: translateX(4px); }
.buy-button:active { transform: scale(.94); }
.no-products-message { margin-top: 24px; text-align: center; color: var(--muted-text-color); }
.show-more-button { display: block; margin: 24px auto 0; min-height: 48px; padding: 0 28px; background: var(--card-background); color: var(--text-color); border: 1px solid var(--border-color); border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.show-more-button:hover { background: var(--strong-color); color: var(--text-on-strong-color); }
.show-more-button:active { transform: scale(.94); }

/* ---------- Divider + About Us ---------- */
.section-divider { border: 0; height: 2px; margin: 56px auto 0; width: calc(100% - 32px); max-width: 1068px; background: linear-gradient(90deg, transparent, var(--border-color), var(--accent-color), var(--border-color), transparent); }
.about-section { max-width: 780px; padding-top: 36px; }
.about-quote-box { margin: 24px 0 0; padding: 26px 22px 22px; background: var(--card-background); border: 1px solid var(--border-color); border-radius: 20px; box-shadow: var(--card-shadow); text-align: center; }
.about-quote-box p { font-style: italic; font-size: 1.05rem; line-height: 1.75; }
.about-quote-box p + p { margin-top: 14px; }
.quote-mark { display: block; height: .5em; font-family: Georgia, "Times New Roman", serif; font-style: normal; font-size: 4rem; line-height: 1; color: var(--accent-color); user-select: none; }
.quote-mark:first-child { text-align: left; margin-bottom: 12px; }
.quote-mark:last-child { text-align: right; margin-top: 18px; }

/* ---------- Footer (contact + notes) ---------- */
.site-footer { margin-top: 56px; padding: 40px 0 32px; background: #0b1620; color: #c9d3dc; text-align: center; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer :focus-visible { outline-color: var(--accent-color); }
.site-footer .section-title { color: #fff; }
.contact-note { margin-top: 14px; font-size: .92rem; color: #c9d3dc; }
.social-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.social-icon-link { width: 50px; height: 50px; display: grid; place-items: center; color: #fff; text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; transition: transform .2s ease, background .2s, color .2s, box-shadow .2s, border-color .2s; }
.social-icon-link:active { transform: scale(.88); }
@media (hover: hover) {
  .social-icon-link:hover { transform: translateY(-5px) scale(1.08); background: var(--accent-color); color: #0b1620; border-color: var(--accent-color); box-shadow: 0 10px 20px rgba(255,122,26,.4); }
}
.footer-notes { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #9fb0bf; }
.contact-section[hidden] + .footer-notes { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-notes p { margin: 6px 0; }

/* ---------- Footer links (Privacy Policy, Affiliate Disclosure) ---------- */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 12px; }
.footer-links a { color: #c9d3dc; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--accent-color); }

/* ---------- Simple text pages (privacy-policy.html, affiliate-disclosure.html) ---------- */
.site-header-inner.simple-header { display: flex; }
.back-to-site-link { margin-left: auto; display: flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: none; font-weight: 600; border: 1px solid var(--border-color); border-radius: 999px; transition: background .2s; }
.back-to-site-link:hover { background: var(--input-background); }
.text-page { max-width: 780px; padding-top: 36px; }
.text-page h1 { font-size: var(--section-title-size); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.text-page .last-updated { margin-top: 8px; font-size: .9rem; color: var(--muted-text-color); }
.text-page h2 { margin-top: 28px; font-size: 1.2rem; }
.text-page p, .text-page li { margin-top: 10px; }
.text-page ul { margin: 0; padding-left: 22px; }
.text-page a { color: var(--accent-color); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}