/* ===================================================================
   PDP RESPONSIVE — Tablet & Mobile
   Breakpoints:
   - Tablet:  max-width 1024px
   - Mobile:  max-width 768px
   - Small:   max-width 480px
   =================================================================== */

/* ===== TABLET (max-width: 1024px) ===== */
@media (max-width: 1024px) {

  /* Layout */
  .pdp-wrap {
    padding: 0;
  }

  .pdp-hero {
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }

  /* Gallery */
  .pdp-gallery-col {
    position: relative;
    top: auto;
  }

  .pdp-gscroll {
    height: 420px;
  }

  .pdp-gslide img {
    height: 420px;
  }


  /* Product Info */
  .pdp-pname {
    font-size: 30px;
  }

  /* Content Sections */
  .pdp-colgrid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Reviews */
  .pdp-revgrid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* FAQ */
  .pdp-cqgrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Pairs well with */
  .pdp-upgrid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {

  /* Layout - Switch to flex column for reordering */
  .pdp-wrap {
    padding: 0 16px;
  }

  .pdp-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 16px;
  }

  /* MOBILE ORDER: identity → gallery → buy */
  .pdp-identity {
    order: 1;
    padding: 0px 2px 0;
  }

 .pdp-gallery-col {
    order: 2;
    position: relative;
    top: auto;
    margin: 0px 0 0;
    width: 100%;
}

  .pdp-buy-col {
    order: 3;
    padding: 7px 2px 0;
  }

  .pdp-buycard {
    border-radius: 16px;
    padding: 18px 16px 14px;
  }

  /* Breadcrumb */
  .pdp-crumb {
    font-size: 11px;
    padding: 8px 0 0;
  }

  /* Identity styles */
  .pdp-breeder {
    font-size: 12px;
  }

  .pdp-pname {
    font-size: 27px;
    line-height: 1.02;
    letter-spacing: -.4px;
    margin-bottom: 5px;
  }

.pdp-lineage {
    font-size: 12.5px;
    margin-bottom: 9px;
    line-height: 1.4;
    color: #5d544a;
}

  .pdp-lin-lbl {
    font-size: 10px;
  }

  .pdp-badges {
    flex-wrap: wrap;
    gap: 7px;
  }

  .pdp-badge {
    font-size: 12px;
    padding: 5px 11px;
    border-radius: 7px;
  }

  .pdp-rrow {
    gap: 8px;
  }

  .pdp-rstars {
    font-size: 14px;
  }

  .pdp-rcnt {
    font-size: 12.5px;
  }

  .pdp-germ-pill {
    font-size: 11px;
    padding: 4px 9px;
  }

  /* Gallery */
  .pdp-gallery {
    border-radius: 16px;
  }

  .pdp-gscroll {
    height: 240px;
  }

  .pdp-gslide img {
    height: 240px;
  }

  .pdp-gthumb {
    height: 68px;
    border-radius: 9px;
  }

  .pdp-g-zoom {
    width: 34px;
    height: 34px;
    font-size: 17px;
    top: 12px;
    right: 12px;
  }

  .pdp-g-type {
    font-size: 11px;
    padding: 5px 14px;
  }

  .pdp-g-award {
    font-size: 10.5px;
    padding: 5px 10px;
    bottom: 12px;
    left: 12px;
  }

  .pdp-g-nav {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  /* Buy Section - Price */
  .pdp-pricerow {
    margin-bottom: 6px;
  }

  .pdp-price {
    font-size: 30px;
  }

  .pdp-price-was {
    font-size: 15px;
  }

  .pdp-price-save {
    font-size: 11px;
    padding: 3px 9px;
  }

  /* Buy Section - Stock */
  .pdp-instock {
    font-size: 12px;
    margin-bottom: 14px;
  }

  /* Buy Section - Scarcity */
  .pdp-scarcity {
    margin-bottom: 14px;
  }

  .pdp-scar-bar {
    height: 6px;
    margin-bottom: 7px;
  }

  .pdp-scar-line {
    font-size: 11.5px;
  }

  /* Buy Section - Pack Cards: single row auto-scroll */
  .pdp-packs {
    grid-auto-flow: column;
   
    grid-template-columns: unset;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    gap: 4px;
    margin-bottom: 16px;
    padding-top: 12px;
    padding-bottom: 4px;
}

  .pdp-packs::-webkit-scrollbar {
    display: none;
  }

  .pdp-slabel {
    font-size: 11px;
    margin-bottom: 9px;
  }

  .pdp-pack {
    padding: 13px 8px 11px;
    border-radius: 12px;
  }

  .pdp-pack-size {
    font-size: 17px;
  }

  .pdp-pack-seeds {
    font-size: 10px;
  }

  .pdp-pack-price {
    font-size: 15px;
  }

  .pdp-pack-was {
    font-size: 10.5px;
  }

  .pdp-pack-per {
    font-size: 9.5px;
  }

  .pdp-pack-tag {
    font-size: 8.5px;
    border: 1px solid #e0e0e0;
  }

  /* Buy Section - Quantity + ATC */
  .pdp-qrow {
    gap: 9px;
    margin-bottom: 11px;
  }

  .pdp-qctl {
    border-radius: 12px;
  }

  .pdp-qbtn {
    width: 42px;
    font-size: 19px;
  }

  .pdp-qnum {
    font-size: 15px;
  }

  .pdp-atc {
    font-size: 15px;
    padding: 15px;
    border-radius: 12px;
  }

  .pdp-pay-row {
    font-size: 10.5px;
    margin-bottom: 16px;
  }

  /* Trust Bullets */
  .pdp-tbullets {
    gap: 7px;
    margin-bottom: 14px;
  }

  .pdp-tb {
    font-size: 11.5px;
    gap: 8px;
  }

  .pdp-tb i {
    font-size: 15px;
  }

  /* Guarantee */
  .pdp-guar {
    gap: 12px;
    padding: 13px;
    border-radius: 13px;
    margin-bottom: 13px;
  }

  .pdp-guar .gi {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .pdp-guar-t {
    font-size: 13px;
  }

  .pdp-guar-s {
    font-size: 11.5px;
  }

  /* Rewards */
  .pdp-reward {
    padding: 13px 14px;
    border-radius: 13px;
    margin-bottom: 18px;
  }

  .pdp-rw-top {
    font-size: 12px;
  }

  .pdp-rw-top .msg {
    font-size: 11.5px;
  }

  .pdp-rw-bar {
    height: 7px;
  }

  .pdp-rw-note {
    font-size: 10.5px;
  }

  /* ---- Content sections below the fold ---- */

  /* Section Headers */
  .pdp-sechead {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .pdp-sechead .bar {
    width: 4px;
    height: 19px;
  }

  /* About / Description */
  .pdp-desc {
    font-size: 13.5px;
    line-height: 1.72;
  }

  .pdp-desc-scroll {
    max-height: 300px;
  }

  /* Spec Sheet */
  .pdp-spec {
    border-radius: 14px;
  }

  .pdp-spec-top {
    padding: 12px 14px;
  }

  .pdp-spec-top .t {
    font-size: 13px;
  }

  .pdp-specrow {
    padding: 11px 14px;
  }

  .pdp-speck {
    font-size: 12px;
  }

  .pdp-specv {
    font-size: 12.5px;
  }

  /* Reviews */
  .pdp-revgrid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pdp-rev-summary {
    padding: 14px;
    border-radius: 13px;
  }

  .pdp-rs-num {
    font-size: 33px;
  }

  /* FAQ Section */
  .pdp-cqsec {
    padding: 22px 18px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .pdp-cqhead {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .pdp-cqgrid {
    grid-template-columns: 1fr;
  }

  .pdp-cq {
    border-radius: 11px;
    margin-bottom: 9px;
  }

  .pdp-cq-btn {
    font-size: 12.5px;
    padding: 13px 14px;
  }

  .pdp-cq-c {
    font-size: 12px;
  }

  /* Pairs well with - horizontal scroll on mobile */
  .pdp-upgrid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .pdp-upgrid::-webkit-scrollbar {
    display: none;
  }

  .pdp-mini {
    flex: 0 0 132px;
  }

  .pdp-mini img {
    height: 92px;
  }

  .pdp-mini-b {
    padding: 9px 11px;
  }

  .pdp-mini-name {
    font-size: 11.5px;
  }

  .pdp-mini-price {
    font-size: 13px;
  }

  /* Divider */
  .pdp-divider {
    margin: 22px 0 !important;
  }

  /* Content padding */
  .pdp-content .pdp-wrap {
    padding: 0 18px;
  }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {

  .pdp-wrap {
    padding: 0;
  }

  .pdp-pname {
    font-size: 26px;
    margin-bottom: 8px;
    font-family: 'Archivo', sans-serif;
    font-weight: 800 !important; 
    line-height: 1.02;
    letter-spacing: -.4px;
    text-transform: uppercase;
    color: #211c17 !important;
  }
  
  /* Dark mode support for product name on small mobile */
  @media (prefers-color-scheme: dark) {
    .pdp-pname {
      color: #ffffff !important;
    }
  }

  .pdp-badge {
    font-size: 11px;
    padding: 4px 9px;
  }

  .pdp-gscroll {
    height: 200px;
  }

  .pdp-gslide img {
    height: 200px;
  }

  .pdp-price {
    font-size: 26px;
  }

  .pdp-atc {
    font-size: 14px;
    padding: 14px 12px;
  }

  .pdp-content .pdp-wrap {
    padding: 0 14px;
  }

  .pdp-cqsec {
    padding: 18px 14px;
  }
.pdp-buycard {
    border-radius: 0px !important;
    padding: 0px !important;
    border: 0px;
    background: #00000000;
    box-shadow: 0 8px 30px rgb(0 0 0 / 0%);
}
.pdp-price {
    font-weight: 800;
    font-size: 30px !important;
    color: #bd611e !important;
    letter-spacing: -0.5px !important;
}
.pdp-pricerow {
    margin-bottom: 0px !important;
}
.pdp-instock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px !important;
    color: #2f7d3a;
    font-weight: 600;
    margin-bottom: 8px !important;
}
.pdp-pay-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16.5px;
    color: var(--pdp-muted);
    margin-bottom: 8px;
}
.pdp-pay-row i {
    font-size: 15px;
    color: #5d544a;
}
.payment_method_icons {
    display: inline-flex;
    align-items: center;
}
.payment_method_icons img {
    display: inline-block;
    height: auto;
}
.pdp-tb {
    font-size: 12.5px;
    gap: 8px;
}
.pdp-tbullets {
    gap: 7px;
    margin-bottom: 6px;
}
.divider {
    height: 1px;
    background: #ece6da;
    margin: 5px 0;
}
.pdp-reward {
    margin-bottom: 6px !important;
}
.pdp-pack-price.amount.woocommerce-Price-amount {
  font-size: 13px;
}    .pdp-slabel {
    font-size: 11px;
    margin-bottom: 3px !important;
}
  .pdp-content .pdp-wrap {
    padding: 0 0px;
}
.pdp-colgrid {
    gap: 0px;
}
}

/* ===== MOBILE ONLY: Gallery dots (max-width: 767px) ===== */
/* Strictly below 768px — does NOT affect tablets at 768px */
@media (max-width: 767px) {

  /* Hide thumbnail strip on mobile */
  .pdp-gthumbs {
    display: none !important;
  }

  /* Gallery dots */
  .pdp-gdots {
    display: flex;
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 20;
    pointer-events: none;
  }

  .pdp-gdot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 1px 4px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    padding: 0;
    flex-shrink: 0;
  }

  .pdp-gdot.on {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 1px 6px rgba(0, 0, 0, 0.6);
    transform: scale(1.25);
  }
}

/* ===== BOGO REWARD NOTICE (Redesigned) ===== */
.pdp-bogo-reward-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  background: #f0f7f1;
  border-radius: 8px;
  border: 1px solid #d4e8d7;
}

.pdp-bogo-free-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2d8a3e;
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 6px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.pdp-bogo-reward-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: #495057;
  font-weight: 500;
}

.pdp-bogo-reward-text strong,
.pdp-bogo-reward-text b {
  color: #212529;
  font-weight: 700;
}

/* Mobile - more compact */
@media (max-width: 768px) {
  .pdp-bogo-reward-notice {
    padding: 10px 12px;
    margin: 10px 0;
    gap: 10px;
  }
  
  .pdp-bogo-free-badge {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  .pdp-bogo-reward-text {
    font-size: 12px;
  }
}

/* Small mobile - minimal */
@media (max-width: 480px) {
  .pdp-bogo-reward-notice {
    padding: 8px 10px;
    margin: 8px 0;
    gap: 8px;
  }
  
  .pdp-bogo-free-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .pdp-bogo-reward-text {
    font-size: 11px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .pdp-bogo-reward-notice {
    background: #2a2a2a;
    border-color: #404040;
  }
  
  .pdp-bogo-free-badge {
    background: #3f9a4e;
  }
  
  .pdp-bogo-reward-text {
    color: #d1d5db;
  }
  
  .pdp-bogo-reward-text strong,
  .pdp-bogo-reward-text b {
    color: #f3f4f6;
  }
}

/* ===== STICKY BOTTOM BAR ===== */
/* Hidden by default (desktop) */
.pdp-sticky {
  display: none;
}

/* Show on mobile only */
@media (max-width: 768px) {
  .pdp-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e3d9c6;
    padding: 7px 16px 9px;
    display: flex;
    gap: 11px;
    align-items: center;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
    /* Hidden by default - only show when scrolled */
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }
  
  /* Visible state when scrolled */
  .pdp-sticky.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  .pdp-s-info {
    flex: 1;
    min-width: 0;
  }
  .pdp-s-name {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #211c17;
  }
  .pdp-s-price {
    font-size: 11.5px;
    color: #8a7f70;
    margin-top: 1px;
  }
  .pdp-s-price b {
    color: #bd611e;
    font-weight: 700;
  }
  .pdp-s-btn {
    background: #bd611e;
    color: #fff;
    border: none;
    border-radius: 12px;
    height: 44px;
    width: 65%;
    padding: 0 18px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
  }
  .pdp-s-btn i {
    font-size: 16px;
  }
  .pdp-s-btn:active {
    transform: scale(0.97);
  }
  .pdp-s-btn.loading {
    pointer-events: none;
    opacity: 0.85;
  }
  .pdp-s-btn.loading i {
    animation: pdp-spin 0.7s linear infinite;
  }
  .pdp-s-btn.added {
    background: #3f8a45;
  }
  .pdp-s-btn.error {
    background: #c0392b;
  }
  @keyframes pdp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  /* Dark mode support for sticky bar */
  @media (prefers-color-scheme: dark) {
    .pdp-sticky {
      background: rgba(30, 30, 30, 0.97);
      border-top-color: #4a4a4a;
      box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.3);
    }
    
    .pdp-s-name {
      color: #ffffff;
    }
    
    .pdp-s-price {
      color: #aaaaaa;
    }
    
    .pdp-s-price b {
      color: #e08a3c;
    }
  }

  /* Extra bottom padding so content isn't hidden behind the bar */
  body.single-product {
    padding-bottom: 64px;
  }

  /* Mobile-only vault/preservation headline style */
  .pdp-mob-headline {
    font-family: Archivo, sans-serif;
    font-weight: 900;
    font-size: 35px;
    line-height: 0.98;
    letter-spacing: -1.2px;
    text-wrap: balance;
    color: #ffffff;
  }

  .pdp-mob-headline b {
    color: #ffd9b0;
  }

}
