/* =========================================================
   5G Hub — WooCommerce styles
   ========================================================= */

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 20px; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--gh-border);
	background: var(--gh-soft); color: var(--gh-text); font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.woocommerce-message { background: #ecfdf3; border-color: #b7ebc9; }
.woocommerce-error { background: #fff1f1; border-color: #ffd0d1; color: #9b1c1f; flex-direction: column; align-items: flex-start; }
.woocommerce-error li { list-style: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }

/* WooCommerce buttons → theme buttons */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--gh-radius-sm);
	border: 1.5px solid var(--gh-primary); background: var(--gh-primary); color: #fff; font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; transition: .2s; text-decoration: none;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce #respond input#submit:hover { background: var(--gh-accent); border-color: var(--gh-accent); color: #fff; }
.woocommerce .button.alt, .woocommerce button.button.alt { background: var(--gh-accent); border-color: var(--gh-accent); }
.woocommerce .button.alt:hover, .woocommerce button.button.alt:hover { background: var(--gh-primary); border-color: var(--gh-primary); }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: .55; cursor: not-allowed; }

/* Inputs */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-cart table.cart td.actions .coupon .input-text, .select2-container--default .select2-selection--single,
.woocommerce .quantity .qty, #review_form textarea, #review_form input[type="text"], #review_form input[type="email"] {
	width: 100%; padding: 12px 14px; border: 1px solid var(--gh-border); border-radius: 10px; background: var(--gh-soft); color: var(--gh-text); outline: 0; min-height: 46px; transition: border-color .2s, background .2s;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--gh-accent); background: #fff; }
.select2-container--default .select2-selection--single { height: 46px; display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.select2-dropdown { border-color: var(--gh-border) !important; border-radius: 10px !important; overflow: hidden; }
.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row label { font-size: 13.5px; font-weight: 600; color: var(--gh-primary); margin-bottom: 6px; display: block; }
.woocommerce form .form-row .required { color: var(--gh-sale); text-decoration: none; }
.woocommerce .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: auto; float: none; max-width: 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, .woocommerce form .clear { clear: both; }
.woocommerce-input-wrapper { display: block; }

/* ---------- Quantity +/- ---------- */
.quantity { display: inline-flex; align-items: center; border: 1px solid var(--gh-border); border-radius: 10px; overflow: hidden; background: #fff; height: 46px; }
.woocommerce .quantity .qty, .quantity .qty { width: 52px; min-height: 0; height: 100%; border: 0; background: transparent; text-align: center; padding: 0; font-weight: 600; -moz-appearance: textfield; border-radius: 0; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gh-qty-btn { width: 42px; height: 100%; border: 0; background: transparent; color: var(--gh-primary); display: inline-flex; align-items: center; justify-content: center; }
.gh-qty-btn:hover { background: var(--gh-soft-2); }
.quantity.hidden { display: none; }

/* ---------- Product page ---------- */
.gh-pp { padding: 18px 0 20px; }
.gh-pp > .gh-container > .gh-bc { margin-bottom: 16px; }
.gh-pp__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: start; }
.gh-pp__gallery { position: sticky; top: calc(var(--gh-header-h) + 20px); min-width: 0; }
.gh-pp__main { position: relative; border-radius: 16px; overflow: hidden; background: var(--gh-soft); border: 1px solid var(--gh-border); }
.gh-pp__main .gh-slide { display: block; }
.gh-pp__zoom { display: block; cursor: zoom-in; }
.gh-pp__img { width: 100%; height: auto; }
.gh-slider--gallery .gh-slider__arrow { display: inline-flex; background: rgba(255,255,255,.95); border: 0; width: 40px; height: 40px; }
.gh-slider--gallery .gh-slider__arrow--prev { left: 14px; }
.gh-slider--gallery .gh-slider__arrow--next { right: 14px; }
.gh-slider--gallery .gh-slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; }
.gh-pp__expand { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 10px; border: 0; background: #fff; color: var(--gh-primary); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--gh-shadow-sm); }
.gh-pp__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gh-pp__thumb { padding: 4px; border: 2px solid var(--gh-border); border-radius: 10px; background: #fff; transition: border-color .2s; }
.gh-pp__thumb img { width: 100%; height: auto; border-radius: 6px; }
.gh-pp__thumb.is-active, .gh-pp__thumb:hover { border-color: var(--gh-accent); }

.gh-pp__summary { min-width: 0; }
.gh-pp__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gh-text); letter-spacing: .5px; text-transform: uppercase; font-size: 15px; margin-bottom: 4px; }
.gh-pp__brand img { max-height: 24px; width: auto; }
.gh-pp__title { font-size: 32px; font-weight: 700; margin: 0; color: var(--gh-primary); letter-spacing: -.3px; }
.gh-pp__subtitle { font-size: 17px; color: var(--gh-text); font-weight: 500; margin-top: 2px; }
.gh-pp__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; font-size: 14px; color: var(--gh-muted); }
.gh-pp__rating strong { color: var(--gh-text); }
.gh-pp__sep { width: 1px; height: 18px; background: var(--gh-border); margin: 0 6px; }
.gh-pp__write { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gh-accent); }
.gh-pp__summary .gh-price { margin-bottom: 12px; }
.gh-pp__short { color: #334155; font-size: 14.5px; margin-bottom: 12px; }
.gh-pp__short p:last-child { margin: 0; }
.gh-pp__highlight { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14.5px; }
.gh-pp__highlight .gh-icon { color: #fff; background: var(--gh-success); border-radius: 50%; padding: 2px; stroke-width: 2.5; }
.gh-pp__highlight strong { color: var(--gh-text); }
.gh-pp__features { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; font-size: 14px; color: #334155; }
.gh-pp__features li { display: flex; align-items: flex-start; gap: 8px; }
.gh-pp__features .gh-icon { color: var(--gh-accent); margin-top: 2px; stroke-width: 2.6; }
.gh-pp__features strong { color: var(--gh-text); }

.gh-pp__cart form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.gh-pp__cart form.cart .gh-qty-label { font-weight: 600; color: var(--gh-text); }
.gh-pp__cart form.cart .gh-break { flex-basis: 100%; height: 0; }
.gh-pp__cart form.cart .single_add_to_cart_button, .gh-pp__cart .gh-buy-now { flex: 1 1 200px; min-height: 52px; font-size: 16px; border-radius: 10px; }
.gh-pp__cart form.cart .single_add_to_cart_button { background: #fff; color: var(--gh-primary); border: 1.5px solid var(--gh-primary); }
.gh-pp__cart form.cart .single_add_to_cart_button::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M1 2h3l2.7 12.4a2 2 0 0 0 2 1.6h9.6a2 2 0 0 0 2-1.6L22 6H5.2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M1 2h3l2.7 12.4a2 2 0 0 0 2 1.6h9.6a2 2 0 0 0 2-1.6L22 6H5.2'/%3E%3C/svg%3E") center/contain no-repeat; }
.gh-pp__cart form.cart .single_add_to_cart_button:hover { background: var(--gh-primary); color: #fff; }
.gh-pp__cart .gh-buy-now { box-shadow: 0 8px 20px rgba(22, 82, 240, .25); }
.gh-wish--square { position: static; width: 46px; height: 46px; border-radius: 10px; }
.gh-pp__cart .variations { margin-bottom: 14px; width: 100%; }
.gh-pp__cart .variations th, .gh-pp__cart .variations td { padding: 6px 0; text-align: left; vertical-align: middle; }
.gh-pp__cart .variations select { padding: 10px 12px; border: 1px solid var(--gh-border); border-radius: 10px; background: var(--gh-soft); min-width: 200px; }
.gh-pp__cart .reset_variations { margin-left: 10px; font-size: 13px; }
.gh-pp__cart .single_variation_wrap { width: 100%; }
.gh-pp__cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gh-pp__cart .stock { font-weight: 600; margin: 0 0 10px; }
.gh-pp__cart .stock.in-stock { color: var(--gh-success); }
.gh-pp__cart .stock.out-of-stock { color: var(--gh-sale); }
.gh-pp__delivery { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: #475569; font-size: 14px; }
.gh-pp__delivery .gh-icon { color: var(--gh-accent); }

.gh-pp__trust { margin-top: 28px; padding: 16px 10px; box-shadow: var(--gh-shadow-sm); }
.gh-pp__pay { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: var(--gh-shadow-sm); }
.gh-pp__paylist, .gh-cart-trust__pay { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gh-pay { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; line-height: 1; }
.gh-pay--visa { color: #1a1f71; font-style: italic; font-size: 22px; letter-spacing: -.5px; }
.gh-pay--mc { position: relative; width: 38px; height: 24px; }
.gh-pay--mc i { position: absolute; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #eb001b; }
.gh-pay--mc i + i { left: 14px; background: #f79e1b; mix-blend-mode: multiply; }
.gh-pay--ep { color: #1fb25a; font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.gh-pay--jc { color: #fff; background: linear-gradient(90deg, #d71920, #f7a600); padding: 6px 10px; border-radius: 6px; font-style: italic; font-size: 14px; }
.gh-pay--bank, .gh-pay--cod { color: var(--gh-primary); font-weight: 600; font-size: 14px; }

/* Key benefits bar */
.gh-kb { margin-top: 24px; display: grid; grid-template-columns: 1.25fr 3fr; align-items: center; gap: 10px; background: var(--gh-grad); color: #fff; border-radius: 14px; padding: 18px 24px; position: relative; overflow: hidden; }
.gh-kb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, transparent, #5aa2ff, transparent); }
.gh-kb__head h2 { color: #fff; font-size: 24px; font-style: italic; margin: 0 0 4px; }
.gh-kb__head p { margin: 0; font-size: 13.5px; opacity: .85; }
.gh-kb__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.gh-kb__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 10px; font-size: 13px; font-weight: 500; border-left: 1px solid rgba(255,255,255,.2); }

/* Tabs */
.gh-tabs { margin-top: 24px; padding: 0; overflow: hidden; }
.gh-tabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--gh-border); padding: 0 12px; background: var(--gh-soft); overflow-x: auto; }
.gh-tabs__nav button { border: 0; background: none; padding: 14px 18px; font-weight: 600; color: var(--gh-muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.gh-tabs__nav button.is-active { color: var(--gh-primary); border-bottom-color: var(--gh-accent); }
.gh-tabs__panel { display: none; padding: 22px 24px; }
.gh-tabs__panel.is-active { display: block; }
.gh-specs th, .gh-specs td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--gh-border); font-size: 14px; }
.gh-specs th { width: 34%; color: var(--gh-primary); background: var(--gh-soft); font-weight: 600; }

.gh-pp__section { margin-top: 36px; }
.gh-reviews__summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--gh-muted); }
.gh-reviews__summary strong { font-size: 22px; color: var(--gh-text); }
.gh-review-form { margin-top: 20px; background: var(--gh-soft); border: 1px solid var(--gh-border); border-radius: var(--gh-radius); padding: 22px; }
.gh-review-form[hidden] { display: none; }
#review_form .comment-reply-title { font-size: 18px; font-weight: 700; color: var(--gh-primary); display: block; margin-bottom: 12px; }
#review_form .comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
#review_form .comment-form > p, #review_form .comment-form-rating { grid-column: 1 / -1; margin: 0 0 12px; }
#review_form .comment-form-author { grid-column: 1; }
#review_form .comment-form-email { grid-column: 2; }
#review_form label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--gh-primary); }
.woocommerce p.stars a { color: var(--gh-star); }
p.stars { margin: 0; }
p.stars a { position: relative; height: 1em; width: 1em; text-indent: -999em; display: inline-block; text-decoration: none; font-size: 22px; margin-right: 4px; }
p.stars a::before { content: "★"; position: absolute; top: 0; left: 0; width: 1em; height: 1em; line-height: 1; text-indent: 0; color: #d5dbe7; }
p.stars:hover a::before, p.stars.selected a::before { color: var(--gh-star); }
p.stars.selected a.active ~ a::before, p.stars a:hover ~ a::before { color: #d5dbe7; }
#review_form .form-submit input { background: var(--gh-primary); color: #fff; border: 0; padding: 12px 26px; border-radius: 10px; font-weight: 600; cursor: pointer; }
#review_form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: 13px; }
#review_form .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--gh-muted); }

.gh-faq--pp { grid-template-columns: 1fr 1.25fr; }
.gh-faq--pp .gh-faq__media { display: grid; gap: 14px; }
.gh-faq--pp .gh-faq__imgcard { background: linear-gradient(120deg, #eaf2ff, #cfe0ff); padding: 20px; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: flex-start; }
.gh-faq--pp .gh-faq__imgcard img { max-height: 100%; width: auto; max-width: 55%; mix-blend-mode: multiply; border-radius: 10px; }

/* Mini (recently viewed) */
.gh-mini { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--gh-border); border-radius: var(--gh-radius); background: #fff; color: var(--gh-text); width: 100%; transition: .2s; }
.gh-mini:hover { box-shadow: var(--gh-shadow-sm); color: var(--gh-text); }
.gh-mini__img { flex: 0 0 76px; }
.gh-mini__img img { width: 76px; height: auto; border-radius: 8px; }
.gh-mini__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gh-mini__body strong { font-size: 14px; }
.gh-mini__body small { color: var(--gh-muted); font-size: 12px; }

/* ---------- Shop / archive ---------- */
.gh-section--shop { padding-top: 22px; }
.gh-chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.gh-chips::-webkit-scrollbar { display: none; }
.gh-chip { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border: 1px solid var(--gh-border); border-radius: 999px; background: #fff; color: var(--gh-primary); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: .2s; }
.gh-chip > .gh-icon { margin-left: 8px; }
.gh-chip img { width: 34px; height: 34px; flex: 0 0 34px; object-fit: cover; border-radius: 50%; background: var(--gh-soft); }
.gh-chip span { white-space: nowrap; }
.gh-chip:hover { border-color: var(--gh-accent); color: var(--gh-accent); }
.gh-chip.is-active { background: var(--gh-primary); border-color: var(--gh-primary); color: #fff; }

.gh-shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.gh-shop.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.gh-shop__side { position: sticky; top: calc(var(--gh-header-h) + 16px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.gh-shop__side > *, .gh-shop__main { min-width: 0; }
.gh-shop__side .widget input, .gh-shop__side .widget select { max-width: 100%; }
.gh-shop__side .widget h2, .gh-shop__side .widget .wp-block-heading { font-size: 15px; }
.gh-shop__side-head { display: none; }
.gh-shop__overlay { display: none; }
.gh-filter-box { background: #fff; border: 1px solid var(--gh-border); border-radius: var(--gh-radius); padding: 16px; }
.gh-filter-title { font-size: 15px; margin: 0 0 12px; color: var(--gh-primary); }
.gh-filter-cats, .gh-filter-cats ul, .gh-filter-rating, .gh-filter-box ul { list-style: none; padding: 0; margin: 0; }
.gh-filter-cats a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--gh-text); font-size: 14px; }
.gh-filter-cats a em { font-style: normal; font-size: 12px; color: var(--gh-muted); background: var(--gh-soft); border-radius: 999px; padding: 1px 8px; }
.gh-filter-cats a:hover, .gh-filter-cats li.is-active > a { background: var(--gh-soft-2); color: var(--gh-accent); }
.gh-filter-cats ul { padding-left: 12px; }
.gh-filter-price__row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.gh-filter-price input { padding: 9px 10px; min-width: 0; flex: 1 1 0; width: auto; }
.gh-filter-rating a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--gh-muted); font-size: 13px; }
.gh-filter-rating li.is-active a, .gh-filter-rating a:hover { background: var(--gh-soft-2); }
.gh-filter-reset { display: inline-flex; align-items: center; gap: 6px; color: var(--gh-sale); font-weight: 600; font-size: 13px; }

.gh-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 10px 14px; background: var(--gh-soft); border: 1px solid var(--gh-border); border-radius: var(--gh-radius); }
.gh-toolbar__filter { display: none !important; }
.gh-toolbar .woocommerce-result-count { margin: 0; font-size: 14px; color: var(--gh-muted); }
.gh-toolbar .woocommerce-ordering { margin: 0; }
.gh-toolbar .woocommerce-ordering select { padding: 9px 34px 9px 12px; border: 1px solid var(--gh-border); border-radius: 8px; background: #fff; font-size: 14px; color: var(--gh-text); }

ul.products.gh-grid, .gh-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--gh-shop-cols, 4), minmax(0, 1fr)); gap: 18px; }
.gh-grid::before, .gh-grid::after { display: none !important; }
.gh-grid__item, .woocommerce ul.products li.gh-grid__item { display: flex; width: auto !important; margin: 0 !important; float: none !important; padding: 0; }
.woocommerce-pagination { margin-top: 32px; }
.woocommerce-pagination .page-numbers { display: inline-flex !important; border: 0 !important; }
.woocommerce-pagination .page-numbers li { border: 0 !important; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--gh-border) !important; border-radius: 10px; color: var(--gh-primary); font-weight: 600; padding: 0 10px; margin: 0 3px; }
.woocommerce-pagination .page-numbers span.current { background: var(--gh-primary); color: #fff; border-color: var(--gh-primary) !important; }

/* Wishlist */
.gh-wishlist__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 600; color: var(--gh-primary); }
.gh-wishlist .gh-grid { --gh-shop-cols: 5; }

/* ---------- Cart (classic) ---------- */
.woocommerce-cart .gh-page > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.woocommerce-cart .gh-page > .woocommerce > .woocommerce-notices-wrapper, .woocommerce-cart .gh-page > .woocommerce > .cart-empty, .woocommerce-cart .gh-page > .woocommerce > .return-to-shop, .woocommerce-cart .gh-page > .woocommerce > .wc-empty-cart-message { grid-column: 1 / -1; }
.woocommerce-cart-form { background: #fff; border: 1px solid var(--gh-border); border-radius: var(--gh-radius); padding: 8px 18px; box-shadow: var(--gh-shadow-sm); }
table.shop_table { border: 0; width: 100%; font-size: 14px; }
table.shop_table th { text-align: left; color: var(--gh-primary); font-weight: 600; padding: 14px 10px; border-bottom: 1px solid var(--gh-border); }
table.shop_table td { padding: 16px 10px; border-bottom: 1px solid var(--gh-border); vertical-align: middle; }
table.shop_table tr:last-child td { border-bottom: 0; }
table.cart .product-thumbnail img { width: 80px; border-radius: 10px; background: var(--gh-soft); }
table.cart .product-name a { color: var(--gh-text); font-weight: 600; }
table.cart .product-remove a.remove { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: #fff1f1; color: var(--gh-sale) !important; font-size: 20px; text-decoration: none; }
table.cart .product-remove a.remove:hover { background: var(--gh-sale); color: #fff !important; }
table.cart td.actions { padding-top: 18px; }
table.cart td.actions .coupon { display: inline-flex; gap: 8px; align-items: center; }
table.cart td.actions .coupon label { display: none; }
table.cart td.actions .coupon .input-text { width: 180px; }
table.cart td.actions > .button { float: right; background: #fff; color: var(--gh-primary); }
.cart-collaterals { position: sticky; top: calc(var(--gh-header-h) + 16px); }
.cart-collaterals .cart_totals, .woocommerce-checkout-review-order-wrap { background: #fff; border: 1px solid var(--gh-border); border-radius: var(--gh-radius); padding: 20px; box-shadow: var(--gh-shadow-sm); width: 100% !important; float: none !important; }
.cart_totals h2 { font-size: 20px; margin-bottom: 8px; }
.cart_totals table.shop_table th { width: 40%; border-bottom: 1px solid var(--gh-border); }
.cart_totals .order-total td, .cart_totals .order-total th { font-size: 17px; color: var(--gh-primary); }
.wc-proceed-to-checkout { padding-top: 14px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 52px; font-size: 16px !important; background: var(--gh-accent) !important; border-color: var(--gh-accent) !important; }
.gh-free { color: var(--gh-success); }
.woocommerce-shipping-methods { list-style: none; padding: 0; margin: 0; }
.gh-cart-trust { margin-top: 16px; display: grid; gap: 10px; font-size: 13px; color: #475569; }
.gh-cart-trust > div { display: flex; align-items: center; gap: 8px; }
.gh-cart-trust .gh-icon { color: var(--gh-accent); }
.gh-cart-trust__pay { padding-top: 10px; border-top: 1px dashed var(--gh-border); gap: 12px !important; }
.gh-cart-trust__pay .gh-pay { font-size: 13px; }
.gh-cart-trust__pay .gh-pay--visa { font-size: 17px; }
.cart-empty.woocommerce-info { justify-content: center; font-size: 16px; padding: 30px; }
.return-to-shop { text-align: center; }
.cross-sells { margin-top: 24px; }
.cross-sells h2 { font-size: 20px; }
.cross-sells .gh-grid { --gh-shop-cols: 3; }

/* ---------- Checkout (classic) ---------- */
form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 28px; align-items: start; }
form.checkout > .woocommerce-NoticeGroup, form.checkout > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
form.checkout #customer_details { grid-column: 1; grid-row: 2 / span 3; background: #fff; border: 1px solid var(--gh-border); border-radius: var(--gh-radius); padding: 22px; box-shadow: var(--gh-shadow-sm); display: block; }
form.checkout #customer_details.col2-set { display: block; }
form.checkout #customer_details .col-2 { margin-top: 10px; }
form.checkout #order_review_heading { grid-column: 2; grid-row: 2; margin: 0; padding: 20px 20px 0; background: #fff; border: 1px solid var(--gh-border); border-bottom: 0; border-radius: var(--gh-radius) var(--gh-radius) 0 0; font-size: 20px; }
form.checkout #order_review { grid-column: 2; grid-row: 3; background: #fff; border: 1px solid var(--gh-border); border-top: 0; border-radius: 0 0 var(--gh-radius) var(--gh-radius); padding: 0 20px 20px; position: sticky; top: calc(var(--gh-header-h) + 16px); }
.woocommerce-checkout h3 { font-size: 18px; margin: 0 0 14px; }
.woocommerce-checkout-review-order-table .product-name { font-weight: 500; }
.woocommerce-checkout-review-order-table tfoot th { color: var(--gh-text); }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: 17px; color: var(--gh-primary); }
.woocommerce-checkout #payment, #payment { background: var(--gh-soft); border-radius: 12px; padding: 14px; margin-top: 12px; }
.woocommerce-checkout #payment div.payment_box { background: var(--gh-soft-2); color: var(--gh-muted); border-radius: 8px; margin-top: 8px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--gh-soft-2); }
.woocommerce-checkout #payment div.form-row { padding: 6px 0 0; }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
#payment ul.payment_methods li { background: #fff; border: 1px solid var(--gh-border); border-radius: 10px; padding: 12px 14px; }
#payment ul.payment_methods li label { font-weight: 600; color: var(--gh-primary); }
#payment .payment_box { font-size: 13px; color: var(--gh-muted); padding-top: 8px; }
#payment .payment_box p { margin: 0; }
#place_order { width: 100%; min-height: 54px; font-size: 16px; background: var(--gh-accent); border-color: var(--gh-accent); }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; margin-bottom: 12px; }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { justify-content: flex-start; }
form.checkout_coupon, form.woocommerce-form-login { background: #fff; border: 1px solid var(--gh-border); border-radius: var(--gh-radius); padding: 18px; margin-bottom: 18px; }

/* Order received */
.woocommerce-order { background: #fff; border: 1px solid var(--gh-border); border-radius: var(--gh-radius); padding: 24px; }
.woocommerce-thankyou-order-received { font-size: 20px; font-weight: 700; color: var(--gh-success); }
ul.woocommerce-order-overview { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
ul.woocommerce-order-overview li { background: var(--gh-soft); border-radius: 10px; padding: 12px; font-size: 13px; color: var(--gh-muted); }
ul.woocommerce-order-overview li strong { display: block; color: var(--gh-primary); font-size: 15px; }

/* ---------- Block cart/checkout (if used) ---------- */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-family: var(--gh-font); }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--gh-accent) !important; color: #fff !important; border-radius: 10px !important; min-height: 52px; }
.wc-block-components-sidebar-layout .wc-block-components-main, .wc-block-components-sidebar { padding-top: 0; }
.wc-block-components-totals-wrapper, .wc-block-components-order-summary { border-color: var(--gh-border) !important; }

/* ---------- My account ---------- */
.woocommerce-account .gh-page > .woocommerce { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.woocommerce-account .gh-page > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account:not(.logged-in) .gh-page > .woocommerce { display: block; }
.gh-acc-nav { background: #fff; border: 1px solid var(--gh-border); border-radius: var(--gh-radius); padding: 10px; box-shadow: var(--gh-shadow-sm); position: sticky; top: calc(var(--gh-header-h) + 16px); width: 100% !important; float: none !important; }
.gh-acc-nav__user { display: flex; align-items: center; gap: 12px; padding: 10px 10px 16px; border-bottom: 1px solid var(--gh-border); margin-bottom: 8px; }
.gh-acc-nav__user img { border-radius: 50%; }
.gh-acc-nav__user small { display: block; color: var(--gh-muted); }
.gh-acc-nav__user strong { color: var(--gh-primary); }
.gh-acc-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.gh-acc-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--gh-text); font-weight: 500; font-size: 14px; }
.gh-acc-nav a .gh-icon { color: var(--gh-muted); }
.gh-acc-nav a:hover { background: var(--gh-soft); color: var(--gh-accent); }
.gh-acc-nav li.is-active a { background: var(--gh-primary); color: #fff; }
.gh-acc-nav li.is-active a .gh-icon { color: #fff; }
.gh-acc-nav .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--gh-sale); }
.woocommerce-MyAccount-content { background: #fff; border: 1px solid var(--gh-border); border-radius: var(--gh-radius); padding: 24px; box-shadow: var(--gh-shadow-sm); width: 100% !important; float: none !important; min-width: 0; }
.woocommerce-MyAccount-content mark { background: var(--gh-soft-2); color: var(--gh-primary); padding: 1px 6px; border-radius: 4px; }
.woocommerce-orders-table .button, .woocommerce-MyAccount-content .button { padding: 8px 14px; font-size: 13px; }
.woocommerce-Addresses .woocommerce-Address { background: var(--gh-soft); border-radius: 12px; padding: 16px; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: center; }
.woocommerce-Address-title h2 { font-size: 18px; margin: 0; }
/* Login/register */
.woocommerce-account #customer_login { gap: 24px; }
.woocommerce-account #customer_login > div, .woocommerce-account:not(.logged-in) .gh-page > .woocommerce > form.login, .woocommerce-ResetPassword { background: #fff; border: 1px solid var(--gh-border); border-radius: var(--gh-radius); padding: 26px; box-shadow: var(--gh-shadow-sm); }
.woocommerce-account:not(.logged-in) .gh-page > .woocommerce > form.login { max-width: 480px; margin: 0 auto; }
#customer_login h2 { font-size: 22px; }
.woocommerce-account:not(.logged-in) .gh-page > .woocommerce > h2 { text-align: center; }
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; font-size: 13.5px; }
.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.lost_password { font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.gh-shop { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
	ul.products.gh-grid, .gh-grid { --gh-shop-cols: var(--gh-shop-cols-t, 3) !important; }
	.woocommerce-cart .gh-page > .woocommerce, form.checkout.woocommerce-checkout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1024px) {
	.gh-pp__top { grid-template-columns: 1fr; gap: 24px; }
	.gh-pp__gallery { position: static; }
	.gh-kb { grid-template-columns: 1fr; }
	.gh-kb__items { grid-template-columns: repeat(5, 1fr); }
	.gh-kb__item:first-child { border-left: 0; }
	.gh-faq--pp { grid-template-columns: 1fr; }

	.gh-shop { grid-template-columns: minmax(0, 1fr); }
	.gh-toolbar__filter { display: inline-flex !important; }
	.gh-shop__side { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); z-index: 1001; background: var(--gh-soft); padding: 0 14px 20px; overflow-y: auto; transform: translateX(-100%); transition: transform .3s; align-content: start; }
	.gh-shop__side.is-open { transform: none; }
	.gh-shop__side-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; position: sticky; top: 0; background: var(--gh-soft); z-index: 1; }
	.gh-shop__side-head strong { display: inline-flex; gap: 8px; align-items: center; color: var(--gh-primary); }
	.gh-shop__side-close { background: #fff; border: 1px solid var(--gh-border); width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--gh-primary); }
	.gh-shop__overlay { display: block; position: fixed; inset: 0; background: rgba(6,23,63,.5); z-index: 1000; opacity: 0; visibility: hidden; transition: .3s; }
	.gh-shop__overlay.is-open { opacity: 1; visibility: visible; }

	.woocommerce-cart .gh-page > .woocommerce, form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
	.cart-collaterals, form.checkout #order_review { position: static; }
	form.checkout #customer_details, form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; }
	form.checkout #order_review_heading { margin-top: 20px; }
	.woocommerce-account .gh-page > .woocommerce { grid-template-columns: 1fr; }
	.gh-acc-nav { position: static; }
	.gh-acc-nav ul { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
	.gh-acc-nav a { white-space: nowrap; background: var(--gh-soft); }
}
@media (max-width: 767px) {
	.gh-pp { padding-top: 10px; }
	.gh-pp > .gh-container > .gh-bc { font-size: 12px; margin-bottom: 10px; }
	.gh-pp__main { border-radius: 12px; }
	.gh-pp__thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
	.gh-pp__title { font-size: 23px; }
	.gh-pp__subtitle { font-size: 15px; }
	.gh-price--lg .gh-price__now { font-size: 24px; }
	.gh-pp__cart form.cart .single_add_to_cart_button, .gh-pp__cart .gh-buy-now { flex: 1 1 calc(50% - 6px); min-height: 48px; font-size: 14.5px; padding: 10px; }
	.gh-pp__cart .gh-buy-now .gh-icon-arrow-right { display: none; }
	.gh-pp__pay { flex-direction: column; align-items: flex-start; }
	.gh-pp__paylist { gap: 12px 16px; }
	.gh-kb { padding: 18px 14px; }
	.gh-kb__head h2 { font-size: 20px; }
	.gh-kb__items { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
	.gh-kb__item { font-size: 12px; border-left: 0; padding: 4px; }
	.gh-tabs__panel { padding: 16px; }
	.gh-reviews .gh-head { flex-direction: column; align-items: flex-start; }
	#review_form .comment-form { grid-template-columns: 1fr; }
	#review_form .comment-form-email { grid-column: 1; }

	ul.products.gh-grid, .gh-grid { --gh-shop-cols: var(--gh-shop-cols-m, 2) !important; gap: 10px; }
	.gh-toolbar { padding: 8px 10px; flex-wrap: wrap; }
	.gh-toolbar__count { display: none; }
	.gh-toolbar .woocommerce-ordering select { max-width: 170px; font-size: 13px; }
	.gh-chip { font-size: 12.5px; padding: 4px 12px 4px 4px; }
	.gh-chip img { width: 28px; height: 28px; flex-basis: 28px; }
	.gh-chips { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }

	.woocommerce-cart-form { padding: 4px 12px; }
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; position: relative; padding: 12px 0; border-bottom: 1px solid var(--gh-border); }
	table.shop_table_responsive tr td { display: flex; justify-content: space-between; align-items: center; text-align: right; padding: 6px 0; border: 0; }
	table.shop_table_responsive tr td::before { content: attr(data-title) ": "; font-weight: 600; color: var(--gh-primary); }
	table.shop_table_responsive tr td.product-remove, table.shop_table_responsive tr td.product-thumbnail, table.shop_table_responsive tr td.actions { display: block; text-align: left; }
	table.shop_table_responsive tr td.product-remove::before, table.shop_table_responsive tr td.product-thumbnail::before, table.shop_table_responsive tr td.actions::before { display: none; }
	table.cart .product-remove { text-align: right !important; }
	table.cart td.actions .coupon { display: flex; width: 100%; margin-bottom: 10px; }
	table.cart td.actions .coupon .input-text { flex: 1; width: auto; }
	table.cart td.actions > .button { float: none; width: 100%; }
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
	.woocommerce .col2-set { grid-template-columns: 1fr; }
	form.checkout #customer_details, form.checkout #order_review { padding: 16px; }
	form.checkout #order_review_heading { padding: 16px 16px 0; }
	.woocommerce-MyAccount-content { padding: 16px; }
}
