/*
Theme Name: MohDigital
Theme URI: https://example.com/
Author: MohDigital
Author URI: https://example.com/
Description: Lightweight WooCommerce-ready theme for digital downloads. Vibrant palette + white background.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mohdigital
Tags: e-commerce, woocommerce, one-column, custom-colors, custom-logo
*/

:root{
  --pink:#FFDBFD;
  --lav:#C9BEFF;
  --blue:#8494FF;
  --white:#FFFFFF;
  --text:#121218;
  --muted:#6b6b75;
  --radius:18px;
  --shadow: 0 12px 28px rgba(0,0,0,.07);
  --border: 1px solid rgba(132,148,255,.22);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:var(--white);
  color:var(--text);
  line-height:1.5;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}

.site-name{
  font-weight:900;
  font-size:18px;
  letter-spacing:.2px;
  padding: 10px;
}


/* استثناء اللوغو من القاعدة العامة */
.custom-logo,
.custom-logo-link img{
  max-width:none ;
  width:34px ;
  height:34px ;
  object-fit:contain ;
}
.product-card .thumb img{
width:100px;
height:200px;
object-fit:cover;
border-radius:12px;
}
.container{max-width:1160px;margin:0 auto;padding:0 18px}

.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:12px}
/* FORCE logo size in header (override any WP inline sizes) */
header .brand,
.topbar .brand{
  display:flex;
  align-items:center;
  font-weight:900;
  letter-spacing:.2px
}

/* اخفاء المربع اللوني القديم */
header .brand .logo,
.topbar .brand .logo{
  display:none ;
}

/* قفل حجم الشعار */
header .brand .custom-logo-link,
.topbar .brand .custom-logo-link{
  display:flex ;
  align-items:center ;
  flex:0 0 auto ;
}

header .brand .custom-logo-link img,
.topbar .brand .custom-logo-link img{
  width:34px ;
  height:34px;
  max-width:34px ;
  max-height:34px ;
  object-fit:contain ;
  display:block ;
}

.navlinks{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.navlinks a{padding:10px 12px;border-radius:12px;color:var(--muted);font-weight:800}
.navlinks a:hover{background:rgba(201,190,255,.25);color:var(--text)}


.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.pill{display:inline-flex;align-items:center;gap:10px;padding:10px 12px;border-radius:999px;border: var(--border);background:#fff}
.iconbtn{width:42px;height:42px;border-radius:14px;border: var(--border);background:#fff;display:grid;place-items:center}
.iconbtn:hover{background:rgba(255,219,253,.35)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 16px;border-radius:14px;border:0;cursor:pointer;font-weight:900}
.btn.primary{background:var(--blue);color:#fff;box-shadow: var(--shadow)}
.btn.primary:hover{background:var(--lav);color:#1a1a1a}
.btn.ghost{background:rgba(201,190,255,.22);color:var(--text)}
.btn.ghost:hover{background:rgba(255,219,253,.5)}



.section{padding:26px 0}
.sectionHead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin: 8px 0 12px}
.sectionHead h2{margin:0;font-size:22px;letter-spacing:-.3px}
.sectionHead p{margin:0;color:var(--muted);font-weight:800}

.hero{padding:42px 0 12px}
.heroMain{padding:28px;background: linear-gradient(135deg, rgba(255,219,253,.65), rgba(201,190,255,.45), rgba(132,148,255,.22))}
.h1{font-size:44px;line-height:1.08;margin:0 0 10px;font-weight:1000;letter-spacing:-.8px}
.sub{color:rgba(20,20,23,.78);font-weight:800;margin:0 0 18px;max-width:60ch}
.heroCtas{display:flex;gap:12px;flex-wrap:wrap}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}
.kpi{padding:14px;border-radius:14px;background:rgba(255,255,255,.68);border: 1px solid rgba(0,0,0,.05)}
.kpi b{display:block;font-size:18px}
.kpi span{color:var(--muted);font-weight:800;font-size:13px}

.footer{padding:26px 0;border-top:1px solid rgba(0,0,0,.06)}
.footGrid{display:grid;grid-template-columns: 1.2fr 1fr 1fr 1fr;gap:16px}
.footGrid h4{margin:0 0 8px}
.footGrid a{display:block;color:var(--muted);font-weight:800;padding:6px 0}
.footGrid a:hover{color:var(--text)}
.copy{margin-top:14px;color:var(--muted);font-weight:800;font-size:12px}
.social-icons{
  margin-top:10px;
  display:flex;
  gap:12px;
}

.social-icons a{
  font-size:20px;
  color:var(--text);
  transition:.2s;
}

.social-icons a:hover{
  color:var(--blue);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit{
  background:var(--blue) ;
  border-radius:var(--radius);
  border:none ;
  color:#fff ;
  padding:12px 16px ;
  font-weight:900 ;
  box-shadow: var(--shadow);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover{
  background:var(--lav) ;
  color:#1a1a1a ;
}
.woocommerce ul.products li.product{
  background:#fff;
  border:var(--border);
  border-radius:14px;
  padding:6px;
  box-shadow:var(--shadow);
  max-width:180px;
}

.woocommerce ul.products li.product img{
  width:100%;
  height:90px;
  object-fit:cover;
  border-radius:10px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:14px;
  line-height:1.2;
  margin:8px 0 4px;
}

.woocommerce ul.products li.product .price{
  font-size:14px;
  margin-bottom:6px;
}

.woocommerce ul.products li.product .posted_in{
  display:none !important;
}

.woocommerce ul.products li.product .button{
  padding:8px 10px;
  font-size:13px;
  border-radius:12px;
}
.added_to_cart.wc-forward {
    display: none !important;
}
.woocommerce span.onsale{
  background:var(--pink) ;
  color:#1a1a1a ;
  border-radius:999px ;
  padding:6px 10px ;
}
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info{
  border-left:4px solid var(--blue);
  border-top:none !important;
  border-right:none !important;
  border-bottom:none !important;
  background:rgba(201,190,255,.25);
  border-radius:var(--radius);
  padding:16px 20px;
  font-weight:800;
  color:var(--text);
  box-shadow:var(--shadow);
}

/* زر Undo داخل الرسالة */
.woocommerce .woocommerce-message a,
.woocommerce .woocommerce-info a{
  color:var(--blue);
  font-weight:900;
  margin-left:6px;
}

.woocommerce .woocommerce-message a:hover,
.woocommerce .woocommerce-info a:hover{
  color:var(--lav);
}

/* إزالة الأيقونة الافتراضية */
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before{
  display:none;
}

input, textarea, select{
  border-radius:var(--radius);
  border:1px solid rgba(0,0,0,.12);
  padding:10px 12px;
  font-weight:700;
}
@media (max-width: 980px){
  .footGrid{grid-template-columns:1fr 1fr}
  .h1{font-size:38px}
}
@media (max-width: 520px){
  .footGrid{grid-template-columns:1fr}
  .navlinks{display:none}
}
/* =========================
   Custom Cart Design
========================= */

.cart-page{
  padding:48px 0 70px;
}

.cart-page-title{
  text-align:center;
  margin:0 0 28px;
  font-size:100px;
  line-height:1.1;
  font-weight:900;
  color:var(--text);
}

.cart-shell{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:24px;
  box-shadow:0 12px 28px rgba(0,0,0,.07);
  padding:32px;
  
}

.cart-custom-table{
  width:100%;
  border-collapse:collapse;
  border:none !important;
  margin:0;
}

.cart-custom-table thead th{
  font-size:13px;
  color:var(--muted);
  font-weight:800;
  text-align:left;
  padding:0 12px 16px;
  border-bottom:1px solid rgba(0,0,0,.08);
  background:transparent !important;
}

.cart-custom-table td{
  padding:22px 12px;
  vertical-align:middle;
  border-bottom:1px solid rgba(0,0,0,.08);
  background:transparent !important;
}

.cart-custom-table .product-thumbnail{
  width:90px;
}

.cart-custom-table .product-thumbnail img{
  width:72px;
  height:auto;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.06);
  display:block;
}

.cart-item-title a,
.cart-item-title{
  font-size:20px;
  font-weight:900;
  color:var(--text);
  text-decoration:none;
}

.cart-item-sub{
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
}

.cart-custom-table .product-quantity{
  width:150px;
}

.cart-custom-table .quantity{
  display:inline-flex;
  align-items:center;
}

.cart-custom-table .quantity .qty{
  width:84px;
  min-height:46px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  text-align:center;
  font-weight:800;
  background:#fff;
}

.cart-custom-table .product-remove{
  width:90px;
  text-align:center;
}

.cart-custom-table .product-remove a.remove{
  width:42px !important;
  height:42px !important;
  display:inline-grid !important;
  place-items:center;
  border-radius:14px !important;
  background:rgba(255,219,253,.45);
  color:var(--text) !important;
  font-size:24px !important;
  line-height:1 !important;
  font-weight:900;
}

.cart-custom-table .product-remove a.remove:hover{
  background:var(--pink) !important;
  color:var(--text) !important;
}

.cart-custom-table .product-price{
  width:120px;
}

.cart-price{
  font-size:24px;
  font-weight:900;
  color:var(--text);
}

.cart-summary-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:28px 0 20px;
}

.cart-stat{
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  background:#fff;
  padding:18px 20px;
  min-height:92px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.cart-stat span{
  font-size:13px;
  color:var(--muted);
  margin-bottom:8px;
}

.cart-stat strong{
  font-size:30px;
  line-height:1;
  color:var(--text);
  font-weight:900;
}

.cart-actions-grid{
  display:grid;
  grid-template-columns:1.7fr .9fr;
  gap:18px;
  align-items:start;
  margin-top:16px;
}

.cart-coupon-box{
  border-top:1px solid rgba(0,0,0,.06);
  padding-top:18px;
}

.cart-coupon-label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:10px;
}

.cart-coupon-row{
  display:grid;
  grid-template-columns:1fr 200px;
  gap:12px;
}

.cart-coupon-row input.input-text{
  width:100%;
  min-height:54px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  padding:0 18px;
  font-size:15px;
}

.cart-buttons-box{
  display:grid;
  gap:10px;
}

.cart-btn{
  min-height:54px ;
  display:flex ;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-radius:16px ;
  font-size:15px ;
  font-weight:900 ;
  text-decoration:none ;
  border:1px solid transparent ;
  box-shadow:none ;
  padding:12px 18px ;
}

.cart-btn-primary{
  background:var(--blue) ;
  color:#fff ;
}

.cart-btn-primary:hover{
  background:#7384ff ;
  color:#fff ;
}

.cart-btn-soft{
  background:var(--lav) ;
  color:var(--text) ;
}

.cart-btn-soft:hover{
  background:var(--pink) ;
  color:var(--text) ;
}

.cart-btn-light{
  background:rgba(132,148,255,.18) ;
  color:var(--text) ;
}

.cart-btn-light:hover{
  background:rgba(132,148,255,.3) ;
  color:var(--text) ;
}

.cart-btn-outline{
  background:#fff ;
  border-color:rgba(0,0,0,.1) ;
  color:var(--text) ;
}

.cart-btn-outline:hover{
  border-color:var(--lav) ;
  background:rgba(201,190,255,.15) ;
  color:var(--text) ;
}

/* hide default totals/collaterals if theme/plugin prints them elsewhere */
.cart-page .cart-collaterals{
  display:none ;
}

/* responsive */
@media (max-width: 980px){
  .cart-actions-grid{
    grid-template-columns:1fr;
  }

  .cart-coupon-row{
    grid-template-columns:1fr;
  }

  .cart-summary-row{
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px){
  .cart-shell{
    padding:18px;
    border-radius:18px;
  }

  .cart-page-title{
    font-size:32px;
  }

  .cart-custom-table thead{
    display:none;
  }

  .cart-custom-table,
  .cart-custom-table tbody,
  .cart-custom-table tr,
  .cart-custom-table td{
    display:block;
    width:100%;
  }

  .cart-custom-table tr{
    padding:14px 0;
    border-bottom:1px solid rgba(0,0,0,.08);
  }

  .cart-custom-table td{
    border:none;
    padding:8px 0;
  }

  .cart-custom-table .product-thumbnail,
  .cart-custom-table .product-remove,
  .cart-custom-table .product-price,
  .cart-custom-table .product-quantity{
    width:100%;
    text-align:left;
  }

  .cart-price{
    font-size:15px;
  }
}