/*
Theme Name: Happy Pleas
Theme URI: https://happy-pleas.local
Author: Happy Pleas Team
Description: ثيم مخصص خفيف وسريع لمتجر أدوات منزلية، متوافق بالكامل مع WooCommerce، مبني بأقل كود ممكن لأقصى سرعة تحميل. يدعم RTL بالكامل.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: happy-pleas
Tags: e-commerce, custom-background, custom-logo, rtl-language-support
*/

/* =========================================
   Design Tokens - نظام الألوان والخطوط
   ========================================= */
:root{
  /* الألوان الأساسية - بالوان مرحة زي اللوجو (أخضر / برتقالي / كريمي) */
  --hp-clay:#f2600c;          /* برتقالي حيوي - اللون الأساسي (أزرار، روابط) */
  --hp-clay-dark:#d14f09;     /* برتقالي غامق - حالة hover */
  --hp-sage:#5a9c1e;          /* أخضر منعش - لون ثانوي (شارات، تفاصيل) */
  --hp-sage-dark:#457815;
  --hp-linen:#fdf8ee;         /* خلفية كريمية فاتحة */
  --hp-linen-dark:#fbeed4;    /* خلفية أغمق شوية للأقسام المتبادلة */
  --hp-ink:#332b1c;           /* لون النص الأساسي - بني غامق دافئ مش أسود بحت */
  --hp-ink-light:#79705f;     /* نص ثانوي/وصف */
  --hp-white:#ffffff;
  --hp-border:#f0dfae;
  --hp-error:#d93a2b;
  --hp-success:#4a8f16;

  /* الخطوط */
  --hp-font-heading:'Markazi Text', 'Georgia', serif;
  --hp-font-body:'Tajawal', 'Segoe UI', sans-serif;

  /* المسافات */
  --hp-radius:10px;
  --hp-shadow:0 2px 10px rgba(58,51,43,.08);
  --hp-shadow-hover:0 6px 20px rgba(58,51,43,.14);
  --hp-container:1200px;
}

/* =========================================
   إعادة تعيين أساسية - خفيفة ومقصودة
   ========================================= */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--hp-linen);
  color:var(--hp-ink);
  font-family:var(--hp-font-body);
  font-size:16px;
  line-height:1.7;
  direction:rtl;
  text-align:right;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--hp-clay);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--hp-clay-dark)}
ul,ol{padding-inline-start:1.2em}

h1,h2,h3,h4,h5,h6{
  font-family:var(--hp-font-heading);
  color:var(--hp-ink);
  line-height:1.25;
  margin:0 0 .5em;
  font-weight:600;
}
h1{font-size:clamp(2rem,4vw,2.8rem)}
h2{font-size:clamp(1.6rem,3vw,2.2rem)}
h3{font-size:1.4rem}
p{margin:0 0 1em}

.hp-container{
  max-width:var(--hp-container);
  margin-inline:auto;
  padding-inline:20px;
}

/* صفحات ووكومرس (المتجر/المنتج) بتتغلف تلقائيًا في #primary/.content-area
   عن طريق WC نفسها بما إن الثيم بيدعم add_theme_support('woocommerce') —
   محتاجين نحط نفس الحاوية عليها عشان تفضل متوسطة زي باقي الموقع */
#primary.content-area,
.content-area{
  max-width:var(--hp-container);
  margin-inline:auto;
  padding-inline:20px;
  padding-block:30px;
}

/* عنوان صفحة المتجر وشريط الترتيب */
.woocommerce-products-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  margin-bottom:20px;
  padding-bottom:20px;
  border-bottom:1px solid var(--hp-border);
}
.woocommerce-products-header__title{
  margin:0;
}
.woocommerce-breadcrumb{
  color:var(--hp-ink-light);
  font-size:.85rem;
  margin-bottom:10px;
}
.woocommerce-breadcrumb a{color:var(--hp-ink-light)}
.woocommerce-result-count{
  color:var(--hp-ink-light);
  font-size:.9rem;
  margin:0;
}
.woocommerce-ordering select{
  padding:9px 14px;
  border:1px solid var(--hp-border);
  border-radius:var(--hp-radius);
  background:var(--hp-white);
  font-family:var(--hp-font-body);
  color:var(--hp-ink);
}

/* =========================================
   شريط الإعلانات فوق الهيدر
   ========================================= */
.hp-announcement-bar{
  background:var(--hp-ink);
  color:var(--hp-white);
  text-align:center;
  font-size:.85rem;
  font-weight:500;
  padding:8px 0;
}
.hp-announcement-bar-landing{
  background:var(--hp-clay, #f2600c);
  font-size:1rem;
  font-weight:700;
  padding:14px 0;
  position:sticky;
  top:0;
  z-index:100;
}

/* =========================================
   الهيدر
   ========================================= */
.hp-header{
  background:var(--hp-white);
  border-bottom:1px solid var(--hp-border);
  position:sticky;
  top:0;
  z-index:100;
}
.hp-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-block:16px;
}
.hp-logo{
  font-family:var(--hp-font-heading);
  font-size:1.8rem;
  font-weight:700;
  color:var(--hp-clay);
}
.hp-logo img{max-height:48px}

.hp-nav ul{
  display:flex;
  gap:28px;
  margin:0;
  padding:0;
  list-style:none;
}
.hp-nav a{
  color:var(--hp-ink);
  font-weight:500;
}
.hp-nav a:hover{color:var(--hp-clay)}

.hp-header-actions{
  display:flex;
  align-items:center;
  gap:18px;
}
.hp-cart-link{
  position:relative;
  font-weight:600;
  color:var(--hp-ink);
}
.hp-cart-count{
  background:var(--hp-clay);
  color:var(--hp-white);
  font-size:.7rem;
  border-radius:50%;
  width:18px;height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:absolute;
  top:-8px;
  inset-inline-start:-10px;
}

/* قائمة الموبايل */
.hp-menu-toggle{
  display:none;
  background:none;
  border:none;
  font-size:1.6rem;
  color:var(--hp-ink);
  cursor:pointer;
}

/* =========================================
   الأزرار
   ========================================= */
.hp-btn,
a.button,
button.button,
input[type="submit"],
.wp-block-button__link,
.single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce #respond input#submit{
  display:inline-block;
  background:var(--hp-clay) !important;
  color:var(--hp-white) !important;
  border:none !important;
  border-radius:var(--hp-radius);
  padding:12px 26px;
  font-family:var(--hp-font-body);
  font-weight:600;
  font-size:.95rem;
  cursor:pointer;
  transition:background .2s ease, transform .15s ease;
  opacity:1 !important;
}
.hp-btn:hover,
a.button:hover,
button.button:hover,
input[type="submit"]:hover,
.single_add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce ul.products li.product a.button:hover{
  background:var(--hp-clay-dark) !important;
  transform:translateY(-1px);
}
.hp-btn-outline{
  background:transparent;
  color:var(--hp-clay) !important;
  border:1.5px solid var(--hp-clay);
}

/* =========================================
   Hero Section
   ========================================= */
.hp-hero{
  background:var(--hp-linen-dark);
  padding:70px 0;
  text-align:center;
}
.hp-hero p{
  color:var(--hp-ink-light);
  font-size:1.1rem;
  max-width:600px;
  margin-inline:auto 1.5em;
}

/* عنوان الأقسام في الصفحة الرئيسية */
.hp-section-heading{
  text-align:center;
  margin-bottom:36px;
}
.hp-section-heading p{
  color:var(--hp-ink-light);
  font-size:1rem;
}

/* شريط الدعوة النهائية للتسوق */
.hp-cta-band{
  background:var(--hp-sage);
  color:var(--hp-white);
  text-align:center;
  padding:60px 0;
  margin-top:20px;
}
.hp-cta-band h2{color:var(--hp-white)}
.hp-cta-band p{
  color:var(--hp-white);
  opacity:.9;
  margin-bottom:1.5em;
}
.hp-cta-band .hp-btn{
  background:var(--hp-white) !important;
  color:var(--hp-sage-dark) !important;
}
.hp-cta-band .hp-btn:hover{
  background:var(--hp-linen) !important;
}

/* =========================================
   شبكة المنتجات
   ========================================= */
ul.products{
  display:flex !important;
  flex-wrap:wrap;
  gap:28px;
  list-style:none;
  padding:0;
  margin:0 0 40px;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product{
  position:relative;
  flex:0 1 260px !important;
  width:260px !important;
  max-width:260px !important;
  float:none !important;
  margin:0 !important;
  background:var(--hp-white);
  border-radius:var(--hp-radius);
  overflow:hidden;
  box-shadow:var(--hp-shadow);
  transition:box-shadow .2s ease, transform .2s ease;
  padding:16px 16px 22px;
  text-align:center;
}

/* شارة الخصم (تخفيضات) */
.hp-badge-sale{
  position:absolute;
  top:14px;
  inset-inline-start:14px;
  background:var(--hp-error);
  color:var(--hp-white);
  font-size:.75rem;
  font-weight:700;
  padding:5px 12px;
  border-radius:20px;
  z-index:2;
}
ul.products li.product:hover{
  box-shadow:var(--hp-shadow-hover);
  transform:translateY(-3px);
}
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product img.woocommerce-placeholder,
ul.products li.product img,
ul.products li.product img.woocommerce-placeholder{
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  border-radius:8px;
  margin-bottom:14px;
  aspect-ratio:1/1;
  object-fit:cover;
}
ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--hp-font-body);
  font-size:1.05rem;
  font-weight:600;
  color:var(--hp-ink);
  margin:8px 0 6px;
}
ul.products li.product .price,
ul.products li.product .price .woocommerce-Price-amount,
ul.products li.product .price ins{
  color:var(--hp-clay) !important;
  font-weight:700;
  font-size:1.05rem;
}
ul.products li.product .price del,
ul.products li.product .price del .woocommerce-Price-amount{
  color:var(--hp-ink-light) !important;
  opacity:.6;
  font-weight:400;
}
.single-product .price,
.single-product .price .woocommerce-Price-amount{
  color:var(--hp-clay) !important;
}
.badge-sage{
  display:inline-block;
  background:var(--hp-sage);
  color:var(--hp-white);
  font-size:.7rem;
  padding:3px 10px;
  border-radius:20px;
  margin-bottom:8px;
}

/* =========================================
   صفحة المنتج المفرد
   ========================================= */
.single-product .product{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  background:var(--hp-white);
  padding:30px;
  border-radius:var(--hp-radius);
  box-shadow:var(--hp-shadow);
}
.single-product .product_title{
  font-size:1.9rem;
  margin-bottom:.3em;
}
.single-product .price{
  font-size:1.6rem;
  color:var(--hp-clay);
  font-weight:700;
  margin-bottom:1em;
  display:block;
}
.single-product .price del{
  color:var(--hp-ink-light);
  opacity:.6;
  font-size:1.1rem;
  font-weight:400;
}
.single-product .price ins{text-decoration:none}
.single-product .woocommerce-product-details__short-description{
  color:var(--hp-ink-light);
  margin-bottom:1.5em;
  line-height:1.8;
}
.single-product form.cart{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:1.5em;
  flex-wrap:wrap;
}
.single-product .quantity input{
  border:1px solid var(--hp-border);
  border-radius:var(--hp-radius);
  padding:10px;
  width:70px;
  text-align:center;
  height:46px;
}
.single-product .single_add_to_cart_button{
  height:46px;
}
.single-product .product_meta{
  color:var(--hp-ink-light);
  font-size:.85rem;
  padding-top:16px;
  margin-top:16px;
  border-top:1px solid var(--hp-border);
}
.single-product .product_meta a{color:var(--hp-clay)}

/* صور المنتج والمعرض المصغّر */
.woocommerce-product-gallery__image{
  border-radius:var(--hp-radius);
  overflow:hidden;
  aspect-ratio: 1 / 1; /* بيحجز مساحة الصورة قبل ما تتحمل، عشان يمنع قفزة التصميم (CLS) */
  background:var(--hp-linen-dark);
}
.woocommerce-product-gallery__image img{
  border-radius:var(--hp-radius);
  width:100%;
  height:100%;
  object-fit:contain;
}
.flex-control-thumbs{
  display:flex;
  gap:10px;
  margin-top:10px;
  list-style:none;
  padding:0;
}
.flex-control-thumbs li{width:70px}
.flex-control-thumbs img{
  border-radius:6px;
  border:2px solid transparent;
  cursor:pointer;
}
.flex-control-thumbs img.flex-active{border-color:var(--hp-clay)}

/* تابات الوصف والتقييمات */
.woocommerce-tabs{
  margin-top:40px;
}
.woocommerce-tabs ul.tabs{
  display:flex;
  gap:8px;
  list-style:none;
  padding:0;
  margin:0 0 24px;
  border-bottom:1px solid var(--hp-border);
}
.woocommerce-tabs ul.tabs li{margin:0}
.woocommerce-tabs ul.tabs li a{
  display:inline-block;
  padding:12px 22px;
  color:var(--hp-ink-light);
  font-weight:600;
  border-radius:var(--hp-radius) var(--hp-radius) 0 0;
}
.woocommerce-tabs ul.tabs li.active a{
  color:var(--hp-clay);
  background:var(--hp-white);
  box-shadow:0 -2px 0 var(--hp-clay) inset;
}
.woocommerce-tabs .panel{
  background:var(--hp-white);
  padding:26px;
  border-radius:var(--hp-radius);
  box-shadow:var(--hp-shadow);
  line-height:1.8;
}

/* المنتجات المشابهة (Related products) */
.related.products{
  margin-top:60px;
}
.related.products > h2{
  text-align:center;
  margin-bottom:30px;
}
.related.products ul.products{
  justify-content:center;
}

/* =========================================
   السلة والدفع
   ========================================= */
table.shop_table{
  width:100%;
  border-collapse:collapse;
  background:var(--hp-white);
  border-radius:var(--hp-radius);
  overflow:hidden;
}
table.shop_table th{
  background:var(--hp-linen-dark);
  padding:14px;
  text-align:right;
}
table.shop_table td{
  padding:14px;
  border-top:1px solid var(--hp-border);
}
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea{
  width:100%;
  padding:11px 14px;
  border:1px solid var(--hp-border);
  border-radius:var(--hp-radius);
  font-family:var(--hp-font-body);
  background:var(--hp-white);
}
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus{
  outline:none;
  border-color:var(--hp-clay);
}

/* صفحة السلة (Cart) */
.woocommerce-cart-form table.shop_table td,
.woocommerce-cart-form table.shop_table th{
  text-align:center;
}
.woocommerce-cart-form table.shop_table td.product-name{text-align:right}
.cart_totals{
  background:var(--hp-white);
  padding:24px;
  border-radius:var(--hp-radius);
  box-shadow:var(--hp-shadow);
  margin-top:20px;
}
.cart_totals h2{margin-bottom:16px}
.wc-proceed-to-checkout .checkout-button{
  width:100%;
  text-align:center;
  font-size:1.05rem;
}
.coupon{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.coupon input#coupon_code{
  padding:11px 14px;
  border:1px solid var(--hp-border);
  border-radius:var(--hp-radius);
  font-family:var(--hp-font-body);
}
.product-remove a.remove{
  color:var(--hp-error) !important;
  font-weight:700;
  font-size:1.2rem;
}

/* =========================================
   الفوتر
   ========================================= */
.hp-footer{
  background:var(--hp-ink);
  color:var(--hp-linen);
  padding:50px 0 25px;
  margin-top:60px;
}
.hp-footer a{color:var(--hp-linen);opacity:.85}
.hp-footer a:hover{opacity:1;color:var(--hp-clay)}
.hp-footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:30px;
  margin-bottom:30px;
}
.hp-footer h4{
  color:var(--hp-white);
  font-family:var(--hp-font-body);
  font-size:1rem;
  margin-bottom:14px;
}
.hp-footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:20px;
  text-align:center;
  font-size:.85rem;
  opacity:.7;
}

/* =========================================
   كروت اختيار الكمية بخصم
   ========================================= */
.hp-bundle-selector{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:8px;
}
.hp-bundle-card{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:#fff;
  border:2px solid rgba(0,0,0,.1);
  border-radius:12px;
  padding:14px 16px;
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.hp-bundle-card input[type="radio"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.hp-bundle-card.hp-bundle-selected{
  border-color:var(--hp-clay, #f2600c);
  background:#fff3e8;
}
.hp-bundle-popular{ border-color:rgba(242,96,12,.4); }
.hp-bundle-badge{
  position:absolute;
  top:-11px;
  right:14px;
  background:var(--hp-clay, #f2600c);
  color:#fff;
  font-size:.7rem;
  font-weight:700;
  padding:3px 10px;
  border-radius:999px;
}
.hp-bundle-title{
  font-weight:700;
  font-size:.95rem;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.hp-bundle-discount{
  font-size:.75rem;
  color:#4a8f16;
  font-weight:700;
}
.hp-bundle-price{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  font-weight:700;
  font-size:1rem;
  color:var(--hp-clay, #f2600c);
}
.hp-bundle-price del{
  font-size:.75rem;
  font-weight:400;
  color:#999;
  opacity:.8;
}
.hp-bundle-per-unit{
  font-size:.7rem;
  font-weight:400;
  color:#777;
  margin-top:2px;
}

/* =========================================
   قسم فورم الطلب المستقل (بعرض الصفحة الكامل تحت الجاليري)
   ========================================= */
.hp-order-form-section{
  max-width:640px;
  margin:60px auto 80px;
  padding:0 20px;
}
.hp-scroll-cta{
  display:block;
  text-align:center;
  text-decoration:none;
}

/* =========================================
   هيدر فورم الطلب (شارة + عنوان + وصف)
   ========================================= */
.hp-order-heading{
  text-align:center;
  margin-top:0;
  margin-bottom:6px;
}
.hp-order-badge{
  display:inline-block;
  background:var(--hp-linen, #fdf8ee);
  color:var(--hp-clay, #f2600c);
  font-size:.8rem;
  font-weight:700;
  padding:7px 16px;
  border-radius:999px;
  margin-bottom:14px;
}
.hp-order-heading h2{
  font-size:1.6rem;
  margin:0 0 8px;
}
.hp-order-heading p{
  font-size:.9rem;
  opacity:.7;
  margin:0;
}
.hp-order-price-display{
  text-align:center;
  margin:18px 0 22px;
}
.hp-order-price-amount{
  font-size:1.8rem;
  font-weight:800;
  color:var(--hp-clay, #f2600c);
  display:block;
}
.hp-order-price-note{
  font-size:.8rem;
  opacity:.65;
}

/* =========================================
   فورم الشراء المباشر (صفحة المنتج)
   ========================================= */
.hp-honeypot-field{
  position:absolute;
  left:-9999px;
  top:-9999px;
  height:0;
  width:0;
  overflow:hidden;
}
.hp-direct-order-form{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin-top:16px;
}
.hp-quantity-box{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:20px;
}
.hp-fields-box{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:26px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.hp-form-row{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.hp-form-row label{
  font-size:.95rem;
  font-weight:600;
}
.hp-form-row input,
.hp-form-row textarea,
.hp-form-row select{
  padding:16px 18px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:10px;
  font-family:var(--hp-font-body);
  font-size:1.05rem;
  background:#fff;
  width:100%;
}
.hp-form-row select{
  appearance:none;
  background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 14px center;
  background-size:18px;
  padding-left:40px;
}
.hp-form-row input:focus,
.hp-form-row textarea:focus,
.hp-form-row select:focus{
  outline:none;
  border-color:var(--hp-clay, #f2600c);
}
.hp-form-row input::placeholder,
.hp-form-row textarea::placeholder{
  color:#aaa;
  opacity:1;
}
.hp-qty-row{max-width:160px}
.hp-qty-row input{padding:16px 18px; font-size:1.1rem}

/* نقط سريعة قبل السعر */
.hp-quick-bullets{
  list-style:none;
  margin:10px 0 14px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.hp-quick-bullets li{
  font-size:.95rem;
  line-height:1.5;
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.hp-buy-now-btn{
  margin-top:6px;
  padding:16px 20px;
  font-size:1.05rem;
  font-weight:700;
  border:none;
  border-radius:12px;
  background:var(--hp-clay, #f2600c);
  color:#fff;
  cursor:pointer;
  transition:transform .15s ease, opacity .15s ease;
}
.hp-buy-now-btn:hover{opacity:.92}
.hp-buy-now-btn:active{transform:scale(.98)}
.hp-form-note{
  font-size:.8rem;
  opacity:.7;
  text-align:center;
  margin:0;
}

/* =========================================
   شارات الثقة (صفحة الإعلان)
   ========================================= */
.hp-trust-badges{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:18px;
  padding-top:18px;
  border-top:1px dashed rgba(0,0,0,.12);
}
.hp-trust-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.9rem;
  font-weight:600;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:999px;
  padding:8px 14px;
}
.hp-trust-icon{font-size:1.1rem}

/* =========================================
   قسم المميزات + الأسئلة الشائعة (صفحة الإعلان)
   ========================================= */
.hp-benefits-section,
.hp-faq-section{
  max-width:900px;
  margin:50px auto;
  padding:0 20px;
}
.hp-section-title{
  font-family:var(--hp-font-heading, inherit);
  font-size:2rem;
  text-align:center;
  margin-bottom:36px;
  font-weight:700;
}
.hp-benefits-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}
.hp-benefits-list li{
  display:flex;
  align-items:center;
  gap:14px;
  background:#fff;
  border:1px solid rgba(0,0,0,.07);
  border-radius:16px;
  padding:22px;
  font-size:1rem;
  line-height:1.6;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
  transition:transform .15s ease, box-shadow .15s ease;
}
.hp-benefits-list li:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(0,0,0,.08);
}
.hp-check{
  flex-shrink:0;
  width:30px;
  height:30px;
  border-radius:50%;
  background:var(--hp-clay, #f2600c);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.85rem;
  font-weight:700;
}
.hp-quick-bullets .hp-check{
  width:auto;
  height:auto;
  border-radius:0;
  background:none;
  color:var(--hp-clay, #f2600c);
  font-size:1em;
}
.hp-faq-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.hp-faq-item{
  background:#fff;
  border:1px solid rgba(0,0,0,.1);
  border-radius:12px;
  padding:14px 18px;
}
.hp-faq-item summary{
  cursor:pointer;
  font-weight:700;
  list-style:none;
}
.hp-faq-item summary::-webkit-details-marker{display:none}
.hp-faq-item summary::after{
  content:'+';
  float:left;
  font-size:1.3rem;
  color:var(--hp-clay, #f2600c);
}
.hp-faq-item[open] summary::after{content:'−'}
.hp-faq-item p{
  margin:10px 0 0;
  font-size:.9rem;
  line-height:1.6;
  opacity:.85;
}

/* =========================================
   جملة الجذب + رسالة الإلحاح (صفحة الإعلان)
   ========================================= */
.hp-product-tagline{
  font-size:1.15rem;
  font-weight:600;
  color:var(--hp-clay, #f2600c);
  margin:6px 0 14px;
  line-height:1.5;
}
.hp-urgency-badge{
  display:inline-block;
  background:#fdecea;
  color:#c0392b;
  font-size:.85rem;
  font-weight:700;
  padding:6px 14px;
  border-radius:999px;
  margin:8px 0 4px;
}
.hp-stock-display{
  font-size:.85rem;
  font-weight:600;
  color:#4a8f16;
  margin:4px 0 8px;
}
.hp-stock-display.hp-stock-low{ color:#c0392b; }

/* =========================================
   اقتراح منتج بعد الشراء (صفحة الشكر)
   ========================================= */
.hp-upsell-section{
  max-width:500px;
  margin:30px auto;
  padding:24px;
  background:var(--hp-linen, #fdf8ee);
  border-radius:16px;
  text-align:center;
}
.hp-upsell-section h3{
  margin:0 0 6px;
  font-size:1.2rem;
}
.hp-upsell-note{
  font-size:.85rem;
  opacity:.7;
  margin:0 0 18px;
}
.hp-upsell-card{
  background:#fff;
  border-radius:14px;
  padding:16px;
  display:flex;
  align-items:center;
  gap:14px;
  text-align:right;
}
.hp-upsell-card img{
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:10px;
  flex-shrink:0;
}
.hp-upsell-info{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.hp-upsell-name{ font-weight:700; font-size:.9rem; }
.hp-upsell-price{ color:var(--hp-clay, #f2600c); font-weight:700; font-size:.9rem; }
.hp-upsell-card form{ flex-shrink:0; }
.hp-upsell-card .hp-buy-now-btn{
  padding:10px 16px;
  font-size:.85rem;
  margin:0;
  white-space:nowrap;
}

/* =========================================
   إشعارات "ناس اشترت المنتج ده" (Social Proof)
   ========================================= */
.hp-social-proof{
  position:fixed;
  bottom:20px;
  left:20px;
  z-index:997;
  max-width:280px;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .3s ease, transform .3s ease;
  pointer-events:none;
}
.hp-social-proof.hp-social-proof-visible{
  opacity:1;
  transform:translateY(0);
}
.hp-social-proof-toast{
  background:#fff;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.15);
  padding:14px 16px;
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:.85rem;
  line-height:1.5;
}
.hp-social-proof-icon{ font-size:1.3rem; flex-shrink:0; }
.hp-social-proof-time{ font-size:.75rem; opacity:.6; margin-top:2px; }
@media (max-width:820px){
  .hp-social-proof{ bottom:80px; left:12px; max-width:230px; }
}

/* =========================================
   تأمين احتياطي: إخفاء أزرار الدفع/الإلغاء في تفاصيل الأوردر
   (الحل الأساسي في functions.php، ده طبقة أمان زيادة بس)
   ========================================= */
.woocommerce-order-details .button.pay,
.woocommerce-order-details .button.cancel{
  display:none !important;
}

/* =========================================
   زرار الواتساب العائم
   ========================================= */
.hp-whatsapp-float{
  position:fixed;
  bottom:20px;
  right:20px;
  width:56px;
  height:56px;
  background:#25D366;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.25);
  z-index:998;
  transition:transform .15s ease;
}
.hp-whatsapp-float:hover{ transform:scale(1.08); }
/* على الموبايل، ارفع زرار الواتساب شوية عشان مايتغطاش لو شريط الشراء الثابت ظاهر */
@media (max-width:820px){
  .hp-whatsapp-float{ bottom:80px; }
}

/* =========================================
   شريط الشراء الثابت (موبايل)
   ========================================= */
.hp-sticky-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:-100px;
  background:#fff;
  box-shadow:0 -4px 18px rgba(0,0,0,.12);
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  z-index:999;
  transition:bottom .25s ease;
}
.hp-sticky-bar.hp-sticky-visible{ bottom:0; }
.hp-sticky-info{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.hp-sticky-name{
  font-size:.85rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:180px;
}
.hp-sticky-price{
  font-weight:700;
  color:var(--hp-clay, #f2600c);
  font-size:.95rem;
}
.hp-sticky-btn{
  background:var(--hp-clay, #f2600c);
  color:#fff;
  padding:12px 24px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  flex-shrink:0;
}
/* الشريط الثابت يظهر بس على الموبايل، على الديسكتوب مالوش لازمة */
@media (min-width:821px){
  .hp-sticky-bar{ display:none; }
}

/* =========================================
   قسم فيديو صفحة الإعلان (يوتيوب)
   ========================================= */
.hp-video-section{
  max-width:1100px;
  margin:60px auto;
  padding:0 20px;
}
.hp-video-facade{
  position:relative;
  aspect-ratio:16/9;
  border-radius:16px;
  overflow:hidden;
  cursor:pointer;
  background:#000;
}
.hp-video-facade img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:opacity .2s ease;
}
.hp-video-facade:hover img{ opacity:.75; }
.hp-video-facade iframe{
  width:100%;
  height:100%;
  display:block;
  border:0;
}
.hp-video-play-btn{
  position:absolute;
  top:50%;
  right:50%;
  transform:translate(50%,-50%);
  width:74px;
  height:74px;
  border-radius:50%;
  background:rgba(0,0,0,.55);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.6rem;
  pointer-events:none;
}

/* =========================================
   قسم المشاكل والحلول (أيقونات)
   ========================================= */
.hp-problems-section,
.hp-solutions-section{
  max-width:1100px;
  margin:80px auto;
  padding:0 20px;
}
.hp-solutions-section{
  background:var(--hp-linen, #fdf8ee);
  padding:60px 24px;
  border-radius:24px;
}
.hp-icon-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:24px;
}
.hp-icon-card{
  background:#fff;
  border-radius:16px;
  padding:32px 22px;
  text-align:center;
  border:1px solid rgba(0,0,0,.06);
}
.hp-icon-card-solution{
  border-color:var(--hp-clay, #f2600c);
}
.hp-icon-card-emoji{
  font-size:2.6rem;
  display:block;
  margin-bottom:14px;
}
.hp-icon-card-image{
  width:84px;
  height:84px;
  object-fit:contain;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  margin:0 auto 14px;
  display:block;
  padding:8px;
}
.hp-icon-card h3{
  font-size:1.1rem;
  margin:0 0 10px;
}
.hp-icon-card p{
  font-size:.9rem;
  opacity:.75;
  line-height:1.6;
  margin:0;
}
.hp-section-cta{
  text-align:center;
  margin-top:30px;
}
.hp-inline-cta{
  display:inline-block;
}

/* =========================================
   قسم قبل وبعد
   ========================================= */
.hp-before-after-section{
  max-width:700px;
  margin:80px auto;
  padding:0 20px;
  text-align:center;
}
.hp-before-after-image{
  width:100%;
  height:auto;
  border-radius:18px;
  display:block;
}

/* =========================================
   معرض صور المميزات (صور كبيرة حقيقية)
   ========================================= */
.hp-feature-gallery-section{
  max-width:1100px;
  margin:80px auto;
  padding:0 20px;
}
.hp-feature-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:24px;
}
.hp-feature-gallery-item{
  margin:0;
  text-align:center;
}
.hp-feature-gallery-item img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:16px;
  display:block;
  margin-bottom:14px;
}
.hp-feature-gallery-item figcaption{
  font-weight:700;
  font-size:1rem;
}

/* =========================================
   كروت المقارنة (منتجنا مقابل البدائل)
   ========================================= */
.hp-comparison-section{
  max-width:900px;
  margin:80px auto;
  padding:0 20px;
}
.hp-comparison-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.hp-comparison-card{
  border-radius:18px;
  padding:26px 22px;
}
.hp-comparison-card h3{
  margin:0 0 18px;
  font-size:1.1rem;
  text-align:center;
}
.hp-comparison-card ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.hp-comparison-card li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:.92rem;
  line-height:1.6;
}
.hp-comparison-icon{
  flex-shrink:0;
  font-weight:700;
}
.hp-comparison-card-us{
  background:var(--hp-clay, #f2600c);
  color:#fff;
}
.hp-comparison-card-us h3{ color:#fff; }
.hp-comparison-card-us .hp-comparison-icon{ color:#fff; }
.hp-comparison-card-them{
  background:var(--hp-linen, #fdf8ee);
  color:#777;
}
.hp-comparison-card-them .hp-comparison-icon{ color:#a3403f; }
@media (max-width:600px){
  .hp-comparison-cards{ grid-template-columns:1fr; }
}

/* =========================================
   آراء العملاء
   ========================================= */
.hp-testimonials-section{
  max-width:1150px;
  margin:80px auto;
  padding:0 20px;
}
.hp-testimonials-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:22px;
}
.hp-testimonial-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:26px;
}
.hp-stars{
  color:#f5a623;
  letter-spacing:3px;
  margin-bottom:12px;
  font-size:1.05rem;
}
.hp-testimonial-text{
  font-size:.95rem;
  line-height:1.7;
  margin:0 0 16px;
}
.hp-testimonial-meta{
  display:flex;
  justify-content:space-between;
  font-size:.8rem;
  opacity:.7;
}
.hp-testimonial-name{font-weight:700}

/* =========================================
   الدعوة الأخيرة للشراء
   ========================================= */
.hp-final-cta-section{
  text-align:center;
  max-width:750px;
  margin:80px auto;
  padding:64px 24px;
  background:var(--hp-clay, #f2600c);
  border-radius:24px;
  color:#fff;
}
.hp-final-cta-section h2{
  margin:0 0 24px;
  font-size:2rem;
}
.hp-final-cta-section .hp-buy-now-btn{
  background:#fff;
  color:var(--hp-clay, #f2600c);
}
.hp-final-cta-note{
  margin:14px 0 0;
  font-size:.85rem;
  opacity:.9;
}

/* =========================================
   استجابة الموبايل
   ========================================= */
@media (max-width:820px){
  .hp-nav{display:none}
  .hp-section-title{font-size:1.5rem; margin-bottom:24px}
  .hp-problems-section,
  .hp-solutions-section,
  .hp-comparison-section,
  .hp-testimonials-section,
  .hp-final-cta-section{ margin:48px auto; }
  .hp-bundle-card{ padding:12px 14px; }
  .hp-menu-toggle{display:block}
  .single-product .product{grid-template-columns:1fr}
  ul.products{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}

  /* فورم الطلب على الموبايل — خانات أقصر شوية عشان الفورم متطولش */
  .hp-form-row input,
  .hp-form-row textarea,
  .hp-form-row select{
    padding:11px 14px;
    font-size:.95rem;
  }
  .hp-fields-box{ padding:18px; gap:12px; }
  .hp-quantity-box{ padding:14px; }
  .hp-form-row{ gap:5px; }
  .hp-form-row label{ font-size:.85rem; }
}
