/* BOY STORE ID V17.3 — true candy emboss, only for published/preview 3D themes.
   Styling only. Never changes checkout, payment, API requests or data. */
html[data-button-style="candy-pop"] {
  --candy-sugar: color-mix(in srgb, var(--theme-highlight) 60%, #fff);
  --candy-cream: color-mix(in srgb, var(--theme-light) 82%, #fff);
  --candy-pink: color-mix(in srgb, var(--theme-accent) 88%, #fff);
  --candy-base: color-mix(in srgb, var(--theme-main) 74%, #65284e);
  --candy-crust: color-mix(in srgb, var(--theme-deep) 70%, #2d102b);
  --candy-dark: color-mix(in srgb, var(--theme-deep) 70%, #170b21);
}
/* Hero CTAs must resemble dimensional sweets, not a flat gradient. */
html[data-button-style="candy-pop"] body:not(.boy-buyer-page) :is(
  .heroBtns .btn.primary,
  .product-card .view,
  .popularAction,
  .orderBtn,
  .btnOrder,
  .promoButtons button:not(.promoNav),
  .qrisActions button,
  .payBtn,
  .centerAction,
  .paymentChoice.active,
  .filters button.active,
  #applyPromoBtn,
  #midtransBtn,
  #paidBtn
),
html[data-button-style="candy-pop"][data-theme-preset] body.boy-buyer-page :is(
  .btn:not(.ghost), .quickBtn.active, .invoicePrint, .mini, .deliveryValue button
) {
  position: relative;
  isolation: isolate;
  border: 3px solid var(--candy-sugar) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(ellipse 90% 65% at 50% -8%, #fffdfbe0 0%, #fffdfb00 78%),
    linear-gradient(176deg, var(--candy-cream) 0%, var(--theme-light) 26%, var(--candy-pink) 57%, var(--theme-main) 100%) !important;
  color: var(--theme-deep) !important;
  -webkit-text-fill-color: var(--theme-deep) !important;
  font-weight: 850 !important;
  text-shadow: 0 1px 1px #ffffffc7 !important;
  box-shadow:
    inset 0 4px 3px #ffffffdc,
    inset 0 0 0 2px #ffffff5c,
    inset 0 -7px 9px #5d244d66,
    0 2px 0 var(--candy-pink),
    0 8px 0 var(--candy-base),
    0 11px 0 var(--candy-crust),
    0 19px 23px #110618a3,
    0 0 24px color-mix(in srgb, var(--theme-glow) 35%, transparent) !important;
  filter: none !important;
  overflow: hidden;
  transform: translateY(0);
  transition: transform .15s cubic-bezier(.2,.8,.2,1),box-shadow .15s ease,filter .15s ease !important;
}
/* Gloss strip is part of the material, without changing the button text. */
html[data-button-style="candy-pop"] body:not(.boy-buyer-page) :is(
  .heroBtns .btn.primary,.product-card .view,.popularAction,.orderBtn,
  .btnOrder,.promoButtons button:not(.promoNav),.qrisActions button,.payBtn,.centerAction
)::before,
html[data-button-style="candy-pop"][data-theme-preset] body.boy-buyer-page :is(.btn:not(.ghost),.quickBtn.active,.invoicePrint)::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 7%; right: 7%; top: 3px; height: 38%;
  border-radius: 999px 999px 60% 60%;
  background: linear-gradient(180deg, #ffffffdb 0%, #ffffff73 43%, #ffffff00 100%);
  opacity: .9;
  z-index: 0;
}
/* Secondary sweets: raised dark berry jelly, not a transparent rectangle. */
html[data-button-style="candy-pop"] body:not(.boy-buyer-page) :is(.heroBtns .btn.secondary,.btn.ghost),
html[data-button-style="candy-pop"][data-theme-preset] body.boy-buyer-page :is(.btn.ghost,.quickBtn:not(.active)) {
  position: relative;
  isolation: isolate;
  border: 2px solid color-mix(in srgb, var(--theme-light) 72%, white) !important;
  border-radius: 26px !important;
  background: linear-gradient(173deg,
    color-mix(in srgb, var(--theme-light) 42%, var(--theme-deep)) 0%,
    color-mix(in srgb, var(--theme-main) 55%, var(--theme-deep)) 45%,
    var(--theme-deep) 100%) !important;
  color: var(--theme-highlight) !important;
  -webkit-text-fill-color: var(--theme-highlight) !important;
  text-shadow: 0 1px 1px #160b1d !important;
  box-shadow:
    inset 0 3px 3px #ffffff64,
    inset 0 -5px 8px #18071b88,
    0 6px 0 var(--candy-crust),
    0 9px 0 #1d0b22,
    0 17px 23px #09040da6,
    0 0 22px color-mix(in srgb, var(--theme-glow) 23%,transparent) !important;
  transition: transform .15s ease,box-shadow .15s ease !important;
}
html[data-button-style="candy-pop"] body:not(.boy-buyer-page) :is(
  .heroBtns .btn,.product-card .view,.popularAction,.orderBtn,.btnOrder,
  .promoButtons button:not(.promoNav),.qrisActions button,.payBtn,.centerAction,
  .btn.ghost,.btn.primary
):active,
html[data-button-style="candy-pop"][data-theme-preset] body.boy-buyer-page :is(.btn,.quickBtn,.invoicePrint,.mini):active {
  transform: translateY(8px) !important;
  box-shadow: inset 0 2px 5px #52234c77, inset 0 -2px 2px #fff5,
    0 1px 0 var(--candy-crust),0 4px 8px #10041477 !important;
}
html[data-button-style="candy-pop"] body:not(.boy-buyer-page) :is(
  .heroBtns .btn,.product-card .view,.popularAction,.orderBtn,.btnOrder,
  .promoButtons button:not(.promoNav),.centerAction
):focus-visible,
html[data-button-style="candy-pop"][data-theme-preset] body.boy-buyer-page :is(.btn,.quickBtn):focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 7px !important;
}
/* Compact, visibly raised actions on a phone. Leave room for the extruded lip. */
@media (max-width: 650px) {
 html[data-button-style="candy-pop"] .heroBtns {
   align-items: center !important;
   gap: 17px !important;
   margin-bottom: 27px !important;
   overflow: visible !important;
 }
 html[data-button-style="candy-pop"] body:not(.boy-buyer-page) .heroBtns .btn {
   width: min(100%, 332px) !important;
   min-height: 61px !important;
   padding: 12px 20px !important;
   margin: 0 auto 4px !important;
   font-size: clamp(15px, 4.7vw, 19px) !important;
   letter-spacing: .01em;
 }
 html[data-button-style="candy-pop"] body.boy-buyer-page .quickMenu {
   row-gap: 13px !important;
 }
 html[data-button-style="candy-pop"] body.boy-buyer-page .login {gap: 14px !important;}
}
/* Candy depth is decorative; all tap targets and labels remain functional. */
html[data-button-style="candy-pop"] body :is(button,a):disabled {
  filter: grayscale(.27) brightness(.84) !important;
  cursor: not-allowed !important;
}
/* The preview indicator stays in document flow, never across logo/navigation. */
.themePreviewBadge.boy-preview-inline {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: table !important;
  margin: 12px auto 3px !important;
  max-width: calc(100vw - 24px) !important;
  padding: 7px 13px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  text-align: center;
  line-height: 1.45;
  white-space: normal;
  background: color-mix(in srgb,var(--theme-deep) 84%,#0b0916) !important;
  border: 1px solid color-mix(in srgb,var(--theme-light) 55%,transparent) !important;
  box-shadow: 0 5px 16px #0004 !important;
  backdrop-filter: blur(12px);
}
@media(prefers-reduced-motion: reduce){
  html[data-button-style="candy-pop"] body :is(.btn,.quickBtn,.view,.popularAction,.orderBtn,.centerAction){transition:none!important;}
}
