/*
 * WooCommerce + native dialog styling for the Hameyave child theme.
 * Cart and checkout keep WooCommerce's own markup; only a light visual layer is applied here.
 */

/* ---- Native <dialog> (mobile menu + search) ---- */
html body.hm-theme .hm-site dialog.store-dialog { margin: auto; border: 0; color: var(--foreground); }
html body.hm-theme .hm-site dialog.store-dialog::backdrop { background: var(--scrim); }
html body.hm-theme .hm-site .store-dialog .search-form { width: 100%; margin-block: 10px 20px; border-bottom: 1px solid var(--border); }
html body.hm-theme .hm-site .dialog-category-list a { color: inherit; }

/* ---- Header extras ---- */
html body.hm-theme .hm-site .hm-cart-link { position: relative; }
html body.hm-theme .hm-site .hm-cart-count { position: absolute; top: 0; inset-inline-start: 0; min-width: 17px; height: 17px; padding-inline: 4px; border-radius: 9px; background: var(--gold); color: var(--primary-foreground); font-size: 10px; line-height: 17px; text-align: center; }
html body.hm-theme .hm-site .hm-cart-count[data-count="0"] { display: none; }
html body.hm-theme .hm-site .search-form button { background: none; border: 0; cursor: pointer; padding: 0; display: inline-flex; color: inherit; }
html body.hm-theme .hm-site .nav-item { text-decoration: none; display: inline-block; }
html body.hm-theme .hm-site .header-nav .menu, html body.hm-theme .hm-site .header-nav ul { list-style: none; margin: 0; padding: 0; display: contents; }
html body.hm-theme .hm-site .header-nav li { display: contents; }
html body.hm-theme .hm-site .current-menu-item > .nav-item, html body.hm-theme .hm-site .nav-item[aria-current="page"] { color: var(--gold); }
html body.hm-theme .hm-site .footer-links a { color: inherit; }

/* ---- Generic pages (cart, checkout, account, Elementor/Astra pages) ---- */
html body.hm-theme .hm-site .hm-generic { padding-block: 40px 60px; }

/* ---- Catalog grid ---- */
html body.hm-theme .hm-site ul.products.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; list-style: none; margin: 0; padding: 0; }
html body.hm-theme .hm-site ul.products.product-grid::before, html body.hm-theme .hm-site ul.products.product-grid::after { display: none; }
html body.hm-theme .hm-site ul.products.product-grid li.product-card { width: auto; float: none; margin: 0; padding: 0; list-style: none; }
html body.hm-theme .hm-site .product-card .product-image-wrap a { display: block; height: 100%; }
html body.hm-theme .hm-site .product-card .product-image-wrap .onsale, html body.hm-theme .hm-site .product-page .onsale { position: absolute; top: 14px; inset-inline-start: auto; right: 14px; left: auto; min-width: 0; min-height: 0; margin: 0; border-radius: 0; line-height: 1.4; background: var(--gold); color: var(--primary-foreground); font-size: 10px; padding: 5px 10px; z-index: 2; }
html body.hm-theme .hm-site .product-card .price, html body.hm-theme .hm-site .product-info .price { color: inherit; font-size: inherit; }
html body.hm-theme .hm-site .product-card .price del { opacity: .55; margin-inline-start: 6px; }
html body.hm-theme .hm-site .product-card .price ins { text-decoration: none; }
html body.hm-theme .hm-site .product-bottom .price { font-size: 14px; font-weight: 500; }
html body.hm-theme .hm-site .shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
html body.hm-theme .hm-site .shop-toolbar .woocommerce-result-count { margin: 0; font-size: 12px; color: var(--muted-foreground); }
html body.hm-theme .hm-site .shop-toolbar .woocommerce-ordering { margin: 0; }
html body.hm-theme .hm-site .shop-toolbar select { height: 40px; border: 1px solid var(--border); border-radius: var(--radius); padding-inline: 12px; background: var(--background); font-size: 13px; }
html body.hm-theme .hm-site nav.woocommerce-pagination { margin-top: 36px; }
html body.hm-theme .hm-site nav.woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: 0; border: 0; }
html body.hm-theme .hm-site nav.woocommerce-pagination ul li { border: 0; float: none; overflow: visible; }
html body.hm-theme .hm-site nav.woocommerce-pagination ul li a, html body.hm-theme .hm-site nav.woocommerce-pagination ul li span { display: block; min-width: 40px; height: 40px; line-height: 38px; text-align: center; border: 1px solid var(--border); text-decoration: none; padding: 0 8px; background: var(--background); color: var(--foreground); }
html body.hm-theme .hm-site nav.woocommerce-pagination ul li span.current, html body.hm-theme .hm-site nav.woocommerce-pagination ul li a:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
html body.hm-theme .hm-site .category-hero .term-description { color: var(--muted-foreground); margin-top: 6px; font-size: 14px; }
html body.hm-theme .hm-site .category-hero .term-description p { margin: 0; }

/* ---- Single product ---- */
html body.hm-theme .hm-site .product-page .woocommerce-product-gallery { margin: 0; position: relative; width: 100%; float: none; opacity: 1 !important; }
html body.hm-theme .hm-site .product-page .woocommerce-product-gallery__image img { width: 100%; height: auto; object-fit: cover; }
html body.hm-theme .hm-site .product-page .flex-control-thumbs { display: flex; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
html body.hm-theme .hm-site .product-page .flex-control-thumbs li { width: 98px; float: none; margin: 0; }
html body.hm-theme .hm-site .product-page .flex-control-thumbs img { border: 1px solid var(--border); padding: 3px; opacity: .8; cursor: pointer; }
html body.hm-theme .hm-site .product-page .flex-control-thumbs img.flex-active, html body.hm-theme .hm-site .product-page .flex-control-thumbs img:hover { border-color: var(--gold); opacity: 1; }
html body.hm-theme .hm-site .product-info .product_title { font-size: 35px; font-weight: 500; line-height: 1.4; margin-top: 4px; }
html body.hm-theme .hm-site .product-info .woocommerce-product-details__short-description { margin-top: 14px; font-size: 14px; line-height: 1.9; color: var(--muted-foreground); }
html body.hm-theme .hm-site .product-info .woocommerce-product-details__short-description p { margin: 0 0 8px; }
html body.hm-theme .hm-site .price-area .price { font-size: 28px; font-weight: 500; display: block; }
html body.hm-theme .hm-site .price-area .price del { font-size: 16px; }
html body.hm-theme .hm-site .price-area .price .woocommerce-price-suffix, html body.hm-theme .hm-site .price-area small { color: var(--muted-foreground); font-size: 11px; display: block; margin-top: 5px; }
html body.hm-theme .hm-site .two-unit-note .hm-icon { width: 23px; height: 23px; }
html body.hm-theme .hm-site .product-info table.variations { width: 100%; border: 0; margin: 0 0 10px; border-collapse: collapse; }
html body.hm-theme .hm-site .product-info table.variations th, html body.hm-theme .hm-site .product-info table.variations td { display: block; padding: 0; border: 0; text-align: start; background: none; }
html body.hm-theme .hm-site .product-info table.variations th.label, html body.hm-theme .hm-site .product-info table.variations .label label { font-size: 13px; font-weight: 500; margin-bottom: 11px; display: block; }
html body.hm-theme .hm-site .product-info table.variations tr { display: block; margin-bottom: 20px; }
html body.hm-theme .hm-site .product-info table.variations select { width: 100%; height: 47px; border: 1px solid var(--border); border-radius: var(--radius); padding-inline: 12px; background: var(--background); font-size: 13px; }
html body.hm-theme .hm-site .product-info .reset_variations { font-size: 11px; color: var(--muted-foreground); display: inline-block; margin-top: 8px; }
html body.hm-theme .hm-site .product-info form.cart, html body.hm-theme .hm-site .product-info .woocommerce-variation-add-to-cart { display: flex; gap: 13px; margin-top: 22px; align-items: stretch; }
html body.hm-theme .hm-site .product-info form.variations_form { display: block; }
html body.hm-theme .hm-site .product-info .woocommerce-variation-add-to-cart { margin-top: 12px; }
html body.hm-theme .hm-site .product-info .woocommerce-variation-price .price { font-size: 22px; font-weight: 500; }
html body.hm-theme .hm-site .product-info .woocommerce-variation-description { font-size: 13px; color: var(--muted-foreground); }
html body.hm-theme .hm-site .product-info .woocommerce-variation-availability .stock, html body.hm-theme .hm-site .product-info p.stock { font-size: 12px; margin: 8px 0 0; }
html body.hm-theme .hm-site .product-info .quantity { border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; height: 48px; width: 117px; flex-shrink: 0; }
html body.hm-theme .hm-site .product-info .quantity .qty { width: 100%; min-width: 0; border: 0; text-align: center; font-size: 14px; background: transparent; -moz-appearance: textfield; padding: 0; }
html body.hm-theme .hm-site .product-info .quantity .qty::-webkit-outer-spin-button, html body.hm-theme .hm-site .product-info .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html body.hm-theme .hm-site .qty-btn { width: 36px; height: 100%; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: inherit; }
html body.hm-theme .hm-site .qty-btn:hover { background: var(--accent); }
html body.hm-theme .hm-site .qty-btn .hm-icon { width: 14px; height: 14px; }
html body.hm-theme .hm-site .product-info .single_add_to_cart_button { flex: 1; height: 48px; border: 0; border-radius: 0; background: var(--primary); color: var(--primary-foreground); font-size: 13px; font-weight: 500; cursor: pointer; padding: 0 24px; }
html body.hm-theme .hm-site .product-info .single_add_to_cart_button:hover { background: color-mix(in srgb, var(--primary) 90%, transparent); }
html body.hm-theme .hm-site .product-info .single_add_to_cart_button.disabled, html body.hm-theme .hm-site .product-info .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
html body.hm-theme .hm-site .product-service span .hm-icon { width: 17px; height: 17px; color: var(--gold); }
html body.hm-theme .hm-site .product-details table.shop_attributes { width: 100%; border-collapse: collapse; }
html body.hm-theme .hm-site .product-details table.shop_attributes th, html body.hm-theme .hm-site .product-details table.shop_attributes td { padding: 10px 0; border-bottom: 1px solid var(--border); text-align: start; font-size: 13px; background: none; font-style: normal; }
html body.hm-theme .hm-site .product-details table.shop_attributes th { width: 30%; font-weight: 500; }
html body.hm-theme .hm-site .related.products, html body.hm-theme .hm-site .upsells.products { margin-top: 20px; padding-bottom: 50px; }
html body.hm-theme .hm-site .related.products > h2, html body.hm-theme .hm-site .upsells.products > h2 { font-size: 25px; font-weight: 500; margin-bottom: 20px; }
html body.hm-theme .hm-site .hm-product-extra { margin-top: 14px; }
html body.hm-theme .hm-site .mobile-purchase-bar .btn-store { height: 48px; border: 0; cursor: pointer; }
html body.hm-theme .hm-site .mobile-purchase-bar { display: none; }
@media (max-width: 767px) {
  html body.hm-theme .hm-site ul.products.product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 13px; }
  html body.hm-theme .hm-site .product-info .product_title { font-size: 28px; }
  html body.hm-theme .hm-site .price-area .price { font-size: 26px; }
  html body.hm-theme .hm-site .mobile-purchase-bar { display: flex; }
  html body.hm-theme .hm-site .mobile-purchase-bar[hidden] { display: none; }
  html body.hm-theme .hm-site .product-page .flex-control-thumbs li { width: 78px; }
  html body.hm-theme .hm-site .product-card .product-image-wrap .onsale { top: 9px; right: 8px; font-size: 8px; padding: 4px 6px; }
}

/* ---- Cart / checkout / notices: light visual layer (WooCommerce markup untouched) ---- */
html body.hm-theme .hm-site .woocommerce-message, html body.hm-theme .hm-site .woocommerce-info, html body.hm-theme .hm-site .woocommerce-error { border: 0; border-inline-start: 3px solid var(--gold); background: var(--cream); color: var(--foreground); padding: 14px 18px; margin: 0 0 20px; list-style: none; }
html body.hm-theme .hm-site .woocommerce-error { border-color: var(--destructive); }
html body.hm-theme .hm-site .woocommerce-message::before, html body.hm-theme .hm-site .woocommerce-info::before, html body.hm-theme .hm-site .woocommerce-error::before { display: none; }
html body.hm-theme .hm-site .woocommerce a.button, html body.hm-theme .hm-site .woocommerce button.button, html body.hm-theme .hm-site .woocommerce input.button, html body.hm-theme .hm-site .woocommerce #respond input#submit, html body.hm-theme .hm-site .woocommerce a.button.alt, html body.hm-theme .hm-site .woocommerce button.button.alt { background: var(--primary); color: var(--primary-foreground); border: 0; border-radius: 0; font-weight: 500; font-size: 13px; padding: 14px 24px; line-height: 1.2; }
html body.hm-theme .hm-site .woocommerce a.button:hover, html body.hm-theme .hm-site .woocommerce button.button:hover { background: color-mix(in srgb, var(--primary) 90%, transparent); color: var(--primary-foreground); }
html body.hm-theme .hm-site .woocommerce input.input-text, html body.hm-theme .hm-site .woocommerce textarea, html body.hm-theme .hm-site .woocommerce select, html body.hm-theme .hm-site .select2-container--default .select2-selection--single { border: 1px solid var(--border); border-radius: var(--radius); min-height: 44px; padding: 10px 12px; background: var(--background); }
html body.hm-theme .hm-site .woocommerce table.shop_table { border: 1px solid var(--border); border-radius: 0; border-collapse: collapse; }
html body.hm-theme .hm-site .woocommerce table.shop_table th, html body.hm-theme .hm-site .woocommerce table.shop_table td { border-color: var(--border); }
html body.hm-theme .hm-site .woocommerce-cart-form .product-thumbnail img { width: 80px; }
html body.hm-theme .hm-site .woocommerce .cart_totals, html body.hm-theme .hm-site .woocommerce-checkout-review-order { background: var(--cream); padding: 20px; }
html body.hm-theme .hm-site .woocommerce-breadcrumb { display: none; }
@media (max-width: 767px) { html body.hm-theme .hm-site .hm-generic { padding-block: 24px 40px; } }
html body.hm-theme .hm-site .product-gallery { position: relative; }

html body.hm-theme .hm-site .product-page div.images, html body.hm-theme .hm-site .product-page div.woocommerce-product-gallery { width: 100%; float: none; margin: 0; }
html body.hm-theme .hm-site .product-page .product-info.summary { width: 100%; float: none; margin: 0; clear: none; }
html body.hm-theme .hm-site .product-page .product-info .price { color: inherit; }
html body.hm-theme .hm-site .product-page .woocommerce-product-gallery__trigger { inset-inline-start: 12px; inset-inline-end: auto; right: auto; left: 12px; }
html body.hm-theme .hm-site .product-info button.single_add_to_cart_button.button.alt { background: var(--primary); color: var(--primary-foreground); }
html body.hm-theme .hm-site .product-info button.single_add_to_cart_button.button.alt:hover { background: color-mix(in srgb, var(--primary) 90%, transparent); color: var(--primary-foreground); }
html body.hm-theme .hm-site .product-info button.single_add_to_cart_button.button.alt.disabled, html body.hm-theme .hm-site .product-info button.single_add_to_cart_button.button.alt:disabled { opacity: .5; cursor: not-allowed; }
html body.hm-theme .hm-site .woocommerce-checkout #payment { background: var(--cream); border-radius: 0; }
html body.hm-theme .hm-site .woocommerce-checkout #payment div.payment_box { background: var(--background); color: inherit; }
html body.hm-theme .hm-site .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--background); }
html body.hm-theme .hm-site .woocommerce #payment #place_order, html body.hm-theme .hm-site .woocommerce-page #payment #place_order { float: none; width: 100%; background: var(--primary); color: var(--primary-foreground); border-radius: 0; border: 0; padding: 16px 24px; font-size: 14px; font-weight: 500; }
html body.hm-theme .hm-site .woocommerce .quantity { display: inline-flex; }
