/* YusefWeb WooCommerce shop system */
.yw-shop-archive-shell{padding:64px 0 88px}
.yw-shop-header{position:relative;margin-bottom:34px;padding:34px 38px;border:1px solid rgba(18,105,232,.12);border-radius:24px;background:linear-gradient(135deg,#fff 0%,#f5f8ff 100%);overflow:hidden}
.yw-shop-header:after{content:"";position:absolute;width:230px;height:230px;left:-85px;top:-105px;border-radius:50%;background:radial-gradient(circle,rgba(18,105,232,.13),transparent 68%);pointer-events:none}
.yw-shop-eyebrow{display:block;margin-bottom:7px;color:var(--yw-secondary);font-size:16px;font-weight:900}
.yw-shop-header .page-title{margin:0;color:var(--yw-dark);font-size:clamp(30px,4vw,48px);line-height:1.35}
.yw-shop-header .term-description{max-width:820px;margin-top:12px;color:var(--yw-muted)}
.yw-products-grid-wrap{--yw-shop-cols:4}
.woocommerce .yw-products-grid-wrap ul.products,
.woocommerce .yw-shop-archive-shell ul.products{display:grid!important;grid-template-columns:repeat(var(--yw-shop-cols),minmax(0,1fr));gap:24px;margin:0!important;padding:0!important}
.woocommerce .yw-products-grid-wrap ul.products:before,
.woocommerce .yw-products-grid-wrap ul.products:after,
.woocommerce .yw-shop-archive-shell ul.products:before,
.woocommerce .yw-shop-archive-shell ul.products:after{display:none!important}
.woocommerce ul.products li.product.yw-product-card{float:none!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.yw-product-card-inner{height:100%;display:flex;flex-direction:column;border:1px solid var(--yw-border);border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 12px 35px rgba(7,26,53,.065);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.yw-product-card-inner:hover{transform:translateY(-6px);border-color:rgba(18,105,232,.25);box-shadow:0 24px 55px rgba(11,58,145,.14)}
.yw-product-media{position:relative;min-height:210px;background:#f7f9fd;overflow:hidden}
.yw-product-media>a{display:block;height:100%}
.yw-product-media img{display:block;width:100%!important;height:230px!important;margin:0!important;object-fit:cover;transition:transform .35s ease}
.yw-product-card-inner:hover .yw-product-media img{transform:scale(1.035)}
.yw-product-media .onsale{top:14px!important;right:14px!important;left:auto!important;min-width:auto!important;min-height:auto!important;padding:5px 11px!important;border-radius:999px!important;background:var(--yw-accent)!important;font-size:16px!important;line-height:1.6!important}
.yw-project-product-badge{position:absolute;left:14px;top:14px;z-index:3;display:inline-flex;padding:6px 11px;border-radius:999px;background:linear-gradient(135deg,var(--yw-secondary),var(--yw-primary));color:#fff;font-size:16px;font-weight:850;box-shadow:0 8px 18px rgba(11,58,145,.2)}
.yw-product-content{flex:1;display:flex;flex-direction:column;padding:21px 21px 19px}
.woocommerce ul.products li.product.yw-product-card .woocommerce-loop-product__title{margin:0 0 8px!important;padding:0!important;color:var(--yw-dark);font-size:18px!important;line-height:1.65;font-weight:900}
.yw-product-excerpt{margin-bottom:14px;color:var(--yw-muted);font-size:16px;line-height:1.9}
.woocommerce ul.products li.product.yw-product-card .star-rating{margin:0 0 12px}
.woocommerce ul.products li.product.yw-product-card .price{display:block;margin:auto 0 14px!important;color:var(--yw-primary)!important;font-size:16px!important;font-weight:900}
.woocommerce ul.products li.product.yw-product-card .price del{color:#98a2b3;opacity:.8}
.woocommerce ul.products li.product.yw-product-card .price ins{text-decoration:none}
.yw-product-actions{margin-top:auto}
.woocommerce ul.products li.product.yw-product-card .button{width:100%;display:flex;align-items:center;justify-content:center;min-height:46px;margin:0!important;border-radius:12px;background:linear-gradient(135deg,var(--yw-secondary),var(--yw-primary));font-weight:850;box-shadow:0 10px 24px rgba(18,105,232,.2)}
.woocommerce ul.products li.product.yw-product-card .added_to_cart{display:block;margin-top:9px;text-align:center;font-size:16px;font-weight:800}
.yw-shop-style-glass .yw-product-card-inner{border-color:rgba(255,255,255,.74);background:rgba(255,255,255,.78);backdrop-filter:blur(16px);box-shadow:0 16px 45px rgba(11,58,145,.11)}
.yw-shop-style-glass .yw-shop-archive-shell{position:relative}
.yw-shop-style-glass .yw-shop-archive-shell:before{content:"";position:absolute;inset:0 -5vw;z-index:-1;background:radial-gradient(circle at 10% 10%,rgba(18,105,232,.1),transparent 36%),radial-gradient(circle at 90% 45%,rgba(255,101,0,.08),transparent 32%)}
.yw-shop-style-minimal .yw-product-card-inner{border-color:transparent;border-radius:12px;box-shadow:none}
.yw-shop-style-minimal .yw-product-card-inner:hover{border-color:var(--yw-border);box-shadow:0 15px 35px rgba(7,26,53,.08)}
.yw-shop-style-minimal .yw-product-content{padding-inline:8px}
.yw-elementor-product-card{list-style:none}
.yw-elementor-product-card>.elementor{height:100%}
.yw-elementor-shop-archive{min-height:50vh}
.yw-elementor-shop-archive>.elementor{width:100%}
.woocommerce .woocommerce-result-count{color:var(--yw-muted);font-size:16px}
.woocommerce .woocommerce-ordering select{min-width:210px;background:#fff}
.woocommerce nav.woocommerce-pagination ul{display:flex;gap:8px;border:0!important}
.woocommerce nav.woocommerce-pagination ul li{border:0!important}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{display:grid;place-items:center;min-width:42px;height:42px;padding:0 12px;border:1px solid var(--yw-border);border-radius:11px;background:#fff;color:var(--yw-primary);font-weight:800}
.woocommerce nav.woocommerce-pagination ul li span.current{border-color:var(--yw-primary);background:var(--yw-primary);color:#fff}
.ywp-package-product-notice{margin:18px 0;padding:16px 18px;border:1px solid rgba(18,105,232,.16);border-radius:15px;background:#f5f8ff;color:#31415d}
@media(max-width:1100px){.woocommerce .yw-products-grid-wrap ul.products,.woocommerce .yw-shop-archive-shell ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}.woocommerce.yw-shop-cols-2 .yw-products-grid-wrap ul.products,.woocommerce.yw-shop-cols-2 .yw-shop-archive-shell ul.products,body.yw-shop-cols-2 .yw-products-grid-wrap ul.products,body.yw-shop-cols-2 .yw-shop-archive-shell ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.yw-shop-archive-shell{padding:38px 0 65px}.yw-shop-header{padding:25px 22px}.woocommerce .yw-products-grid-wrap ul.products,.woocommerce .yw-shop-archive-shell ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.yw-product-media img{height:190px!important}.yw-product-content{padding:16px}.woocommerce ul.products li.product.yw-product-card .woocommerce-loop-product__title{font-size:15px!important}.yw-product-excerpt{display:none}}
@media(max-width:480px){.woocommerce .yw-products-grid-wrap ul.products,.woocommerce .yw-shop-archive-shell ul.products{grid-template-columns:1fr}.yw-product-media img{height:240px!important}}

/* 2.6.9 — stable shop layout, category navigation and centred product cards */
.yw-shop-archive-shell{position:relative;isolation:isolate}
.yw-shop-categories{margin:0 0 30px;padding:22px;border:1px solid rgba(18,105,232,.12);border-radius:24px;background:#fff;box-shadow:0 14px 42px rgba(7,26,53,.07)}
.yw-shop-categories__head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}
.yw-shop-categories__head span{display:block;color:var(--yw-secondary);font-size:16px;font-weight:900}
.yw-shop-categories__head h2{margin:3px 0 0;color:var(--yw-dark);font-size:20px;line-height:1.5}
.yw-shop-categories__head>a{flex:0 0 auto;padding:8px 12px;border-radius:10px;background:var(--yw-light);font-size:16px;font-weight:900;text-decoration:none!important}
.yw-shop-categories__track{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:11px}
.yw-shop-category{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:11px;min-width:0;padding:11px;border:1px solid #e5ebf5;border-radius:16px;background:#f9fbff;color:var(--yw-dark)!important;text-decoration:none!important;transition:.2s ease}
.yw-shop-category:hover,.yw-shop-category.is-active{transform:translateY(-2px);border-color:rgba(18,105,232,.36);background:#eef5ff;box-shadow:0 10px 25px rgba(18,105,232,.1)}
.yw-shop-category__icon{display:grid;width:48px;height:48px;place-items:center;overflow:hidden;border-radius:14px;background:linear-gradient(135deg,#e8f1ff,#dce9ff);color:var(--yw-secondary);font-size:17px}
.yw-shop-category.is-active .yw-shop-category__icon{background:linear-gradient(135deg,var(--yw-secondary),var(--yw-primary));color:#fff}
.yw-shop-category__icon.has-image{background:#edf3fd}
.yw-shop-category__icon img{width:100%;height:100%;object-fit:cover}
.yw-shop-category__copy{min-width:0}.yw-shop-category__copy strong,.yw-shop-category__copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yw-shop-category__copy strong{color:var(--yw-dark);font-size:16px;font-weight:900}.yw-shop-category__copy small{margin-top:4px;color:#78869b;font-size:16px}
.woocommerce .yw-shop-archive-shell .woocommerce-notices-wrapper+*{clear:both}
.woocommerce .yw-shop-archive-shell .woocommerce-result-count,.woocommerce .yw-shop-archive-shell .woocommerce-ordering{float:none!important;margin:0!important}
.woocommerce .yw-shop-archive-shell .woocommerce-result-count{display:flex;align-items:center;min-height:48px;padding:0 15px;border:1px solid var(--yw-border);border-radius:13px;background:#fff}
.woocommerce .yw-shop-archive-shell .woocommerce-ordering select{height:48px;min-width:230px;padding:0 14px;border:1px solid var(--yw-border);border-radius:13px;color:var(--yw-dark);background:#fff}
.woocommerce .yw-shop-archive-shell>.woocommerce-result-count,.woocommerce .yw-shop-archive-shell>.woocommerce-ordering{margin-bottom:24px!important}
.woocommerce .yw-shop-archive-shell ul.products,.woocommerce .yw-products-grid-wrap ul.products{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),285px))!important;justify-content:center!important;align-items:stretch}
.woocommerce .yw-shop-archive-shell ul.products li.product,.woocommerce .yw-products-grid-wrap ul.products li.product{max-width:285px;width:100%!important}
.yw-product-card-inner{width:100%}
.woocommerce .yw-shop-archive-shell:after{content:"";display:block;clear:both}
@media(min-width:781px){.woocommerce .yw-shop-archive-shell>.woocommerce-result-count{float:right!important}.woocommerce .yw-shop-archive-shell>.woocommerce-ordering{float:left!important}.woocommerce .yw-shop-archive-shell>ul.products{clear:both;padding-top:24px!important}}
@media(max-width:780px){.yw-shop-categories{padding:16px}.yw-shop-categories__head{align-items:center}.yw-shop-categories__head h2{font-size:17px}.yw-shop-categories__track{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:4px;scrollbar-width:thin}.yw-shop-category{flex:0 0 205px;scroll-snap-align:start}.woocommerce .yw-shop-archive-shell .woocommerce-ordering,.woocommerce .yw-shop-archive-shell .woocommerce-ordering select,.woocommerce .yw-shop-archive-shell .woocommerce-result-count{width:100%}.woocommerce .yw-shop-archive-shell>.woocommerce-result-count,.woocommerce .yw-shop-archive-shell>.woocommerce-ordering{margin-bottom:10px!important}.woocommerce .yw-shop-archive-shell>ul.products{padding-top:14px!important}}
@media(max-width:480px){.woocommerce .yw-shop-archive-shell ul.products,.woocommerce .yw-products-grid-wrap ul.products{grid-template-columns:minmax(0,1fr)!important}.woocommerce .yw-shop-archive-shell ul.products li.product,.woocommerce .yw-products-grid-wrap ul.products li.product{max-width:100%}}
body.woocommerce-shop,body.post-type-archive-product,body.tax-product_cat,body.tax-product_tag{background:#f5f8ff!important}
body.woocommerce-shop .yw-main,body.post-type-archive-product .yw-main,body.tax-product_cat .yw-main,body.tax-product_tag .yw-main{background:linear-gradient(180deg,#f5f8ff 0%,#fff 100%)!important}


/* 2.7.2 — right category sidebar and service-card panel */
.yw-shop-layout{display:grid;grid-template-columns:minmax(230px,280px) minmax(0,1fr);gap:24px;align-items:start;direction:rtl}
.yw-shop-sidebar{position:sticky;top:112px;min-width:0}
.yw-shop-sidebar .yw-shop-categories{margin:0;padding:18px;border-radius:22px;box-shadow:0 15px 42px rgba(7,26,53,.075)}
.yw-shop-sidebar .yw-shop-categories__head{display:block;margin-bottom:14px;padding-bottom:13px;border-bottom:1px solid #e7edf6}
.yw-shop-sidebar .yw-shop-categories__head>div{min-width:0}
.yw-shop-sidebar .yw-shop-categories__head h2{font-size:18px}
.yw-shop-sidebar .yw-shop-categories__head>a{display:inline-flex;margin-top:10px;font-size:13px}
.yw-shop-sidebar .yw-shop-categories__track{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
.yw-shop-sidebar .yw-shop-category{grid-template-columns:42px minmax(0,1fr);padding:10px;border-radius:14px}
.yw-shop-sidebar .yw-shop-category__icon{width:42px;height:42px;border-radius:12px}
.yw-shop-sidebar .yw-shop-category__copy strong{font-size:14px;font-weight:700}
.yw-shop-sidebar .yw-shop-category__copy small{font-size:12px}
.yw-shop-products-panel{min-width:0;padding:24px;border:1px solid rgba(18,105,232,.12);border-radius:24px;background:#fff;box-shadow:0 15px 45px rgba(7,26,53,.065)}
.yw-shop-products-panel__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #e8eef6}
.yw-shop-products-panel__head span{display:block;color:var(--yw-secondary);font-size:14px;font-weight:700}
.yw-shop-products-panel__head h2{margin:4px 0 0;color:var(--yw-dark);font-size:24px;line-height:1.45}
.yw-shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.woocommerce .yw-shop-products-panel .woocommerce-result-count,.woocommerce .yw-shop-products-panel .woocommerce-ordering{float:none!important;margin:0!important}
.woocommerce .yw-shop-products-panel .woocommerce-result-count{display:flex;min-height:46px;padding:0 14px;align-items:center;border:1px solid var(--yw-border);border-radius:12px;background:#f9fbff}
.woocommerce .yw-shop-products-panel .woocommerce-ordering select{height:46px;min-width:210px;padding:0 13px;border:1px solid var(--yw-border);border-radius:12px;background:#fff}
.woocommerce .yw-shop-products-panel ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;justify-content:stretch!important;align-items:stretch!important;margin:0!important;padding:0!important}
.woocommerce .yw-shop-products-panel ul.products li.product{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important}
.yw-shop-products-panel .yw-product-card-inner{border-radius:18px;box-shadow:0 10px 28px rgba(7,26,53,.065)}
.yw-shop-products-panel .yw-product-media{min-height:0}
.yw-shop-products-panel .yw-product-media img{height:205px!important}
.yw-shop-products-panel .yw-product-content{padding:17px}

@media(max-width:1050px){
  .yw-shop-layout{grid-template-columns:230px minmax(0,1fr);gap:18px}
  .woocommerce .yw-shop-products-panel ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
  .yw-shop-layout{grid-template-columns:minmax(0,1fr)}
  .yw-shop-sidebar{position:static}
  .yw-shop-sidebar .yw-shop-categories{padding:15px}
  .yw-shop-sidebar .yw-shop-categories__head{display:flex;align-items:center;justify-content:space-between;gap:10px}
  .yw-shop-sidebar .yw-shop-categories__head>a{margin-top:0}
  .yw-shop-sidebar .yw-shop-categories__track{display:flex;overflow-x:auto;gap:9px;padding-bottom:4px;scroll-snap-type:x proximity;scrollbar-width:thin}
  .yw-shop-sidebar .yw-shop-category{flex:0 0 210px;scroll-snap-align:start}
  .yw-shop-products-panel{padding:18px}
}
@media(max-width:640px){
  .yw-shop-archive-shell{padding-top:28px}
  .yw-shop-header{margin-bottom:18px;padding:21px 18px;border-radius:19px}
  .yw-shop-products-panel{padding:12px;border-radius:18px}
  .yw-shop-products-panel__head{margin-bottom:12px;padding:4px 3px 12px}
  .yw-shop-products-panel__head h2{font-size:19px}
  .yw-shop-toolbar{display:grid;grid-template-columns:minmax(0,1fr);margin-bottom:13px}
  .woocommerce .yw-shop-products-panel .woocommerce-ordering,.woocommerce .yw-shop-products-panel .woocommerce-ordering select,.woocommerce .yw-shop-products-panel .woocommerce-result-count{width:100%!important;min-width:0!important}
  .woocommerce .yw-shop-products-panel ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .yw-shop-products-panel .yw-product-media img{height:135px!important}
  .yw-shop-products-panel .yw-product-content{padding:10px}
  .woocommerce .yw-shop-products-panel ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;line-height:1.65!important;margin-bottom:5px!important}
  .woocommerce .yw-shop-products-panel ul.products li.product .price{font-size:12px!important;margin-bottom:9px!important}
  .woocommerce .yw-shop-products-panel ul.products li.product .button{min-height:39px!important;padding:7px 5px!important;font-size:12px!important;border-radius:10px!important}
  .yw-shop-products-panel .yw-project-product-badge,.yw-shop-products-panel .onsale{top:8px!important;font-size:11px!important;padding:4px 7px!important}
}
@media(max-width:370px){
  .woocommerce .yw-shop-products-panel ul.products{gap:7px!important}
  .yw-shop-products-panel .yw-product-media img{height:116px!important}
  .yw-shop-products-panel .yw-product-content{padding:8px}
}
.yw-shop-toolbar>.woocommerce-notices-wrapper{flex:0 0 100%;width:100%}

/* =========================================================
   YusefWeb Card-to-Card Gateway compatibility — v2.7.7
   ========================================================= */
body.ycc-card-payment-page .site-main,
body.ycc-card-payment-page .site-content,
body.ycc-card-payment-page .content-area,
body.ycc-card-payment-page .yw-main,
body.ycc-card-payment-page .yw-content{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
body.ycc-card-payment-page .ycc-payment-page{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.woocommerce-checkout #payment .payment_method_yusefweb_card_to_card>label,
.wc-block-checkout__payment-method .ycc-block-label{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.woocommerce-checkout #payment .payment_method_yusefweb_card_to_card>label img{
  float:none!important;
  width:40px!important;
  height:40px!important;
  max-width:40px!important;
  max-height:40px!important;
  margin:0 0 0 8px!important;
  padding:3px!important;
  border:1px solid #dbe7f7!important;
  border-radius:12px!important;
  background:#fff!important;
  object-fit:contain!important;
}
.payment_method_yusefweb_card_to_card .payment_box{
  margin-top:12px!important;
  border:1px solid #dbe7f7!important;
  border-radius:16px!important;
  background:#f7faff!important;
  color:#203653!important;
}
.payment_method_yusefweb_card_to_card .payment_box:before{
  border-bottom-color:#dbe7f7!important;
}
body.ycc-card-payment-page .woocommerce-error,
body.ycc-card-payment-page .woocommerce-message,
body.ycc-card-payment-page .woocommerce-info{
  width:min(1120px,calc(100% - 28px))!important;
  margin:0 auto 18px!important;
  border-radius:15px!important;
}
@media(max-width:600px){
  .woocommerce-checkout #payment .payment_method_yusefweb_card_to_card>label img{
    width:34px!important;
    height:34px!important;
    max-width:34px!important;
    max-height:34px!important;
  }
  .payment_method_yusefweb_card_to_card .payment_box{
    padding:12px!important;
  }
}
