/* =========================================================
   COMBINED WEBSITE CSS
   Pages: Home | Product Detail | Category Listing
   Use this single file as style.css on all three page types.
   ========================================================= */

/* 1. GLOBAL VARIABLES + RESET */
:root {
  --gold: #b8863f;
  --gold-dark: #9a6d2c;
  --maroon: #8e1b3a;
  --red: #c8102e;
  --cream: #fbf5ef;
  --blush: #f6e2dc;
  --peach: #fbeee8;
  --green: #123b30;
  --ink: #2a2420;
  --muted: #6f655d;
  --dark: #1c1d1d;
  --line: #eadfd3;
  --radius: 8px;
  --r: 8px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

.ic {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
}

/* 2. COMMON BUTTONS + BADGES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: .65rem 1.1rem;
  background: var(--gold);
  color: #fff;
  font: 600 .84rem var(--sans);
  cursor: pointer;
  transition: background .2s, color .2s;
}

.btn:hover {
  background: var(--gold-dark);
}

.btn.block {
  display: block;
  width: 100%;
}

.btn .ic {
  width: 1rem;
  height: 1rem;
}

.btn.lg {
  padding: .85rem 1.2rem;
  font-size: .95rem;
}

.btn.lg .ic {
  width: 1.2rem;
  height: 1.2rem;
}

.btn.outline {
  background: #fff;
  color: var(--gold);
}

.btn.outline:hover {
  background: var(--gold);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
}

.btn-maroon {
  background: var(--maroon);
  border-color: var(--maroon);
}

.btn-maroon:hover {
  background: #6f132c;
}

.btn-outline {
  width: 100%;
  padding: .65rem;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 5px;
  font: 600 .85rem var(--sans);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}

.off {
  border: 1px solid var(--red);
  color: var(--red);
  font-size: .68rem;
  font-weight: 600;
  padding: .1rem .4rem;
  border-radius: 3px;
  white-space: nowrap;
}

.eyebrow {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: .6rem;
}

.eyebrow.center {
  text-align: center;
  color: var(--muted);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
}

/* 3. COMMON HEADER + NAVIGATION */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.logo img {
  height: 54px;
  width: auto;
}

.logo-mark {
  font-size: 2.2rem;
  color: var(--gold);
}

.logo b {
  display: block;
  font: 600 1.6rem/1 var(--serif);
  letter-spacing: .14em;
}

.logo small {
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo.light b {
  color: #fff;
}

.logo.light small {
  color: #bbb;
}

.search {
  flex: 1;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .25rem .5rem .25rem 1.2rem;
  background: #fff;
  max-width: 520px;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: .85rem var(--sans);
  background: none;
}

.search button {
  border: 0;
  background: none;
  color: var(--gold);
  cursor: pointer;
  padding: .35rem .55rem;
}

.actions {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: .75rem;
  color: var(--muted);
}

.actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.actions span {
  font-size: 1.2rem;
  color: var(--ink);
}

.actions .ic {
  color: var(--ink);
}

.badge {
  position: absolute;
  top: -4px;
  right: -5px;
  background: var(--gold);
  color: #fff;
  font-style: normal;
  font-size: .6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: .65rem 0;
  font-size: .85rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  border-color: var(--gold);
}

/* 4. COMMON PRICE + PRODUCT CARD UTILITIES */
.price {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 .3rem;
  flex-wrap: wrap;
}

.price b {
  color: var(--red);
  font-size: 1.05rem;
}

.price s {
  color: #999;
  font-size: .75rem;
}

.wish {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: .95rem;
  line-height: 1;
  color: var(--ink);
}

.wish[aria-pressed="true"] {
  color: var(--red);
}

.tag {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #fff;
  font-size: .65rem;
  font-weight: 600;
  padding: .2rem .5rem;
  border-radius: 4px;
}

.tag.off {
  background: var(--red);
  color: #fff;
  border: 0;
}

.tag.best {
  background: var(--maroon);
}

.tag.new {
  background: var(--gold);
}

.tag.fresh {
  background: #1f8a4c;
}

/* 5. HOME PAGE */
.ph {
  background: linear-gradient(135deg, #f3d9c9, #e8bfa9);
  display: grid;
  place-items: center;
  color: #a97f66;
  font-size: .8rem;
}

.hero {
  background: linear-gradient(90deg, #fbe9e2, #f6d9cd);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 390px;
  gap: 2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: .6rem;
}

.hero .sub {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.hero .perks {
  display: flex;
  gap: 1.8rem;
  margin-top: 1.8rem;
  font-size: .75rem;
  color: var(--muted);
}

.hero .perks li {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.hero .perks span {
  font-size: 1.5rem;
}

.dots {
  display: flex;
  gap: 6px;
  margin-top: 1.4rem;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cfb9a8;
}

.dots i.on {
  width: 22px;
  border-radius: 4px;
  background: var(--gold);
}

.hero-img {
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius);
}

.categories {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  padding: 2rem 0 1rem;
  text-align: center;
  font-size: .85rem;
  font-weight: 500;
}

.circle {
  display: grid;
  place-items: center;
  width: min(100px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush);
  margin: 0 auto .6rem;
  font-size: 2rem;
  transition: transform .2s;
}

.categories a:hover .circle {
  transform: scale(1.06);
}

.section {
  padding: 1.5rem 0 3rem;
}

.section-head {
  position: relative;
  text-align: center;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  font-size: 2.2rem;
}

.link-gold {
  position: absolute;
  right: 0;
  bottom: .5rem;
  color: var(--gold);
  font-size: .85rem;
  font-weight: 600;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.section .card {
  background: #fff;
  border-radius: var(--radius);
  padding: .4rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border: 0;
}

.section .card h3 {
  font: 600 .85rem var(--sans);
  padding: 0 .3rem;
}

.section .thumb {
  position: relative;
  aspect-ratio: 1 / .95;
  border-radius: 6px;
  overflow: hidden;
}

.section .wish {
  z-index: 1;
}

.section .tag {
  z-index: 1;
}

.section .price b {
  font-size: 1.05rem;
}

.banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(90deg, #f9e4dc, #f2c9c8);
}

.banner-img {
  min-height: 260px;
  border-radius: 0;
}

.banner-copy {
  padding: 2.5rem 3rem;
  align-self: center;
}

.banner-copy .eyebrow {
  color: var(--maroon);
}

.banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--maroon);
  margin-bottom: .4rem;
}

.feature-inner {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 2.2fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
}

.feature h2 {
  font-size: 2.4rem;
  margin-bottom: .8rem;
}

.feature p {
  font-size: .9rem;
  margin-bottom: 1.2rem;
  max-width: 34ch;
}

.feature-rings {
  background: #f8ece3;
}

.feature-bracelets {
  background: var(--green);
  color: #fff;
}

.feature-bracelets .eyebrow {
  color: #e0a94d;
}

.feature-bracelets .card {
  color: var(--ink);
}

/* 6. CATEGORY PAGE */
.page-hero {
  position: relative;
  min-height: 216px;
  display: flex;
  align-items: center;
  background: #f8e3da;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(55%, 760px);
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}

.hero-copy {
  position: relative;
  padding: 1.2rem 0;
}

.crumbs {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .8rem;
}

.crumbs a,
.crumbs span {
  color: var(--gold);
}

.page-hero h1 {
  font: 600 clamp(2.4rem, 5vw, 3.4rem) / 1.1 var(--serif);
  margin: .2rem 0;
}

.page-hero .sub {
  font: 500 1.4rem var(--serif);
  color: var(--muted);
  margin-bottom: .6rem;
}

.lead {
  font-size: .88rem;
  color: var(--muted);
  max-width: 46ch;
}

.listing {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.6rem;
  padding: 2rem 0 2.5rem;
  align-items: start;
}

.filters {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.filter {
  margin-bottom: 1.4rem;
}

.filter h3 {
  font: 600 .95rem var(--sans);
  margin-bottom: .7rem;
}

.filter li {
  margin-bottom: .45rem;
  font-size: .82rem;
  color: var(--muted);
}

.filter label {
  display: flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
}

.filter input[type="checkbox"] {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
}

.filter input.sr {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.sw {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #ddd;
  flex: none;
}

.sr:checked + .sw {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.sr:focus-visible + .sw {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

#price {
  width: 100%;
  accent-color: var(--gold);
}

.range-label {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .3rem;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: var(--muted);
}

.toolbar select {
  margin-left: .3rem;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font: .82rem var(--sans);
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.grid .card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .3rem .3rem .5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-width: 0;
}

.grid .card h3 {
  font: 500 .85rem var(--sans);
  padding: 0 .3rem;
}

.grid .thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 346 / 264;
  background: #f3e4d8;
}

.grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid .price {
  align-items: baseline;
}

/* 7. PRODUCT DETAIL PAGE */
.product-top {
  background: linear-gradient(#fbeee8, #fdf6f1);
  padding: .9rem 0 1.5rem;
}

.product-top .crumbs {
  margin-bottom: .8rem;
}

.product {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.05fr);
  gap: .8rem 1.1rem;
  align-items: start;
}

.product .thumbs {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.product .thumb {
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0;
  background: none;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  line-height: 0;
  position: static;
}

.product .thumb.on {
  border-color: var(--gold);
}

.product .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f3e4d8;
  aspect-ratio: 410 / 386;
}

.main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expand {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.info {
  padding-left: .4rem;
}

.badge-best {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .4rem;
}

.info h1 {
  font: 600 clamp(1.8rem, 3.2vw, 2.5rem) / 1.1 var(--serif);
  margin-bottom: .5rem;
}

.rating {
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.stars {
  color: #e8a317;
  letter-spacing: 1px;
}

.rating a {
  color: var(--gold);
}

.sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #bbb;
  margin: 0 .4rem;
}

.big-price {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: .8rem;
  flex-wrap: wrap;
}

.big-price b {
  color: var(--red);
  font-size: 2rem;
}

.big-price s {
  color: #888;
  font-size: 1.1rem;
}

.big-price .off {
  font-size: .85rem;
  padding: .25rem .6rem;
}

.tax {
  font-size: .85rem;
  color: var(--muted);
  margin: .3rem 0 1rem;
}

.info .perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-bottom: 1rem;
}

.info .perks li {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem .6rem;
}

.perk {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--ink);
  flex: none;
}

.info .perks b,
.features b,
.trust b {
  display: block;
  font-size: .78rem;
  line-height: 1.3;
}

.info .perks small {
  font-size: .66rem;
  color: var(--muted);
  display: block;
}

.desc {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.label {
  font-size: .92rem;
  font-weight: 500;
  margin: .8rem 0 .4rem;
}

.swatches {
  display: flex;
  gap: .7rem;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid #ddd;
  cursor: pointer;
  padding: 0;
  outline: 2px solid transparent;
  outline-offset: 3px;
}

.swatch.on {
  outline-color: var(--gold);
}

.qty {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.qty button {
  width: 36px;
  height: 34px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.qty output {
  width: 42px;
  display: grid;
  place-items: center;
  border-inline: 1px solid var(--line);
  font-size: .9rem;
}

.cta {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: .8rem;
  margin: 1.2rem 0 1rem;
}

.links {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: .85rem;
}

.link .ic {
  width: 1.1rem;
  height: 1.1rem;
}

.wish-link[aria-pressed="true"] .ic {
  color: var(--red);
  fill: var(--red);
}

/* 8. PRODUCT DETAILS + FEATURES */
.features {
  background: #fff;
}

.features ul,
.trust ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem 0;
}

.features li,
.trust li {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.features img,
.trust img {
  border-radius: 50%;
  flex: none;
}

.features small,
.trust small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
}

.details {
  background: #fdf8f4;
  border-radius: var(--radius);
  padding: 1rem 1.2rem 1.6rem;
  margin-top: 1.2rem;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.4rem;
}

.tabs button {
  flex: 1;
  padding: .8rem .5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: -1px;
}

.tabs button.on {
  color: var(--gold);
  border-color: var(--gold);
  font-weight: 500;
}

.panel {
  display: none;
}

.panel.on {
  display: block;
}

.panel h2 {
  font: 600 1.7rem var(--serif);
  margin-bottom: .6rem;
}

.panel p {
  font-size: .9rem;
  color: var(--muted);
}

.two {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.checks {
  margin-top: 1.2rem;
}

.checks li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: .55rem;
}

.checks li::before {
  content: "✓";
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: .65rem;
  display: grid;
  place-items: center;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  background: #f8efe7;
  font-size: .82rem;
}

.spec th,
.spec td {
  text-align: left;
  padding: .5rem .8rem;
  border-bottom: 1px solid #efe3d8;
  font-weight: 400;
}

.spec th {
  color: var(--muted);
  width: 36%;
}

.spec tr:last-child * {
  border-bottom: 0;
}

/* 9. RELATED PRODUCTS */
.related {
  padding: 2.2rem 0 1.8rem;
}

.related h2 {
  font: 600 1.9rem var(--serif);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.related h2::before,
.related h2::after {
  content: "";
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--gold);
  margin-inline: auto;
}

.carousel {
  position: relative;
}

.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3.2rem) / 5);
  gap: .8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.track::-webkit-scrollbar {
  display: none;
}

.related .card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 0 0 .5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.related .card h3 {
  font: 500 .85rem var(--sans);
  padding: 0 .6rem;
}

.related .card .price {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: 0 .6rem;
  flex-wrap: wrap;
}

.related .card .price b {
  color: var(--red);
  font-size: 1.05rem;
}

.related .card .price s {
  color: #999;
  font-size: .72rem;
}

.related .card .btn {
  width: calc(100% - 1.2rem);
  margin-inline: auto;
}

.rimg {
  position: relative;
  aspect-ratio: 178 / 122;
  overflow: hidden;
}

.rimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrow {
  position: absolute;
  top: 40%;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.arrow.prev {
  left: -14px;
}

.arrow.next {
  right: -14px;
}

/* 10. CATEGORY PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .85rem;
}

.pagination span {
  border: 0;
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination a.on {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* 11. COMMON TRUST STRIP + FOOTER */
.trust {
  background: var(--cream);
}

.trust ul {
  padding: 1.3rem 0;
}

.trust li > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blush);
  font-size: 1.4rem;
  flex: none;
}

.trust b {
  display: block;
  font-size: .85rem;
}

.trust small {
  color: var(--muted);
  font-size: .75rem;
}

.site-footer {
  background: var(--dark);
  color: #ddd;
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  gap: 2rem;
  font-size: .85rem;
}

.site-footer p {
  color: #bbb;
  margin: 1rem 0;
}

.site-footer h4 {
  color: #fff;
  font-size: .9rem;
  margin-bottom: 1rem;
}

.site-footer li {
  margin-bottom: .6rem;
}

.site-footer li a:hover {
  color: var(--gold);
}

.social {
  display: flex;
  gap: .6rem;
}

.social a {
  width: 30px;
  height: 30px;
  border: 1px solid #666;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .7rem;
}

.newsletter {
  display: flex;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: .7rem;
  border: 0;
  border-radius: 4px 0 0 4px;
  font: .8rem var(--sans);
}

.newsletter button {
  border: 0;
  background: var(--gold);
  color: #fff;
  padding: 0 1rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.pay {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pay span {
  background: #fff;
  color: #223;
  font-size: .7rem;
  font-weight: 700;
  padding: .35rem .6rem;
  border-radius: 4px;
}

.pay .cod {
  background: #1f9d4a;
  color: #fff;
}

/* 12. RESPONSIVE: TABLET */
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-bar {
    gap: 1.5rem;
  }

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-inner {
    grid-template-columns: 1fr;
  }

  .feature p {
    max-width: none;
  }

  .listing {
    grid-template-columns: 1fr;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.5rem;
  }

  .filters .btn-outline {
    grid-column: 1 / -1;
  }

  .hero-photo {
    width: 70%;
  }

  .product {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .info {
    grid-column: 1 / -1;
    padding: 0;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .track {
    grid-auto-columns: calc((100% - 1.6rem) / 3);
  }

  .footer-grid,
  .features ul,
  .trust ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 13. RESPONSIVE: MOBILE */
@media (max-width: 720px) {
  .top-bar {
    flex-wrap: wrap;
    gap: .8rem;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .actions {
    margin-left: auto;
  }

  .main-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 1.2rem;
    white-space: nowrap;
  }

  .hero-inner,
  .banner {
    grid-template-columns: 1fr;
  }

  .hero-img {
    min-height: 220px;
  }

  .banner-img {
    min-height: 200px;
    order: 2;
  }

  .banner-copy {
    padding: 2rem 1rem;
  }

  .grid-5,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .link-gold {
    position: static;
    display: block;
    margin-top: .6rem;
  }

  .hero .perks {
    flex-wrap: wrap;
  }

  .page-hero .hero-photo {
    width: 100%;
    opacity: .35;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .product {
    grid-template-columns: 1fr;
  }

  .product .thumbs {
    flex-direction: row;
    order: 2;
  }

  .product .thumb {
    width: 62px;
    flex: 0 0 62px;
  }

  .info .perks {
    grid-template-columns: 1fr;
  }

  .cta {
    grid-template-columns: 1fr;
  }

  .tabs {
    overflow-x: auto;
  }

  .tabs button {
    white-space: nowrap;
    flex: none;
    padding-inline: 1rem;
  }

  .track {
    grid-auto-columns: calc((100% - .8rem) / 2);
  }

  .features ul,
  .trust ul,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arrow.prev {
    left: -6px;
  }

  .arrow.next {
    right: -6px;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .features ul,
  .trust ul,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    padding: 1rem;
  }

  .product-top {
    padding-top: .7rem;
  }

  .details {
    padding: .9rem;
  }

  .big-price b {
    font-size: 1.7rem;
  }
}

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


/* HOME PAGE FINAL FIXES */

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero .perks {
  align-items: center;
}

.hero .perks li {
  line-height: 1.4;
}

.section .card {
  min-width: 0;
}

.section .card .thumb {
  width: 100%;
  overflow: hidden;
}

.section .card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section .card .btn {
  margin-top: auto;
}

.feature .grid-3 .card {
  min-width: 0;
}

.feature .feature-copy {
  min-width: 0;
}

.banner-copy .sub {
  margin-bottom: 1rem;
}

@media (max-width: 720px) {
  .hero-inner {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .hero .perks {
    gap: 1rem;
  }

  .section-head h2 {
    font-size: 1.9rem;
  }

  .feature-inner {
    padding: 2rem 0;
  }
}


/* =================================
   ORNAA CATEGORY PAGE FIXES
================================= */

/* Category Hero */
.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero .hero-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.page-hero .hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.page-hero .crumbs {
  margin-bottom: 12px;
}

/* Listing Layout */
.listing {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  padding-top: 45px;
  padding-bottom: 55px;
}

.filters {
  min-width: 0;
}

.results {
  min-width: 0;
}

.filter {
  margin-bottom: 25px;
}

.filter ul {
  list-style: none;
  padding: 0;
}

.filter label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.filter .sw {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

.filter .sr {
  position: absolute;
  opacity: 0;
}

.filter .sr:checked + .sw {
  outline: 2px solid #222;
  outline-offset: 3px;
}

.filter input[type="range"] {
  width: 100%;
}

/* Product Toolbar */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.toolbar select {
  padding: 10px;
  border: 1px solid #ddd;
  background: #fff;
}

/* Category Product Grid */
.results .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.results .card {
  min-width: 0;
}

.results .card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.results .card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.results .card h3 {
  margin: 12px 0 8px;
}

.results .card .btn {
  width: 100%;
}

.results .tag {
  position: absolute;
  top: 10px;
  left: 10px;
}

.results .wish {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  text-decoration: none;
}

.pagination a.on {
  background: #222;
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .listing {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
  }

  .results .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .page-hero .hero-photo {
    height: 260px;
  }

  .listing {
    grid-template-columns: 1fr;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .filters > .btn-outline {
    grid-column: 1 / -1;
  }

  .results .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .results .grid {
    gap: 10px;
  }
}



/* =================================
   ORNAA PRODUCT DETAIL PAGE FIXES
================================= */

/* Product layout */
.product-top {
  padding: 28px 0 45px;
}

.product-top .crumbs {
  margin-bottom: 25px;
}

.product-top .product {
  display: grid;
  grid-template-columns: 76px minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
}

/* Thumbnail gallery */
.product-top .thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-top .thumbs .thumb {
  width: 100%;
  aspect-ratio: 1;
  padding: 3px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.product-top .thumbs .thumb.on {
  border-color: #b58b45;
}

.product-top .thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Main product image */
.product-top .main-img {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.product-top .main-img > img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  display: block;
}

.product-top .main-img .expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

/* Product information */
.product-top .info {
  min-width: 0;
}

.product-top .info h1 {
  margin: 12px 0;
}

.product-top .info .perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.product-top .info .perks li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-top .info .perks .perk {
  flex-shrink: 0;
}

.product-top .info .desc {
  line-height: 1.7;
}

.product-top .swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-top .swatches .swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid #ddd;
  cursor: pointer;
}

.product-top .swatches .swatch.on {
  outline: 2px solid #222;
  outline-offset: 3px;
}

.product-top .qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
}

.product-top .qty button {
  width: 38px;
  height: 38px;
  border: 0;
  background: #f8f8f8;
  cursor: pointer;
}

.product-top .qty output {
  min-width: 42px;
  text-align: center;
}

.product-top .cta {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.product-top .cta .btn {
  flex: 1;
  min-width: 0;
}

.product-top .links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 18px;
}

/* Features strip */
.features > ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding-top: 25px;
  padding-bottom: 25px;
}

.features > ul > li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.features img {
  flex-shrink: 0;
  object-fit: contain;
}

/* Product details and tabs */
.details {
  padding-top: 50px;
  padding-bottom: 50px;
}

.details .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #ddd;
}

.details .tabs button {
  padding: 14px 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.details .tabs button.on {
  border-bottom: 2px solid #b58b45;
}

.details .panel {
  display: none;
  padding-top: 25px;
}

.details .panel.on {
  display: block;
}

.details .two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 35px;
}

.details .spec {
  width: 100%;
  border-collapse: collapse;
}

.details .spec th,
.details .spec td {
  padding: 11px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.details .checks {
  padding-left: 20px;
  line-height: 1.9;
}

/* Related products */
.related {
  padding-top: 35px;
  padding-bottom: 50px;
}

.related .carousel {
  position: relative;
  min-width: 0;
}

.related .track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 4);
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.related .track::-webkit-scrollbar {
  display: none;
}

.related .track .card {
  min-width: 0;
}

.related .track .rimg {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.related .track .rimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related .track .wish {
  position: absolute;
  top: 10px;
  right: 10px;
}

.related .carousel .arrow {
  position: absolute;
  top: 40%;
  z-index: 2;
}

/* Responsive */
@media (max-width: 900px) {
  .product-top .product {
    grid-template-columns: 65px minmax(0, 1fr) minmax(260px, .9fr);
    gap: 15px;
  }

  .features > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related .track {
    grid-auto-columns: calc((100% - 24px) / 2);
    gap: 24px;
  }
}

@media (max-width: 650px) {
  .product-top .product {
    grid-template-columns: 1fr;
  }

  .product-top .main-img {
    grid-row: 1;
  }

  .product-top .thumbs {
    grid-row: 2;
    flex-direction: row;
    overflow-x: auto;
  }

  .product-top .thumbs .thumb {
    flex: 0 0 65px;
  }

  .product-top .info {
    grid-row: 3;
  }

  .details .two {
    grid-template-columns: 1fr;
  }

  .details .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .details .tabs button {
    white-space: nowrap;
  }

  .related .track {
    grid-auto-columns: 72%;
  }
}

@media (max-width: 420px) {
  .features > ul {
    grid-template-columns: 1fr;
  }

  .product-top .cta {
    flex-direction: column;
  }

  .related .track {
    grid-auto-columns: 85%;
  }
}
