/* Masar Almarifah storefront - RTL responsive */
.store-page,.store-product-detail{direction:rtl;color:#102a49;font-family:Tahoma,Arial,sans-serif}
.store-shell{width:min(100% - 40px,1280px);margin-inline:auto}
.store-hero{background:linear-gradient(112deg,#09233d,#104e60);color:#fff;padding:65px 0 70px}
.store-kicker{display:block;font-size:11px;letter-spacing:1.3px;color:#0b888e;font-weight:800;margin-bottom:10px}
.store-hero .store-kicker{color:#76e3dc}.store-hero h1{font-size:clamp(27px,3.5vw,46px);font-weight:800;margin:0 0 15px;line-height:1.5}.store-hero p{color:#d7e9f0;font-size:15px;line-height:1.9;max-width:740px}
.store-search{display:flex;max-width:740px;gap:9px;margin-top:25px;background:#fff;padding:7px;border-radius:13px}.store-search input{flex:1;min-width:0;border:0;outline:0;padding:12px 16px;background:#fff;color:#122b42}.store-search button{border:0;border-radius:9px;background:#007c83;color:white;padding:12px 30px;font-weight:800}
.store-content{padding-block:48px 85px}.store-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}.store-section-heading h2{font-weight:800;font-size:clamp(23px,3vw,33px);margin:0 0 8px}.store-section-heading p{margin:0;color:#64778a}.store-count{font-size:13px;color:#65798d}
.store-filters{display:flex;gap:9px;overflow-x:auto;padding:0 0 18px;margin-bottom:20px;scrollbar-width:thin}.store-filters a{flex:none;padding:11px 18px;border:1px solid #dce6ee;border-radius:50px;background:#fff;color:#254159;text-decoration:none;font-size:13px;font-weight:700}.store-filters a:hover,.store-filters a.active{background:#0b5964;color:#fff;border-color:#0b5964}
.store-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.store-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e1e8ef;border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(10,36,60,.045);transition:transform .2s,box-shadow .2s}.store-card:hover{transform:translateY(-3px);box-shadow:0 15px 35px rgba(10,36,60,.11)}.store-card-image{display:grid;place-items:center;height:230px;padding:15px;background:#fff;border-bottom:1px solid #edf1f5}.store-card-image img{width:100%;height:100%;object-fit:contain}.store-no-image{color:#8798a8;font-size:13px}.store-card-body{display:flex;flex:1;flex-direction:column;padding:20px}.store-category{color:#007e85;font-size:11px;font-weight:800}.store-brand{font-size:12px;color:#63778b;margin-top:7px}.store-card h3{font-size:17px;font-weight:800;line-height:1.7;margin:9px 0}.store-card h3 a{color:#122b47;text-decoration:none}.store-card h3 a:hover{color:#007c83}.store-card-description{font-size:12px;line-height:1.9;color:#66788b;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 17px}.store-price{display:block;font-size:20px;margin-top:auto}.store-price small{font-size:12px}.store-quote{font-size:12px;line-height:1.8;font-weight:700;color:#007c83;margin-top:auto;min-height:44px}.store-card-action{display:flex;justify-content:center;align-items:center;gap:12px;text-decoration:none;background:#0c6370;color:#fff;border-radius:10px;margin-top:18px;min-height:44px;font-size:13px;font-weight:800}.store-card-action:hover{background:#084d59;color:#fff}.store-empty{background:white;border:1px dashed #c9d7e3;border-radius:16px;text-align:center;padding:60px 20px}.store-empty h3{font-weight:800}.store-empty p{color:#718195}.store-empty a{color:#007c83;font-weight:800}.store-product-detail{width:min(100% - 40px,1200px)}
@media(max-width:1100px){.store-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-hero{padding:45px 0}.store-card-image{height:200px}}@media(max-width:520px){.store-shell{width:min(100% - 26px,1280px)}.store-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.store-card-image{height:155px;padding:8px}.store-card-body{padding:12px}.store-card h3{font-size:13px}.store-card-description{font-size:11px;-webkit-line-clamp:2}.store-price{font-size:16px}.store-quote{font-size:11px}.store-search button{padding:10px 15px}.store-content{padding-block:30px 60px}}@media(max-width:360px){.store-grid{grid-template-columns:1fr}.store-card-image{height:200px}}@media(prefers-reduced-motion:reduce){.store-card{transition:none}}

/* Stage 1A: constrain product media within card at all viewport sizes */
.store-grid > *, .store-card, .store-card-body { min-width: 0; }
.store-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 230px;
    height: 230px;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}
.store-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}
.store-card h3, .store-card-description, .store-quote { overflow-wrap: anywhere; }
@media (max-width: 800px) { .store-card-image { flex-basis: 200px; height: 200px; } }
@media (max-width: 520px) { .store-card-image { flex-basis: 155px; height: 155px; } }
@media (max-width: 360px) { .store-card-image { flex-basis: 200px; height: 200px; } }
