/* Mart theme (homepage layout only). Colours come from the site's own settings. */
.mart-store{--mt-primary:var(--brand-primary,#168352);--mt-dark:var(--brand-secondary,#17624e);--mt-accent:#f17f21;--mt-line:#ebeeec;--mt-muted:#6b7570}
.mart-store .mt-hero{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(260px,1fr);gap:16px;margin-top:18px;margin-bottom:6px}
.mart-store .mt-hero.mt-hero-full{grid-template-columns:1fr}
.mart-store .mt-slider{position:relative;border-radius:14px;overflow:hidden;background:#eef5f1;aspect-ratio:2.1/1;min-height:220px}
.mart-store .mt-slide{position:absolute;inset:0;opacity:0;transition:opacity .5s;pointer-events:none;display:block}
.mart-store .mt-slide.active{opacity:1;pointer-events:auto}
.mart-store .mt-slide img{width:100%;height:100%;object-fit:cover;display:block}
.mart-store .mt-slide-text{display:flex;flex-direction:column;justify-content:center;padding:28px 40px;color:inherit;text-decoration:none;background:linear-gradient(115deg,#f3faf6,#e2f1e9)}
.mart-store .mt-slide-text h1{font-size:clamp(26px,3.4vw,40px);line-height:1.25;margin:8px 0}
.mart-store .mt-slide-text h1 em{color:var(--mt-primary)}
.mart-store .mt-slide-text p{max-width:460px;color:var(--mt-muted)}
.mart-store .mt-slide-text .hero-button{align-self:flex-start;margin-top:8px}
.mart-store .mt-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;border:0;background:#ffffffe6;box-shadow:0 2px 8px #0002;font-size:22px;line-height:1;cursor:pointer;z-index:2;color:#222}
.mart-store .mt-prev{left:12px}.mart-store .mt-next{right:12px}
.mart-store .mt-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;justify-content:center;gap:6px;z-index:2}
.mart-store .mt-dots button{width:8px;height:8px;border-radius:8px;border:0;background:#ffffffa6;padding:0;cursor:pointer;transition:width .2s}
.mart-store .mt-dots button.active{width:22px;background:#fff}
.mart-store .mt-deal{position:relative;display:flex;flex-direction:column;border-radius:14px;padding:16px;background:linear-gradient(160deg,#fff,#f1f8f4);border:1px solid var(--mt-line);min-width:0}
.mart-store .mt-deal-tag{position:absolute;top:14px;left:14px;background:var(--mt-accent);color:#fff;font-size:12px;font-weight:700;padding:4px 10px;border-radius:20px;z-index:1}
.mart-store .mt-deal-photo{flex:1;min-height:150px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.mart-store .mt-deal-photo img{max-width:100%;max-height:190px;object-fit:contain}
.mart-store .mt-deal h3{font-size:16px;margin:8px 0 2px;cursor:pointer;line-height:1.35}
.mart-store .mt-deal p{font-size:12px;color:var(--mt-muted);margin:0 0 6px}
.mart-store .mt-deal-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.mart-store .mt-deal-foot .price{margin:0;flex-direction:column;align-items:flex-start;gap:0}
.mart-store .mt-deal-foot .price b{font-size:20px;color:var(--mt-primary)}
.mart-store .mt-deal-foot .buy{border-radius:8px;padding:10px 14px;font-weight:700;white-space:nowrap;cursor:pointer}
.mart-store .mt-countdown{display:flex;gap:6px;margin:6px 0}
.mart-store .mt-countdown span{flex:1;background:#fff3eb;border-radius:8px;text-align:center;font-size:10px;color:#9a4a1b;padding:5px 2px}
.mart-store .mt-countdown b{display:block;font-size:17px;color:var(--mt-accent);font-variant-numeric:tabular-nums}
.mart-store .mt-center{justify-content:center;border-bottom:0}
.mart-store .mt-center h2{font-size:24px}
.mart-store .mt-wide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.mart-store .mt-wide{display:grid;grid-template-columns:42% 1fr;gap:16px;align-items:center;background:#fff;border:1px solid var(--mt-line);border-radius:12px;padding:14px;min-width:0}
.mart-store .mt-wide-photo{position:relative;aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:#f6f8f7;border-radius:10px;cursor:pointer;overflow:hidden}
.mart-store .mt-wide-photo img{width:100%;height:100%;object-fit:contain}
.mart-store .mt-ribbon{position:absolute;bottom:8px;left:8px;background:var(--mt-accent);color:#fff;font-size:11px;font-weight:700;padding:3px 9px;border-radius:5px}
.mart-store .mt-wide-body{min-width:0}
.mart-store .mt-wide h3{font-size:17px;line-height:1.35;margin:0 0 8px;cursor:pointer}
.mart-store .mt-wide .price b{font-size:20px;color:var(--mt-primary)}
.mart-store .mt-save{display:inline-block;align-self:flex-start;width:fit-content;background:#e7f5ec;color:#1d7a47;font-size:11px;font-weight:700;padding:3px 8px;border-radius:5px;margin:-4px 0 10px}
.mart-store .mt-card .photo{position:relative}
.mart-store .mt-badge{position:absolute;top:8px;right:8px;background:var(--mt-accent);color:#fff;font-size:11px;font-weight:700;padding:3px 8px;border-radius:5px;z-index:1}
.mart-store .mt-card .card-discount{display:none}
.mart-store .mt-card .price b{color:var(--mt-primary)}
.mart-store .mt-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mart-store .mt-actions button{border-radius:7px;padding:8px 4px;font-size:12px;font-weight:700;cursor:pointer;min-height:36px}
.mart-store .mt-add{background:#fff;border:1.5px solid var(--mt-primary);color:var(--mt-primary)}
.mart-store .mt-add:hover{background:var(--mt-primary);color:#fff}
.mart-store .mt-actions button:disabled{opacity:.5;cursor:not-allowed}
.mart-store .mt-promo{margin:26px auto}
.mart-store .mt-promo-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--mt-dark);border-left:6px solid var(--mt-accent);border-radius:12px;padding:24px 30px;color:#fff;text-decoration:none}
.mart-store .mt-promo-inner h2{font-size:clamp(19px,2.3vw,26px);margin:0 0 6px;color:#fff}
.mart-store .mt-promo-inner p{margin:0 0 10px;opacity:.85}
.mart-store .mt-promo-button{display:inline-block;background:#fff;color:var(--mt-dark);font-weight:700;font-size:13px;padding:8px 16px;border-radius:8px}
.mart-store .mt-promo-inner img{max-height:120px;max-width:40%;object-fit:contain;border-radius:8px}
@media (min-width:1000px){.mart-store .product-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media (max-width:860px){.mart-store .mt-hero{grid-template-columns:1fr}.mart-store .mt-deal{display:grid;grid-template-columns:120px 1fr;column-gap:12px;align-items:center}.mart-store .mt-deal-photo{grid-row:1/6;min-height:0}.mart-store .mt-deal-photo img{max-height:120px}.mart-store .mt-deal-tag{top:10px;left:10px}}
@media (max-width:700px){.mart-store .mt-wide-grid{grid-template-columns:1fr}.mart-store .mt-slider{aspect-ratio:1.9/1;min-height:170px}.mart-store .mt-slide-text{padding:18px 20px}.mart-store .mt-arrow{width:30px;height:30px;font-size:18px}}
@media (max-width:600px){.mart-store .mt-wide{grid-template-columns:38% 1fr;gap:10px;padding:10px}.mart-store .mt-wide h3{font-size:14px}.mart-store .mt-wide .price b,.mart-store .mt-deal-foot .price b{font-size:17px}.mart-store .mt-actions button{font-size:11px;padding:7px 2px}.mart-store .mt-promo-inner{padding:18px;flex-direction:column;align-items:flex-start}.mart-store .mt-promo-inner img{max-width:100%}.mart-store .mt-center h2{font-size:20px}}
.mart-store .mt-deal-images{aspect-ratio:auto;min-height:0;height:100%;background:#f3f6f4}
.mart-store .mt-deal-images .mt-slide img{object-fit:contain}
@media (max-width:860px){.mart-store .mt-deal-images{aspect-ratio:1.5/1;height:auto}}
.mart-store .mt-wide.product-card{overflow:visible}.mart-store .mt-wide .card-actions{max-width:320px}
