/* BKK Product Commerce Platform v1.4 — premium shop presentation */

/* Keep the curated BKK catalogue in control of the Shop archive. */
body.bkkpcp-shop .woocommerce ul.products,
body.bkkpcp-shop .woocommerce .woocommerce-result-count,
body.bkkpcp-shop .woocommerce .woocommerce-ordering{display:none!important}

/* Remove the generic ListingHive/WooCommerce Shop heading; BKK supplies the branded masthead. */
body.bkkpcp-shop .page-header,
body.bkkpcp-shop .entry-header{display:none!important}

.bkkpcp-shop-wrap{
  width:min(1400px,calc(100vw - 80px));
  max-width:none;
  margin:0 auto;
  padding:34px 0 90px;
  color:#111315;
  box-sizing:border-box;
}

.bkkpcp-shop-hero{
  position:relative;
  overflow:hidden;
  background:#111315;
  color:#fff;
  padding:72px clamp(38px,6vw,92px);
  border-top:5px solid #ff8a00;
  margin:0 0 72px;
  box-shadow:0 18px 45px rgba(17,19,21,.10);
}
.bkkpcp-shop-hero:after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-120px;
  bottom:-210px;
  border:1px solid rgba(255,138,0,.35);
  transform:rotate(18deg);
  pointer-events:none;
}
.bkkpcp-kicker,
.bkkpcp-section-head span,
.bkkpcp-editorial-buy>div>span{
  color:#ff8a00;
  font:700 12px/1.2 Montserrat,Arial,sans-serif;
  letter-spacing:.18em;
}
.bkkpcp-shop-hero h1{
  position:relative;
  z-index:1;
  margin:12px 0 16px;
  color:#fff;
  font:400 clamp(48px,5.2vw,76px)/.94 Bebas Neue,Impact,sans-serif;
  letter-spacing:.035em;
}
.bkkpcp-shop-hero p{
  position:relative;
  z-index:1;
  max-width:720px;
  margin:0;
  color:#d7d9dc;
  font:500 18px/1.6 Montserrat,Arial,sans-serif;
}

.bkkpcp-department{margin:0 0 82px}
.bkkpcp-section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  border-bottom:1px solid #d5d5d5;
  padding-bottom:18px;
  margin-bottom:34px;
}
.bkkpcp-section-head h2{
  margin:8px 0 0;
  font:800 clamp(30px,3vw,42px)/1.05 Montserrat,Arial,sans-serif;
  letter-spacing:-.035em;
}

/* Scalable product catalogue: 3-up desktop, 2-up tablet, 1-up mobile. */
.bkkpcp-product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:34px;
  align-items:start;
}
/* Featured treatment when the department contains only one product. */
.bkkpcp-product-grid:has(.bkkpcp-product-card:only-child){
  grid-template-columns:minmax(0,1fr);
  gap:0;
  align-items:stretch;
}
.bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-card{
  display:grid;
  grid-template-columns:minmax(360px,42%) minmax(0,58%);
  width:100%;
  padding:0;
}
.bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-cover-link{
  aspect-ratio:3/4;
}
.bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-info{
  padding:38px 38px 38px 34px;
}
.bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-info h3{
  font-size:clamp(24px,2.2vw,34px);
  line-height:1.15;
}
.bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-price{
  font-size:24px;
  margin:18px 0 24px;
}
.bkkpcp-product-card{
  min-width:0;
  background:#fff;
  border:1px solid #dedede;
  box-shadow:0 12px 32px rgba(17,19,21,.07);
  padding:0 0 20px;
  transition:transform .2s ease,box-shadow .2s ease;
}
.bkkpcp-product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 46px rgba(17,19,21,.13);
}
.bkkpcp-cover-link{
  display:block;
  background:#f1efeb;
  aspect-ratio:3/4;
  overflow:hidden;
}
.bkkpcp-cover-link img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
}
.bkkpcp-cover-placeholder{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:36px;
  background:#111315;
  color:#fff;
}
.bkkpcp-cover-placeholder span{
  color:#ff8a00;
  font:400 52px/1 Bebas Neue,Impact,sans-serif;
}
.bkkpcp-cover-placeholder strong{
  font:700 19px/1.25 Montserrat,Arial,sans-serif;
}
.bkkpcp-product-info{padding:22px 22px 0}
.bkkpcp-product-info h3{
  margin:0 0 10px;
  font:800 20px/1.25 Montserrat,Arial,sans-serif;
  letter-spacing:-.015em;
}
.bkkpcp-product-info h3 a{color:#111315;text-decoration:none}
.bkkpcp-price{
  font:800 19px/1.3 Montserrat,Arial,sans-serif;
  margin-bottom:18px;
}
.bkkpcp-price del{opacity:.55;margin-right:7px}
.bkkpcp-price ins{text-decoration:none;color:#111315}
.bkkpcp-card-actions{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:10px;
}
.bkkpcp-buy,
.bkkpcp-details{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:48px;
  padding:11px 12px;
  box-sizing:border-box;
  text-decoration:none!important;
  text-align:center;
  font:800 12px/1.2 Montserrat,Arial,sans-serif;
  letter-spacing:.02em;
}
.bkkpcp-buy{
  background:#ff8a00;
  color:#111315!important;
  border:1px solid #ff8a00;
}
.bkkpcp-buy:hover{
  background:#111315;
  color:#fff!important;
  border-color:#111315;
}
.bkkpcp-details{
  border:1px solid #9f9f9f;
  color:#111315!important;
}
.bkkpcp-details:hover{
  border-color:#ff8a00;
  background:#fff8ef;
  color:#111315!important;
}

.bkkpcp-empty{
  background:#111315;
  color:#fff;
  padding:70px 8%;
  text-align:center;
  border-top:4px solid #ff8a00;
}
.bkkpcp-empty>span{
  color:#ff8a00;
  font:700 12px/1.2 Montserrat,Arial,sans-serif;
  letter-spacing:.18em;
}
.bkkpcp-empty h2{margin:10px 0;font:400 42px/1 Bebas Neue,Impact,sans-serif}
.bkkpcp-empty p{color:#d7d9dc;font:500 16px/1.6 Montserrat,Arial,sans-serif}

/* Editorial purchase boxes remain part of the same commerce system. */
.bkkpcp-editorial-50 .entry-content h2,
.bkkpcp-editorial-50 .entry-content h3{
  font-family:Montserrat,Arial,sans-serif!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
}
.bkkpcp-editorial-buy{
  margin:42px 0;
  padding:26px 28px;
  background:#111315;
  color:#fff;
  border-left:5px solid #ff8a00;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
}
.bkkpcp-editorial-buy h3{
  margin:7px 0 5px!important;
  color:#fff!important;
  font-size:24px!important;
  line-height:1.15!important;
}
.bkkpcp-editorial-buy p{
  margin:0!important;
  color:#d7d9dc!important;
  font:500 15px/1.55 Montserrat,Arial,sans-serif!important;
}
.bkkpcp-editorial-buy>a{
  flex:0 0 auto;
  background:#ff8a00;
  color:#111315!important;
  text-decoration:none!important;
  padding:14px 18px;
  font:800 12px/1.2 Montserrat,Arial,sans-serif;
  white-space:nowrap;
}
.bkkpcp-editorial-buy>a:hover{background:#fff}

@media(max-width:1000px){
  .bkkpcp-shop-wrap{width:min(900px,calc(100vw - 44px))}
  .bkkpcp-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
}
@media(max-width:700px){
  .bkkpcp-shop-wrap{width:calc(100vw - 28px);padding:20px 0 55px}
  .bkkpcp-shop-hero{padding:46px 24px;margin-bottom:48px}
  .bkkpcp-shop-hero h1{font-size:42px}
  .bkkpcp-shop-hero p{font-size:15px}
  .bkkpcp-section-head{margin-bottom:24px}
  .bkkpcp-section-head h2{font-size:25px}
  .bkkpcp-product-grid{grid-template-columns:1fr;gap:22px}
  .bkkpcp-product-card{display:grid;grid-template-columns:minmax(130px,42%) 1fr;padding:0}
  .bkkpcp-cover-link{aspect-ratio:3/4}
  .bkkpcp-product-info{padding:18px 16px 18px}
  .bkkpcp-product-info h3{font-size:16px}
  .bkkpcp-price{font-size:17px;margin-bottom:14px}
  .bkkpcp-card-actions{grid-template-columns:1fr;gap:8px}
  .bkkpcp-buy,.bkkpcp-details{min-height:43px;font-size:10px;padding:9px 7px}
  .bkkpcp-editorial-buy{display:block;padding:22px 18px;margin:30px 0}
  .bkkpcp-editorial-buy>a{display:flex;justify-content:center;margin-top:17px;white-space:normal;text-align:center}
}

/* v1.6: do not hide generic discovery/section containers here; they may contain Google Ads/AdSense. */

@media(max-width:1000px){
  .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child){grid-template-columns:1fr;gap:30px}
  .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-card{grid-template-columns:minmax(260px,40%) minmax(0,1fr)}
}
@media(max-width:700px){
  .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child){gap:22px}
  .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-card{grid-template-columns:minmax(130px,42%) 1fr}
  .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-info{padding:18px 16px}
  .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-info h3{font-size:16px}
  .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-price{font-size:17px;margin:0 0 14px}
}


/* v1.4: take ownership of the visible Shop archive while preserving the site's
   header, footer and advertising surfaces. */
body.bkkpcp-shop .woocommerce-products-header,
body.bkkpcp-shop .woocommerce-products-header__title,
body.bkkpcp-shop .page-title,
body.bkkpcp-shop .entry-title,
body.bkkpcp-shop .hp-page__title,
body.bkkpcp-shop .hp-page__header .hp-page__title,
body.bkkpcp-shop .woocommerce-info,
body.bkkpcp-shop .bkk20-shop-empty-copy,
body.bkkpcp-shop .bkk20-shop-empty,
body.bkkpcp-shop .bkkca-shop-empty,
body.bkkpcp-shop .bkk-shop-empty,
body.bkkpcp-shop .bkk-shop-empty-copy{display:none!important}

body.bkkpcp-shop .bkkpcp-shop-wrap{margin-top:0}
body.bkkpcp-shop .bkkpcp-shop-hero{margin-bottom:58px}
body.bkkpcp-shop .bkkpcp-department{margin-bottom:58px}
body.bkkpcp-shop .bkkpcp-section-head{margin-bottom:28px}

/* A single featured digital product should feel like an editorial product spread,
   not a catalogue tile. */
body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child){
  grid-template-columns:minmax(360px,560px) minmax(0,1fr);
  gap:58px;
  align-items:center;
}
body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-card{
  grid-column:1 / -1;
  max-width:1100px;
  width:100%;
  display:grid;
  grid-template-columns:minmax(360px,48%) minmax(0,1fr);
  padding:0;
  margin:0 auto;
}
body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-cover-link{aspect-ratio:3/4}
body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-info{padding:54px 58px}
body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-info h3{font-size:clamp(28px,2.5vw,42px);line-height:1.08}
body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-price{font-size:25px;margin:24px 0 30px}
body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-card-actions{max-width:430px}

@media(max-width:1000px){
  body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child){grid-template-columns:1fr;gap:30px}
  body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-card{grid-template-columns:minmax(260px,44%) minmax(0,1fr);max-width:820px}
  body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-info{padding:34px}
}
@media(max-width:700px){
  body.bkkpcp-shop .bkkpcp-shop-wrap{padding-top:10px}
  body.bkkpcp-shop .bkkpcp-shop-hero{margin-bottom:38px;padding:38px 22px}
  body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-card{grid-template-columns:42% 58%;max-width:none}
  body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-info{padding:18px 15px}
  body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-info h3{font-size:16px}
  body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-price{font-size:17px;margin:12px 0 15px}
}


/* v1.5 structural hardening: the Shop owns its catalogue presentation. */
body.bkkpcp-shop .woocommerce-notices-wrapper,
body.bkkpcp-shop .woocommerce-info{display:none!important}
body.bkkpcp-shop .bkkpcp-shop-wrap{position:relative;z-index:2}
body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child){grid-template-columns:1fr!important}
body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-card{width:100%!important;max-width:none!important}
@media(max-width:700px){
  body.bkkpcp-shop .bkkpcp-product-grid:has(.bkkpcp-product-card:only-child) .bkkpcp-product-card{grid-template-columns:minmax(135px,42%) minmax(0,58%)!important}
}
