/* =============================================================
   GAV4U — WooCommerce skin (block + classic markup)
   Loaded only when WooCommerce is active. Matches the comp tokens.
   ============================================================= */

/* ---------- Shop archive: product-card buttons ---------- */
.pcard .card-actions{display:flex;align-items:center;gap:10px}
.pcard .card-actions .button,
.pcard .card-actions .added_to_cart{
	display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1;
	padding:11px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;
	color:var(--blue);font-weight:600;font-size:14px;line-height:1;text-decoration:none;transition:.15s}
.pcard .card-actions .button:hover{border-color:var(--blue);background:var(--blue-soft);color:var(--blue-dark)}
.pcard .card-actions .added_to_cart{display:none}
.pcard .card-actions .button.loading{opacity:.6}

/* ---------- Primary buttons (block + classic) ---------- */
.wc-block-components-button.contained,
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.woocommerce #place_order,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce-account button.woocommerce-button,
.woocommerce button.button.alt{
	background:var(--blue)!important;border:1px solid var(--blue)!important;color:#fff!important;
	border-radius:12px!important;font-weight:700!important;padding:14px 28px!important;
	box-shadow:none!important;transition:.15s!important}
.wc-block-components-button.contained:hover,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.woocommerce #place_order:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce button.button.alt:hover{background:var(--blue-dark)!important;border-color:var(--blue-dark)!important}
.wc-block-components-button.outlined{border:1px solid var(--line)!important;color:var(--blue)!important;border-radius:10px!important}
.wc-block-components-button.text{color:var(--blue)!important}

/* ---------- Block form fields ---------- */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-checkout__form input:not([type=checkbox]):not([type=radio]),
.wc-block-checkout__form textarea,
.wc-block-components-address-form input,
.wc-block-components-select__container,
.wc-block-components-combobox-control .components-form-token-field__input-container{
	border:1px solid var(--line)!important;border-radius:10px!important;min-height:48px;
	background:#fff;font-family:inherit;font-size:15px;color:var(--ink)}
.wc-block-components-text-input input:focus,
.wc-block-checkout__form input:focus,
.wc-block-components-address-form input:focus{
	border-color:var(--blue)!important;box-shadow:0 0 0 3px var(--blue-soft)!important;outline:none}
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus + label{color:var(--blue)!important}
.wc-block-components-checkout-step__title,
.wc-block-components-title{font-weight:700!important;color:var(--heading)!important}
.wc-block-components-checkout-step__description{color:var(--muted)}

/* ---------- Checkout layout & order summary ---------- */
.wc-block-checkout__sidebar,
.wc-block-components-sidebar{
	border:1px solid var(--line);border-radius:16px;padding:22px;background:var(--bg-soft);box-shadow:var(--shadow-sm)}
.wc-block-components-order-summary__content{border:0;background:transparent}
.wc-block-components-order-summary-item{padding:12px 0;border-bottom:1px solid var(--line-2)}
.wc-block-components-totals-item{padding:8px 0}
.wc-block-components-totals-footer-item{
	font-weight:700;font-size:18px;border-top:1px solid var(--line);margin-top:8px;padding-top:12px;color:var(--heading)}
.wc-block-components-product-price,.wc-block-cart-item__total{font-weight:700;color:var(--heading)}
.wc-block-checkout__actions_row{margin-top:18px}
.wc-block-checkout__terms{color:var(--muted);font-size:13px}

/* ---------- Cart (block) ---------- */
.wc-block-cart__totals-title{color:var(--heading);font-weight:700}
.wp-block-woocommerce-cart .wc-block-cart-items{
	border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.wc-block-cart-items__header{background:var(--bg-soft);color:var(--heading);font-weight:700}
.wc-block-cart__sidebar .wc-block-components-panel,
.wc-block-cart__sidebar > .wc-block-components-totals-wrapper,
.wc-block-cart__sidebar{border-radius:16px}
.wc-block-cart__sidebar{border:1px solid var(--line);padding:20px;background:var(--bg-soft)}
.wc-block-cart-item__product-name a{color:var(--heading);font-weight:600;text-decoration:none}

/* quantity selector (block) */
.wc-block-components-quantity-selector{border:1px solid var(--line)!important;border-radius:10px!important;overflow:hidden}
.wc-block-components-quantity-selector__button{color:var(--heading)}
.wc-block-components-quantity-selector__input{font-weight:600}

/* coupons */
.wc-block-components-totals-coupon__button{color:#fff!important}
.wc-block-components-panel__button{color:var(--heading)!important;font-weight:600}

/* empty cart */
.wc-block-cart__empty-cart__title,.cart-empty.woocommerce-info{
	font-weight:700;color:var(--heading);font-size:22px;background:transparent;border:0}
.wp-block-woocommerce-empty-cart-block .wc-block-components-button{background:var(--blue)!important;color:#fff!important}
.wc-block-grid__product-title,.wp-block-heading{color:var(--heading)}

/* ---------- Classic cart / checkout fallback ---------- */
.woocommerce table.cart,.woocommerce #order_review,.woocommerce .cart_totals,
.woocommerce-checkout #customer_details{
	border:1px solid var(--line)!important;border-radius:16px}
.woocommerce-checkout #customer_details,.woocommerce #order_review{padding:20px}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce #order_review input,
.woocommerce .select2-container--default .select2-selection--single{
	border:1px solid var(--line)!important;border-radius:10px!important;min-height:46px;padding:10px 12px!important}
.woocommerce .cart_totals h2,.woocommerce #order_review_heading,.woocommerce-checkout h3{font-weight:700}
.woocommerce table.shop_table{border-radius:14px;overflow:hidden}

/* ---------- My account ---------- */
.woocommerce-account .woocommerce{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.woocommerce-account .woocommerce-MyAccount-navigation{flex:0 0 240px}
.woocommerce-account .woocommerce-MyAccount-navigation ul{
	list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.woocommerce-account .woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--line-2)}
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child{border-bottom:0}
.woocommerce-account .woocommerce-MyAccount-navigation li a{
	display:block;padding:12px 16px;color:#3d4653;text-decoration:none;font-weight:600}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:var(--blue-soft);color:var(--blue)}
.woocommerce-account .woocommerce-MyAccount-content{
	flex:1;min-width:280px;border:1px solid var(--line);border-radius:16px;padding:24px;background:#fff}
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register,
.woocommerce .woocommerce-form-coupon{
	border:1px solid var(--line);border-radius:16px;padding:24px}
.woocommerce-account .woocommerce-form-login input,
.woocommerce-account .woocommerce-form-register input{
	border:1px solid var(--line);border-radius:10px;min-height:46px;padding:10px 12px;width:100%}

/* ---------- Notices (block + classic) ---------- */
.wc-block-components-notice-banner{border-radius:12px}
.wc-block-components-notice-banner.is-error{border-inline-start:4px solid #e0245e}
.wc-block-components-notice-banner.is-success{border-inline-start:4px solid var(--green)}
.wc-block-components-notice-banner.is-info{border-inline-start:4px solid var(--blue)}

/* ---------- Breadcrumbs / misc ---------- */
.woocommerce-breadcrumb,.wc-block-components-breadcrumbs{color:var(--muted)}
.wc-block-components-order-summary__content .wc-block-components-product-name{color:var(--heading)}

/* ---------- RTL punctuation guard for short English-in-Hebrew bits ---------- */
[dir="rtl"] .wc-block-components-checkout-step__description,
[dir="rtl"] .wc-block-components-address-card{text-align:right}

/* ---------- Single product: review form + description ---------- */
#reviews #respond,.woocommerce #review_form #respond{
	border:1px solid var(--line);border-radius:16px;padding:22px;background:var(--bg-soft);max-width:640px}
.woocommerce #review_form #respond textarea,
.woocommerce #review_form #respond input[type=text],
.woocommerce #review_form #respond input[type=email]{
	border:1px solid var(--line);border-radius:10px;min-height:44px;padding:10px 12px;width:100%;font-family:inherit}
.woocommerce #review_form #respond textarea{min-height:120px}
.woocommerce #reviews .comment-form-rating label{font-weight:600;color:var(--heading)}
.woocommerce p.stars a{color:var(--star)}
.woocommerce #reviews .commentlist{margin:0 0 20px;padding:0}
.woocommerce #reviews .commentlist li{list-style:none;border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:12px}
.woocommerce #reviews .commentlist li .star-rating{color:var(--star)}
.woocommerce #review_form #respond .form-submit input{
	background:var(--blue)!important;border:1px solid var(--blue)!important;color:#fff!important;
	border-radius:10px!important;font-weight:700!important;padding:12px 26px!important}
.article-body p,.woocommerce-product-details__short-description{line-height:1.9;color:var(--text)}

/* single product: WooCommerce variation dropdown (colour) styled to fit .pd-buy */
.pd-buy--wc table.variations{width:100%;margin:0 0 12px}
.pd-buy--wc table.variations td{padding:6px 0}
.pd-buy--wc table.variations select{
	width:100%;min-height:46px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:#fff;font-family:inherit}
.pd-buy--wc .woocommerce-variation-price{margin:6px 0 12px;font-weight:700;color:var(--heading)}

/* cart icon inside loop add-to-cart buttons */
.pcard .card-actions .button .wc-cart-ico{width:18px;height:18px;flex:0 0 auto}
.wc-cart-ico{vertical-align:middle}

/* ============ Card / gallery / pagination refinements (comp match) ============ */

/* Prices in brand blue (WooCommerce renders .woocommerce-Price-amount, not .now) */
.pcard .price .woocommerce-Price-amount,
.pd-price .woocommerce-Price-amount{color:var(--blue)!important;font-weight:800}
.pcard .price del,.pd-price del{opacity:1;text-decoration:none}
.pcard .price del .woocommerce-Price-amount,
.pd-price del .woocommerce-Price-amount{color:#b6bcc6!important;font-weight:500;text-decoration:line-through}
.pcard .price ins,.pd-price ins{text-decoration:none;background:transparent}
.pcard .price{gap:8px;flex-wrap:wrap}

/* Add-to-cart button: one line, icon fixed, heart square */
.pcard .card-actions{gap:8px;align-items:stretch}
.pcard .card-actions .button{
  flex:1 1 auto;min-width:0;white-space:nowrap;padding:10px 12px;font-size:13.5px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px}
.pcard .card-actions .button .wc-cart-ico{width:17px;height:17px;flex:0 0 auto}
.pcard .card-actions .heart{flex:0 0 40px;width:40px;height:40px}

/* Gallery thumbnails: fixed small squares in a row (not stretched full width) */
.gallery .thumbs{flex-wrap:wrap;gap:10px}
.gallery .thumbs .thumb{flex:0 0 78px;width:78px;height:78px;padding:0;overflow:hidden}
.gallery .thumbs .thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.gallery .thumbs .thumb.more{flex:0 0 78px;width:78px;height:78px}

/* Unified pagination pills (Woo + WP) */
.woocommerce-pagination ul,.pagination .nav-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.woocommerce-pagination ul li a,.woocommerce-pagination ul li span,
.pagination .page-numbers{
  width:42px;height:42px;min-width:42px;padding:0;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;font-weight:600;line-height:1;
  border:1px solid var(--line);background:#fff;color:#3d4653;text-decoration:none;transition:.15s}
.woocommerce-pagination ul li span.current,
.pagination .page-numbers.current{background:var(--blue)!important;color:#fff!important;border-color:var(--blue)!important}
.woocommerce-pagination ul li a:hover,
.pagination a.page-numbers:hover{border-color:var(--blue);color:var(--blue)}
.woocommerce-pagination .prev,.woocommerce-pagination .next,
.pagination .page-numbers.prev,.pagination .page-numbers.next{width:auto;min-width:42px;padding:0 16px}

/* ===== Single product: consistent RTL alignment of the info column =====
   Title was right-aligned while rating/price/buy hugged the far left.
   Line them all up to the right edge, matching the comp. */
.pd-rating,.pd-price,.pd-meta,.pd-feats li{justify-content:flex-start !important}
.pd-color .swatches{justify-content:flex-start !important}
.pd-buy,.pd-buy--wc{flex-direction:row !important;justify-content:flex-start !important}
.pd-buy--wc form.cart{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-start !important;margin:0}
.pd-buy--wc form.cart .single_add_to_cart_button{order:-1} /* button on the right (RTL) */
