/* LK24H_STORE_PRODUCT_LABELS_PUBLIC_FEATURED_MEDIA_R1_FIXED_R1 */
.featured-products-section-r1[hidden]{display:none!important}
.featured-products-section-r1{margin:0 0 16px;padding:12px;border:1px solid #fde68a;border-radius:16px;background:linear-gradient(180deg,#fffbeb 0%,#fff 100%);box-shadow:0 10px 26px rgba(146,64,14,.08)}
.featured-products-header-r1{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}
.featured-products-title-r1{display:flex;align-items:center;gap:10px;min-width:0}
.featured-products-title-r1 h2{margin:0;font-size:16px;line-height:1.25;font-weight:900;color:#78350f}
.featured-products-title-r1 p{margin:2px 0 0;font-size:11px;line-height:1.35;color:#92400e}
.featured-products-icon-r1{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:34px;height:34px;border-radius:12px;background:#fef3c7;border:1px solid #fbbf24;color:#b45309;box-shadow:0 5px 14px rgba(180,83,9,.12)}
.featured-product-grid-r1{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.featured-product-grid-r1 .product-card{margin:0;min-width:0;border-color:#fbbf24;background:#fff;box-shadow:0 8px 20px rgba(146,64,14,.10)}
.featured-product-grid-r1 .product-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(245,158,11,.10)}
.product-media-r1{position:relative;overflow:hidden;border-radius:12px;background:#f3f4f6;isolation:isolate}
.product-media-r1 .thumb{display:block;width:100%;margin:0!important;border-radius:inherit!important}
.product-label-stack-r1{position:absolute;z-index:3;left:7px;top:7px;display:flex;align-items:flex-start;gap:4px;flex-wrap:wrap;max-width:calc(100% - 46px);margin:0!important;pointer-events:none}
.product-label-stack-r1 .product-badge{display:inline-flex;margin:0!important;padding:4px 7px!important;border-radius:999px;border:1px solid transparent;font-size:10px!important;font-weight:900;line-height:1.1;box-shadow:0 3px 10px rgba(15,23,42,.10);backdrop-filter:blur(4px)}
.product-label-stack-r1 .product-badge__label{white-space:nowrap}
.product-badge--promo{background:rgba(254,242,242,.96);border-color:#fecaca!important;color:#b91c1c}
.product-badge--new{background:rgba(236,253,245,.96);border-color:#a7f3d0!important;color:#047857}
.product-badge--bestseller{background:rgba(255,247,237,.97);border-color:#fdba74!important;color:#c2410c}
.product-featured-marker-r1{position:absolute!important;top:7px!important;right:7px!important;z-index:4!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:28px!important;border-radius:999px!important;background:rgba(255,251,235,.97)!important;border:1px solid #f59e0b!important;color:#b45309!important;box-shadow:0 4px 12px rgba(180,83,9,.18)!important}
.product-card--featured-placement-r1 .product-media-r1{box-shadow:0 0 0 2px rgba(245,158,11,.20)}
.product-section-heading-r1{display:none!important}
@media (max-width:520px){
  .featured-products-section-r1{padding:10px;margin-bottom:12px;border-radius:14px}
  .featured-products-title-r1 h2{font-size:14px}
  .featured-products-title-r1 p{font-size:10px}
  .featured-products-icon-r1{width:30px;height:30px;border-radius:10px}
  .featured-product-grid-r1{gap:8px}
  .product-label-stack-r1{left:5px;top:5px;gap:3px;max-width:calc(100% - 40px)}
  .product-label-stack-r1 .product-badge{padding:3px 6px!important;font-size:9px!important}
  .product-featured-marker-r1{top:5px!important;right:5px!important;width:25px!important;height:25px!important}
}
@media (max-width:340px){.featured-product-grid-r1{grid-template-columns:1fr}}

/* LK24H_STORE_PUBLIC_TOP4_BESTSELLER_APP_2X2_R9_FIXED_R1 */
.featured-products-section-r1,
.bestseller-products-section-r3{position:relative;overflow:hidden;margin:0 0 14px;padding:13px;border-radius:17px}
.featured-products-section-r1{border:1px solid #f59e0b;background:linear-gradient(135deg,#fff7d6 0%,#fffdf7 52%,#fff 100%);box-shadow:0 13px 32px rgba(180,83,9,.12)}
.featured-products-section-r1::before{content:"";position:absolute;right:-36px;top:-58px;width:145px;height:145px;border-radius:50%;background:radial-gradient(circle,rgba(251,191,36,.28),rgba(251,191,36,0) 68%);pointer-events:none}
.featured-products-header-r1,.bestseller-products-header-r3{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 11px}
.showcase-priority-pill-r2,.showcase-sales-pill-r3{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900;line-height:1;white-space:nowrap}
.showcase-priority-pill-r2{border:1px solid #f59e0b;background:#78350f;color:#fff7cc;box-shadow:0 5px 14px rgba(120,53,15,.18)}
.showcase-sales-pill-r3{border:1px solid #fb923c;background:#fff7ed;color:#c2410c}
.product-featured-marker-r2{top:7px!important;right:7px!important;width:auto!important;height:29px!important;padding:0 9px!important;gap:5px!important;border-radius:999px!important;background:linear-gradient(135deg,#78350f,#b45309)!important;border-color:#fbbf24!important;color:#fff7cc!important;font-size:10px!important;font-weight:900!important;letter-spacing:.01em!important}
.product-featured-marker-r2 i{color:#fde68a}
.product-featured-marker-r2 span{display:inline!important;white-space:nowrap}
.product-card--featured-placement-r1{border:1px solid #f59e0b!important;box-shadow:0 10px 25px rgba(180,83,9,.13)!important}
.product-card--featured-placement-r1 .product-media-r1{box-shadow:0 0 0 2px rgba(245,158,11,.28)}

.bestseller-products-section-r3[hidden]{display:none!important}
.bestseller-products-section-r3{border:1px solid #fdba74;background:linear-gradient(135deg,#fff7ed 0%,#fff 60%);box-shadow:0 11px 28px rgba(194,65,12,.09)}
.bestseller-products-title-r3{display:flex;align-items:center;gap:10px;min-width:0}
.bestseller-products-title-r3 h2{margin:0;font-size:16px;line-height:1.25;font-weight:900;color:#9a3412}
.bestseller-products-title-r3 p{margin:2px 0 0;font-size:11px;line-height:1.35;color:#c2410c}
.bestseller-products-icon-r3{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:34px;height:34px;border-radius:12px;background:#ffedd5;border:1px solid #fb923c;color:#ea580c;box-shadow:0 5px 14px rgba(234,88,12,.12)}
.bestseller-product-grid-r3{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.bestseller-product-grid-r3 .product-card{margin:0;min-width:0;border-color:#fdba74;background:#fff;box-shadow:0 8px 20px rgba(194,65,12,.10)}
.product-card--bestseller-placement-r9{position:relative}
.product-card--bestseller-placement-r9::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(251,146,60,.12)}
.product-card--bestseller-placement-r9[data-bestseller-rank-r9="1"]{border-color:#f97316!important;background:linear-gradient(180deg,#fff7ed,#fff 42%)}
.product-card--bestseller-placement-r9[data-bestseller-rank-r9="2"]{border-color:#fb923c!important}
.product-card--bestseller-placement-r9[data-bestseller-rank-r9="3"]{border-color:#fdba74!important}
.product-card--bestseller-placement-r9[data-bestseller-rank-r9="4"]{border-color:#fed7aa!important}
.product-badge--bestseller{background:linear-gradient(135deg,#ea580c,#f97316)!important;border-color:#fed7aa!important;color:#fff!important;box-shadow:0 4px 12px rgba(234,88,12,.23)!important}
.product-badge--bestseller .product-badge__label::before{content:"🔥 ";font-size:.92em}

/* Keep the featured and top-four rails visually important without making normal product cards oversized. */
.featured-product-grid-r1 .product-media-r1,.bestseller-product-grid-r3 .product-media-r1{min-height:108px}
.featured-product-grid-r1 .thumb,.bestseller-product-grid-r3 .thumb{aspect-ratio:16/10;object-fit:cover}

@media (max-width:640px){
  .featured-products-section-r1,.bestseller-products-section-r3{padding:10px;margin-bottom:11px;border-radius:14px}
  .featured-products-header-r1,.bestseller-products-header-r3{align-items:flex-start}
  .showcase-priority-pill-r2,.showcase-sales-pill-r3{padding:4px 7px;font-size:9px}
  .bestseller-products-title-r3 h2{font-size:14px}
  .bestseller-products-title-r3 p{font-size:10px}
  .bestseller-products-icon-r3{width:30px;height:30px;border-radius:10px}
  .bestseller-product-grid-r3{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .product-featured-marker-r2{top:5px!important;right:5px!important;height:25px!important;padding:0 7px!important;font-size:9px!important}
}
@media (max-width:360px){
  .showcase-priority-pill-r2,.showcase-sales-pill-r3{display:none}
  .featured-product-grid-r1,.bestseller-product-grid-r3{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* R9 app contract: top four are always shown as a balanced 2x2 block in mobile WebView. */
@media(max-width:960px){.bestseller-product-grid-r3{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
