/* compact.css v2 — تقصير طول الصفحة (الجوال أساساً) + عمود التجارة الإلكترونية والضريبة */

/* ---- عمود التجارة الإلكترونية والضريبة في التذييل (كل الشاشات) ---- */
.footer-legal-col .legal-item{display:flex;flex-direction:column;gap:3px;margin:0 0 10px;color:#fff}
.footer-legal-col .legal-item small{color:#9eb2c6;font-size:12px;line-height:1.5;font-weight:600}
.footer-legal-col .legal-item b{color:#fff;font-size:15px;font-weight:800;letter-spacing:.02em;text-align:right;unicode-bidi:plaintext}

@media (max-width:640px){
  /* قسم "تسوق حسب القسم" مكرر: نفس الأقسام الثمانية موجودة في الشريط أعلى الصفحة */
  .categories-section{display:none!important}

  /* مسافات الأقسام */
  main .section,.brands-section,.why,.service-highlights,.promotions-section,.collection-strip{padding-top:26px!important;padding-bottom:26px!important;margin-top:0!important;margin-bottom:0!important}
  .section-heading,.promotions-heading{margin-bottom:14px!important;gap:8px!important}
  .section-title{font-size:25px!important;line-height:1.25!important;margin:2px 0 4px!important}
  .section-eyebrow{font-size:11px!important}
  .section-description{font-size:13px!important;line-height:1.7!important;margin:0!important}
  .brands-section .section-description,.why .section-description,.service-highlights .section-description,.brand-caption{display:none!important}

  /* شريط العروض */
  .custom-offer-section{padding:26px 0 18px!important}
  .custom-offer-head{margin-bottom:10px!important;gap:6px!important}
  .custom-offer-head h2{font-size:26px!important}
  .custom-offer-head p{display:none!important}
  .custom-offer-image{height:132px!important}
  .custom-offer-body{padding:8px 10px 10px!important}
  .custom-offer-body h3{min-height:0!important;margin:2px 0 4px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .custom-offer-window{padding-bottom:22px!important}

  /* العروض الخاصة */
  .promotions-grid{gap:8px!important}
  .promotion-card{min-height:0!important;padding:14px 16px!important;gap:6px!important}
  .promotion-card p{margin:0!important;font-size:13px!important;line-height:1.6!important}
  .promotion-icon{display:none!important}

  /* شريط الثقة */
  .trust-bar{margin-block:10px!important}

  /* لافتة "راحة تستمر": بدون الصورة الكبيرة */
  .collection-image{display:none!important}
  .collection-text{padding:20px 16px!important;min-height:0!important}
  .collection-text h2{margin:4px 0 6px!important;font-size:26px!important}

  /* كيف نساعدك: صفوف مدمجة */
  .why-grid{gap:8px!important}
  .why-card{display:grid!important;grid-template-columns:auto 1fr;column-gap:12px;row-gap:2px;align-items:center;min-height:0!important;padding:12px 14px!important}
  .why-card .step-number{grid-row:span 2;width:36px!important;height:36px!important;font-size:14px!important;margin:0!important}
  .why-card h3{margin:0!important;font-size:16px!important}
  .why-card p{margin:0!important;font-size:13px!important;line-height:1.6!important}

  /* مميزات الخدمة: عمودان وبطاقات قصيرة */
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .service-card{min-height:0!important;height:auto!important;padding:12px!important;gap:4px!important}
  .service-card h3{min-height:0!important;margin:0!important;font-size:14px!important;line-height:1.4!important}
  .service-card p{margin:0!important;font-size:12px!important;line-height:1.6!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .service-card-link{display:none!important}

  /* التذييل */
  .site-footer{padding-top:26px!important}
  .footer-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px 16px!important}
  .footer-brand{grid-column:1/-1!important}
  .footer-brand>p{display:none!important}
  .footer-grid>.footer-nav:nth-child(2){grid-row:span 2}
  .footer-nav:last-child{margin-top:4px}
  .footer-nav strong{margin-bottom:2px!important}
  .footer-nav a,.site-footer .footer-nav a{min-height:30px!important}
  .footer-legal-col .legal-item{margin-bottom:6px}
  .footer-payments{margin-top:6px!important}
  .footer-bottom{padding-top:10px!important;gap:4px!important}
}

/* ---- v2: «نحن هنا لمساعدتك» أسفل عمود «التجارة الإلكترونية والضريبة» (سطح المكتب والتابلت) ---- */
@media (min-width:801px){
  .site-footer .footer-grid{grid-template-columns:minmax(240px,1.6fr) repeat(2,minmax(120px,1fr));gap:22px clamp(28px,4vw,60px);align-items:start}
  .site-footer .footer-grid>.footer-brand,.site-footer .footer-grid>.footer-nav:nth-child(2){grid-row:1/3}
  .site-footer .footer-grid>.footer-legal-col{grid-column:3;grid-row:1}
  .site-footer .footer-grid>.footer-legal-col+.footer-nav{grid-column:3;grid-row:2}
}
@media (min-width:641px) and (max-width:800px){
  .site-footer .footer-grid{grid-template-columns:1fr 1fr;gap:22px 20px;align-items:start}
  .site-footer .footer-grid>.footer-brand{grid-column:1/-1}
  .site-footer .footer-grid>.footer-nav:nth-child(2){grid-row:span 2}
}
