* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f5f2;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #747474;
  --line: #e3e1dc;
  --dark: #0d0e0f;
  --dark2: #17191b;
  --silver: #b8bcc0;
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--dark);
  color: #fff;
  font-size: 12px;
}

.topbar-inner {
  min-height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  letter-spacing: .2px;
}

.header {
  background: rgba(255,255,255,.94);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  width: max-content;
}

.brand-main {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  letter-spacing: 6px;
  font-weight: 700;
}

.brand-sub {
  font-size: 8px;
  letter-spacing: 3px;
  margin-top: 7px;
  color: #777;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
}

.nav a {
  position: relative;
  padding: 30px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 22px;
  right: 0;
  width: 0;
  height: 1px;
  background: #111;
  transition: .25s;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.menu-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
}

.icon-btn:hover {
  background: #f0efec;
}

.cart-button {
  height: 42px;
  padding: 0 16px;
  border-radius: 30px;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.cart-count {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.menu-btn {
  display: none;
  font-size: 25px;
}

.search-panel {
  max-height: 0;
  overflow: hidden;
  transition: .3s ease;
  border-top: 0 solid var(--line);
  background: #fff;
}

.search-panel.open {
  max-height: 100px;
  border-top-width: 1px;
}

.search-panel input {
  width: 100%;
  border: 0;
  outline: none;
  padding: 20px 4px;
  font-size: 17px;
}

.hero {
  min-height: 680px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.12), transparent 24%),
    linear-gradient(135deg, #111315, #25292d 55%, #101112);
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.035) 50%, transparent 50.2%);
  opacity: .6;
}

.hero-decoration {
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.hero-decoration-one {
  width: 520px;
  height: 520px;
  left: -170px;
  top: -180px;
}

.hero-decoration-two {
  width: 720px;
  height: 720px;
  right: -390px;
  bottom: -450px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 70px;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 70px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: #858585;
  display: block;
  margin-bottom: 16px;
}

.hero .eyebrow {
  color: #a9adb0;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.08;
  font-weight: 400;
}

.hero h1 span {
  display: block;
  color: #c9cccf;
  font-style: italic;
}

.hero-content > p {
  color: #bfc2c4;
  font-size: 17px;
  max-width: 580px;
  margin: 28px 0 34px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  min-height: 50px;
  padding: 0 28px;
  border-radius: 3px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .25s;
}

.btn-primary {
  background: #fff;
  color: #111;
}

.btn-primary:hover {
  background: #e4e4e4;
}

.btn-secondary {
  border-color: rgba(255,255,255,.25);
  color: white;
}

.btn-secondary:hover {
  border-color: white;
}

.btn-dark {
  background: #111;
  color: #fff;
}

.hero-trust {
  display: flex;
  gap: 34px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.11);
  width: fit-content;
}

.hero-trust div {
  display: flex;
  flex-direction: column;
}

.hero-trust strong {
  font-family: Georgia, serif;
  font-size: 20px;
}

.hero-trust span {
  color: #8d9295;
  font-size: 11px;
}

.hero-visual {
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
}

.luxury-card {
  width: min(420px, 90%);
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(155deg, #3a3e42, #111315 65%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 90px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.luxury-card::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 150px;
  background: rgba(255,255,255,.05);
  transform: rotate(-38deg);
  top: 20px;
}

.luxury-ring {
  width: 215px;
  height: 215px;
  position: relative;
  transform: rotate(-12deg);
}

.ring-band {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 28px solid #aeb4b9;
  border-radius: 50%;
  right: 32px;
  top: 46px;
  box-shadow:
    inset 7px 5px 12px rgba(255,255,255,.4),
    6px 10px 22px rgba(0,0,0,.45);
}

.stone {
  position: absolute;
  z-index: 3;
  width: 96px;
  height: 82px;
  right: 60px;
  top: 3px;
  background:
    radial-gradient(circle at 35% 26%, #353535, #050505 58%, #000);
  border-radius: 48% 48% 42% 42%;
  border: 8px solid #c4c8cb;
  box-shadow:
    0 11px 20px rgba(0,0,0,.5),
    inset 5px 4px 5px rgba(255,255,255,.12);
}

.luxury-label {
  position: absolute;
  bottom: 25px;
  left: 28px;
  right: 28px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.luxury-label span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #aaa;
}

.luxury-label strong {
  font-family: Georgia, serif;
  letter-spacing: 4px;
}

.floating-note {
  position: absolute;
  bottom: 34px;
  right: -10px;
  width: 120px;
  height: 120px;
  background: #eeeeeb;
  color: #111;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0,0,0,.18);
}

.floating-note span {
  font: 31px Georgia, serif;
}

.floating-note small {
  font-size: 7px;
  letter-spacing: 1.3px;
}

.benefits {
  background: white;
  border-bottom: 1px solid var(--line);
}

.benefits-grid {
  min-height: 116px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-left: 1px solid var(--line);
}

.benefit:last-child {
  border-left: none;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.benefit strong,
.benefit span {
  display: block;
}

.benefit strong {
  font-size: 13px;
}

.benefit span {
  font-size: 11px;
  color: var(--muted);
}

.section {
  padding: 105px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 42px;
}

.section-heading h2,
.story-content h2,
.newsletter h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.section-heading h2 {
  font-size: 42px;
  margin: 0;
}

.text-link {
  font-size: 12px;
  border-bottom: 1px solid #aaa;
  padding-bottom: 5px;
}

.categories-section {
  background: #f6f5f2;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}

.category-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .25s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(0,0,0,.07);
}

.category-dark {
  background: #131516;
  color: white;
  border-color: #131516;
}

.category-number {
  font: 12px Georgia, serif;
  color: #999;
}

.category-card small,
.category-card strong {
  display: block;
}

.category-card small {
  font-size: 8px;
  color: #999;
  letter-spacing: 1.7px;
  margin-bottom: 8px;
}

.category-card strong {
  font: 25px Georgia, serif;
  font-weight: 400;
}

.products-section {
  background: white;
}

.results-info {
  color: var(--muted);
  font-size: 12px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
}

.product-image-wrap {
  aspect-ratio: 1 / 1.13;
  background: #f3f2ef;
  overflow: hidden;
  position: relative;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover img {
  transform: scale(1.045);
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font: 60px Georgia, serif;
  color: #c4c4c2;
  background:
    radial-gradient(circle at center, #fff, #ebeae7);
}

.product-badge {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 5px 9px;
  background: #111;
  color: #fff;
  font-size: 9px;
  z-index: 2;
}

.quick-add {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  border: 0;
  background: rgba(17,17,17,.95);
  color: #fff;
  min-height: 43px;
  cursor: pointer;
  transform: translateY(70px);
  opacity: 0;
  transition: .25s;
}

.product-card:hover .quick-add {
  transform: translateY(0);
  opacity: 1;
}

.product-info {
  padding: 16px 2px;
}

.product-category {
  color: #999;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-title {
  font-size: 14px;
  margin: 6px 0 8px;
  min-height: 24px;
}

.product-price-row {
  display: flex;
  gap: 9px;
  align-items: center;
}

.product-price {
  font: 16px Georgia, serif;
}

.compare-price {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.out-stock {
  color: #a02f2f;
  font-size: 10px;
  margin-top: 5px;
}

.product-skeleton {
  min-height: 390px;
  background:
    linear-gradient(90deg, #f0f0ee 25%, #f7f7f5 37%, #f0f0ee 63%);
  background-size: 400% 100%;
  animation: loading 1.4s infinite;
}

@keyframes loading {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.empty-products {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 55px;
  color: #bbb;
}

.empty-products h3 {
  font: 30px Georgia, serif;
  margin: 10px 0;
}

.empty-products p {
  color: var(--muted);
}

.empty-products .btn {
  background: #111;
  color: white;
  margin-top: 15px;
}

.story {
  background: #efeeea;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.story-visual {
  height: 550px;
  background:
    linear-gradient(145deg, #151719, #373b3f);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.story-visual::before,
.story-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.story-visual::before {
  width: 440px;
  height: 440px;
}

.story-visual::after {
  width: 300px;
  height: 300px;
}

.story-monogram {
  font: 260px Georgia, serif;
  font-style: italic;
  color: rgba(255,255,255,.92);
  z-index: 2;
}

.story-small-card {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: #f6f5f2;
  width: 150px;
  height: 110px;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.story-small-card span {
  font: 12px Georgia, serif;
  letter-spacing: 3px;
}

.story-small-card strong {
  font: 32px Georgia, serif;
  margin-top: 8px;
}

.story-small-card small {
  font-size: 7px;
  letter-spacing: 1px;
}

.story-content h2 {
  font-size: 50px;
  line-height: 1.2;
  margin: 0 0 25px;
}

.story-content h2 span {
  display: block;
  font-style: italic;
  color: #777;
}

.story-content p {
  color: #656565;
  margin-bottom: 18px;
  max-width: 540px;
}

.story-content .btn {
  margin-top: 15px;
}

.newsletter {
  background: #101112;
  color: white;
  padding: 80px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.eyebrow.light {
  color: #888;
}

.newsletter h2 {
  font-size: 38px;
  margin: 0 0 10px;
}

.newsletter p {
  color: #8d8f91;
  font-size: 13px;
}

.newsletter-form {
  display: flex;
  border-bottom: 1px solid #555;
}

.newsletter-form input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: white;
  padding: 17px 5px;
}

.newsletter-form button {
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  padding: 10px 20px;
}

.footer {
  background: #090a0b;
  color: white;
  padding: 70px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 50px;
}

.footer-logo .brand-sub {
  color: #777;
}

.footer-brand p {
  color: #777;
  font-size: 12px;
  max-width: 310px;
  margin-top: 25px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column h4 {
  font-size: 12px;
  margin: 0 0 14px;
  color: #ddd;
}

.footer-column a,
.footer-column span {
  font-size: 11px;
  color: #74777a;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 65px;
  padding-top: 22px;
  border-top: 1px solid #202224;
  display: flex;
  justify-content: space-between;
  color: #606265;
  font-size: 10px;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: #111;
  color: white;
  padding: 13px 20px;
  font-size: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: .3s;
  z-index: 999;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {

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

  .menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    top: 82px;
    right: 0;
    left: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 13px 0;
  }

  .nav a::after {
    display: none;
  }

  .header-actions .icon-btn {
    display: none;
  }

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

  .hero-content {
    text-align: center;
  }

  .hero-content > p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons,
  .hero-trust {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    min-height: 430px;
  }

  .luxury-card {
    max-width: 340px;
  }

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

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

  .category-dark {
    grid-column: 1 / -1;
  }

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

  .story-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

@media (max-width: 600px) {

  .container {
    width: min(100% - 28px, 1180px);
  }

  .topbar-inner span:nth-child(2),
  .topbar-inner span:nth-child(3) {
    display: none;
  }

  .header-inner {
    height: 70px;
  }

  .brand-main {
    font-size: 22px;
    letter-spacing: 4px;
  }

  .brand-sub {
    font-size: 6px;
  }

  .cart-button > span:first-child {
    display: none;
  }

  .cart-button {
    padding: 0;
    width: 42px;
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 80px;
    padding-bottom: 65px;
    gap: 40px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero-content > p {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-trust {
    gap: 20px;
    width: 100%;
    justify-content: space-between;
  }

  .hero-visual {
    min-height: 360px;
  }

  .luxury-card {
    max-width: 270px;
  }

  .luxury-ring {
    transform: scale(.8) rotate(-12deg);
  }

  .floating-note {
    width: 90px;
    height: 90px;
    right: 0;
  }

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

  .benefit {
    padding: 15px 8px;
  }

  .benefit-icon {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

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

  .category-dark {
    grid-column: auto;
  }

  .category-card {
    min-height: 160px;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product-info {
    padding-top: 10px;
  }

  .product-title {
    font-size: 12px;
  }

  .quick-add {
    position: static;
    opacity: 1;
    transform: none;
    width: 100%;
    margin-top: 0;
  }

  .story-visual {
    height: 400px;
  }

  .story-monogram {
    font-size: 190px;
  }

  .story-content h2 {
    font-size: 40px;
  }

  .newsletter h2 {
    font-size: 31px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 25px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

/* General store overrides */
.hero .luxury-ring,
.hero .stone,
.hero .ring-band {
  display: none !important;
}

.luxury-card {
  background:
    linear-gradient(145deg, #1b1d20, #3a3f45 55%, #111315);
}

.luxury-card::after {
  content: "ISTREV";
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: 8px;
  color: rgba(255,255,255,.92);
}

.story-monogram {
  font-size: 0;
}

.story-monogram::after {
  content: "ISTREV";
  font: 72px Georgia, "Times New Roman", serif;
  letter-spacing: 8px;
  color: rgba(255,255,255,.92);
}


/* CATEGORY MEDIA */

.category-card {
  position: relative;
  overflow: hidden;
}

.category-card > * {
  position: relative;
  z-index: 2;
}

.category-bg-image {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.category-card:has(.category-bg-image)::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.78),
      rgba(0,0,0,.10)
    );
}

.category-card:has(.category-bg-image) {
  color: #fff;
  border-color: transparent;
}

.category-card:hover .category-bg-image {
  transform: scale(1.06);
}

.category-content {
  margin-top: auto;
}

.category-description {
  display: block;
  max-width: 90%;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
}

.category-card:not(:has(.category-bg-image))
.category-description {
  color: #777;
}


/* =========================================
   ISTREV CATEGORY PAGE
========================================= */

.category-page-hero {
  min-height: 390px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 60px max(6vw, 30px);
  background:
    linear-gradient(
      135deg,
      #171717,
      #2b2b2b
    );
  background-size: cover;
  background-position: center;
}

.category-page-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.82),
      rgba(0,0,0,.18)
    );
}

.category-page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: #fff;
}

.category-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: .75;
}

.category-page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(
    40px,
    6vw,
    76px
  );
  line-height: 1;
}

.category-page-hero p {
  max-width: 620px;
  margin: 0 0 16px;
  line-height: 1.8;
  color: rgba(255,255,255,.82);
}

#categoryCount {
  font-size: 13px;
  opacity: .75;
}

.category-page-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 30px 100px;
}

.category-page-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
}

.category-page-toolbar h2 {
  margin: 0;
  font-size: 32px;
}

.category-page-toolbar p {
  margin: 7px 0 0;
  color: #777;
}

.category-page-toolbar select {
  min-width: 230px;
  padding: 13px 14px;
  border: 1px solid #d8d8d8;
  background: #fff;
}

.category-empty {
  text-align: center;
  padding: 90px 20px;
  border: 1px solid #eee;
  background: #fafafa;
}

.category-empty-icon {
  font-size: 45px;
  margin-bottom: 16px;
}

.category-empty h3 {
  margin: 0 0 10px;
}

.category-empty p {
  color: #777;
  margin-bottom: 25px;
}

.category-back-btn {
  display: inline-flex;
  padding: 13px 24px;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 700px) {

  .category-page-hero {
    min-height: 300px;
    padding: 40px 20px;
  }

  .category-page-section {
    padding:
      45px 18px
      70px;
  }

  .category-page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-page-toolbar select {
    width: 100%;
  }
}

/* =========================================
   CATEGORY PRODUCT GRID IMPROVEMENTS
========================================= */

.category-page-section .products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.category-page-section .product-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.category-page-section .product-card:hover {
  transform: translateY(-4px);
  border-color: #d5d5d5;
  box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

.category-page-section .product-card-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f6f4;
  text-decoration: none;
}

.category-page-section .product-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.category-page-section .product-card:hover
.product-card-image img {
  transform: scale(1.035);
}

.category-page-section .product-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 34px;
  letter-spacing: 5px;
  color: #bbb;
  background:
    linear-gradient(
      135deg,
      #f7f7f7,
      #ededed
    );
}

.category-page-section .stock-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 11px;
  background: rgba(17,17,17,.9);
  color: #fff;
  font-size: 11px;
  z-index: 3;
}

.category-page-section .product-card-body {
  padding: 18px;
}

.category-page-section .product-category-name {
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #888;
}

.category-page-section .product-title {
  display: block;
  min-height: 48px;
  color: #111;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.category-page-section .product-title:hover {
  text-decoration: underline;
}

.category-page-section .product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  min-height: 30px;
}

.category-page-section .product-price-row strong {
  font-size: 19px;
  color: #111;
}

.category-page-section .product-price-row del {
  font-size: 13px;
  color: #999;
}

.category-page-section .product-add-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition:
    background .2s ease,
    color .2s ease;
}

.category-page-section .product-add-btn:hover:not(:disabled) {
  background: #fff;
  color: #111;
}

.category-page-section .product-add-btn:disabled {
  cursor: not-allowed;
  opacity: .45;
}

@media (max-width: 1100px) {
  .category-page-section .products-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 820px) {
  .category-page-section .products-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .category-page-section .product-card-body {
    padding: 14px;
  }

  .category-page-section .product-title {
    font-size: 14px;
    min-height: 42px;
  }

  .category-page-section .product-price-row strong {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .category-page-section .products-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-page-section .product-card-body {
    padding: 11px;
  }

  .category-page-section .product-category-name {
    font-size: 9px;
  }

  .category-page-section .product-title {
    font-size: 13px;
    min-height: 40px;
  }

  .category-page-section .product-price-row {
    gap: 6px;
  }

  .category-page-section .product-price-row strong {
    font-size: 15px;
  }

  .category-page-section .product-add-btn {
    min-height: 40px;
    font-size: 12px;
  }
}


/* =========================================
   CATEGORY PAGE LAYOUT BALANCE
========================================= */

.category-page-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 28px 90px;
}

.category-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7e7e7;
}

.category-page-toolbar > div {
  flex: 1;
}

.category-page-toolbar h2 {
  margin: 0;
}

.category-page-toolbar p {
  margin: 6px 0 0;
}

.category-page-toolbar select {
  width: 240px;
  min-width: 240px;
}

.category-page-section .products-grid {
  width: 100%;
  justify-content: start;
}

.category-page-section .product-card {
  width: 100%;
}

@media (min-width: 1101px) {
  .category-page-section .products-grid {
    grid-template-columns:
      repeat(4, minmax(220px, 1fr));
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .category-page-section .products-grid {
    grid-template-columns:
      repeat(3, minmax(200px, 1fr));
  }
}

@media (max-width: 820px) {
  .category-page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-page-toolbar select {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .category-page-section {
    padding: 38px 14px 60px;
  }

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

