:root {
  --shop-dark: #142033;
  --shop-dark-soft: #243752;
  --shop-accent: #ec6333;
  --shop-accent-dark: #c94920;
  --shop-bg: #f4f6f9;
  --shop-border: #e4e9f0;
  --shop-muted: #687387;
}

body {
  color: var(--shop-dark);
  background: #fff;
}

.shop-topbar {
  padding: 0.55rem 0;
  color: #dce4ed;
  font-size: 0.82rem;
  background: var(--shop-dark);
}

.shop-topbar a,
.shop-footer a {
  color: #fff;
  text-decoration: none;
}

.shop-topbar-button {
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
}

.shop-header {
  position: relative;
  z-index: 10;
  background: #fff;
  box-shadow: 0 2px 12px rgb(20 32 51 / 5%);
}

.shop-header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.shop-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.shop-logo img {
  display: block;
  width: 178px;
  height: auto;
  max-height: 50px;
}

.shop-search {
  display: flex;
  flex: 1 1 320px;
  max-width: 650px;
  overflow: hidden;
  border: 1px solid #d7dce3;
  border-radius: 0.5rem;
  background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.shop-search:focus-within {
  border-color: var(--shop-accent);
  box-shadow: 0 0 0 0.2rem rgb(236 99 51 / 13%);
}

.shop-search input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 0;
  outline: 0;
}

.shop-search button {
  padding: 0 1rem;
  color: #fff;
  border: 0;
  background: var(--shop-accent);
  transition: background 0.2s;
}

.shop-search button:hover {
  background: var(--shop-accent-dark);
}

.shop-header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.shop-link,
.shop-nav a {
  color: var(--shop-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.shop-link:hover,
.shop-nav a:hover {
  color: var(--shop-accent);
}

.shop-nav {
  border-top: 1px solid var(--shop-border);
  border-bottom: 1px solid var(--shop-border);
}

.shop-nav a {
  display: inline-block;
  padding: 0.8rem 1.1rem;
}

.shop-nav-dropdown {
  display: inline-block;
}

.shop-nav-category {
  padding: 0.8rem 1.1rem;
  color: var(--shop-dark);
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
}

.shop-nav-category:hover,
.shop-nav-category:focus {
  color: var(--shop-accent);
}

.shop-nav .dropdown-menu {
  min-width: 13rem;
  margin-top: 0;
  border-color: var(--shop-border);
}

.shop-nav .dropdown-item {
  display: block;
  padding: 0.55rem 1rem;
  font-weight: 500;
}

.shop-hero {
  min-height: 470px;
  padding: 5.75rem 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgb(12 26 45 / 94%) 0%, rgb(20 32 51 / 84%) 36%, rgb(20 32 51 / 18%) 68%),
    url("../images/homepage-hero.png") center / cover no-repeat;
}

.shop-hero-content {
  max-width: 600px;
}

.shop-eyebrow,
.shop-kicker {
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-eyebrow {
  color: #ffb69d;
}

.shop-hero h1 {
  max-width: 580px;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.shop-hero-copy {
  max-width: 500px;
  margin-bottom: 1.8rem;
  color: #e8edf5;
  font-size: 1.15rem;
}

.shop-hero-button {
  padding: 0.75rem 1.2rem;
  font-weight: 700;
}

.shop-hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2.2rem;
  color: #dce4ed;
  font-size: 0.87rem;
}

.shop-section {
  padding: 4.25rem 0;
}

.shop-bg {
  background: var(--shop-bg);
}

.shop-section-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.shop-section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.shop-section-heading a {
  color: var(--shop-accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.shop-kicker {
  color: var(--shop-accent);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--shop-border);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 12px rgb(20 32 51 / 3%);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 14px 28px rgb(20 32 51 / 11%);
  transform: translateY(-4px);
}

.product-card > img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  background: #eef1f4;
}

.product-card-body {
  padding: 1rem;
}

.product-card h3 {
  margin: 0.4rem 0 0.75rem;
  font-size: 1rem;
}

.product-card h3 a {
  color: var(--shop-dark);
  text-decoration: none;
}

.product-badge {
  padding: 0.22rem 0.45rem;
  border-radius: 1rem;
  color: #136f3a;
  background: #d8f2e5;
  font-size: 0.7rem;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  overflow: hidden;
  color: var(--shop-dark);
  border: 1px solid var(--shop-border);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 12px rgb(20 32 51 / 3%);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  border-color: #f5af96;
  box-shadow: 0 14px 28px rgb(20 32 51 / 10%);
  color: var(--shop-accent-dark);
  transform: translateY(-3px);
}

.category-card img {
  width: 100%;
  height: 92px;
  margin: -1.1rem -1.1rem 0.9rem;
  width: calc(100% + 2.2rem);
  object-fit: cover;
}

.shop-footer {
  background: var(--shop-dark);
  color: #dce4ed;
}

.shop-footer h5 {
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.shop-footer a {
  display: block;
  margin-bottom: 0.45rem;
  color: #dce4ed;
  text-decoration: none;
}

.shop-footer a:hover {
  color: #fff;
}

.shop-footer address {
  max-width: 320px;
  color: #dce4ed;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.6;
}

.shop-footer-logo {
  width: 185px;
  height: auto;
  padding: 0.35rem 0.5rem;
  border-radius: 0.35rem;
  background: #fff;
}

.shop-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(220 228 237 / 22%);
  color: #b6c1d0;
  font-size: 0.8rem;
}

.shop-footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.shop-footer-bottom a {
  margin: 0;
}

.policy-page {
  max-width: 920px;
}

.policy-page h1 {
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.policy-lead {
  max-width: 720px;
  color: var(--shop-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.policy-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--shop-border);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 7px 22px rgb(20 32 51 / 5%);
}

.policy-card h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.policy-card h2:first-child {
  margin-top: 0;
}

.policy-card p {
  color: #435168;
  line-height: 1.75;
}

.policy-card a,
.contact-details a {
  color: var(--shop-accent-dark);
  font-weight: 700;
}

.contact-details {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.85rem 1.25rem;
  margin: 0;
}

.contact-details dt {
  color: var(--shop-muted);
  font-weight: 700;
}

.contact-details dd {
  margin: 0;
  line-height: 1.6;
}

.shop-detail-image {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #f5f5f5;
}

/* Product detail gallery: thumbnail switching, hover zoom, and full-size preview. */
.product-gallery-main {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 0.75rem;
  background: #f5f7fa;
  cursor: zoom-in;
}

.product-gallery-main img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: contain;
  transition: transform 0.25s ease-out;
}

.product-gallery-main.is-zooming img {
  transform: scale(1.75);
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.product-gallery-thumb {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background: #f5f7fa;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
  border-color: var(--shop-accent);
}

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

.product-gallery-empty {
  min-height: 420px;
  border: 1px solid var(--shop-border);
  border-radius: 0.75rem;
  background: #f5f7fa;
}

.product-gallery-modal-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.cart-thumb {
  width: 64px;
  height: 64px;
  margin-right: 0.85rem;
  border-radius: 0.45rem;
  object-fit: cover;
  vertical-align: middle;
  background: #f5f7fa;
}

@media (max-width: 991px) {
  .shop-header-links {
    order: 3;
  }
}

@media (max-width: 576px) {
  .shop-header-main {
    gap: 0.8rem;
  }

  .shop-search {
    order: 2;
    width: 100%;
  }

  .shop-header-links {
    order: 3;
    gap: 0.65rem;
  }

  .shop-hero {
    min-height: 420px;
    padding: 4rem 0;
    background:
      linear-gradient(90deg, rgb(12 26 45 / 94%) 0%, rgb(20 32 51 / 72%) 100%),
      url("../images/homepage-hero.png") 64% center / cover no-repeat;
  }

  .shop-section {
    padding: 3rem 0;
  }

  .product-gallery-main {
    min-height: 320px;
  }

  .product-gallery-main img {
    height: 360px;
  }

  .shop-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .contact-details dd {
    margin-bottom: 0.9rem;
  }

  .cart-thumb {
    width: 50px;
    height: 50px;
    margin-right: 0.6rem;
  }
}
