/*
 * Vastrabharanam Luxury Gold: WooCommerce styling.
 * Layered over WooCommerce's own stylesheet; no WooCommerce templates are overridden.
 */

/* ---------- Shared ---------- */
.woocommerce,.woocommerce-page{color:var(--ivory)}
.woocommerce a{color:inherit}
.woocommerce .woocommerce-breadcrumb{color:var(--muted);font-size:.82rem;margin-bottom:1.5rem}
.woocommerce .woocommerce-breadcrumb a{color:var(--gold-2)}
.woocommerce .page-title,.woocommerce-products-header__title{font-size:clamp(2.2rem,5vw,4rem);margin-bottom:1.5rem}
.woocommerce .woocommerce-result-count{color:var(--muted);font-size:.86rem}
.woocommerce .woocommerce-ordering select{min-width:220px}

/* 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,
.wc-block-components-button:not(.is-link),.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.85rem 1.4rem;border-radius:0;
  border:1px solid var(--accent);background:transparent;color:var(--ivory);
  text-transform:uppercase;letter-spacing:.14em;font-size:.7rem;font-weight:600;line-height:1.3}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce #respond input#submit:hover{background:var(--accent);color:var(--on-accent)}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.woocommerce a.checkout-button,
.woocommerce button.single_add_to_cart_button,.woocommerce #place_order,
.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{background:var(--accent);color:var(--on-accent)}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover,
.woocommerce button.single_add_to_cart_button:hover,.woocommerce #place_order:hover{background:var(--gold-2);color:var(--on-accent)}
.woocommerce button.button:disabled,.woocommerce button.button.disabled,.woocommerce a.button.disabled{opacity:.5;color:var(--ivory);background:transparent;padding:.85rem 1.4rem}
.woocommerce a.added_to_cart{display:inline-block;margin-top:.5rem;color:var(--gold-2);text-decoration:underline;font-size:.84rem}

/* Notices */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews,p.no-comments{
  background:var(--surface);color:var(--ivory);border:1px solid var(--line);border-top:3px solid var(--gold);padding:1rem 1.2rem 1rem 3.2rem}
.woocommerce-error{border-top-color:#ff8a8a}
.woocommerce-message::before,.woocommerce-info::before{color:var(--gold-2)}
.woocommerce-message a,.woocommerce-info a,.woocommerce-error a{color:var(--gold-2);text-decoration:underline}

/* ---------- Product grid ---------- */
.woocommerce ul.products,.woocommerce-page ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:0 0 2rem;padding:0;list-style:none}
.woocommerce ul.products::before,.woocommerce ul.products::after{content:none;display:none}
.woocommerce ul.products.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.woocommerce ul.products.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{float:none;width:auto;margin:0;padding:0 0 1rem;border:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;position:relative}
.woocommerce ul.products li.product a img{margin:0 0 .9rem;aspect-ratio:3/4;object-fit:cover;width:100%;display:block}
.woocommerce ul.products li.product .woocommerce-loop-product__title,.woocommerce ul.products li.product .woocommerce-loop-category__title{font-family:var(--serif);font-size:1.2rem;font-weight:400;padding:0 1rem;color:var(--ivory)}
.woocommerce ul.products li.product .price{color:var(--ivory);padding:.3rem 1rem 0;font-size:1rem}
.woocommerce ul.products li.product .price del{color:var(--muted);opacity:1}
.woocommerce ul.products li.product .price ins{text-decoration:none;color:var(--gold-2)}
.woocommerce ul.products li.product .star-rating{margin:.4rem 1rem 0}
.woocommerce ul.products li.product .button,.woocommerce ul.products li.product .added_to_cart{margin:auto 1rem 0;margin-top:.9rem}
.woocommerce ul.products li.product>a:first-child{display:block}
.woocommerce span.onsale{min-height:0;min-width:0;line-height:1.4;padding:.25rem .6rem;border-radius:0;background:var(--burgundy);color:#fff;font-size:.68rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;top:.7rem;left:.7rem;right:auto;margin:0}
.woocommerce ul.products li.product .onsale{top:.7rem;left:.7rem;right:auto;margin:0}
.woocommerce ul.products li.product.outofstock img{opacity:.55}
.woocommerce .star-rating span::before,.woocommerce p.stars a{color:var(--gold-2)}
.woocommerce nav.woocommerce-pagination ul{border:0}
.woocommerce nav.woocommerce-pagination ul li{border:0;margin:0 .2rem}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{min-width:44px;min-height:44px;display:grid;place-items:center;border:1px solid var(--line);color:var(--ivory);background:transparent}
.woocommerce nav.woocommerce-pagination ul li span.current,.woocommerce nav.woocommerce-pagination ul li a:hover{background:var(--gold);color:var(--on-accent)}

/* ---------- Single product ---------- */
.woocommerce div.product .product_title{font-size:clamp(2rem,4vw,3.2rem);margin-bottom:.6rem}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--gold-2);font-size:1.5rem}
.woocommerce div.product p.price del{color:var(--muted)}
.woocommerce div.product p.price ins{text-decoration:none}
.woocommerce div.product .woocommerce-product-details__short-description{color:var(--muted);margin:1rem 0}
.woocommerce div.product form.cart{margin:1.5rem 0}
.woocommerce div.product form.cart .variations{margin-bottom:1rem}
.woocommerce div.product form.cart .variations th,.woocommerce div.product form.cart .variations td{padding:.4rem 0;vertical-align:middle;text-align:left}
.woocommerce div.product form.cart .variations label{color:var(--gold-2);font-size:.82rem;font-weight:400}
.woocommerce div.product form.cart .reset_variations{color:var(--gold-2);font-size:.82rem}
.woocommerce .quantity .qty{width:5rem;min-height:48px;text-align:center}
.woocommerce div.product .stock{color:var(--botanical);filter:brightness(1.5)}
.woocommerce div.product .out-of-stock{color:#ffb4b4;filter:none}
.woocommerce div.product .product_meta{color:var(--muted);font-size:.84rem;border-top:1px solid var(--line);padding-top:1rem;margin-top:1rem}
.woocommerce div.product .product_meta a{color:var(--gold-2)}
.vlg-consult-link{margin:1rem 0}
.woocommerce div.product div.images img{border:1px solid var(--line)}
.woocommerce div.product div.images .flex-control-thumbs{margin-top:.5rem;display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}
.woocommerce div.product div.images .flex-control-thumbs li{width:auto;float:none}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:0 0 1.5rem;border-bottom:1px solid var(--line)}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{border:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:transparent;border:0;border-radius:0;margin:0;padding:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--muted);padding:.9rem 1.2rem;font-weight:400;min-height:44px}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:transparent;border-bottom:2px solid var(--gold)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--ivory)}
.woocommerce div.product .woocommerce-tabs .panel h2,.woocommerce .related>h2,.woocommerce .upsells>h2,.woocommerce .cross-sells>h2,.woocommerce .cart_totals>h2{font-size:1.8rem;margin-bottom:1rem}
.woocommerce table.shop_attributes th,.woocommerce table.shop_attributes td{border-color:var(--line);padding:.6rem;font-style:normal}
.woocommerce table.shop_attributes tr:nth-child(even) th,.woocommerce table.shop_attributes tr:nth-child(even) td{background:var(--surface)}
.woocommerce #reviews #comments ol.commentlist li .comment-text{border:1px solid var(--line);border-radius:0}
.woocommerce #review_form #respond textarea{min-height:120px}

/* ---------- Cart, checkout, account ---------- */
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:0;border-collapse:collapse;background:var(--surface)}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border-color:var(--line);padding:.9rem;color:var(--ivory)}
.woocommerce table.shop_table th{color:var(--gold-2);font-weight:600}
.woocommerce table.shop_table a{color:var(--gold-2)}
.woocommerce a.remove{color:#ffb4b4!important;width:44px;height:44px;line-height:44px;font-size:1.6rem}
.woocommerce a.remove:hover{background:var(--burgundy);color:#fff!important}
.woocommerce-cart table.cart img{width:72px}
.woocommerce-cart table.cart td.actions .coupon .input-text{min-width:180px;min-height:48px;padding:.8rem;border:1px solid var(--line);background:rgba(9,8,6,.6);color:var(--ivory)}
.woocommerce .cart-collaterals .cart_totals,.woocommerce-checkout-review-order{background:transparent}
.woocommerce form .form-row label{color:var(--gold-2);font-size:.82rem}
.woocommerce form .form-row .required{color:#ffb4b4}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{min-height:48px;padding:.8rem .9rem;border:1px solid var(--line);background:rgba(9,8,6,.6);color:var(--ivory);border-radius:0}
.woocommerce form .form-row.woocommerce-invalid input.input-text{border-color:#ff8a8a}
.woocommerce form.login,.woocommerce form.register,.woocommerce form.checkout_coupon,.woocommerce form.lost_reset_password{border:1px solid var(--line);border-radius:0;background:var(--surface);padding:1.5rem}
.woocommerce-checkout #payment{background:var(--surface);border:1px solid var(--line);border-radius:0}
.woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid var(--line)}
.woocommerce-checkout #payment div.payment_box{background:var(--surface-2);color:var(--ivory)}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:var(--surface-2)}
.woocommerce-checkout h3,.woocommerce-account h2,.woocommerce-account h3,.woocommerce-order h2{font-size:1.6rem;margin-bottom:1rem}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0 0 2rem;border:1px solid var(--line)}
.woocommerce-account .woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--line)}
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child{border:0}
.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:.9rem 1.1rem;min-height:44px}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{color:var(--gold-2);background:var(--surface)}
.woocommerce-account .woocommerce-MyAccount-content a{color:var(--gold-2);text-decoration:underline}
.woocommerce ul.order_details{padding:0;border:1px solid var(--line)}
.woocommerce ul.order_details li{border-color:var(--line);padding:1rem;margin:0}
.select2-container--default .select2-selection--single{background:rgba(9,8,6,.6);border:1px solid var(--line);border-radius:0;height:48px}
.select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--ivory);line-height:46px;padding-left:.9rem}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}
.select2-dropdown{background:var(--surface);border-color:var(--line);color:var(--ivory)}
.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background:var(--gold);color:var(--on-accent)}
.select2-container--default .select2-results__option[aria-selected=true],.select2-container--default .select2-results__option[data-selected=true]{background:var(--surface-2)}
.select2-container--default .select2-search--dropdown .select2-search__field{background:var(--ink);color:var(--ivory);border-color:var(--line)}

/* Block-based cart and checkout */
.wc-block-components-text-input input,.wc-block-components-textarea,.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-form .wc-block-components-text-input input[type]{background:rgba(9,8,6,.6)!important;color:var(--ivory)!important;border:1px solid var(--line)!important;border-radius:0!important}
.wc-block-components-text-input label,.wc-blocks-components-select__label{color:var(--muted)!important}
.wc-block-components-totals-item,.wc-block-components-order-summary,.wc-block-cart-items,.wc-block-components-panel,.wc-block-components-totals-wrapper{border-color:var(--line)!important;color:var(--ivory)}
.wc-block-cart-items th{color:var(--gold-2)}
.wc-block-components-product-name,.wc-block-components-checkout-return-to-cart-button{color:var(--gold-2)}
.wc-block-components-sidebar,.wc-block-checkout__sidebar,.wp-block-woocommerce-checkout-order-summary-block{background:var(--surface);border:1px solid var(--line);border-radius:0}
.wc-block-components-radio-control__option,.wc-block-components-checkbox__label{color:var(--ivory)}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .woocommerce ul.products,.woocommerce-page ul.products,.woocommerce ul.products.columns-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:100%}
  .woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{float:none;width:100%}
}
@media (max-width:560px){
  .woocommerce ul.products,.woocommerce-page ul.products{gap:.6rem}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1rem;padding:0 .7rem}
  .woocommerce ul.products li.product .price{padding:.3rem .7rem 0}
  .woocommerce ul.products li.product .button{margin-inline:.7rem;padding:.7rem .4rem;letter-spacing:.06em}
  .woocommerce .woocommerce-ordering,.woocommerce .woocommerce-result-count{float:none;width:100%}
  .woocommerce .woocommerce-ordering select{width:100%}
  .woocommerce-cart table.cart td.actions .coupon{float:none;display:flex;flex-wrap:wrap;gap:.5rem;padding-bottom:.8rem}
  .woocommerce-cart table.cart td.actions .coupon .input-text{flex:1;width:auto}
  .woocommerce-cart table.cart td.actions .button{width:100%}
}
