/* Samruddhi Heritage – WooCommerce pages mapped to the approved design (loads after WooCommerce CSS) */

/* ---------- product grids ---------- */
body.sm ul.products{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin:0;padding:0;list-style:none}
body.sm ul.products::before,body.sm ul.products::after{display:none!important;content:none!important}
@media(min-width:600px){body.sm ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}}
@media(min-width:900px){body.sm ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}}
@media(min-width:1180px){body.sm ul.products.sm-grid,body.sm ul.products.columns-4{grid-template-columns:repeat(4,minmax(0,1fr));gap:30px}}
body.sm ul.products li.card.product{float:none;width:auto;margin:0;padding:0;text-align:left;list-style:none}
body.sm ul.products li.card.product[hidden]{display:none}
body.sm ul.products li.card .pic a{display:block;height:100%}
body.sm ul.products li.card .pic img{margin:0;width:100%;height:100%;object-fit:contain;box-shadow:none}
body.sm ul.products li.card .price{display:inline;color:var(--navy);font-family:var(--f-head);font-weight:700;font-size:1.45rem;margin:0}
body.sm ul.products li.card .price .woocommerce-Price-amount{color:inherit}
body.sm ul.products li.card .price.soon{font-size:1.05rem;color:#8A5A00}
body.sm ul.products li.card .price .from{font-size:.8rem;font-weight:500;color:var(--muted)}
body.sm ul.products li.card h3{padding:0;margin:-6px 0 0;font-size:1.15rem}
body.sm ul.products li.card .add.loading{opacity:.6;pointer-events:none}
body.sm ul.products li.card .add.notify{text-align:center}
@media(max-width:599px){body.sm ul.products li.card .price{font-size:1.25rem}}
body.sm ul.products.list{grid-template-columns:minmax(0,1fr)!important}

/* ---------- toolbar ---------- */
.woocommerce-result-count{margin:0!important;float:none!important;font-size:.92rem;color:var(--muted)}
.woocommerce-ordering{margin:0!important;float:none!important}
.woocommerce-ordering select{min-height:42px;padding:0 34px 0 14px;border:1px solid var(--line);border-radius:999px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337228A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/16px;-webkit-appearance:none;appearance:none;font:inherit;font-size:.9rem;color:var(--ink)}
.woocommerce nav.woocommerce-pagination{margin-top:40px}
.woocommerce nav.woocommerce-pagination ul{border:0;display:inline-flex;gap:8px}
.woocommerce nav.woocommerce-pagination ul li{border:0;overflow:visible}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{display:grid;place-items:center;min-width:44px;height:44px;padding:0 10px;border-radius:50%;border:1px solid var(--line);background:#fff;font-weight:600;color:var(--ink)}
.woocommerce nav.woocommerce-pagination ul li span.current,.woocommerce nav.woocommerce-pagination ul li a:hover{background:var(--amber);border-color:var(--amber);color:#fff}
.woocommerce-info,.woocommerce-message,.woocommerce-error,.woocommerce-noreviews,p.no-comments{border:0;border-left:4px solid var(--green);border-radius:12px;background:var(--mint);color:var(--ink);padding:16px 20px 16px 52px;margin:0 0 24px;list-style:none}
.woocommerce-error{border-left-color:#C0392B;background:#FDECEC}
.woocommerce-info{border-left-color:var(--blue);background:#E6F4FA}
.woocommerce-info::before,.woocommerce-message::before,.woocommerce-error::before{top:16px;left:20px;color:inherit}
.woocommerce-message .button,.woocommerce-info .button{float:right;margin-left:12px}

/* ---------- buttons ---------- */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 26px;border-radius:999px;border:0;background:var(--amber);color:#fff;font-family:var(--f-head);font-weight:600;font-size:.95rem;line-height:1.2;text-decoration:none;transition:background-color .2s,transform .2s}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:var(--amber-d);color:#fff}
.woocommerce button.button:disabled,.woocommerce button.button:disabled[disabled],.woocommerce button.button.alt.disabled{background:#D9D4E8;color:#fff;opacity:1;padding:0 26px}
.woocommerce button.button[name="update_cart"],.woocommerce button.button[name="apply_coupon"]{background:var(--navy)}

/* ---------- single product ---------- */
body.sm.single-product div.product{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;align-items:start}
@media(min-width:960px){body.sm.single-product div.product{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px}}
body.sm div.product div.images,body.sm div.product div.summary{float:none;width:auto;margin:0}
body.sm div.product > .woocommerce-tabs,body.sm div.product > .related,body.sm div.product > .upsells,body.sm div.product > .price-note{grid-column:1/-1}
@media(min-width:960px){body.sm div.product div.images{position:sticky;top:120px}}
body.sm div.product div.images .woocommerce-product-gallery__wrapper{border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden}
body.sm div.product div.images .woocommerce-product-gallery__image img{padding:6%;background:#fff}
body.sm div.product div.images .flex-control-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}
body.sm div.product div.images .flex-control-thumbs li{width:auto;float:none}
body.sm div.product div.images .flex-control-thumbs img{border:1.5px solid var(--line);border-radius:12px;padding:6px;background:#fff;opacity:1}
body.sm div.product div.images .flex-control-thumbs img.flex-active{border-color:var(--amber)}
body.sm div.product .woocommerce-product-gallery__trigger{top:16px;right:16px;background:#fff;border:1px solid var(--line)}
body.sm div.product span.onsale{display:none}
body.sm div.product div.summary{display:grid;gap:18px}
body.sm div.product div.summary > *{margin:0}
body.sm div.product .ccat{font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--green-d)}
body.sm div.product .product_title{font-size:clamp(1.9rem,3.6vw,2.6rem);font-weight:600;letter-spacing:-.02em;margin-top:-8px}
body.sm div.product p.price,body.sm div.product span.price{color:var(--navy);font-size:2rem;font-weight:700}
body.sm div.product p.price .from{font-size:1rem;font-weight:500;color:var(--muted)}
body.sm div.product .woocommerce-product-details__short-description{font-size:1.06rem;color:var(--muted);margin-top:-6px}
body.sm div.product .woocommerce-product-details__short-description p{margin:0}
body.sm div.product form.cart{display:grid;gap:18px;margin:0}
body.sm div.product form.cart::before,body.sm div.product form.cart::after{display:none}
body.sm div.product form.cart table.variations{margin:0;border:0}
body.sm div.product form.cart table.variations tr{display:grid;gap:10px}
body.sm div.product form.cart table.variations th,body.sm div.product form.cart table.variations td{display:block;padding:0;border:0;text-align:left;line-height:1.4}
body.sm div.product form.cart table.variations label{font-size:.82rem;font-weight:600;color:var(--ink)}
body.sm div.product form.cart .sm-has-pills select{position:absolute!important;width:1px;height:1px;opacity:0;pointer-events:none}
body.sm div.product form.cart .reset_variations{font-size:.85rem;color:var(--muted);margin-top:8px;display:inline-block}
body.sm div.product .single_variation_wrap{display:grid;gap:14px}
body.sm div.product .woocommerce-variation-price .price{font-size:1.5rem}
body.sm div.product .woocommerce-variation-add-to-cart,body.sm div.product form.cart:not(.variations_form){display:grid;grid-template-columns:auto 1fr 1fr;gap:12px}
@media(max-width:520px){body.sm div.product .woocommerce-variation-add-to-cart,body.sm div.product form.cart:not(.variations_form){grid-template-columns:1fr 1fr}body.sm div.product .quantity{grid-column:1/-1}}
body.sm div.product form.cart .button{min-height:54px;margin:0;float:none;width:100%}
body.sm div.product form.cart .sm-buy-now{background:var(--navy);min-height:54px}
body.sm div.product form.cart .sm-buy-now:hover{background:var(--night)}
.woocommerce .quantity.sm-qty{display:flex;align-items:center;border:1px solid var(--line);border-radius:999px;height:54px;background:#fff;float:none;margin:0}
.woocommerce .quantity.sm-qty button{width:44px;height:52px;border:0;background:none;font-size:1.2rem;font-weight:600;color:var(--navy);border-radius:999px;cursor:pointer}
.woocommerce .quantity.sm-qty button:hover{background:var(--cream)}
.woocommerce .quantity .qty{width:44px;border:0;text-align:center;font:inherit;font-weight:700;background:transparent;-moz-appearance:textfield}
.woocommerce .quantity .qty::-webkit-outer-spin-button,.woocommerce .quantity .qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
body.sm div.product .product_meta{display:grid;gap:6px;font-size:.88rem;color:var(--muted);padding-top:16px;border-top:1px solid var(--line)}
body.sm div.product .product_meta a{color:var(--navy)}
body.sm div.product .wa-line svg{width:22px;height:22px}
/* tabs */
body.sm div.product .woocommerce-tabs{margin-top:32px}
body.sm div.product .woocommerce-tabs ul.tabs{display:flex;gap:6px;margin:0;padding:0;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
body.sm div.product .woocommerce-tabs ul.tabs::before,body.sm div.product .woocommerce-tabs ul.tabs::after{display:none}
body.sm div.product .woocommerce-tabs ul.tabs li{flex:none;margin:0;padding:0;border:0;background:none;border-radius:0}
body.sm div.product .woocommerce-tabs ul.tabs li::before,body.sm div.product .woocommerce-tabs ul.tabs li::after{display:none}
body.sm div.product .woocommerce-tabs ul.tabs li a{display:block;padding:16px 22px;font-weight:600;color:var(--muted);border-bottom:3px solid transparent;margin-bottom:-1px}
body.sm div.product .woocommerce-tabs ul.tabs li.active a{color:var(--navy);border-bottom-color:var(--amber)}
body.sm div.product .woocommerce-tabs .panel{margin:0;padding-top:32px}
body.sm div.product .related > h2,body.sm div.product .upsells > h2{font-family:var(--f-display);font-size:clamp(1.9rem,3.8vw,2.8rem);font-weight:600;text-align:center;margin:40px 0 36px}
#reviews #comments ol.commentlist li .comment-text{border-radius:12px;border-color:var(--line)}
#review_form #respond textarea,#review_form #respond input[type=text],#review_form #respond input[type=email]{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;font:inherit}
.woocommerce #reviews #comments h2{font-size:1.2rem;font-weight:600}

/* ---------- cart ---------- */
.sm-woo-page .woocommerce{display:grid;gap:32px;align-items:start}
.sm-woo-page .woocommerce > .woocommerce-notices-wrapper,.sm-woo-page .woocommerce > .steps-bar{grid-column:1/-1}
.sm-woo-page .woocommerce > .steps-bar{margin-bottom:12px}
.woocommerce-cart .sm-woo-page .woocommerce{grid-template-columns:minmax(0,1fr)}
@media(min-width:1000px){.woocommerce-cart .sm-woo-page .woocommerce{grid-template-columns:minmax(0,1fr) 380px;gap:40px}}
.woocommerce-cart .sm-woo-page .cart-empty,.woocommerce-cart .sm-woo-page .return-to-shop{grid-column:1/-1;text-align:center}
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:16px;border-collapse:separate;border-spacing:0;overflow:hidden;background:#fff;margin:0}
.woocommerce table.shop_table th{background:var(--cream);font-size:.78rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:14px 18px}
.woocommerce table.shop_table td{padding:18px;border-top:1px solid var(--line);vertical-align:middle}
.woocommerce table.cart img{width:84px;border:1px solid var(--line);border-radius:12px;padding:6px;background:#fff}
.woocommerce table.cart td.product-name a{font-weight:600;color:var(--ink);text-decoration:none}
.woocommerce table.cart td.product-subtotal{font-weight:700;color:var(--navy)}
.woocommerce a.remove{width:36px;height:36px;line-height:34px;border-radius:50%;border:1px solid var(--line);color:#B42318!important;font-size:1.2rem}
.woocommerce a.remove:hover{background:#FDECEC;color:#B42318!important}
.woocommerce table.cart td.actions{background:var(--cream)}
.woocommerce table.cart td.actions .coupon{display:flex;gap:8px;flex-wrap:wrap}
.woocommerce table.cart td.actions .coupon .input-text{width:auto;min-width:180px;min-height:46px;padding:0 16px;border:1px solid var(--line);border-radius:999px;font:inherit}
.woocommerce .quantity.sm-qty{height:44px}.woocommerce table.cart .quantity.sm-qty button{height:42px;width:36px}
.woocommerce .cart-collaterals,.woocommerce-page .cart-collaterals{width:auto;float:none}
.woocommerce .cart-collaterals .cart_totals{float:none;width:auto;border:1px solid var(--line);border-radius:16px;background:#fff;padding:26px 24px;box-shadow:0 20px 50px rgba(26,18,68,.06)}
@media(min-width:1000px){.woocommerce .cart-collaterals .cart_totals{position:sticky;top:120px}}
.woocommerce .cart-collaterals .cart_totals h2{font-size:1.25rem;font-weight:600;margin-bottom:12px}
.woocommerce .cart_totals table.shop_table{border:0;border-radius:0}
.woocommerce .cart_totals table.shop_table th,.woocommerce .cart_totals table.shop_table td{background:none;padding:12px 0;border-top:1px dashed var(--line);text-transform:none;letter-spacing:0;font-size:.95rem;color:var(--ink)}
.woocommerce .cart_totals .order-total td{font-size:1.4rem;font-weight:700;color:var(--navy)}
.woocommerce .wc-proceed-to-checkout{display:grid;gap:14px;padding-bottom:0}
.woocommerce .wc-proceed-to-checkout a.checkout-button{width:100%;font-size:1rem;margin:0;min-height:54px}
.woocommerce .wc-proceed-to-checkout .wa-line{justify-content:center}
.woocommerce .wc-proceed-to-checkout .wa-line svg{width:22px;height:22px}
.woocommerce .cross-sells{grid-column:1/-1}
@media(max-width:768px){
  .woocommerce table.shop_table_responsive tr td{padding:12px 16px}
  .woocommerce table.shop_table_responsive tr td::before{color:var(--muted);font-weight:600}
  .woocommerce table.cart td.product-thumbnail{display:block!important;text-align:left!important}
  .woocommerce table.cart td.product-thumbnail::before{display:none}
}

/* ---------- checkout ---------- */
.woocommerce-checkout form.checkout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px 40px;align-items:start}
@media(min-width:1000px){.woocommerce-checkout form.checkout{grid-template-columns:minmax(0,1fr) 400px}
  .woocommerce-checkout form.checkout #customer_details{grid-column:1;grid-row:1/span 3}
  .woocommerce-checkout form.checkout #order_review_heading{grid-column:2;grid-row:1}
  .woocommerce-checkout form.checkout #order_review{grid-column:2;grid-row:2;position:sticky;top:120px}}
.woocommerce-checkout form.checkout::before,.woocommerce-checkout form.checkout::after{display:none}
.woocommerce .col2-set{display:grid;gap:24px;width:auto}
.woocommerce .col2-set::before,.woocommerce .col2-set::after{display:none}
.woocommerce .col2-set .col-1,.woocommerce .col2-set .col-2{float:none;width:auto;border:1px solid var(--line);border-radius:16px;background:#fff;padding:28px 26px}
.woocommerce-checkout h3,#order_review_heading{font-size:1.2rem;font-weight:600;margin:0 0 18px}
#order_review_heading{margin:0;padding:22px 24px 0;border:1px solid var(--line);border-bottom:0;border-radius:16px 16px 0 0;background:#fff}
#order_review{border:1px solid var(--line);border-top:0;border-radius:0 0 16px 16px;background:#fff;padding:0 24px 24px}
.woocommerce form .form-row{padding:0;margin:0 0 16px}
.woocommerce form .form-row label{font-size:.85rem;font-weight:600;margin-bottom:6px;line-height:1.4}
.woocommerce form .form-row .input-text,.woocommerce form .form-row select,.woocommerce form .form-row textarea{min-height:50px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;font:inherit;background:#fff;color:var(--ink)}
.woocommerce form .form-row textarea{min-height:110px}
.woocommerce form .form-row .input-text:focus,.woocommerce form .form-row select:focus,.woocommerce form .form-row textarea:focus{outline:none;border-color:var(--navy);box-shadow:0 0 0 3px rgba(55,34,138,.1)}
.woocommerce form .form-row.woocommerce-invalid .input-text{border-color:#C0392B}
.select2-container--default .select2-selection--single{height:50px;border:1px solid var(--line);border-radius:12px}
.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:48px;padding-left:16px}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:48px;right:8px}
.woocommerce-checkout-review-order-table{border:0!important}
.woocommerce-checkout-review-order-table th,.woocommerce-checkout-review-order-table td{background:none!important;padding:12px 0!important;text-transform:none!important;letter-spacing:0!important;font-size:.93rem!important;color:var(--ink)!important}
.woocommerce-checkout-review-order-table .order-total td{font-size:1.4rem!important;font-weight:700;color:var(--navy)!important}
.woocommerce-checkout #payment{background:none;border-radius:0}
.woocommerce-checkout #payment ul.payment_methods{padding:0;border:0;display:grid;gap:10px;margin:8px 0 16px}
.woocommerce-checkout #payment ul.payment_methods li{list-style:none;padding:14px 16px;border:1.5px solid var(--line);border-radius:14px;line-height:1.5}
.woocommerce-checkout #payment ul.payment_methods li:has(input:checked){border-color:var(--navy);background:#F7F5FF}
.woocommerce-checkout #payment ul.payment_methods li input{accent-color:var(--navy);margin-right:8px}
.woocommerce-checkout #payment div.payment_box{background:var(--cream);color:var(--muted);border-radius:10px;margin:10px 0 0;font-size:.88rem}
.woocommerce-checkout #payment div.payment_box::before{display:none}
.woocommerce-checkout #payment div.form-row{padding:0}
.woocommerce-checkout #payment #place_order{width:100%;min-height:56px;font-size:1rem;float:none}
.woocommerce-terms-and-conditions-wrapper{font-size:.86rem;color:var(--muted)}
.woocommerce-shipping-totals ul#shipping_method li{display:flex;gap:6px;align-items:flex-start;margin:0 0 6px}

/* ---------- order received + account ---------- */
.woocommerce-order{display:grid;gap:24px}
.woocommerce-thankyou-order-received{font-size:1.5rem;font-weight:600;color:var(--green-d)}
ul.woocommerce-order-overview{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding:0!important;margin:0!important}
ul.woocommerce-order-overview li{border:1px solid var(--line)!important;border-radius:12px;padding:14px!important;margin:0!important;font-size:.8rem!important;text-transform:uppercase;color:var(--muted)}
ul.woocommerce-order-overview li strong{display:block;margin-top:4px;font-size:1rem;text-transform:none;color:var(--ink)}
.woocommerce-account .sm-woo-page .woocommerce{grid-template-columns:minmax(0,1fr)}
@media(min-width:900px){.woocommerce-account .sm-woo-page .woocommerce{grid-template-columns:260px minmax(0,1fr)}}
.woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{float:none;width:auto}
.woocommerce form.login,.woocommerce form.register{border:1px solid var(--line);border-radius:16px;padding:28px;background:#fff}
