/* High specificity so WooCommerce/Elementor button styles can't override */
.shop-wrapper .product-card .button,
.woocommerce .shop-wrapper .product-card a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  background: var(--card-navy, #1B2F36);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background var(--transition);
}

.shop-wrapper .product-card .button:hover,
.woocommerce .shop-wrapper .product-card a.button:hover {
  background: var(--card-navy-hover, #1B3A4E);
  color: #fff;
}

.shop-wrapper .product-card .out-of-stock-btn,
.shop-wrapper .product-card .out-of-stock-btn:hover {
  background: var(--gray-light);
  color: #fff;
  cursor: default;
}

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

  :root {
    --orange: #E85D26;
    --orange-light: #F47A45;
    --orange-pale: #FFF0E8;
    --dark: #1A1A1A;
    --gray-dark: #3D3D3D;
    --gray-mid: #6B6B6B;
    --gray-light: #B0B0B0;
    --gray-bg: #F4F4F2;
    --white: #FFFFFF;
    --border: #E8E8E4;
    --sale-green: #2A9D59;
    --badge-hot: #E03030;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
    --shadow-hover: 0 8px 32px rgba(232,93,38,0.18);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    /* Figma product card (node 8397-8776) */
    --card-bg: #F6F8F8;
    --card-navy: #1B2F36;
    --card-navy-hover: #1B3A4E;
    --card-text: #4D555B;
    --card-note: #393E42;
    --font-head: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    --font-body: 'Inter', 'DM Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--dark);
  }

  /* ── PAGE WRAPPER ── */
  .shop-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 64px;
  }

  /* ── BREADCRUMB (Figma node 8397-8744) ── */
  .breadcrumb {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: normal;
    color: #7C838C;
    margin: 0 0 25px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .breadcrumb a { color: #7C838C; text-decoration: none; }
  .breadcrumb a:hover { color: var(--card-navy); }
  .breadcrumb span { color: #7C838C; }

  /* ── PAGE TITLE (Figma node 8397-8747) ── */
  .page-title {
    font-family: var(--font-head);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--card-navy);
    margin: 0 0 10px;
    letter-spacing: 0;
  }

  /* ── LAYOUT ── */
  .shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 25px;
  }

  /* ══════════════════════════
     FILTER BAR (pills above the grid)
  ══════════════════════════ */
  /* Figma node 8397-8753: pills spread across the full row */
  .shop-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 57px;
    margin-top: 25px;
  }

  .filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    border: 1px solid #A3ACB3;
    border-radius: 65px;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #A3ACB3;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
  }

  .filter-pill:hover {
    border-color: var(--card-navy);
    color: var(--card-navy);
  }

  .filter-pill.active {
    border-color: var(--card-navy);
    color: #012827;
    font-weight: 400;
  }

  /* Horizontal scroll instead of wrapping on small screens */
  @media (max-width: 767px) {
    .shop-filter-bar {
      justify-content: flex-start;
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      margin-left: -24px;
      margin-right: -24px;
      padding: 2px 24px;
    }

    .shop-filter-bar::-webkit-scrollbar {
      display: none;
    }
  }

  /* ══════════════════════════
     MAIN CONTENT
  ══════════════════════════ */
  .shop-main {}

  /* Toolbar (Figma node 8397-8768): results count left, Sort By right */
  .shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 60px;
    margin-bottom: 25px;
  }

  .results-count {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--card-text);
  }

  .results-count strong { color: var(--card-navy); }

  .sort-by {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sort-label {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--card-text);
    white-space: nowrap;
  }

  .sort-by .woocommerce-ordering {
    margin: 0;
  }

  .sort-by .woocommerce-ordering select.orderby {
    min-width: 180px;
    height: 38px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--card-text);
    background: var(--white);
    border: 1px solid #C3C8CB;
    border-radius: 1000px;
    padding: 0 36px 0 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231B2F36' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
  }

  /* ── PRODUCT GRID ── */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
  }

  /* ── PRODUCT CARD ── */
  .product-card {
    background: var(--card-bg);
    border-radius: 24px;
    border: none;
    padding: 20px;
    min-height: 472px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    text-align: center;
    transition: box-shadow var(--transition);
    position: relative;
  }

  .product-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  }

  /* Category tag (top-left, in flow) */
  .card-tag {
    position: static;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 4px 15px;
    background: var(--white);
    border: none;
    border-radius: 1000px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    line-height: normal;
    color: var(--card-text);
    z-index: 1;
    white-space: nowrap;
  }

  /* Badge (top-right, so it doesn't clash with the tag) */
  .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 20px;
    z-index: 2;
  }

  .badge-sale { background: var(--sale-green); color: #fff; }
  .badge-hot  { background: var(--badge-hot); color: #fff; }
  .badge-new  { background: var(--orange); color: #fff; }

  /* Image area */
  .card-img-wrap {
    background: transparent;
    padding: 0;
    height: 221px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .card-img-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .card-img-wrap img {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 221px;
    object-fit: contain;
    filter: none;
    transition: transform var(--transition);
  }

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

  /* Multi-product stacked */
  .card-img-stack {
    position: relative;
    width: 140px;
    height: 110px;
  }

  .card-img-stack img {
    position: absolute;
    width: 70px;
    height: 90px;
  }

  .card-img-stack img:nth-child(1) { left: 0; top: 10px; z-index: 1; }
  .card-img-stack img:nth-child(2) { left: 35px; top: 5px; z-index: 2; }
  .card-img-stack img:nth-child(3) { left: 70px; top: 10px; z-index: 1; }

  /* Card body */
  .card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: 100%;
    gap: 0;
  }

  .card-name {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--card-navy);
    line-height: 1.2;
    margin: 0;
  }

  .card-name a {
    color: inherit;
    text-decoration: none;
  }

  .card-name a:hover {
    color: var(--gray-dark);
  }

  .card-subtext {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--card-text);
    margin: 5px 0 0;
  }

  .card-price {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--card-navy);
    margin: 16px 0 0;
  }

  .card-price .original {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--card-text);
    text-decoration: line-through;
    margin-right: 6px;
  }

  /* Bulk note pill (sits between price and button) */
  .card-note {
    margin: 5px 0 0;
    font-size: 0;
    line-height: 0;
  }

  .card-note span {
    display: inline-block;
    padding: 5px 10px;
    background: var(--white);
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--card-note);
    white-space: nowrap;
  }

  .card-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding-top: 0;
  }

  .btn-cart {
    flex: 1;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .filter-icon-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}

  .btn-cart:hover {
    background: #C94E1A;
    box-shadow: 0 4px 14px rgba(232,93,38,0.35);
  }

  .btn-learn {
    background: transparent;
    color: var(--gray-dark);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
    white-space: nowrap;
  }

  .btn-learn:hover {
    border-color: var(--orange);
    color: var(--orange);
  }

  /* ── BANNER (5th position) ──
     The image is the card's background fill (as in the Figma):
     its own light backdrop is the surface, vials sit at the bottom. */
  .banner-card {
    grid-column: span 2;
    min-height: 472px;
    background-color: var(--card-bg);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    border: none;
    border-radius: 15px;
    padding: 63px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .banner-content {
    position: relative;
    z-index: 2;
    max-width: 539px;
  }

  .banner-title {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--card-navy);
    margin: 0 0 4px;
  }

  .banner-desc {
    max-width: 450px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--card-navy);
  }

  .banner-vials {
    display: flex;
    align-items: flex-end;
    gap: -8px;
    flex-shrink: 0;
    z-index: 1;
  }

  .banner-vials img {
    width: 54px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5)) brightness(1.15);
  }

  .banner-vials img:nth-child(2) { transform: translateY(-8px); }

  .banner-text { z-index: 1; }

  .banner-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--orange-light);
    margin-bottom: 8px;
  }

  .banner-headline {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .banner-subtext {
    font-size: 14px;
    color: #BDBDBD;
    line-height: 1.6;
    max-width: 420px;
    margin-bottom: 20px;
  }

  .banner-qr-row {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .banner-qr {
    width: 52px;
    height: 52px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
  }

  .banner-qr svg { width: 40px; height: 40px; }

  .banner-qr-label {
    font-size: 12px;
    color: #BDBDBD;
    line-height: 1.5;
  }

  .banner-qr-label strong { color: var(--white); display: block; }

  .banner-cta {
    margin-left: auto;
    z-index: 1;
    flex-shrink: 0;
  }

  .btn-banner {
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 13px 26px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    white-space: nowrap;
  }

  .btn-banner:hover {
    background: #C94E1A;
    box-shadow: 0 6px 20px rgba(232,93,38,0.4);
  }

  /* ── PAGINATION ──
     Styles WooCommerce's output: plain spaced numbers, only the
     current page gets an outlined rounded box (per Figma). */
  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
  }

  .shop-wrapper .woocommerce-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    margin: 0;
    padding: 0;
    white-space: normal;
  }

  .shop-wrapper .woocommerce-pagination ul.page-numbers li {
    border: none;
    margin: 0;
    padding: 0;
    float: none;
    overflow: visible;
  }

  .shop-wrapper .woocommerce-pagination ul.page-numbers li .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-mid);
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition);
  }

  .shop-wrapper .woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
    background: transparent;
    color: var(--dark);
  }

  .shop-wrapper .woocommerce-pagination ul.page-numbers li span.page-numbers.current {
    background: var(--white);
    border-color: var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    color: var(--dark);
    font-weight: 600;
  }

  .shop-wrapper .woocommerce-pagination ul.page-numbers li .page-numbers.prev,
  .shop-wrapper .woocommerce-pagination ul.page-numbers li .page-numbers.next {
    font-size: 18px;
    color: var(--gray-mid);
  }

  .shop-wrapper .woocommerce-pagination ul.page-numbers li .page-numbers.dots {
    color: var(--gray-light);
  }

  /* SVG placeholder vial */
  .vial-svg { width: 80px; height: 100px; }


  /* Responsive */
  @media (max-width: 960px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-card { grid-column: span 2; flex-direction: column; text-align: center; }
    .banner-cta { margin: 0 auto; }
    .banner-qr-row { justify-content: center; }
  }

  /* Toolbar on phones (Figma node 8397-9213): Sort By row on top with the
     select filling the width, product count centred underneath. */
  @media (max-width: 767px) {
    .shop-toolbar {
      flex-direction: column-reverse;
      align-items: stretch;
      gap: 10px;
      padding: 0;
    }
    .sort-by {
      width: 100%;
      gap: 12px;
    }
    .sort-by .woocommerce-ordering {
      flex: 1 1 auto;
      min-width: 0;
    }
    .sort-by .woocommerce-ordering select.orderby {
      width: 100%;
      min-width: 0;
    }
    .results-count {
      text-align: center;
      line-height: 34px;
    }
    .page-title { font-size: 36px; }
  }

  @media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; gap: 24px; }
    .product-card { min-height: 0; }
    .card-img-wrap { height: 200px; }
    .card-note span { white-space: normal; }
    .banner-card { grid-column: span 1; min-height: 0; padding: 40px 24px; }
    .banner-title { font-size: 26px; }
  }

  /* ══════════════════════════
     EMPTY CART: "NEW IN STORE" PRODUCTS
     Matches the .product-card grid design used on shop/category pages
  ══════════════════════════ */
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 64px;
  }

  body.woocommerce-cart .wc-block-cart__empty-cart__title,
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2.wp-block-heading {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
  }

  body.woocommerce-cart .wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  body.woocommerce-cart .wc-block-grid__product {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0 !important;
    transition: box-shadow var(--transition), transform var(--transition);
  }

  body.woocommerce-cart .wc-block-grid__product:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
  }

  body.woocommerce-cart .wc-block-grid__product-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
  }

  body.woocommerce-cart .wc-block-grid__product-image {
    background: #F9F7F4;
    padding: 28px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
  }

  body.woocommerce-cart .wc-block-grid__product-image img {
    width: 90px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.10));
    transition: transform var(--transition);
  }

  body.woocommerce-cart .wc-block-grid__product:hover .wc-block-grid__product-image img {
    transform: scale(1.06);
  }

  body.woocommerce-cart .wc-block-grid__product-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    padding: 14px 16px 0;
  }

  body.woocommerce-cart .wc-block-grid__product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    padding: 8px 16px 0;
  }

  body.woocommerce-cart .wc-block-grid__product-add-to-cart {
    display: flex;
    gap: 8px;
    padding: 14px 16px 16px;
    margin-top: auto;
  }

  body.woocommerce-cart .wc-block-grid__product-add-to-cart .wp-block-button__link {
    flex: 1;
    width: auto;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background var(--transition), box-shadow var(--transition);
  }

  body.woocommerce-cart .wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
    background: #C94E1A;
    box-shadow: 0 4px 14px rgba(232,93,38,0.35);
  }

  body.woocommerce-cart .wc-block-grid__product-add-to-cart .btn-learn {
    flex: none;
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  @media (max-width: 960px) {
    body.woocommerce-cart .wc-block-grid__products { grid-template-columns: repeat(2, 1fr) !important; }
  }

  @media (max-width: 600px) {
    body.woocommerce-cart .wc-block-grid__products { grid-template-columns: 1fr !important; }
    body.woocommerce-cart .wc-block-grid__product-add-to-cart { flex-direction: column; }
  }