/* ==========================================================================
   Grandpa's Garden — WooCommerce pages
   Shop / category, single product, cart, checkout, my account, notices.
   ========================================================================== */

/* ---------- Buttons ---------- */
body.gg-theme a.button,
body.gg-theme button.button,
body.gg-theme input.button,
body.gg-theme #respond input#submit,
body.gg-theme a.button,
body.gg-theme a.button.add_to_cart_button,
body.gg-theme .gg-sticky-atc .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 24px;
	border: 0; border-radius: var(--gg-radius-pill);
	background: var(--gg-forest); color: #fff;
	font: 600 14.5px/1.2 var(--gg-font-body);
	letter-spacing: .01em; text-decoration: none;
	transition: background .2s, transform .2s var(--gg-ease), box-shadow .2s;
}
body.gg-theme a.button:hover,
body.gg-theme button.button:hover,
body.gg-theme a.button.add_to_cart_button:hover {
	background: var(--gg-green); color: #fff; transform: translateY(-1px); box-shadow: var(--gg-shadow);
}
body.gg-theme a.button.alt,
body.gg-theme button.button.alt,
body.gg-theme input.button.alt,
body.gg-theme .gg-sticky-atc .button.alt {
	background: var(--gg-green); color: #fff;
}
body.gg-theme a.button.alt:hover,
body.gg-theme button.button.alt:hover,
body.gg-theme .gg-sticky-atc .button.alt:hover { background: var(--gg-green-hover); }
body.gg-theme button.button:disabled,
body.gg-theme button.button:disabled[disabled] { opacity: .45; padding: 13px 24px; }
body.gg-theme a.button.loading,
body.gg-theme button.button.loading { opacity: .7; }
body.gg-theme a.added_to_cart { display: inline-block; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--gg-green); }
body.gg-has-drawer a.added_to_cart { display: none; }

/* ---------- Prices ---------- */
body.gg-theme .price,
body.gg-theme .price { color: var(--gg-forest) !important; font-weight: 700; }
body.gg-theme .price del { color: var(--gg-muted); font-weight: 400; opacity: .8; margin-right: 6px; }
body.gg-theme .price ins { text-decoration: none; color: var(--gg-spice); }

/* ---------- Sale badge ---------- */
body.gg-theme span.onsale {
	min-width: 0; min-height: 0; width: auto; height: auto;
	top: 14px; left: 14px; right: auto; margin: 0;
	padding: 6px 12px; border-radius: var(--gg-radius-pill);
	background: var(--gg-spice); color: #fff;
	font: 700 12.5px/1 var(--gg-font-body); letter-spacing: .02em;
	z-index: 3;
}

/* ---------- Shop header, ordering, result count ---------- */
body.gg-theme.woocommerce-shop .page-header,
body.gg-theme.tax-product_cat .page-header { text-align: center; padding: 36px 0 10px; }
body.gg-theme .woocommerce-products-header__title,
body.gg-theme.woocommerce-shop .page-header .entry-title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 6px; }
body.gg-theme .woocommerce-breadcrumb { font-size: 13px; color: var(--gg-muted) !important; margin-bottom: 20px !important; }
body.gg-theme .woocommerce-breadcrumb a { color: var(--gg-muted) !important; }
body.gg-theme .woocommerce-result-count { color: var(--gg-muted); font-size: 14px; margin-top: 10px; }
body.gg-theme .woocommerce-ordering select {
	padding: 10px 38px 10px 16px; border: 1px solid var(--gg-line); border-radius: var(--gg-radius-pill);
	background-color: #fff; font-size: 14px; color: var(--gg-ink);
}

/* ---------- Product grid & cards ---------- */
body.gg-theme ul.products,
body.gg-theme ul.products {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px;
	margin: 0 0 40px; padding: 0;
}
body.gg-theme ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.gg-theme ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.gg-theme ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.gg-theme ul.products::before,
body.gg-theme ul.products::after { display: none; }

body.gg-theme ul.products li.product {
	position: relative; display: flex; flex-direction: column;
	width: auto !important; margin: 0 !important; float: none !important; padding: 0 0 18px;
	background: #fff; border: 1px solid var(--gg-line); border-radius: var(--gg-radius);
	overflow: hidden; text-align: left;
	transition: transform .3s var(--gg-ease), box-shadow .3s, border-color .3s;
}
body.gg-theme ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--gg-shadow); border-color: var(--gg-sand); }
body.gg-theme ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
body.gg-theme ul.products li.product a img {
	width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0 0 16px;
	background: var(--gg-cream); transition: transform .5s var(--gg-ease);
}
body.gg-theme ul.products li.product:hover a img { transform: scale(1.04); }
body.gg-theme ul.products li.product .woocommerce-loop-product__title {
	padding: 0 18px; margin: 0 0 6px; font: 600 18px/1.3 var(--gg-font-head); color: var(--gg-forest);
}
body.gg-theme ul.products li.product .star-rating { margin: 0 18px 8px; font-size: 12px; color: var(--gg-gold); }
body.gg-theme ul.products li.product .price { display: block; padding: 0 18px; margin: 0 0 14px; font-size: 16px; }
body.gg-theme ul.products li.product .button { margin: auto 18px 0 !important; width: calc(100% - 36px); }
body.gg-theme ul.products li.product .added_to_cart { padding: 0 18px; }

@media (max-width: 1024px) {
	body.gg-theme ul.products,
	body.gg-theme ul.products.columns-4,
	body.gg-theme ul.products.columns-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	body.gg-theme ul.products,
	body.gg-theme ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	body.gg-theme ul.products li.product { padding-bottom: 12px; }
	body.gg-theme ul.products li.product .woocommerce-loop-product__title { font-size: 15px; padding: 0 12px; }
	body.gg-theme ul.products li.product .price { padding: 0 12px; font-size: 14px; }
	body.gg-theme ul.products li.product .button { margin: auto 12px 0 !important; width: calc(100% - 24px); padding: 11px 10px; font-size: 13px; }
	body.gg-theme span.onsale { top: 10px; left: 10px; padding: 5px 9px; font-size: 11px; }
}

/* ---------- Pagination ---------- */
body.gg-theme nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 8px; }
body.gg-theme nav.woocommerce-pagination ul li { border: 0; }
body.gg-theme nav.woocommerce-pagination ul li a,
body.gg-theme nav.woocommerce-pagination ul li span {
	display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
	border-radius: 50%; border: 1px solid var(--gg-line); color: var(--gg-ink);
}
body.gg-theme nav.woocommerce-pagination ul li span.current,
body.gg-theme nav.woocommerce-pagination ul li a:hover { background: var(--gg-forest); border-color: var(--gg-forest); color: #fff; }

/* ---------- Single product ---------- */
body.gg-theme.single-product div.product { margin-top: 10px; }
body.gg-theme.single-product div.product .woocommerce-product-gallery {
	border-radius: var(--gg-radius); overflow: hidden; background: var(--gg-cream); border: 1px solid var(--gg-sand);
}
body.gg-theme.single-product div.product .woocommerce-product-gallery__image img { background: var(--gg-cream); }
body.gg-theme.single-product div.product .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 10px; padding: 12px; }
body.gg-theme.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { width: 72px !important; float: none; }
body.gg-theme.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img { border-radius: var(--gg-radius-sm); border: 2px solid transparent; opacity: .7; }
body.gg-theme.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.gg-theme.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img:hover { border-color: var(--gg-green); opacity: 1; }
body.gg-theme.single-product div.product .woocommerce-product-gallery__trigger { background: #fff; box-shadow: var(--gg-shadow); }

body.gg-theme.single-product div.product .summary { padding-top: 6px; }
body.gg-theme.single-product div.product .product_title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; margin: 0 0 12px; }
body.gg-theme.single-product div.product p.price,
body.gg-theme.single-product div.product span.price { font-size: 28px; margin: 4px 0 18px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
body.gg-theme.single-product div.product p.price del { font-size: 18px; }
body.gg-theme.single-product div.product .woocommerce-product-details__short-description { color: var(--gg-muted); font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
body.gg-theme.single-product div.product .stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; color: var(--gg-leaf); }
body.gg-theme.single-product div.product .stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
body.gg-theme.single-product div.product .stock.out-of-stock { color: var(--gg-danger); }

body.gg-theme.single-product div.product form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 18px 0 8px; }
body.gg-theme.single-product div.product form.cart::before,
body.gg-theme.single-product div.product form.cart::after { display: none; }
body.gg-theme.single-product div.product form.cart .single_add_to_cart_button { flex: 1; min-width: 200px; padding: 16px 28px; font-size: 16px; }
body.gg-theme.single-product div.product form.cart.variations_form { display: block; }
body.gg-theme.single-product div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 12px; flex-wrap: wrap; }
body.gg-theme.single-product div.product table.variations select { padding: 10px 14px; border-radius: var(--gg-radius-sm); border: 1px solid var(--gg-line); min-width: 180px; }

body.gg-theme.single-product div.product .product_meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gg-line); font-size: 13px; color: var(--gg-muted); display: flex; flex-direction: column; gap: 4px; }
body.gg-theme.single-product div.product .product_meta a { color: var(--gg-muted); }
body.gg-theme.single-product div.product .product_meta a:hover { color: var(--gg-green); }

/* Tabs */
body.gg-theme.single-product div.product .woocommerce-tabs { margin-top: 56px; clear: both; }
body.gg-theme.single-product div.product .woocommerce-tabs ul.tabs { display: flex; gap: 6px; padding: 0; margin: 0 0 26px; border-bottom: 1px solid var(--gg-line); overflow-x: auto; }
body.gg-theme.single-product div.product .woocommerce-tabs ul.tabs::before,
body.gg-theme.single-product div.product .woocommerce-tabs ul.tabs li::before,
body.gg-theme.single-product div.product .woocommerce-tabs ul.tabs li::after { display: none; }
body.gg-theme.single-product div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
body.gg-theme.single-product div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 18px; font-weight: 600; font-size: 15px; color: var(--gg-muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
body.gg-theme.single-product div.product .woocommerce-tabs ul.tabs li.active a { color: var(--gg-forest); border-bottom-color: var(--gg-green); }
body.gg-theme.single-product div.product .woocommerce-tabs .panel { max-width: 860px; font-size: 16px; line-height: 1.75; }
body.gg-theme.single-product div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
body.gg-theme.single-product div.product .woocommerce-tabs .panel ul { padding-left: 0; list-style: none; }
body.gg-theme.single-product div.product .woocommerce-tabs .panel ul li { position: relative; padding-left: 28px; margin-bottom: 6px; }
body.gg-theme.single-product div.product .woocommerce-tabs .panel ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gg-green); font-weight: 700; }
body.gg-theme.single-product table.shop_attributes { border: 1px solid var(--gg-line); border-radius: var(--gg-radius-sm); overflow: hidden; }
body.gg-theme.single-product table.shop_attributes th,
body.gg-theme.single-product table.shop_attributes td { padding: 12px 16px; border-color: var(--gg-line); font-style: normal; }
body.gg-theme.single-product table.shop_attributes th { background: var(--gg-cream); color: var(--gg-forest); width: 200px; }

/* Reviews */
body.gg-theme #reviews #comments ol.commentlist li .comment-text { border-color: var(--gg-line); border-radius: var(--gg-radius); padding: 18px; }
body.gg-theme #review_form #respond textarea,
body.gg-theme #review_form #respond input[type="text"],
body.gg-theme #review_form #respond input[type="email"] { border: 1px solid var(--gg-line); border-radius: var(--gg-radius-sm); padding: 12px 14px; }
body.gg-theme .star-rating span::before,
body.gg-theme p.stars a { color: var(--gg-gold); }

/* Related / upsells */
body.gg-theme .related.products > h2,
body.gg-theme .upsells.products > h2,
body.gg-theme .cross-sells > h2,
body.gg-theme .gg-empty-cart__products h3 { font-family: var(--gg-font-head); color: var(--gg-forest); font-size: clamp(26px, 3vw, 34px); margin: 64px 0 24px; }

@media (max-width: 767px) {
	body.gg-theme.single-product div.product .summary { margin-top: 24px; }
	body.gg-theme.single-product div.product form.cart .single_add_to_cart_button { min-width: 0; }
}

/* ---------- Quantity stepper ---------- */
body.gg-theme .quantity.gg-qty {
	display: inline-flex; align-items: stretch; margin: 0 !important;
	border: 1.5px solid var(--gg-line); border-radius: var(--gg-radius-pill); background: #fff; overflow: hidden;
}
body.gg-theme .quantity.gg-qty .qty {
	width: 46px; min-height: 48px; padding: 0; border: 0; background: transparent; text-align: center;
	font: 600 16px/1 var(--gg-font-body); color: var(--gg-ink); -moz-appearance: textfield;
}
body.gg-theme .quantity.gg-qty .qty::-webkit-outer-spin-button,
body.gg-theme .quantity.gg-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.gg-theme .gg-qty__btn {
	width: 42px; padding: 0; border: 0; background: transparent; color: var(--gg-forest);
	font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s;
}
body.gg-theme .gg-qty__btn:hover { background: var(--gg-cream); color: var(--gg-forest); }
body.gg-theme .woocommerce-cart-form .quantity.gg-qty .qty { min-height: 40px; }

/* ---------- Notices ---------- */
body.gg-theme .woocommerce-message,
body.gg-theme .woocommerce-info,
body.gg-theme .woocommerce-error {
	border: 1px solid var(--gg-line); border-left: 4px solid var(--gg-green); border-radius: var(--gg-radius-sm);
	background: #fff; color: var(--gg-ink); box-shadow: var(--gg-shadow); padding: 16px 20px 16px 52px; font-size: 15px;
}
body.gg-theme .woocommerce-message::before,
body.gg-theme .woocommerce-info::before { color: var(--gg-green); top: 16px; left: 20px; }
body.gg-theme .woocommerce-error { border-left-color: var(--gg-danger); }
body.gg-theme .woocommerce-error::before { color: var(--gg-danger); top: 16px; left: 20px; }
body.gg-theme .woocommerce-message .button,
body.gg-theme .woocommerce-info .button { padding: 8px 18px !important; font-size: 13px !important; }

/* ---------- Forms (shared) ---------- */
body.gg-theme form .form-row label { font-size: 13.5px; font-weight: 500; color: var(--gg-ink); margin-bottom: 6px; }
body.gg-theme form .form-row .required { color: var(--gg-spice); text-decoration: none; }
body.gg-theme form .form-row input.input-text,
body.gg-theme form .form-row textarea,
body.gg-theme form .form-row select,
body.gg-theme .select2-container .select2-selection--single,
body.gg-theme .woocommerce-cart table.cart td.actions .coupon .input-text {
	min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--gg-line); border-radius: var(--gg-radius-sm);
	background: #fff; color: var(--gg-ink); font-size: 15px; line-height: 1.4; box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
body.gg-theme .select2-container .select2-selection--single { display: flex; align-items: center; }
body.gg-theme .select2-container .select2-selection--single .select2-selection__arrow { top: 12px; right: 10px; }
body.gg-theme form .form-row input.input-text:focus,
body.gg-theme form .form-row textarea:focus,
body.gg-theme form .form-row select:focus {
	outline: none; border-color: var(--gg-green); box-shadow: 0 0 0 4px rgba(31, 107, 58, .12);
}
body.gg-theme form .form-row.woocommerce-invalid input.input-text { border-color: var(--gg-danger); }

/* ---------- Cart ---------- */
body.gg-theme.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px 40px; align-items: start; }
body.gg-theme.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
body.gg-theme.woocommerce-cart .woocommerce > .gg-ship-bar,
body.gg-theme.woocommerce-cart .woocommerce > .cart-empty,
body.gg-theme.woocommerce-cart .woocommerce > .gg-empty-cart,
body.gg-theme.woocommerce-cart .woocommerce > .gg-empty-cart__products,
body.gg-theme.woocommerce-cart .woocommerce > .return-to-shop { grid-column: 1 / -1; }
body.gg-theme.woocommerce-cart .woocommerce > .gg-ship-bar { margin: 0; }
body.gg-theme.woocommerce-cart .cart-collaterals { width: auto; position: sticky; top: 30px; }
body.gg-theme.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; }
body.gg-theme.woocommerce-cart .woocommerce > .cross-sells { grid-column: 1 / -1; }

body.gg-theme.woocommerce-cart table.shop_table.cart { border: 1px solid var(--gg-line); border-radius: var(--gg-radius); border-collapse: separate; overflow: hidden; background: #fff; }
body.gg-theme.woocommerce-cart table.shop_table.cart thead th { background: var(--gg-cream); color: var(--gg-forest); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 14px 16px; border: 0; }
body.gg-theme.woocommerce-cart table.shop_table.cart td { padding: 18px 16px; border-top: 1px solid var(--gg-line); vertical-align: middle; }
body.gg-theme.woocommerce-cart table.cart img { width: 84px; border-radius: var(--gg-radius-sm); background: var(--gg-cream); border: 1px solid var(--gg-line); }
body.gg-theme.woocommerce-cart table.cart td.product-name a { font: 600 17px/1.3 var(--gg-font-head); color: var(--gg-forest); text-decoration: none; }
body.gg-theme.woocommerce-cart table.cart td.product-subtotal { font-weight: 700; color: var(--gg-forest); }
body.gg-theme.woocommerce-cart table.cart a.remove {
	width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
	color: var(--gg-muted) !important; background: var(--gg-cream); font-size: 20px; font-weight: 400;
}
body.gg-theme.woocommerce-cart table.cart a.remove:hover { background: #fde8e6; color: var(--gg-danger) !important; }
body.gg-theme.woocommerce-cart table.cart td.actions { background: #fcfbf7; padding: 16px; }
body.gg-theme.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 10px; align-items: center; }
body.gg-theme.woocommerce-cart table.cart td.actions .coupon .input-text { width: 200px !important; min-height: 46px; margin: 0 !important; }
body.gg-theme.woocommerce-cart table.cart td.actions > .button { background: #fff; color: var(--gg-forest); border: 1.5px solid var(--gg-line); }

body.gg-theme .cart_totals,
body.gg-theme.woocommerce-checkout #order_review,
body.gg-theme.woocommerce-checkout .gg-order-card {
	padding: 26px; border-radius: var(--gg-radius); background: var(--gg-cream); border: 1px solid var(--gg-sand);
}
body.gg-theme .cart_totals h2 { font-size: 24px !important; margin: 0 0 14px; }
body.gg-theme .cart_totals table.shop_table { border: 0; margin: 0 0 8px; }
body.gg-theme .cart_totals table.shop_table th,
body.gg-theme .cart_totals table.shop_table td { padding: 12px 0; border-top: 1px solid var(--gg-sand); background: none; font-size: 15px; }
body.gg-theme .cart_totals table.shop_table th { font-weight: 500; color: var(--gg-muted); }
body.gg-theme .cart_totals .order-total th,
body.gg-theme .cart_totals .order-total td { font-size: 18px; color: var(--gg-forest); }
body.gg-theme .cart_totals .order-total .amount { font-size: 22px; }
body.gg-theme .wc-proceed-to-checkout { padding: 8px 0 0; }
body.gg-theme .wc-proceed-to-checkout a.checkout-button { width: 100%; padding: 18px !important; font-size: 17px !important; margin: 0 !important; }

@media (max-width: 960px) {
	body.gg-theme.woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
	body.gg-theme.woocommerce-cart .cart-collaterals { position: static; }
}
@media (max-width: 767px) {
	body.gg-theme.woocommerce-cart table.shop_table_responsive tr { display: block; position: relative; padding: 12px 0; border-top: 1px solid var(--gg-line); }
	body.gg-theme.woocommerce-cart table.shop_table_responsive tr td { border: 0; padding: 6px 16px; background: none !important; }
	body.gg-theme.woocommerce-cart table.cart td.product-remove { position: absolute; top: 10px; right: 0; }
	body.gg-theme.woocommerce-cart table.cart td.product-thumbnail { display: block !important; }
	body.gg-theme.woocommerce-cart table.cart td.actions .coupon { flex-direction: column; align-items: stretch; }
	body.gg-theme.woocommerce-cart table.cart td.actions .coupon .input-text { width: 100% !important; }
}

/* Empty cart */
body.gg-theme .gg-empty-cart { text-align: center; padding: 50px 20px 10px; }
body.gg-theme .gg-empty-cart__icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--gg-cream); color: var(--gg-green); margin-bottom: 16px; }
body.gg-theme .gg-empty-cart__icon .gg-icon { width: 38px; height: 38px; }
body.gg-theme .gg-empty-cart h2 { font-family: var(--gg-font-head); color: var(--gg-forest); font-size: 30px; margin: 0 0 8px; }
body.gg-theme .gg-empty-cart p { color: var(--gg-muted); }
body.gg-theme.woocommerce-cart .cart-empty.woocommerce-info { display: none; }
body.gg-theme.woocommerce-cart .return-to-shop { text-align: center; }

/* ---------- Checkout ---------- */
body.gg-theme.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 48px; align-items: start; }
body.gg-theme.woocommerce-checkout form.checkout > .col2-set { grid-column: 1; grid-row: 1 / span 3; width: 100%; float: none; }
body.gg-theme.woocommerce-checkout form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 14px; font-size: 24px; }
body.gg-theme.woocommerce-checkout form.checkout > #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 30px; float: none; width: auto; }
body.gg-theme.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup,
body.gg-theme.woocommerce-checkout form.checkout > .wc_coupon_message_wrapper { grid-column: 1 / -1; }
body.gg-theme.woocommerce-checkout .col2-set .col-1,
body.gg-theme.woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
body.gg-theme.woocommerce-checkout .col2-set .col-2 { margin-top: 18px; }
body.gg-theme.woocommerce-checkout h3 { font-size: 24px; margin: 0 0 16px; }
body.gg-theme.woocommerce-checkout .woocommerce-billing-fields,
body.gg-theme.woocommerce-checkout .woocommerce-shipping-fields,
body.gg-theme.woocommerce-checkout .woocommerce-additional-fields {
	padding: 26px; border: 1px solid var(--gg-line); border-radius: var(--gg-radius); background: #fff;
}
body.gg-theme.woocommerce-checkout .woocommerce-shipping-fields:empty { display: none; }
body.gg-theme.woocommerce-checkout .woocommerce-additional-fields { margin-top: 18px; }
body.gg-theme.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
body.gg-theme.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info { box-shadow: none; background: var(--gg-cream); border-color: var(--gg-sand); }
body.gg-theme.woocommerce-checkout form.checkout_coupon { border: 1px dashed var(--gg-sand); border-radius: var(--gg-radius); background: #fff; padding: 18px; }

body.gg-theme.woocommerce-checkout #order_review table.shop_table { border: 0; margin: 0 0 14px; }
body.gg-theme.woocommerce-checkout #order_review table.shop_table th,
body.gg-theme.woocommerce-checkout #order_review table.shop_table td { padding: 12px 0; border-top: 1px solid var(--gg-sand); background: none; font-size: 14.5px; }
body.gg-theme.woocommerce-checkout #order_review table.shop_table thead th { border-top: 0; color: var(--gg-muted); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
body.gg-theme.woocommerce-checkout #order_review .cart_item .product-name { color: var(--gg-forest); font-weight: 500; }
body.gg-theme.woocommerce-checkout #order_review .order-total th,
body.gg-theme.woocommerce-checkout #order_review .order-total td { font-size: 18px; color: var(--gg-forest); }
body.gg-theme.woocommerce-checkout #order_review .order-total .amount { font-size: 22px; }

body.gg-theme.woocommerce-checkout #payment { background: #fff; border-radius: var(--gg-radius-sm); border: 1px solid var(--gg-sand); }
body.gg-theme.woocommerce-checkout #payment ul.payment_methods { padding: 6px 16px; border-bottom: 1px solid var(--gg-line); }
body.gg-theme.woocommerce-checkout #payment ul.payment_methods li { padding: 12px 0; line-height: 1.5; }
body.gg-theme.woocommerce-checkout #payment ul.payment_methods li + li { border-top: 1px solid var(--gg-line); }
body.gg-theme.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 600; color: var(--gg-forest); }
body.gg-theme.woocommerce-checkout #payment ul.payment_methods li input { accent-color: var(--gg-green); margin-right: 8px; }
body.gg-theme.woocommerce-checkout #payment div.payment_box { background: var(--gg-cream); color: var(--gg-ink); border-radius: var(--gg-radius-sm); font-size: 14px; }
body.gg-theme.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--gg-cream); }
body.gg-theme.woocommerce-checkout #payment div.form-row { padding: 16px; }
body.gg-theme.woocommerce-checkout #payment #place_order { width: 100%; float: none; padding: 18px !important; font-size: 17px !important; }
body.gg-theme.woocommerce-checkout .woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--gg-muted); }
body.gg-theme .gg-secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--gg-muted); }
body.gg-theme .gg-secure-note .gg-icon { color: var(--gg-green); width: 16px; height: 16px; }

@media (max-width: 960px) {
	body.gg-theme.woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
	body.gg-theme.woocommerce-checkout form.checkout > .col2-set,
	body.gg-theme.woocommerce-checkout form.checkout > #order_review_heading,
	body.gg-theme.woocommerce-checkout form.checkout > #order_review { grid-column: 1; grid-row: auto; position: static; }
	body.gg-theme.woocommerce-checkout form.checkout > #order_review_heading { margin-top: 28px; }
}
@media (max-width: 600px) {
	body.gg-theme.woocommerce-checkout .woocommerce-billing-fields,
	body.gg-theme.woocommerce-checkout .woocommerce-shipping-fields,
	body.gg-theme.woocommerce-checkout .woocommerce-additional-fields,
	body.gg-theme.woocommerce-checkout #order_review,
	body.gg-theme .cart_totals { padding: 18px; }
}

/* Thank-you page */
body.gg-theme .woocommerce-order .woocommerce-thankyou-order-received {
	padding: 24px; border-radius: var(--gg-radius); background: #eef7ea; border: 1px solid #cfe6c6;
	font: 600 22px/1.3 var(--gg-font-head); color: var(--gg-forest); text-align: center;
}
body.gg-theme .woocommerce-order ul.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 24px 0; }
body.gg-theme .woocommerce-order ul.woocommerce-order-overview li { flex: 1 1 160px; margin: 0; padding: 16px; border: 1px solid var(--gg-line); border-radius: var(--gg-radius-sm); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gg-muted); }
body.gg-theme .woocommerce-order ul.woocommerce-order-overview li strong { display: block; margin-top: 6px; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--gg-forest); }

/* ---------- My Account ---------- */
body.gg-theme.woocommerce-account .woocommerce { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; }
body.gg-theme.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
body.gg-theme.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 980px; margin: 0 auto; }
body.gg-theme.woocommerce-account .woocommerce-MyAccount-navigation,
body.gg-theme.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
body.gg-theme .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 10px; border: 1px solid var(--gg-line); border-radius: var(--gg-radius); background: var(--gg-cream); }
body.gg-theme .woocommerce-MyAccount-navigation ul li a { display: block; padding: 11px 14px; border-radius: var(--gg-radius-sm); color: var(--gg-ink); font-weight: 500; font-size: 15px; text-decoration: none; }
body.gg-theme .woocommerce-MyAccount-navigation ul li a:hover { background: #fff; }
body.gg-theme .woocommerce-MyAccount-navigation ul li.is-active a { background: var(--gg-forest); color: #fff; }
body.gg-theme .woocommerce-MyAccount-content table.shop_table { border: 1px solid var(--gg-line); border-radius: var(--gg-radius); border-collapse: separate; overflow: hidden; }
body.gg-theme .woocommerce-MyAccount-content table.shop_table th { background: var(--gg-cream); color: var(--gg-forest); }
body.gg-theme.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
body.gg-theme.woocommerce-account .u-columns.col2-set::before,
body.gg-theme.woocommerce-account .u-columns.col2-set::after { display: none; }
body.gg-theme.woocommerce-account .u-columns .u-column1,
body.gg-theme.woocommerce-account .u-columns .u-column2 { width: auto; float: none; }
body.gg-theme.woocommerce-account form.login,
body.gg-theme.woocommerce-account form.register { margin: 0; padding: 28px; border: 1px solid var(--gg-line); border-radius: var(--gg-radius); background: #fff; }
@media (max-width: 860px) {
	body.gg-theme.woocommerce-account .woocommerce,
	body.gg-theme.woocommerce-account .u-columns.col2-set { grid-template-columns: 1fr; }
	body.gg-theme .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 4px; }
	body.gg-theme .woocommerce-MyAccount-navigation ul li a { white-space: nowrap; }
}

/* ---------- Block-based cart / checkout (if the page uses blocks) ---------- */
body.gg-theme .wc-block-components-button:not(.is-link) {
	border-radius: var(--gg-radius-pill) !important; background: var(--gg-green) !important; color: #fff !important; font-weight: 600 !important; min-height: 52px;
}
body.gg-theme .wc-block-components-button:not(.is-link):hover { background: var(--gg-green-hover) !important; }
body.gg-theme .wc-block-components-text-input input,
body.gg-theme .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: var(--gg-radius-sm) !important; border-color: var(--gg-line) !important; }
body.gg-theme .wp-block-woocommerce-cart-totals-block,
body.gg-theme .wp-block-woocommerce-checkout-order-summary-block { background: var(--gg-cream); border: 1px solid var(--gg-sand); border-radius: var(--gg-radius); padding: 8px 16px; }
body.gg-theme .wc-block-components-product-name { color: var(--gg-forest) !important; font-weight: 600; }

/* Loop badge + price size (beats WooCommerce's more specific loop rules) */
body.gg-theme ul.products li.product .onsale { top: 12px; left: 12px; right: auto; margin: 0; }
body.gg-theme ul.products li.product .price del,
body.gg-theme ul.products li.product .price ins,
body.gg-theme ul.products li.product .price .amount { font-size: inherit; }
body.gg-theme.single-product div.product ul.products li.product .price { display: block; font-size: 16px; margin: 0 0 14px; }
@media (max-width: 767px) { body.gg-theme.single-product div.product ul.products li.product .price { font-size: 14px; } }
body.gg-theme ul.products li.product .button { display: flex; justify-content: center; text-align: center; }
