/* Sepahan v1.1.29 - targeted fixes: shop card overlap/title clamp + single product variations */
:root{--sepahan-blue:#2563eb;--sepahan-border:#e5e7eb;--sepahan-text:#0f172a;--sepahan-muted:#64748b;--sepahan-card:#fff;--sepahan-soft:#f8fafc}.dark,body.dark{--sepahan-border:#334155;--sepahan-text:#f8fafc;--sepahan-muted:#cbd5e1;--sepahan-card:#0f172a;--sepahan-soft:#111827}
/* shop cards: keep the previous look, only prevent button/price overlap and fully clamp titles */
.woocommerce ul.products li.product.sepahan-product-card,
.sepahan-products-grid ul.products li.product.sepahan-product-card{display:flex!important;height:auto!important;min-height:0!important;overflow:visible!important}
.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-inner,
.sepahan-product-card .sepahan-product-inner{display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;min-height:286px!important;max-height:none!important;overflow:hidden!important;box-sizing:border-box!important}
.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-img,
.sepahan-product-card .sepahan-product-img{height:112px!important;min-height:112px!important;max-height:112px!important;padding:8px!important;box-sizing:border-box!important}
.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-img img,
.sepahan-product-card .sepahan-product-img img{max-height:96px!important;width:auto!important;object-fit:contain!important}
.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-body,
.sepahan-product-card .sepahan-product-body{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;padding:7px 10px 8px!important;gap:6px!important;box-sizing:border-box!important;overflow:hidden!important}
.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-title,
.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-title a,
.sepahan-product-card .sepahan-product-title,
.sepahan-product-card .sepahan-product-title a{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;word-break:normal!important;height:auto!important;min-height:40px!important;max-height:40px!important;line-height:20px!important;margin:0!important;font-size:12px!important;font-weight:900!important;color:var(--sepahan-text)!important;text-decoration:none!important}
.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-meta-row,
.sepahan-product-card .sepahan-product-meta-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:end!important;min-height:44px!important;margin-top:auto!important;overflow:hidden!important}
.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-price,
.sepahan-product-card .sepahan-product-price{min-width:0!important;max-width:100%!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:1px!important;line-height:1.45!important}
.sepahan-product-card .sepahan-product-price del{order:1!important;display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:10.5px!important;color:#94a3b8!important;text-decoration-color:#94a3b8!important}
.sepahan-product-card .sepahan-product-price ins,.sepahan-product-card .sepahan-product-price>.amount{order:2!important;display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-decoration:none!important;color:var(--sepahan-blue)!important;font-size:12px!important;font-weight:900!important}
.sepahan-product-card .sepahan-product-rating{white-space:nowrap!important;align-self:end!important;font-size:10.5px!important;line-height:1!important}
.woocommerce ul.products li.product.sepahan-product-card .sepahan-card-actions,
.sepahan-product-card .sepahan-card-actions{position:static!important;display:grid!important;grid-template-columns:1fr 38px!important;gap:8px!important;padding:0 10px 10px!important;margin-top:auto!important;z-index:1!important;box-sizing:border-box!important;flex:0 0 auto!important;transform:none!important}
.sepahan-product-card .sepahan-card-btn{height:32px!important;min-height:32px!important;border-radius:10px!important;font-size:11px!important;line-height:1!important;padding:0 8px!important;box-sizing:border-box!important}.sepahan-product-card .sepahan-card-btn-icon{width:38px!important;min-width:38px!important;padding:0!important}.sepahan-product-card .sepahan-card-btn-icon svg{width:16px!important;height:16px!important}
/* single product variations: one attribute per row, label then all values inline, before add-to-cart */
.single-product .sepahan-nikan-cart form.variations_form{display:flex!important;flex-direction:column!important;gap:10px!important;width:100%!important;overflow:visible!important}.single-product .sepahan-nikan-cart table.variations{order:1!important;display:block!important;width:100%!important;margin:0 0 8px!important;padding:0!important;border:0!important}.single-product .sepahan-nikan-cart table.variations tbody{display:block!important;width:100%!important}.single-product .sepahan-nikan-cart table.variations tr{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;gap:10px!important;margin:0 0 9px!important;padding:0!important;border:0!important;background:transparent!important}.single-product .sepahan-nikan-cart table.variations th.label,.single-product .sepahan-nikan-cart table.variations th{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 auto!important;width:auto!important;min-width:42px!important;max-width:none!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;text-align:right!important;white-space:nowrap!important}.single-product .sepahan-nikan-cart table.variations th label{font-size:13px!important;font-weight:900!important;color:var(--sepahan-text)!important;line-height:1!important;margin:0!important}.single-product .sepahan-nikan-cart table.variations td.value,.single-product .sepahan-nikan-cart table.variations td{display:flex!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;position:relative!important;overflow:visible!important}.single-product .sepahan-nikan-cart table.variations select{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;overflow:hidden!important}.single-product .sepahan-nikan-cart .sepahan-variation-buttons{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;width:100%!important;margin:0!important;padding:0!important;max-height:none!important;overflow:visible!important}.single-product .sepahan-nikan-cart .sepahan-variation-buttons:not(:first-of-type){display:none!important}.single-product .sepahan-nikan-cart .sepahan-variation-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:38px!important;height:30px!important;min-height:30px!important;padding:0 10px!important;border:1px solid var(--sepahan-border)!important;border-radius:10px!important;background:var(--sepahan-card)!important;color:var(--sepahan-text)!important;font-size:12px!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important;box-shadow:none!important}.single-product .sepahan-nikan-cart .sepahan-variation-btn.is-active{border-color:var(--sepahan-blue)!important;background:#eff6ff!important;color:var(--sepahan-blue)!important}.dark .single-product .sepahan-nikan-cart .sepahan-variation-btn.is-active,body.dark .single-product .sepahan-nikan-cart .sepahan-variation-btn.is-active{background:#172554!important;color:#bfdbfe!important}.single-product .sepahan-nikan-cart .single_variation_wrap{order:2!important;width:100%!important}.single-product .sepahan-nikan-cart .woocommerce-variation-add-to-cart{display:flex!important;width:100%!important;margin-top:4px!important}.single-product .sepahan-nikan-cart .single_add_to_cart_button{width:100%!important;max-width:100%!important}.single-product .sepahan-nikan-cart .reset_variations{display:none!important}
@media(max-width:767px){.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-inner,.sepahan-product-card .sepahan-product-inner{min-height:250px!important}.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-img,.sepahan-product-card .sepahan-product-img{height:86px!important;min-height:86px!important;max-height:86px!important}.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-img img,.sepahan-product-card .sepahan-product-img img{max-height:76px!important}.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-title,.woocommerce ul.products li.product.sepahan-product-card .sepahan-product-title a,.sepahan-product-card .sepahan-product-title,.sepahan-product-card .sepahan-product-title a{font-size:11px!important;line-height:18px!important;min-height:36px!important;max-height:36px!important}.sepahan-product-card .sepahan-product-price ins,.sepahan-product-card .sepahan-product-price>.amount{font-size:10.5px!important}.sepahan-product-card .sepahan-product-price del{font-size:9.5px!important}.sepahan-product-card .sepahan-product-rating{font-size:9.5px!important}.sepahan-product-card .sepahan-card-actions{grid-template-columns:1fr 34px!important;gap:6px!important}.sepahan-product-card .sepahan-card-btn{height:28px!important;font-size:10px!important}.sepahan-product-card .sepahan-card-btn-icon{width:34px!important;min-width:34px!important}.single-product .sepahan-nikan-cart table.variations tr{gap:7px!important}.single-product .sepahan-nikan-cart .sepahan-variation-btn{height:28px!important;min-height:28px!important;min-width:34px!important;padding:0 8px!important;font-size:11px!important}}
