/* =========================
   Base / Reset
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.4;
  color: #111;
  background: #fff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* =========================
   Layout Helpers
========================= */

.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.section-title {
  margin: 0 0 16px;
  font-size: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* =========================
   Header & Navigation
========================= */

.site-header {
  border-bottom: 1px solid #e9e9e9;
  background: #fff;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
}

.site-logo img {
  height: 100px;
  width: auto;
}

.icon-btn-image img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Ensure icon wrapper can position the badge */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Cart count badge positioning */
.icon-btn .cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 20;
  background: #e60000;
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 999px;
  line-height: 1;
  min-width: 16px;
  text-align: center;
}


/* Top-level nav (desktop base) */
.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  font-size: 13px;
  letter-spacing: 0.2px;
  font-weight:600;
  text-transform: uppercase;
  padding: 10px 6px;
  display: inline-block;
}

.main-nav a:hover {
  opacity: 0.7;
}

/* Header icons */
.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.icon-btn {
  border: 1px solid #e9e9e9;
  background: #fff;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
}


.icon-btn:hover {
  background: #f6f6f6;
}

.icon-btn-image img{
    width: 24px;
    height: 24px;
}

/* Cart icon badge */
.cart-icon img{
    width:24px;
    height: 24px;
    display: block;
}

.header-cart-link {
  position: relative;
}

.header-cart-link .cart-icon {
  position: relative;
  z-index: 1;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f44336;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff; /* small white ring like SBD */
}

/* Hide when empty */
.cart-count-badge[data-count="0"] {
  display: none;
}

/* Desktop dropdowns (hover) */
.has-dropdown > a::after {
  content: "▾";
  font-size: 13px;
  margin-left: 6px;
  vertical-align: middle;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #ececec;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  z-index: 20;
}

.nav-dropdown li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.nav-dropdown li a:hover {
  background: #f6f6f6;
}

/* Show dropdown on hover (desktop only) */
@media (min-width: 721px) {
  .has-dropdown:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Burger (hidden on desktop) */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 5px;
  right: 5px;
  height: 2px;
  border-radius: 999px;
  background: #111;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    top 160ms ease;
}

.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }

.nav-toggle.is-active span:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

/* Mobile submenu header base (hidden on desktop) */
.mobile-submenu-header {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.submenu-back {
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* =========================
   Hero (Video with Thumbnail)
========================= */

.hero-carousel {
  width: 100%;
}

.hero-slide {
  position: relative;
}

/* The hero video container controls the height */
.hero-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: clamp(320px, 48vw, 620px);
  overflow: hidden;
}

/* Thumbnail fills the hero area */
.hero-video-thumb {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index:2;
}

.hero-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Iframe container also fills hero area */
.hero-video-embed {
  position: absolute;
  inset: 0;
  z-index:1;
}

.hero-video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Big play button in the middle */
.hero-play-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.hero-play-button:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.75);
}


/* === Hero video: force 16:9, match 1280x720 / 1920x1080 === */
.hero-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;           /* override the clamp height */
  overflow: hidden;
}

.hero-video-thumb img,
.hero-video-embed iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================
   Brand Anchor Section
========================= */

/* Igonore This - Delete Later
.brand-anchor img {
  width: 100%;
  height: clamp(220px, 32vw, 420px);
  object-fit: cover;
}
*/

/* === Brand Anchor: 16:9 Full Hero (1920x1080) === */

/* Each slide is a 16:9 box */
.brand-anchor-slide {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Image fills that 16:9 box */
.brand-anchor-slide img,
.brand-anchor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.brand-anchor {
  position: relative;
  margin-top: 8px;
}

.brand-anchor-carousel {
  position: relative;
  overflow: hidden;
}

/* Track and slides */
.brand-anchor-track {
  display: flex;
  transition: transform 260ms ease;
  will-change: transform;
}

.brand-anchor-slide {
  flex: 0 0 100%;
  max-width: 100%;
}

/* The existing .brand-anchor img rule controls height/cover */

/* Arrows */
.brand-anchor-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;              /* center arrow inside circle */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  z-index: 3;
  transition: background 140ms ease, transform 140ms ease;
}

.brand-anchor-arrow-icon-left {
  display: block;
  margin-left: -2px;
  margin-top: -6px;
}

.brand-anchor-arrow-icon-right {
  display: block;
  margin-left: 2px;
  margin-top: -6px;
}

.brand-anchor-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: translateY(-50%) scale(1.06);
}

.brand-anchor-arrow--prev {
  left: 12px;
}

.brand-anchor-arrow--next {
  right: 12px;
}

/* Dots */
.brand-anchor-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.brand-anchor-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
  transition: width 140ms ease, background 140ms ease;
}

.brand-anchor-dot.is-active {
  width: 18px;
  background: #ffffff;
}

/* =========================
   Product Section
========================= */

.product-section {
  padding: 28px 0 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.product-card a {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.product-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.price {
  font-size: 13px;
  opacity: 0.85;
}

/* product hover swap */

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.product-image .img-hover {
  opacity: 0;
}

.product-card:hover .product-image .img-hover {
  opacity: 1;
}

.product-card:hover .product-image .img-default {
  opacity: 0;
}

/* =========================
   Content / Articles
========================= */

.content-section {
  padding: 28px 0 46px;
  border-top: 1px solid #f0f0f0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.article-card a {
  display: grid;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card h3 {
  margin: 0;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
}

/* =========================
   Footer
========================= */
.site-footer {
  background: #000;
  color: #f3f3f3;
  margin-top: 40px;
  font-size: 13px;
}

/* Top area: columns */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 28px 0 22px;
  border-bottom: 1px solid #222;
}

.footer-column {
  min-width: 140px;
  flex: 1 1 0;
}

.footer-heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li + li {
  margin-top: 4px;
}

.footer-column a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 140ms ease;
}

.footer-column a:hover {
  opacity: 1;
}

/* Footer social icons */
.footer-social{
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-social a{
  width: 40px;
  height: 40px;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;        /* 👈 important */
}

.footer-social a img{
  width: 100%;
  height: 100%;
  object-fit: cover;       /* 👈 fills the circle */
  display: block;
}

.footer-social a:hover{
  opacity: 0.9;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}



/* Bottom bar */
.footer-bottom {
  padding: 10px 0 12px;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  font-size: 12px;
}

.footer-bottom-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  opacity: 0.7;
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 18px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-links {
    gap: 10px;
  }
}


/* =========================
   Responsive
========================= */

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav ul {
    gap: 12px;
    flex-wrap: wrap;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- Mobile Nav: drill-down behaviour ----- */

@media (max-width: 720px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "burger logo actions"
      "nav nav nav";
    gap: 10px;
    padding: 10px 0;
  }

  .nav-toggle {
    grid-area: burger;
    display: block;
  }

  .site-logo {
    grid-area: logo;
    display: flex;
    justify-content: center;
  }

  .header-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .main-nav {
    grid-area: nav;
    display: none;             /* hidden until burger active */
    padding: 8px 0 4px;
    border-top: 1px solid #eee;
  }

  .main-nav.is-open {
    display: block;
  }

  /* Top-level list (first screen) */
  .main-nav > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
  }

  /* Right arrow on items with submenu */
  .has-dropdown > a::after {
    content: "›";
    font-size: 15px;
    margin-left: 8px;
  }

  /* Submenu header (second level) */
  .mobile-submenu-header {
    display: none;
  }

  /* When in submenu mode */
  .main-nav.is-submenu-open .mobile-submenu-header {
    display: flex;
  }

  /* Base: all submenus hidden on mobile */
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0;
    margin: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none !important;
  }

  .nav-dropdown li a {
    padding: 10px 0;
  }

  .main-nav.is-submenu-open > ul > li {
    display: none;
  }

  .main-nav.is-submenu-open > ul > li.is-open {
    display: block;
  }

  .main-nav.is-submenu-open > ul > li.is-open > a {
    display: none;
  }

  .main-nav.is-submenu-open > ul > li.is-open > .nav-dropdown {
    display: block !important;
    padding: 8px 0 8px;
  }
}

@media (max-width: 420px) {
  .icon-btn {
    width: 34px;
    height: 34px;
  }
}

/* =========================
   SINGLE PRODUCT LAYOUT
========================= */

.product-page {
  padding: 32px 0 40px;
}

/* Main 2-column layout */
.product-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Left: media column (will be sticky on desktop) */
.product-media-column {
  flex: 0 0 48%;
  min-width: 0;
}

.product-media-sticky {
  position: static;
}

/* Main image */
.product-main-image img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

/* Thumbnails */
.product-thumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.product-thumb {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 120ms ease, transform 120ms ease, opacity 120ms ease;
  opacity: 0.7;
}

.product-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}

.product-thumb:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.product-thumb.is-active {
  border-color: #111;
  opacity: 1;
}

/* Right: info column */
.product-info-column {
  flex: 1 1 auto;
  min-width: 0;
}

.product-brand-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
}

.product-price-block {
  margin-bottom: 12px;
}

.product-price {
  display: block;
  font-size: 20px;
  font-weight: 600;
}

.product-tax-note {
  font-size: 12px;
  opacity: 0.75;
}

.product-highlight {
  font-size: 13px;
  color: #d03535;
  margin: 6px 0 18px;
}

/* Pickup info */
.product-pickup-info {
  padding: 12px;
  border-radius: 4px;
  background: #f8f8f8;
  font-size: 12px;
  margin-bottom: 20px;
}

.product-pickup-info p {
  margin: 0 0 4px;
}

.product-pickup-info a {
  font-size: 12px;
  text-decoration: underline;
}

/* Icons row */
.product-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0 4px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.product-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  text-align: center;
  max-width: 100px;
  gap: 4px;
}

.icon-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Text blocks */
.product-text-block {
  margin-bottom: 24px;
  font-size: 14px;
}

.product-text-block ul {
  padding-left: 18px;
}

/* Tabs / sizing chart block */
.product-tabs-block {
  margin-bottom: 32px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

.product-tabs-header {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-tab {
  border: none;
  background: #f7f7f7;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.product-tab.is-active {
  background: #fff;
  font-weight: 600;
}

.product-tab-panels {
  font-size: 14px;
}

.product-tab-panel {
  display: none;
}

.product-tab-panel.is-active {
  display: block;
}

.size-chart-placeholder img {
  width: 100%;
  border: 1px solid #ddd;
}

/* Related products */
.product-related-section {
  padding: 10px 0 40px;
  border-top: 1px solid #eee;
  margin-top: 24px;
}

/* ===== Quantity + Add to cart – Oni style ===== */

/* ===== Cart layout on single product ===== */

/* Stack things vertically: Size section, then qty+button row */
.product-page form.cart {
  display: block;              /* override previous flex */
  margin-bottom: 16px;
}

/* Extra breathing room below the size pills section */
.product-page .variations {
  margin: 16px 0 4px;
}

/* Space between the word "Size" and the pills */
.product-page .variations td.label,
.product-page .variations .label {
  padding-bottom: 6px;
}

.product-page .variations td.label label,
.product-page .variations .label label {
  display: inline-block;
  margin-bottom: 6px;
}

/* ----- Quantity + buttons row ----- */

.product-page form.cart .quantity {
  position: relative;
  display: inline-block;
  margin-top: 14px;      /* gap below size pills */
  margin-right: 14px;    /* gap between qty and Add to cart */
}

/* "Quantity" label above the box */
.product-page form.cart .quantity::before {
  content: "Quantity";
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #555;
}

/* Wrapper created in JS: [- 1 +] */
.product-page form.cart .quantity.oni-qty-enhanced .oni-qty-inner {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  min-width: 110px;
}

.product-page form.cart .oni-qty-btn {
  width: 36px;
  height: 38px;
  border: none;
  background: #f6f6f6;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.product-page form.cart .oni-qty-btn:hover {
  background: #e9e9e9;
}

/* The number input */
.product-page form.cart .quantity .qty {
  width: 44px;
  height: 38px;
  border: none;
  text-align: center;
  font-size: 14px;
  padding: 0;
  box-shadow: none;
}

/* Add to cart button – black bar, with gap from qty */
.product-page form.cart .single_add_to_cart_button {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  text-transform: none;
  display: inline-block;
  vertical-align: bottom;
  margin-top: 28px;     /* lines it up under "Quantity" label */
  margin-left: 0;       /* row spacing handled by qty margin-right */
}

.product-page form.cart .single_add_to_cart_button:hover {
  background: #333;
  border-color: #333;
}

/* Disabled (sold out) state – keep bar but grey */
.product-page form.cart .single_add_to_cart_button:disabled {
  background: #eee;
  border-color: #ddd;
  color: #888;
  cursor: not-allowed;
}



/* ========= Responsive ========= */

@media (max-width: 960px) {
  .product-layout {
    flex-direction: column;
    gap: 32px;
  }

  .product-thumb img {
    width: 70px;
    height: 70px;
  }

  .product-media-column {
    position: static;
  }
}

/* Make media column sticky on desktop */
@media (min-width: 961px) {
  .product-media-column {
    position: sticky;
    top: 96px; /* adjust if header height changes */
    align-self: flex-start;
  }
}

/* Make sure ancestors don't break sticky */
.product-page,
.product-page .container,
.product-layout {
  overflow: visible;
}

/* =========================
   Variation pills (Woo attributes)
========================= */

/* Hide original selects visually */
.oni-variation-select-hidden {
  position: absolute;
  left: -9999px;
}

/* Container for each attribute's pills */
.oni-attribute-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 12px;
}

/* Individual pill */
.oni-attribute-button {
  min-width: 42px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.oni-attribute-button:hover {
  transform: translateY(-1px);
}

/* Selected pill */
.oni-attribute-button.is-selected {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Sold out / disabled variation (via disabled attribute on select option) – optional tweak */
.oni-attribute-button.is-disabled {
  opacity: 0.4;
  cursor: default;
}

/* Hide "Clear" link under attributes */
.woocommerce .reset_variations {
  display: none !important;
}

/* =========================
   Category / Shop Page
========================= */

.category-page {
  padding: 28px 0 48px;
}

.breadcrumb {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  opacity: 0.8;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 16px;
}

.category-title {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.category-description {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
  max-width: 520px;
}

.category-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.sort-control select {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 13px;
  background: #fff;
}

/* Filter pills */

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-pill {
  border-radius: 999px;
  border: 1px solid #ddd;
  padding: 6px 12px;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
}

.filter-pill.is-active,
.filter-pill:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

/* Category grid section reuses .product-grid */

.category-grid-section {
  border-top: 1px solid #f0f0f0;
  padding-top: 18px;
}

/* Responsive tweaks */

@media (max-width: 720px) {
  .category-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-toolbar {
    width: 100%;
    justify-content: flex-start;
  }
}

/* =========================
   WooCommerce Global Styles
========================= */

/* Buttons – match .btn-primary */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 10px 22px;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 2px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

/* Disabled / loading */
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce a.button.disabled,
.woocommerce a.button.loading {
  opacity: 0.6;
  cursor: default;
}

/* Links that look like secondary buttons (e.g. "Apply coupon") */
.woocommerce .button.secondary {
  border-color: #ccc;
  background: #f7f7f7;
  color: #111;
}

.woocommerce .button.secondary:hover {
  background: #e9e9e9;
}

/* Add-to-cart buttons on category / shop cards: full-width under product */
.woocommerce ul.products li.product .button {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* Forms & inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: none;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: #111;
  outline: none;
}

/* Cart & checkout table styling */
.woocommerce table.shop_table {
  border: 1px solid #eee;
  border-radius: 4px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 10px 12px;
}

/* Notices (success / error / info) */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: 3px;
  border-width: 1px;
  padding: 10px 14px;
  font-size: 13px;
}

.woocommerce-message {
  border-color: #4caf50;
}

.woocommerce-error {
  border-color: #f44336;
}

.woocommerce-info {
  border-color: #2196f3;
}

/* Pagination on shop/category */
.woocommerce nav.woocommerce-pagination ul {
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
  margin: 0 2px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 999px;
  border: 1px solid #ddd;
  padding: 6px 10px;
  font-size: 13px;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* WooCommerce notices (add to cart, errors, info) */
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  margin: 12px 0 18px;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 3px;
  background: #fafafa;
  border: 1px solid #e3e3e3;
  font-size: 13px;
}

/* Remove Woo's built-in icons/bullets */
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
  display: none;
}

/* Colours per type */
.woocommerce-message {
  border-left: 3px solid #2e7d32;   /* green */
}

.woocommerce-error {
  border-left: 3px solid #c62828;   /* red */
}

.woocommerce-info {
  border-left: 3px solid #1565c0;   /* blue */
}

/* "View cart" button in the notice */
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
  background: #111;
  border-radius: 2px;
  border: 1px solid #111;
  color: #fff;
  padding: 8px 18px;
  font-size: 13px;
  text-transform: none;
}

.woocommerce-message .button:hover,
.woocommerce-error .button:hover,
.woocommerce-info .button:hover {
  background: #333;
  border-color: #333;
}

.notice-fade-out {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

/* Ensure Woo notice buttons use our styles & hover correctly */
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
  display: inline-block;
  background: #111;
  border-radius: 2px;
  border: 1px solid #111;
  color: #fff;
  padding: 8px 18px;
  font-size: 13px;
  text-transform: none;
  text-decoration: none;
}

.woocommerce-message .button:hover,
.woocommerce-error .button:hover,
.woocommerce-info .button:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

/* =========================
   WooCommerce Core Pages
========================= */

/* Global WC buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  background: #111;
  border: 1px solid #111;
  color: #fff;
  border-radius: 2px;
  padding: 10px 20px;
  font-size: 14px;
  text-transform: none;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

/* "View cart" notice button */
.woocommerce-message .button {
  background: #111;
  border-radius: 2px;
}
.woocommerce-message .button:hover {
  background: #333;
}

/* Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: 3px;
  border: 1px solid #e4e4e4;
  background: #fafafa;
  padding: 12px 16px;
  margin-bottom: 18px;
}

/* Cart table */
.woocommerce-cart table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #eee;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  padding: 10px 12px;
  font-size: 13px;
}

.woocommerce-cart table.shop_table thead {
  background: #fafafa;
}

.woocommerce-cart table.shop_table tr:nth-child(even) td {
  background: #fcfcfc;
}

/* Cart totals box */
.woocommerce-cart .cart-collaterals .cart_totals {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 16px;
}

/* Checkout layout */
.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
}

.woocommerce .woocommerce-billing-fields__field-wrapper,
.woocommerce .woocommerce-shipping-fields__field-wrapper,
.woocommerce form .form-row {
  margin-bottom: 10px;
}

.woocommerce form .form-row label {
  font-size: 13px;
  margin-bottom: 4px;
}

.woocommerce form .input-text,
.woocommerce form select {
  width: 100%;
  border-radius: 3px;
  border: 1px solid #ddd;
  padding: 8px 10px;
  font-size: 13px;
}

/* Order summary box on checkout */
.woocommerce-checkout-review-order {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 16px;
}

/* Account forms */
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  font-size: 14px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  border-right: 1px solid #eee;
  padding-right: 20px;
}

.woocommerce-account .woocommerce-MyAccount-content {
  padding-left: 20px;
}

/* Make WC result-count / ordering smaller */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  font-size: 13px;
}

/* Cart / checkout responsive */
@media (max-width: 900px) {
  .woocommerce-checkout .col2-set {
    grid-template-columns: 1fr;
  }
}

.woocommerce-message {
  border-left: 4px solid #76b82a;
}

/* =========================
   My Account navigation tidy up
========================= */

.woocommerce-message {
  border-left: 4px solid #76b82a;
}

/* =========================
   My Account – navigation
========================= */

body.woocommerce-account nav.woocommerce-MyAccount-navigation {
  margin: 24px 0;
}

/* Kill bullets + default spacing */
body.woocommerce-account nav.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Each item spaced a bit */
body.woocommerce-account nav.woocommerce-MyAccount-navigation li {
  list-style: none !important;
  margin: 0 0 8px !important;
}

/* Make links look like nav pills */
body.woocommerce-account nav.woocommerce-MyAccount-navigation li a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  font-size: 13px;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

/* Active item */
body.woocommerce-account nav.woocommerce-MyAccount-navigation li.is-active a {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* =========================
   My Account – notices
========================= */

body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
}

/* remove green/blue icon circle */
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-error::before {
  display: none !important;
}

/* === HARD OVERRIDES FOR MY ACCOUNT === */

/* Left nav: remove bullets + turn into pills */
body.woocommerce-account nav.woocommerce-MyAccount-navigation ul,
body.woocommerce-account nav.woocommerce-MyAccount-navigation ul li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-account nav.woocommerce-MyAccount-navigation ul li {
  margin-bottom: 8px !important;
}

body.woocommerce-account nav.woocommerce-MyAccount-navigation ul li a {
  display: inline-block !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  border: 1px solid #ddd !important;
  background: #f7f7f7 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  color: #111 !important;
}

body.woocommerce-account nav.woocommerce-MyAccount-navigation ul li.is-active a {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

/* Remove the blue/grey bars for My Account notices (e.g. "No order has been made yet.") */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
}

/* Kill the coloured icon dot */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error::before {
  display: none !important;
}

/* === FINAL OVERRIDES – MY ACCOUNT === */

/* Left navigation: remove bullets & make pill buttons */
nav.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
}

nav.woocommerce-MyAccount-navigation li {
  margin: 0 0 8px !important;
}

nav.woocommerce-MyAccount-navigation li a {
  display: inline-block !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  border: 1px solid #ddd !important;
  background: #f7f7f7 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  color: #111 !important;
}

nav.woocommerce-MyAccount-navigation li.is-active a,
nav.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders.is-active a {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

/* Orders page: remove blue/grey bar + Browse products button */
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
}

/* Kill the icon dot */
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-error::before {
  display: none !important;
}

/* Hide the "Browse products" / action button in that notice */
body.woocommerce-account .woocommerce-message .button,
body.woocommerce-account .woocommerce-info .button,
body.woocommerce-account .woocommerce-error .button {
  display: none !important;
}

/* =========================
   Coming Soon Page
========================= */

.coming-soon-page {
  padding: 48px 0 72px;
}

.coming-soon-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.coming-soon-header {
  margin-bottom: 16px;
}

.coming-soon-title {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coming-soon-tagline {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.coming-soon-excerpt {
  margin-bottom: 18px;
  font-size: 14px;
  opacity: 0.9;
}

.coming-soon-body {
  font-size: 14px;
  line-height: 1.6;
}

.coming-soon-body p {
  margin: 0 0 18px;
}

.coming-soon-button {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease,
              transform 120ms ease;
}

.coming-soon-button:hover {
  background: #333;
  border-color: #333;
  color: #fff;
  transform: translateY(-1px);
}

/* Cart / checkout thumbnails – keep them small */
.woocommerce-cart .oni-cart-main-image,
.woocommerce-checkout .oni-cart-main-image {
  width: 60px;
  height: auto;
}

/* === Variation pills === */

/* hide the original selects but keep them in DOM */
.variations select.oni-variation-select-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* wrapper for each attribute row (Size, Color, Weight, etc.) */
.oni-attribute-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 14px;
}

/* the pill itself */
.oni-attribute-button {
  min-width: 42px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}

.oni-attribute-button:hover {
  transform: translateY(-1px);
}

/* selected state (black pill, white text) */
.oni-attribute-button.is-selected {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* disabled options (if Woo marks them as unavailable later) */
.oni-attribute-button.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* === Add to cart button + sold-out state === */

.woocommerce div.product form.cart .button.single_add_to_cart_button {
  background: #111;
  border-color: #111;
  color: #fff;
  border-radius: 2px;
  padding: 10px 22px;
}

/* disabled/sold-out – keep black, just lower opacity & block pointer */
.woocommerce div.product form.cart .button.single_add_to_cart_button:disabled,
.woocommerce div.product form.cart .button.single_add_to_cart_button.disabled {
  background: #111;
  border-color: #111;
  color: #fff;
  opacity: 0.35;
  cursor: not-allowed;
}

/* quantity box to match your earlier style a bit closer */
.woocommerce div.product form.cart div.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 10px;
}

.woocommerce div.product form.cart div.quantity input.qty {
  border: none;
  width: 50px;
  text-align: center;
  font-size: 13px;
}

/* =========================
   WooCommerce product cards
   (shop, category, related)
   Match home "Latest Release" style
========================= */

/* Card container */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.related ul.products li.product {
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  padding: 16px 16px 18px;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

/* Hover lift effect */
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
.related ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  border-color: #e4e4e4;
}

/* Product image styling */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
.related ul.products li.product a img {
  border-radius: 8px;
  margin: 0 0 10px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.related ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin: 4px 0 4px;
}

/* Price */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.related ul.products li.product .price {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}

/* Full-width button under card (matches home cards) */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.related ul.products li.product .button {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  border-radius: 4px;
}

/* Remove odd default list gaps */
.woocommerce ul.products,
.woocommerce-page ul.products {
  column-gap: 18px;
  row-gap: 24px;
}

/* =========================
   SOLD OUT BUTTON STYLE
   Override WooCommerce purple
========================= */

/* Disabled button (out of stock) */
.product-page form.cart .single_add_to_cart_button.disabled,
.product-page form.cart .single_add_to_cart_button:disabled,
.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
  background: #f5f5f5 !important;   /* light grey / white */
  border-color: #ddd !important;
  color: #888 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;            /* remove Woo opacity */
}

/* Hover should NOT change color */
.product-page form.cart .single_add_to_cart_button.disabled:hover,
.product-page form.cart .single_add_to_cart_button:disabled:hover {
  background: #f5f5f5 !important;
  border-color: #ddd !important;
  color: #888 !important;
}

/* =========================
   Category / shop product cards
   Default + hover image
========================= */

.product-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card .product-image {
  position: relative;
  overflow: hidden;
}

.product-card .product-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* primary image */
.product-card .product-image .img-default {
  position: relative;
  z-index: 1;
  opacity: 1;
}

/* hover image (gallery[0]) */
.product-card .product-image .img-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
}

/* swap images on hover */
.product-card:hover .product-image .img-hover {
  opacity: 1;
}

.product-card:hover .product-image .img-default {
  opacity: 0;
}

/* optional: tiny zoom on hover */
.product-card:hover .product-image img {
  transform: scale(1.02);
}

/* card hover feel */
.product-card:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* =========================
   Loop product cards (shop, categories, related)
   Default + hover image
========================= */

.woocommerce ul.products li.product.product-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  background: #fff;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0 0 16px;
}

.product-card .product-image {
  position: relative;
  overflow: hidden;
}

.product-card .product-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* main image */
.product-card .product-image .img-default {
  position: relative;
  z-index: 1;
  opacity: 1;
}

/* hover image */
.product-card .product-image .img-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
}

/* swap on hover */
.product-card:hover .product-image .img-hover {
  opacity: 1;
}

.product-card:hover .product-image .img-default {
  opacity: 0;
}

.product-card:hover .product-image img {
  transform: scale(1.02);
}

.product-card__title {
  font-size: 16px;
  font-weight: 500;
  margin: 12px 16px 4px;
}

.product-card__price {
  display: block;
  margin: 0 16px 12px;
}

.product-card__button {
  padding: 0 16px 16px;
}

.product-card__button .button,
.product-card__button .add_to_cart_button {
  width: 100%;
}

.cart-empty-recommendations {
  margin-top: 40px;
}

.cart-empty-recommendations .section-title {
  margin-bottom: 24px;
}

/* --- PRODUCT CARD UNIFORM HEIGHT --- */
.product-card {
  display: flex !important;
  flex-direction: column;
  height: 100%; 
}

.product-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image area fixed height */
.product-card .product-image {
  height: 260px; /* adjust if needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Make sure images fit nicely */
.product-card .product-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Title area height fixed so long names don't break cards */
.product-card h3 {
  min-height: 48px; /* adjust depending on how many lines you want */
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}

/* Price area */
.product-card .price {
  min-height: 24px;
  margin-bottom: 12px;
}

/* Button stays at bottom */
.product-card .button,
.product-card .add_to_cart_button,
.product-card .product_type_variable {
  margin-top: auto !important;
}

/* ===========================
   UNIFORM PRODUCT CARD HEIGHT
   (shop + related products)
=========================== */

/* Make the entire card a vertical flex container */
.product-grid article.product-card,
.related.products ul.products li.product.product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Make the clickable area fill the card */
.product-grid article.product-card > a,
.related.products ul.products li.product.product-card > a {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Image area – fixed height so all cards align */
.product-grid article.product-card .product-image,
.related.products ul.products li.product.product-card .product-image {
  flex: 0 0 260px; /* tweak this number if you want taller/shorter cards */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Make images fit nicely inside that box */
.product-grid article.product-card .product-image img,
.related.products ul.products li.product.product-card .product-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Title block – fixed height, 2 lines max, no stretching layout */
.product-grid article.product-card h3,
.related.products ul.products li.product.product-card h2,
.related.products ul.products li.product.product-card h3 {
  margin: 12px 0 8px;
  min-height: 3.4em;    /* space for ~2 lines */
  max-height: 3.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;          /* show max 2 lines */
  -webkit-box-orient: vertical;
}

/* Price block height consistent */
.product-grid article.product-card .price,
.related.products ul.products li.product.product-card .price {
  min-height: 24px;
  margin-bottom: 12px;
}

/* Make the button sit at the bottom of each card */
.product-grid article.product-card .button,
.product-grid article.product-card .add_to_cart_button,
.product-grid article.product-card .product_type_variable,
.related.products ul.products li.product.product-card .button,
.related.products ul.products li.product.product-card .add_to_cart_button,
.related.products ul.products li.product.product-card .product_type_variable {
  margin-top: auto !important;
}

/* Shop & category product card price color */
.woocommerce ul.products li.product .price,
.product-grid .product-card .price {
  color: #c62828; /* deep red */
}

/* If your price uses <ins> / <del> (sales) */
.woocommerce ul.products li.product .price ins {
  color: #c62828;
}

.woocommerce ul.products li.product .price del {
  color: #999; /* optional: muted old price */
}

/* Product card title – clamp to 2 lines */
.woocommerce ul.products li.product h3,
.product-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;   /* number of lines */
  overflow: hidden;

  line-height: 1.4em;
  max-height: 2.8em;       /* line-height × lines */
}

.woocommerce ul.products li.product h3 {
  position: relative;
}

.woocommerce ul.products li.product h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 1.4em;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff 80%);
}

/* FORCE product card titles to max 2 lines (Shop + Category + Related) */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3,
.product-card .woocommerce-loop-product__title,
.product-card h2,
.product-card h3 {
  line-height: 1.3;
  min-height: calc(1.3em * 2); /* forces space for 2 lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}


