/* Mobile-only refinement. Desktop layouts remain unchanged. */
.sp-home-sections { display:flex; flex-direction:column; }
.sp-home-sections>section { flex-shrink:0; width:100%; }
.sp-mobile-category-link { display:none; }
@media (max-width:760px) {
  html { scroll-padding-top: 86px; }
  body { font-size:14px; line-height:1.65; overflow-x:hidden; }
  .sp-container { width:calc(100% - 32px); max-width:520px; }
  h1,h2,h3 { overflow-wrap:normal; word-break:normal; hyphens:none; letter-spacing:-.02em; }
  h1 { font-size:clamp(29px,8.4vw,36px); line-height:1.18; }
  h2 { font-size:clamp(25px,7vw,31px); line-height:1.24; }
  h3 { font-size:19px; line-height:1.28; }
  .sp-eyebrow { font-size:10px; letter-spacing:.1em; line-height:1.6; }
  .sp-top .sp-container { width:calc(100% - 22px); min-height:35px; gap:8px; }
  .sp-top .sp-container>span { font-size:9px; max-width:72%; line-height:1.3; }
  .sp-languages { gap:5px; font-size:11px; }
  .sp-header { position:sticky; top:0; }
  .sp-header-inner.sp-header-v2 { min-height:64px; padding-block:6px; }
  .sp-header-v2 .sp-brand { flex:0 1 138px; min-width:0; }
  .sp-header-v2 .sp-brand img { max-width:135px!important; max-height:51px!important; }
  .sp-header-v2 .sp-actions { gap:12px; }
  .sp-header-icon { width:23px; height:23px; }
  .sp-header-v2 .sp-actions .sp-search-toggle { font-size:25px; }
  .sp-header-v2 .sp-menu-toggle { font-size:24px; }
  .sp-nav-shell { background:transparent; min-height:0; }
  .sp-nav-inner { min-height:0; }
  .sp-category-trigger { display:none!important; }
  .sp-nav-shell .sp-nav.is-open { top:auto; padding:11px 16px 15px; background:#fff; color:#1d3c2d; box-shadow:0 15px 26px #163b2a22; border-top:1px solid #e5eadf; }
  .sp-nav-shell .sp-nav a { display:block; color:#233d2e!important; font-size:14px; padding:10px 4px; border-bottom:1px solid #edf0e9; }
  .sp-mobile-category-link { display:flex; width:100%; align-items:center; justify-content:space-between; border:0; background:#eaf2e8; color:#1d6936; padding:12px 14px; border-radius:9px; text-align:start; font-size:14px; font-weight:750; margin-bottom:6px; }
  .sp-mobile-category-link span { font-size:20px; line-height:1; }
  .sp-hero { background:#eef2e8; }
  .sp-hero-inner { display:block; min-height:0; }
  .sp-hero-inner>div:first-child { padding:29px 0 30px; }
  .sp-hero h1 { margin:12px 0 13px; font-size:clamp(29px,8.4vw,36px); line-height:1.17; max-width:460px; }
  .sp-hero-inner p { color:#455d50; font-size:14px; line-height:1.62; max-width:440px; margin:0 0 15px; }
  .sp-hero-buttons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:22px 0 14px; }
  .sp-hero-buttons .sp-btn { width:100%; min-height:44px; padding:10px 8px; font-size:12px; text-align:center; white-space:normal; }
  .sp-hero-note { font-size:11px; line-height:1.45; }
  .sp-no-hero-image { display:none!important; }
  .sp-has-hero-image.sp-hero-visual { padding:0 0 30px; min-height:0; }
  .sp-has-hero-image.sp-hero-visual { padding:0 0 22px; }
  .sp-has-hero-image.sp-hero-visual:before { display:none; }
  .sp-has-hero-image .sp-hero-photo { aspect-ratio:16/9; width:76%; max-width:260px; max-height:150px; margin-inline:auto; border-radius:13px; box-shadow:0 8px 20px #163e3212; }
  .sp-has-hero-image .sp-hero-badge { display:none; }
  .sp-section { padding:40px 0; }
  .sp-section-head { margin-bottom:18px; }
  .sp-section-head h2 { margin:6px 0 10px; }
  .sp-section-head p { font-size:13px; line-height:1.55; }
  .sp-categories { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; gap:12px; padding:0; scroll-snap-type:none; }
  .sp-category { display:flex; flex-direction:column; align-items:stretch; min-width:0; width:auto; padding:9px 9px 12px; text-align:start; background:#fff; border:1px solid #e2e7dd; border-radius:14px; box-shadow:0 3px 9px #173d3008; }
  .sp-category-art { width:100%; aspect-ratio:1.5; padding:0; border-radius:10px; background:#f0f3ec; overflow:hidden; }
  .sp-category-art img { border-radius:0; object-fit:cover; width:100%; height:100%; }
  .sp-category-art span { font-size:30px; }
  .sp-category strong { min-height:32px; margin-top:10px; font-size:13px; font-weight:750; line-height:1.25; color:#1b3829; }
  .sp-category small { display:none; }
  .sp-category:hover .sp-category-art { transform:none; }
  .sp-categories + * { clear:both; }
  .sp-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .sp-product-content { padding:11px; }
  .sp-product-content h3 { font:700 14px/1.35 'DM Sans',sans-serif; min-height:0; margin:7px 0; }
  .sp-product-content small { font-size:10px; }
  .sp-price { font-size:15px; min-height:0; margin:7px 0; }
  .sp-add { font-size:12px; padding:10px 5px; }
  .sp-promo { padding:23px; min-height:190px; }
  .sp-promo h3 { font-size:23px; max-width:75%; }
  .sp-promo p { max-width:75%; font-size:13px; }
  .sp-features { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .sp-features>div { padding:10px 5px; }
  .sp-features span { width:55px; height:55px; font-size:25px; }
  .sp-features h3 { font-size:16px; }
  .sp-features p { font-size:12px; }
  .sp-steps { gap:12px; }
  .sp-steps h3 { font-size:15px; }
  .sp-steps p { font-size:12px; }
  .sp-needs a { padding:15px 8px; }
  .sp-needs strong { font-size:13px; }
  .sp-needs small { font-size:11px; }
  .sp-needs a:last-child:nth-child(odd) { grid-column:1/-1; display:grid; grid-template-columns:45px 1fr; column-gap:12px; align-items:center; text-align:start; padding:14px 19px; }
  .sp-needs a:last-child:nth-child(odd) span { grid-row:1/3; font-size:31px; text-align:center; }
  .sp-needs a:last-child:nth-child(odd) strong { align-self:end; font-size:14px; }
  .sp-needs a:last-child:nth-child(odd) small { align-self:start; }
  .sp-story { gap:22px; }
  .sp-story-art { height:220px; }
  .sp-newsletter { padding:23px; }
  .sp-newsletter h2 { font-size:27px; }
  .sp-page-banner { padding:30px 0; text-align:start; }
  .sp-page-banner h1 { font-size:clamp(27px,7.5vw,34px); line-height:1.2; margin:7px 0 10px; }
  .sp-page-banner p { font-size:13px; line-height:1.55; }
  .sp-page-content { padding-top:26px; padding-bottom:45px; min-height:0; }
  .sp-page-content>h1 { font-size:30px; }
  .sp-enquiry-layout { display:block; }
  .sp-enquiry-copy { margin-bottom:25px; }
  .sp-enquiry-copy h2 { font-size:25px; }
  .sp-form-panel { padding:19px 16px; border-radius:12px; box-shadow:none; }
  .sp-form-panel h2 { font-size:25px; line-height:1.3; }
  .sp-form-panel p { font-size:13px; line-height:1.65; }
  .sp-form-grid { display:grid; grid-template-columns:1fr; gap:14px; }
  .sp-form-grid label,.sp-field-block { display:block; font-size:13px; line-height:1.5; }
  .sp-form-grid input,.sp-form-grid select,.sp-field-block textarea { width:100%; min-width:0; min-height:44px; font-size:16px; margin-top:6px; padding:11px; }
  .sp-field-block textarea { min-height:116px; }
  .sp-form-panel .sp-btn { min-height:45px; width:100%; font-size:13px; }
  .sp-enquiry-image { aspect-ratio:16/9; height:auto; }
  .sp-footer { padding:39px 0 90px; }
  .sp-footer-grid { grid-template-columns:1fr; gap:22px; }
  .sp-footer-grid>div:first-child,.sp-footer-grid>div:last-child { grid-column:auto; }
  .sp-footer h3 { font-size:16px; margin:0 0 9px; }
  .sp-footer p { font-size:13px; }
  .sp-footer-original-logo img { max-width:190px!important; }
  .sp-mobile-bar { min-height:64px; padding:7px 4px max(8px,env(safe-area-inset-bottom)); z-index:100; }
  .sp-mobile-bar a { min-width:75px; font-size:21px; }
  .sp-mobile-bar small { font-size:11px; }
  .sp-urdu h1,.sp-urdu h2,.sp-urdu h3 { line-height:1.65; }
}
@media (max-width:420px) {
  /* Compact two-column cards: aligned text, price and call-to-action. */
  .sp-product-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:stretch; }
  .sp-product-card { display:flex; flex-direction:column; min-width:0; min-height:0; }
  .sp-product-image { display:block; flex:none; width:100%; height:auto; min-height:0; aspect-ratio:1/1; background:#f4f4ee; }
  .sp-product-image img { display:block; width:100%; height:100%; object-fit:cover; }
  .sp-product-content { display:flex; flex:1; flex-direction:column; min-width:0; padding:11px 10px; }
  .sp-product-content small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; line-clamp:1; overflow:hidden; font-size:10px; line-height:1.3; }
  .sp-product-content h3 { font-size:12px; line-height:1.45; margin:7px 0 8px; height:53px; min-height:53px; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; }
  .sp-product-content .sp-rating { min-height:15px; }
  .sp-product-content .sp-price { margin:auto 0 9px; padding-top:6px; font-size:12px; line-height:1.35; white-space:normal; min-height:43px; overflow-wrap:normal; }
  .sp-product-content .sp-price .woocommerce-Price-amount { white-space:nowrap; }
  .sp-product-content .sp-add { display:flex; align-items:center; justify-content:center; width:100%; min-height:38px; font-size:11px; padding:8px 4px; border-radius:7px; }
}
@media (max-width:360px) {
  .sp-hero h1 { font-size:29px; }
  .sp-header-v2 .sp-brand { flex-basis:126px; }
  .sp-header-v2 .sp-brand img { max-width:123px!important; }
  .sp-hero-buttons { grid-template-columns:1fr; }
  .sp-hero-buttons .sp-btn { min-height:42px; }
  .sp-features { gap:3px; }
}

/* v3.1: mixed English / Nastaliq product names need generous vertical rhythm. */
.sp-product-content h3 {
  font-family:'DM Sans','Noto Nastaliq Urdu',sans-serif;
  font-size:16px;
  line-height:1.8;
  min-height:88px;
  overflow-wrap:anywhere;
}
.sp-product-content h3 a { line-height:inherit; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family:'DM Sans','Noto Nastaliq Urdu',sans-serif;
  line-height:1.8;
  overflow-wrap:anywhere;
}
@media (max-width:760px) {
  .sp-product-content h3 {
    font-size:13px;
    line-height:1.75;
    min-height:80px;
    height:80px;
    max-height:80px;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    line-clamp:3;
    overflow:hidden;
  }
  .sp-product-content h3 a { line-height:inherit; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size:13px;
    line-height:1.75;
    min-height:76px;
  }
  .sp-product-content .sp-price { margin-top:auto; }
}
/* v3.2: the redundant fixed mobile contact strip has been removed. */
@media (max-width:760px) {
  body { padding-bottom:0; }
  .sp-mobile-bar { display:none!important; }
  .sp-footer { padding-bottom:39px; }
}
