/* Scoped styles for Cari integration, independent of the original stylesheet. */
.cari-home-promotions{margin:0 0 24px;padding:14px;background:#fff;border:1px solid #dce3ed;border-radius:12px;min-width:0;max-width:100%;box-sizing:border-box}
.cari-home-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.cari-home-heading h2{margin:0;font-size:20px;line-height:1.3}
.cari-source{font-size:12px;font-weight:650;color:#b74612}
.cari-home-promotions .cari-promo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.cari-home-promotions .cari-promo-card{display:block;border:1px solid #dce3ed;border-radius:10px;overflow:hidden;min-width:0;background:#fff;margin:0;padding:0;max-width:100%}
.cari-home-promotions .cari-promo-link{display:flex;flex-direction:column;height:100%;color:var(--ink,#182436);text-decoration:none;min-width:0}
.cari-home-promotions .cari-promo-link:hover h3{text-decoration:underline;color:var(--blue,#2457c5)}
.cari-home-promotions .cari-promo-image{display:flex;align-items:center;justify-content:center;width:100%;height:122px;aspect-ratio:auto;background:#f4f6fa;color:#66758a;font-size:13px;overflow:hidden;flex:none}
.cari-home-promotions .cari-promo-image img{display:block;width:100%;height:100%;max-width:100%;max-height:122px;object-fit:contain;aspect-ratio:auto;margin:0;padding:0}
.cari-home-promotions .cari-promo-body{padding:10px;min-width:0;overflow-wrap:anywhere}
.cari-home-promotions .cari-promo-body h3{font-size:14px;font-weight:650;line-height:1.35;margin:0 0 6px}
.cari-home-promotions .cari-promo-body p{font-size:12px;line-height:1.4;margin:3px 0}
.cari-home-promotions .cari-promo-price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.cari-home-promotions .cari-promo-price del{font-size:12px;color:#66758a}
.cari-home-promotions .cari-promo-price strong{font-size:16px;color:#117447}
.cari-home-promotions .cari-offer{color:#a44310}
.cari-home-promotions .cari-more,.cari-service-desktop .cari-more,.cari-service-mobile .cari-more{display:block;text-align:center;border:1px solid #dce3ed;border-radius:8px;padding:9px;margin-top:12px;font-size:14px;font-weight:650;color:var(--blue,#2457c5);text-decoration:none}
.cari-home-promotions .cari-more:hover,.cari-service-desktop .cari-more:hover,.cari-service-mobile .cari-more:hover{background:#f4f6fa}
.cari-service-list a{display:flex;justify-content:space-between;gap:8px;align-items:baseline;overflow-wrap:anywhere}
.cari-service-list small{flex-shrink:0}
.layout .cari-service-mobile{display:none!important}
.layout .cari-service-desktop{display:block}
.cari-service-mobile summary{cursor:pointer;font-weight:700;padding:4px 0}
.cari-service-mobile[open] summary{margin-bottom:8px}
@media(max-width:1000px){.cari-home-promotions .cari-promo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
 .layout .cari-service-desktop{display:none!important}
 .layout .cari-service-mobile{display:block!important;margin-bottom:14px}
 .cari-home-promotions{padding:10px;margin-bottom:20px}
 .cari-home-promotions .cari-promo-grid{gap:8px}
 .cari-home-promotions .cari-promo-image{height:100px}
 .cari-home-promotions .cari-promo-image img{max-height:100px}
 .cari-home-promotions .cari-promo-body{padding:8px}
 .cari-home-promotions .cari-promo-body h3{font-size:13px}
}

/* On the integrated homepage, collapse the entire layout, not only the Cari menu. */
main.wrap.layout > section, main.wrap.layout > aside {min-width:0;max-width:100%;}
@media(max-width:900px){
 main.wrap.layout{width:calc(100% - 24px);grid-template-columns:minmax(0,1fr);gap:20px;padding-block:20px;}
 main.wrap.layout > section, main.wrap.layout > aside{width:100%;grid-column:1;}
 .site-header .wrap{width:calc(100% - 24px);}
 .site-header .topbar{flex-wrap:wrap;gap:10px;padding-block:12px;}
 .site-header .topbar > .brand{order:0;font-size:22px;min-width:0;}
 .site-header .topbar > .language-switch{order:1;margin-left:auto;}
 .site-header .topbar > .search{order:3;flex:1 1 100%;min-width:0;max-width:none;margin:0;}
 .site-header .search input{flex:1 1 0;min-width:0;width:auto;}
 .site-header .search button{flex:0 0 auto;}
 .site-header .categories{gap:4px;padding-bottom:10px;}
 .site-header .categories a{padding:5px 9px;font-size:13px;}
 main.wrap.layout .feed{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .cari-service-mobile .cari-service-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;}
 .cari-service-mobile .cari-service-list a{min-width:0;padding:10px 0;}
 .cari-service-mobile summary{min-height:32px;}
}
@media(max-width:600px){
 main.wrap.layout .feed{grid-template-columns:minmax(0,1fr);}
 .cari-home-promotions .cari-promo-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .cari-home-promotions .cari-promo-card{min-width:0;}
 .cari-home-heading h2{font-size:18px;}
 main.wrap.layout .section-heading{flex-wrap:wrap;}
}
@media(max-width:360px){
 .site-header .topbar > .brand{font-size:19px;gap:6px;}
 .site-header .topbar > .language-switch{margin-left:auto;}
 .site-header .language-switch a{padding:4px 6px;}
 .cari-service-mobile .cari-service-list{grid-template-columns:minmax(0,1fr);}
}
