/* CSS is deliberately scoped to this shortcode; no other WooCommerce page changes. */
.wcspg { direction:rtl; }
.wcspg ul.products { display:grid; grid-template-columns:repeat(var(--wcspg-columns),minmax(0,1fr)); gap:24px; margin:0; padding:0; }
.wcspg ul.products::before,.wcspg ul.products::after { display:none; }
.wcspg ul.products li.product { width:auto!important; float:none!important; margin:0!important; background:#fff; border:1px solid #eee; border-radius:18px; overflow:hidden; transition:.3s ease; box-shadow:0 4px 18px rgba(0,0,0,.05); padding-bottom:15px; }
.wcspg ul.products li.product:hover { transform:translateY(-6px); box-shadow:0 14px 35px rgba(0,0,0,.12); }
.wcspg ul.products li.product>a:not(.button) { display:block; padding:0; color:inherit; text-decoration:none; overflow:hidden; }
.wcspg ul.products li.product img { margin:0!important; border-radius:16px 16px 0 0; transition:.35s; }
.wcspg ul.products li.product:hover img { transform:scale(1.04); }
.wcspg ul.products li.product h2,.wcspg ul.products li.product .woocommerce-loop-product__title { font-size:15px!important; font-weight:700; line-height:1.8; padding:12px 14px 6px!important; min-height:55px; }
.wcspg ul.products li.product .price { display:block; padding:0 14px; font-size:18px; font-weight:700; color:#d62828; }
.wcspg ul.products li.product .price del { color:#999; font-size:14px; margin-left:6px; }
.wcspg ul.products li.product .star-rating { margin:8px 14px!important; }
.wcspg ul.products li.product .button { display:block; margin:0!important; width:100%; border-radius:12px; background:var(--wcspg-button)!important; color:var(--wcspg-button-text)!important; padding:12px; text-align:center; transition:.3s; }
.wcspg ul.products li.product .button:hover { background:#d62828!important; }
.wcspg ul.products li.product > .button { margin:12px 14px 0!important; width:calc(100% - 28px); }
.wcspg-cart { display:flex; gap:8px; align-items:center; margin:12px 14px 0; }
.wcspg-cart .button { flex:1; min-width:0; height:42px; white-space:nowrap; }
.wcspg-cart .wcspg-quantity { display:flex!important; flex:0 0 88px; width:88px!important; height:42px; direction:ltr; align-items:center; border:1px solid #e5e7eb; border-radius:10px; overflow:hidden; background:#fff; }
.wcspg-cart .wcspg-quantity .quantity { display:block!important; width:28px!important; height:40px; margin:0!important; }
.wcspg-cart .wcspg-quantity input.qty { display:block; width:28px!important; min-width:28px; height:40px!important; min-height:40px!important; padding:0!important; border:0!important; text-align:center; font-size:14px; font-weight:700; -moz-appearance:textfield; }
.wcspg-quantity input.qty::-webkit-outer-spin-button,.wcspg-quantity input.qty::-webkit-inner-spin-button { margin:0; -webkit-appearance:none; }
.wcspg-qty-btn { flex:0 0 29px; width:29px; height:40px; padding:0; border:0; background:#f6f7f9; color:#111827; cursor:pointer; font-size:18px; line-height:1; }
.wcspg-qty-btn:hover { background:#e5e7eb; }
.wcspg .onsale { top:12px!important; right:12px!important; left:auto!important; background:linear-gradient(135deg,#ff3d3d,#d00000)!important; color:#fff!important; border-radius:999px!important; min-width:56px!important; min-height:56px!important; line-height:56px!important; padding:0!important; font-weight:700; box-shadow:0 8px 20px rgba(208,0,0,.35); }
.wcspg ul.products li.product.outofstock { opacity:.72; }
.wcspg ul.products li.product.outofstock .button { background:#888!important; }
.wcspg-pagination { margin-top:30px; text-align:center; direction:rtl; }
.wcspg-pagination ul { display:inline-flex; gap:0; margin:0; padding:0; list-style:none; border:none!important; }
.wcspg-pagination li { border:none!important; margin:0 4px; }
.wcspg-pagination a,.wcspg-pagination span { display:block; width:42px; height:42px; line-height:42px; border:none!important; border-radius:50%; background:#f5f5f5; color:#374151; text-decoration:none; }
.wcspg-pagination .current,.wcspg-pagination a:hover { background:var(--wcspg-button); color:var(--wcspg-button-text); }
.wcspg-empty { padding:18px; border:1px dashed #d1d5db; border-radius:10px; text-align:center; }
@media (max-width:768px) { .wcspg ul.products { grid-template-columns:repeat(var(--wcspg-mobile-columns),minmax(0,1fr)); gap:14px; } .wcspg ul.products li.product { border-radius:14px; } .wcspg ul.products li.product h2,.wcspg ul.products li.product .woocommerce-loop-product__title { font-size:14px!important; min-height:48px; } .wcspg ul.products li.product .price { font-size:14px; padding:0 9px; } .wcspg-cart { gap:5px; margin:10px 9px 0; } .wcspg ul.products li.product .button { height:38px; padding:8px 4px; font-size:11px; } .wcspg-cart .wcspg-quantity { flex-basis:74px; width:74px!important; height:38px; border-radius:9px; } .wcspg-cart .wcspg-quantity .quantity,.wcspg-cart .wcspg-quantity input.qty { width:24px!important; min-width:24px; height:36px!important; min-height:36px!important; font-size:12px; } .wcspg-qty-btn { flex-basis:24px; width:24px; height:36px; font-size:15px; } }
