/*!
 * DreamTheme — WooCommerce pages (replaces woocommerce-general.css).
 * Uses the same tokens and components as main.css.
 */

/* ---------- Base controls ---------- */
.woocommerce .button,.woocommerce button.button,.woocommerce a.button,.woocommerce input.button,.woocommerce #respond input#submit,.wc-block-components-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--pri);color:var(--pri-ink);font-family:var(--font-h);font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.03em;padding:12px 22px;border:0;border-radius:var(--rad);cursor:pointer;line-height:1.2;transition:filter .2s}
.woocommerce .button:hover,.woocommerce button.button:hover,.woocommerce a.button:hover{filter:brightness(.92);color:var(--pri-ink)}
.woocommerce .button.alt,.woocommerce button.button.alt{background:var(--pri)}
.woocommerce .button:disabled,.woocommerce button.button:disabled,.woocommerce .button.disabled{opacity:.5;cursor:not-allowed}
.woocommerce .button.loading{opacity:.7;pointer-events:none}
.woocommerce input.input-text,.woocommerce textarea,.woocommerce select,.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{width:100%;border:1px solid var(--line);border-radius:12px;min-height:46px;padding:10px 14px;background:var(--bg);color:var(--ink);font-size:15px;transition:border-color .2s,box-shadow .2s}
.woocommerce textarea{min-height:110px}
.woocommerce input.input-text:focus,.woocommerce textarea:focus,.woocommerce select:focus{outline:none;border-color:var(--pri);box-shadow:0 0 0 3px color-mix(in srgb,var(--pri) 18%,transparent)}
.woocommerce form .form-row{margin:0 0 14px;padding:0}
.woocommerce form .form-row label{display:block;font-size:12px;font-weight:700;color:var(--ink-2);margin-bottom:6px}
.woocommerce form .form-row .required{color:var(--sale);text-decoration:none}
.woocommerce form .form-row-first,.woocommerce form .form-row-last{width:calc(50% - 7px);float:left}
.woocommerce form .form-row-last{float:right}
.woocommerce form .form-row-wide{clear:both}
.woocommerce .clear{clear:both}
.woocommerce-invalid input.input-text{border-color:var(--sale)!important}
.select2-container--default .select2-selection--single{height:46px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:44px;padding-left:14px;color:var(--ink)}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:44px;right:8px}
.select2-dropdown{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface);box-shadow:var(--sh-pop)}
.select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--pri)}
.select2-search--dropdown .select2-search__field{border:1px solid var(--line);border-radius:8px;padding:8px}
.woocommerce .quantity{display:inline-flex}
.woocommerce .quantity .qty{width:70px;min-height:50px;text-align:center;font-weight:700;border-radius:var(--rad)}
.woocommerce .star-rating{position:relative;display:inline-block;width:5.4em;height:1.1em;line-height:1;font-size:13px;overflow:hidden;font-family:inherit;color:var(--hot)}
.woocommerce .star-rating::before{content:"★★★★★";letter-spacing:.1em;color:var(--line);position:absolute;inset:0}
.woocommerce .star-rating span{position:absolute;inset:0 auto 0 0;overflow:hidden;padding-top:1.2em}
.woocommerce .star-rating span::before{content:"★★★★★";letter-spacing:.1em;position:absolute;top:0;left:0;color:var(--hot)}
.woocommerce span.onsale{display:none}
.woocommerce .price,.woocommerce-Price-amount{font-variant-numeric:tabular-nums}

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notice{list-style:none;margin:0 0 20px;padding:14px 18px;border-radius:12px;background:var(--soft);border-left:4px solid var(--pri);display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px}
.woocommerce-message{border-color:var(--ok)}
.woocommerce-error{border-color:var(--sale)}
.woocommerce-error li{list-style:none}
.woocommerce-message .button,.woocommerce-info .button{margin-left:auto;padding:8px 14px;font-size:12px}
.woocommerce-store-notice{background:var(--pri);color:var(--pri-ink);padding:10px 16px;text-align:center;margin:0}

/* ---------- Shop toolbar ---------- */
.woocommerce-result-count{margin:0;font-size:13px;color:var(--ink-2)}
.woocommerce-ordering{margin:0}
.woocommerce-ordering select{min-height:38px!important;border-radius:var(--rad)!important;padding:6px 32px 6px 12px!important;font-size:13px!important;background:var(--surface)!important}
.shop.no-side{grid-template-columns:minmax(0,1fr)}
.woocommerce-pagination{margin-top:30px}
.woocommerce-pagination ul.page-numbers{display:flex;gap:6px;justify-content:center;list-style:none;padding:0;margin:0;flex-wrap:wrap}
.woocommerce-pagination .page-numbers li{list-style:none}
.woocommerce-pagination .page-numbers a,.woocommerce-pagination .page-numbers span{min-width:40px;height:40px;padding:0 10px;border-radius:var(--rad);border:1px solid var(--line);font-weight:700;display:grid;place-items:center;background:var(--surface)}
.woocommerce-pagination .page-numbers .current{background:var(--pri);color:var(--pri-ink);border-color:var(--pri)}
.woocommerce-products-header__title{display:none}
.term-description{max-width:80ch;margin:0 auto 20px;color:var(--ink-2);text-align:center}

/* ---------- Sidebar widgets ---------- */
.shop-side .widget ul{list-style:none;padding:0;margin:0;display:grid;gap:2px}
.shop-side .widget ul li a{display:flex;justify-content:space-between;padding:7px 10px;border-radius:var(--rad)}
.shop-side .widget ul li a:hover,.shop-side .widget ul li.chosen a{background:var(--soft);color:var(--pri)}
.widget_price_filter .price_slider{margin:10px 6px 18px;height:4px;background:var(--line);border-radius:2px;position:relative}
.widget_price_filter .ui-slider-range{position:absolute;height:100%;background:var(--pri);border-radius:2px}
.widget_price_filter .ui-slider-handle{position:absolute;top:-6px;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:var(--surface);border:3px solid var(--pri);cursor:grab}
.widget_price_filter .price_slider_amount{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}
.widget_price_filter .price_slider_amount .button{padding:8px 14px;font-size:12px}

/* ---------- Single product ---------- */
.single-product-wrap div.product{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:44px;align-items:start}
.single-product-wrap div.product{position:relative}
.single-product-wrap div.product>.woocommerce-product-gallery{grid-column:1;grid-row:1}
/* WooCommerce's layout CSS floats these at 48% width; the theme grid sizes them instead. */
.woocommerce .single-product-wrap div.product div.images,.woocommerce .single-product-wrap div.product div.summary,.single-product-wrap div.product>.woocommerce-product-gallery,.single-product-wrap div.product>.summary{float:none;width:auto;margin:0}
.single-product-wrap div.product>.onsale{position:absolute;top:14px;left:14px;z-index:6;margin:0}
.single-product-wrap div.product>.summary{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:16px;min-width:0}
.single-product-wrap div.product>.woocommerce-tabs,.single-product-wrap div.product>.related,.single-product-wrap div.product>.upsells,.single-product-wrap div.product>.dt-fbt{grid-column:1/-1}
.woocommerce-product-gallery{position:relative;margin:0}
.woocommerce-product-gallery__wrapper{margin:0}
.woocommerce-product-gallery__image img,.woocommerce-product-gallery img{border-radius:var(--rad);background:var(--soft);width:100%;height:auto;display:block}
.woocommerce-product-gallery .flex-viewport{border-radius:var(--rad);overflow:hidden}
.woocommerce-product-gallery .flex-control-thumbs{list-style:none;padding:0;margin:12px 0 0;display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.woocommerce-product-gallery .flex-control-thumbs li img{border-radius:calc(var(--rad) - 2px);opacity:.55;cursor:pointer;border:2px solid transparent;transition:.2s}
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,.woocommerce-product-gallery .flex-control-thumbs li img:hover{opacity:1;border-color:var(--pri)}
.woocommerce-product-gallery__trigger{position:absolute;top:12px;right:12px;z-index:5;width:40px;height:40px;border-radius:50%;background:var(--surface);box-shadow:var(--sh-btn);display:grid;place-items:center;font-size:0}
.woocommerce-product-gallery__trigger::before{content:"";width:16px;height:16px;border:2px solid var(--ink);border-radius:50%}
.summary .product_title{font-size:28px;font-weight:600;margin:0}
.summary .woocommerce-product-rating{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--ink-2);margin:0}
.summary .woocommerce-review-link{text-decoration:underline}
.summary p.price,.summary span.price{font-family:var(--font-h);font-size:30px;font-weight:600;color:var(--pri);margin:0}
.summary p.price del{color:var(--ink-2);font-size:.6em;font-weight:400;margin-right:8px}
.summary p.price ins{text-decoration:none}
.summary .woocommerce-product-details__short-description{color:var(--ink-2)}
.summary .woocommerce-product-details__short-description p{margin:0 0 8px}
.summary form.cart{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;margin:0}
.summary form.cart .quantity .qty{height:50px}
.summary form.cart .single_add_to_cart_button,.summary form.cart .dt-buy-now{flex:1;min-width:150px;height:50px;font-size:14px}
.summary form.cart .dt-buy-now{background:var(--sale);color:#fff;border:0;border-radius:var(--rad);font-family:var(--font-h);font-weight:600;text-transform:uppercase;letter-spacing:.03em;cursor:pointer}
.summary form.variations_form{flex-direction:column}
.summary table.variations{width:100%;border:0;margin:0 0 6px}
.summary table.variations tr{display:grid;gap:8px;margin-bottom:12px}
.summary table.variations th,.summary table.variations td{padding:0;text-align:left;border:0}
.summary table.variations label{font-size:13px;font-weight:700}
.summary table.variations select{max-width:320px}
.summary .reset_variations{font-size:12px;color:var(--sale);margin-left:8px}
.summary .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;gap:10px}
.summary .woocommerce-variation-price .price{font-size:22px}
.summary .stock{font-size:13px;margin:0}
.summary .stock.in-stock{color:var(--ok)}
.summary .stock.out-of-stock{color:var(--sale)}
.summary .product_meta{font-size:13px;color:var(--ink-2);display:grid;gap:4px;border-top:1px solid var(--line);padding-top:14px}
.summary .product_meta a{color:var(--ink)}
.summary .dt-swatches{display:flex;gap:10px;flex-wrap:wrap}
.woocommerce-tabs{margin-top:20px}
.woocommerce-tabs ul.tabs{display:flex;flex-wrap:nowrap;gap:30px;list-style:none;padding:0;margin:0;width:auto;max-width:100%;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.woocommerce-tabs ul.tabs li{list-style:none;margin:0}
.woocommerce-tabs ul.tabs li a{display:block;padding:16px 0;font-family:var(--font-h);font-weight:600;font-size:15px;color:var(--ink-2);white-space:nowrap;box-shadow:inset 0 -2px 0 transparent}
.woocommerce-tabs ul.tabs li.active a{color:var(--ink);box-shadow:inset 0 -2px 0 var(--pri)}
.woocommerce-tabs .panel{padding-top:24px;color:var(--ink-2);line-height:1.8}
.woocommerce-tabs .panel>h2:first-child{display:none}
.woocommerce-Tabs-panel table.shop_attributes{width:100%;max-width:900px;border-collapse:collapse}
.woocommerce-Tabs-panel table.shop_attributes th,.woocommerce-Tabs-panel table.shop_attributes td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);font-size:13px}
.woocommerce-Tabs-panel table.shop_attributes th{width:34%;background:var(--soft);color:var(--ink)}
.woocommerce-Tabs-panel table.shop_attributes p{margin:0}
#reviews .commentlist{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:16px}
#reviews .comment_container{display:grid;grid-template-columns:44px 1fr;gap:14px;padding-bottom:16px;border-bottom:1px solid var(--line)}
#reviews .comment_container img{border-radius:50%;width:44px;height:44px}
#reviews .meta{font-size:13px;margin:4px 0}
#reviews .description p{margin:0}
#review_form_wrapper{background:var(--soft);border-radius:var(--rad);padding:20px}
#review_form .comment-form-rating .stars a{color:var(--hot);font-size:0;display:inline-block;width:24px;height:24px}
#review_form .comment-form-rating .stars a::before{content:"★";font-size:24px;color:var(--line)}
#review_form .comment-form-rating .stars:hover a::before,#review_form .comment-form-rating .stars.selected a::before{color:var(--hot)}
#review_form .comment-form-rating .stars a:hover~a::before,#review_form .comment-form-rating .stars.selected a.active~a::before{color:var(--line)}
.related>h2,.upsells>h2,.cross-sells>h2{font-size:22px;margin:30px 0 18px}

/* ---------- Cart page ---------- */
.woocommerce-cart-form{min-width:0}
.woocommerce table.shop_table{width:100%;border-collapse:collapse;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.woocommerce table.shop_table th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-2);text-align:left;padding:14px;background:var(--soft)}
.woocommerce table.shop_table td{padding:14px;border-top:1px solid var(--line);vertical-align:middle}
.woocommerce table.cart img{width:80px;height:auto;border-radius:var(--rad)}
.woocommerce table.cart .product-name a{font-weight:700}
.woocommerce table.cart .product-remove a{font-size:22px;color:var(--ink-2);text-decoration:none}
.woocommerce table.cart .product-remove a:hover{color:var(--sale)}
.woocommerce table.cart td.actions{background:var(--soft)}
.woocommerce table.cart td.actions .coupon{display:inline-flex;gap:8px;flex-wrap:wrap}
.woocommerce table.cart td.actions .coupon .input-text{width:200px;text-transform:uppercase}
.woocommerce table.cart td.actions>.button{float:right}
.woocommerce-cart .cart-collaterals{margin-top:30px;display:grid;grid-template-columns:1fr minmax(0,420px);gap:30px}
.woocommerce-cart .cart-collaterals .cross-sells{grid-column:1}
.woocommerce-cart .cart_totals{grid-column:2;background:var(--soft);border-radius:16px;padding:24px}
.woocommerce-cart .cart_totals h2{font-size:18px;margin-bottom:12px}
.woocommerce-cart .cart_totals table{border:0;background:transparent}
.woocommerce-cart .cart_totals th,.woocommerce-cart .cart_totals td{background:transparent;padding:10px 0;border-top:1px solid var(--line)}
.woocommerce-cart .cart_totals .order-total td{font-family:var(--font-h);font-size:22px;font-weight:700}
.wc-proceed-to-checkout .checkout-button{width:100%;height:54px;font-size:15px;margin-top:10px}
.woocommerce-shipping-methods{list-style:none;padding:0;margin:0}
.cart-empty{text-align:center;font-size:18px;justify-content:center}
.return-to-shop{text-align:center}

/* ---------- Checkout page (when popup checkout is off) ---------- */
.woocommerce-checkout form.checkout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:30px;align-items:start}
.woocommerce-checkout form.checkout>.col2-set{grid-column:1;border:1px solid var(--line);border-radius:16px;padding:24px;background:var(--surface)}
.woocommerce-checkout form.checkout>#order_review_heading,.woocommerce-checkout form.checkout>#order_review{grid-column:2}
.woocommerce-checkout #order_review_heading{font-size:18px;margin:0}
.woocommerce-checkout #order_review{background:var(--soft);border-radius:16px;padding:22px;position:sticky;top:120px}
.woocommerce-checkout .col2-set .col-1,.woocommerce-checkout .col2-set .col-2{width:100%;float:none}
.woocommerce-checkout h3{font-size:17px;margin:0 0 16px}
.woocommerce-checkout #payment{background:transparent;border-radius:12px}
.woocommerce-checkout #payment ul.payment_methods{list-style:none;padding:0;margin:0 0 16px;display:grid;gap:10px}
.woocommerce-checkout #payment ul.payment_methods li{border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--surface)}
.woocommerce-checkout #payment ul.payment_methods li input{accent-color:var(--pri);margin-right:8px}
.woocommerce-checkout #payment div.payment_box{font-size:13px;color:var(--ink-2);margin-top:8px}
.woocommerce-checkout #place_order{width:100%;height:56px;font-size:15px;border-radius:14px}
.woocommerce-terms-and-conditions-wrapper{font-size:12px;color:var(--ink-2);margin-bottom:12px}
.woocommerce-order{display:grid;gap:18px}
.woocommerce-order-overview{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));border:1px solid var(--line);border-radius:16px;overflow:hidden}
.woocommerce-order-overview li{padding:14px 16px;border-right:1px solid var(--line);font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-2);font-weight:700}
.woocommerce-order-overview li strong{display:block;font-size:15px;color:var(--ink);text-transform:none;letter-spacing:0;margin-top:4px}
.woocommerce-thankyou-order-received{font-family:var(--font-h);font-size:22px;color:var(--ok);border:0;background:none;padding:0}

/* ---------- My account ---------- */
.woocommerce-account .woocommerce{display:grid;grid-template-columns:240px minmax(0,1fr);gap:30px;align-items:start}
.woocommerce-account .woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1}
.woocommerce-MyAccount-navigation{border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--surface)}
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0;display:grid;gap:4px}
.woocommerce-MyAccount-navigation a{display:block;padding:10px 12px;border-radius:var(--rad);font-weight:700;font-size:14px}
.woocommerce-MyAccount-navigation a:hover{background:var(--soft)}
.woocommerce-MyAccount-navigation .is-active a{background:var(--pri);color:var(--pri-ink)}
.woocommerce-MyAccount-content{min-width:0}
.woocommerce-MyAccount-content mark{background:none;color:var(--pri);font-weight:700}
.woocommerce-account .u-columns{display:grid;grid-template-columns:1fr 1fr;gap:30px;grid-column:1/-1}
.woocommerce-account .u-column1,.woocommerce-account .u-column2{border:1px solid var(--line);border-radius:16px;padding:26px;background:var(--surface);width:auto;float:none}
.woocommerce-account:not(.logged-in) .woocommerce{grid-template-columns:minmax(0,1fr)}
.woocommerce-form-login,.woocommerce-form-register{display:grid;gap:4px}
.woocommerce-form-login__rememberme{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--ink-2)}
.woocommerce-LostPassword{font-size:13px}
.woocommerce-Addresses{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.woocommerce-Address{border:1px solid var(--line);border-radius:12px;padding:18px;width:auto!important;float:none!important}
.woocommerce-Address-title{display:flex;justify-content:space-between;align-items:center}
.woocommerce-Address-title h2,.woocommerce-Address-title h3{font-size:16px;margin:0}
.woocommerce-orders-table .button{padding:7px 12px;font-size:11px}

/* ---------- Mobile ---------- */
@media (max-width:991px){
  .single-product-wrap div.product{grid-template-columns:minmax(0,1fr);gap:24px}
  .single-product-wrap div.product>.woocommerce-product-gallery,.single-product-wrap div.product>.summary{grid-column:1;position:static;min-width:0}
  .single-product-wrap div.product>.summary{grid-row:2}
  /* Buy section first, description after the buttons (quality rule 6). */
  .summary .woocommerce-product-details__short-description{order:6}
  .summary .pv-stock,.summary .pv-live{order:3}
  .summary form.cart{order:4}
  .summary .pv-box,.summary .pv-safe,.summary .product_meta,.summary .pv-share,.summary .dt-pp-links{order:7}
  .woocommerce-checkout form.checkout{grid-template-columns:minmax(0,1fr)}
  .woocommerce-checkout form.checkout>#order_review_heading,.woocommerce-checkout form.checkout>#order_review{grid-column:1;position:static}
  .woocommerce-cart .cart-collaterals{grid-template-columns:minmax(0,1fr)}
  .woocommerce-cart .cart_totals,.woocommerce-cart .cart-collaterals .cross-sells{grid-column:1}
  .woocommerce-account .woocommerce,.woocommerce-account .u-columns,.woocommerce-Addresses{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .summary .product_title{font-size:22px}
  .summary p.price{font-size:24px}
  .summary form.cart .quantity{width:100%}
  .summary form.cart .quantity .qty{width:100%}
  .summary form.cart .single_add_to_cart_button,.summary form.cart .dt-buy-now{min-width:0;font-size:13px}
  .woocommerce form .form-row-first,.woocommerce form .form-row-last{width:100%;float:none}
  .woocommerce table.shop_table_responsive thead{display:none}
  .woocommerce table.shop_table_responsive tr{display:grid;grid-template-columns:80px 1fr;gap:4px 12px;padding:14px;border-top:1px solid var(--line)}
  .woocommerce table.shop_table_responsive td{border:0;padding:2px 0;display:block}
  .woocommerce table.shop_table_responsive td.product-thumbnail{grid-row:span 4}
  .woocommerce table.shop_table_responsive td::before{content:attr(data-title) ": ";font-weight:700;font-size:12px;color:var(--ink-2)}
  .woocommerce table.shop_table_responsive td.product-thumbnail::before,.woocommerce table.shop_table_responsive td.product-remove::before,.woocommerce table.shop_table_responsive td.actions::before{display:none}
  .woocommerce table.cart td.actions{grid-column:1/-1}
  .woocommerce table.cart td.actions .coupon .input-text{width:100%}
  .woocommerce-order-overview li{border-right:0;border-bottom:1px solid var(--line)}
}

/* Before WooCommerce's slider starts, show only the first gallery image (no tall stack / layout jump). */
.woocommerce-product-gallery>.woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image:nth-child(n+2){display:none}
