/* ==========================================================================
   WooCommerce — professional shop / product / cart / checkout / account
   Loaded only on WooCommerce pages by the child theme.
   ========================================================================== */
/* Scope colours to the store CONTENT only — never the header nav / footer. */
.site-inner .woocommerce { color: #1a1a1a; }
.site-inner .woocommerce a { color: #33a185; }
.rg-shop .rg-content, .woocommerce .rg-content { padding-top: 6px; padding-bottom: 44px; }

/* ---- page banner (title) ---- */
.rg-woo-banner { background: #000; text-align: center; padding: 30px 20px; margin: 0 0 34px; }
.rg-woo-banner h1 { color: #fff; font-family: "Playfair Display", serif; font-weight: 900; font-size: 34px; margin: 0; }
.rg-woo-banner p { color: #bdbdbd; margin: 8px 0 0; font-size: 15px; }

/* result count / ordering */
.woocommerce .woocommerce-result-count { color: #777; font-size: 14px; }
.woocommerce .woocommerce-ordering select { padding: 9px 12px; border: 1px solid #d8d8d8; border-radius: 4px; background: #fff; font-size: 14px; }

/* ==========================  PRODUCT GRID  ========================== */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	margin: 0 0 2.5em !important;
	padding: 0;
	list-style: none;
}
/* WooCommerce's clearfix pseudo-elements become stray grid cells — remove them
   so the first product starts in column 1 (no empty left gap). */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important;
	text-align: center; background: #fff; border: 1px solid #ececec; border-radius: 8px;
	padding: 22px 18px; display: flex; flex-direction: column;
	transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease; position: relative;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 12px 30px rgba(0,0,0,.10); transform: translateY(-3px); border-color: #e0e0e0; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; }
.woocommerce ul.products li.product img {
	margin: 0 auto 16px; display: block; border-radius: 4px;
	aspect-ratio: 1 / 1; object-fit: contain; width: 100%; background: #fafafa;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: "Playfair Display", serif; font-weight: 900; color: #111;
	font-size: 17px; line-height: 1.35; padding: 2px 0 10px; min-height: 2.7em;
}
.woocommerce ul.products li.product .price {
	color: #33a185 !important; font-family: "Playfair Display", serif !important;
	font-weight: 900 !important; font-size: 22px !important; margin: 0 0 14px; display: block;
}
.woocommerce ul.products li.product .price del { color: #aaa; font-weight: 400; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { margin-top: auto; width: 100%; }
.woocommerce ul.products li.product .added_to_cart { display: block; margin-top: 8px; font-size: 13px; }
.woocommerce span.onsale {
	background: #33a185; color: #000; font-family: "Alegreya Sans", sans-serif; font-weight: 700;
	min-height: auto; min-width: auto; padding: 5px 12px; border-radius: 0; line-height: 1.3;
	position: absolute; top: 12px; left: 12px; margin: 0;
}

/* ==========================  BUTTONS  ========================== */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .woocommerce #place_order, .woocommerce-page a.button,
.woocommerce-page button.button, .woocommerce .wc-proceed-to-checkout a.checkout-button {
	background: #33a185; color: #000 !important; border: 2px solid #33a185;
	border-radius: 4px; font-family: "Alegreya Sans", sans-serif; font-weight: 700;
	text-transform: none; font-size: 15px; padding: 11px 22px; cursor: pointer;
	transition: background .2s ease, border-color .2s ease; line-height: 1.4;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce #place_order:hover, .woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
	background: #2b8a72; border-color: #2b8a72; color: #000 !important;
}
.woocommerce a.button.wc-backward, .woocommerce .button.wc-backward { background: #fff; color: #33a185 !important; }

/* ==========================  SINGLE PRODUCT  ========================== */
/* extra breathing room at the top (single product has no banner) */
.single-product .rg-shop .rg-content { padding-top: 40px; }
/* fr units so the 48px gap is subtracted (percentages + gap overflowed) */
.woocommerce div.product { display: grid; grid-template-columns: 42fr 58fr; gap: 48px; align-items: start; }
/* gallery must fill its grid column (WooCommerce defaults it to 48%) */
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product div.images {
	width: 100% !important; float: none !important; margin: 0 !important; max-width: 480px;
}
.woocommerce div.product .woocommerce-product-gallery__wrapper {
	border: 1px solid #eee; border-radius: 8px; overflow: hidden; width: 100%;
}
.woocommerce div.product .woocommerce-product-gallery__image,
.woocommerce div.product .woocommerce-product-gallery__image a {
	height: auto; display: block;
}
.woocommerce div.product .woocommerce-product-gallery img {
	width: 100% !important; height: auto; display: block;
}
.woocommerce div.product .summary,
.woocommerce div.product div.summary {
	width: 100% !important;   /* fill the grid column (WooCommerce defaults to 48%) */
	float: none !important;
	margin: 0 !important;
}
.woocommerce div.product .product_title {
	font-family: "Playfair Display", serif; font-weight: 900; color: #111; font-size: 32px; margin: 0 0 12px;
}
.woocommerce div.product p.price, .woocommerce div.product span.price {
	color: #33a185; font-family: "Playfair Display", serif; font-weight: 900; font-size: 30px; margin-bottom: 18px;
}
.woocommerce div.product .woocommerce-product-details__short-description { color: #444; margin-bottom: 22px; }
.woocommerce div.product form.cart { margin-bottom: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.woocommerce div.product form.cart .quantity .qty { width: 72px; padding: 11px 8px; border: 1px solid #ccc; border-radius: 4px; text-align: center; }
.woocommerce div.product .product_meta { color: #777; font-size: 14px; border-top: 1px solid #eee; padding-top: 16px; }
.woocommerce div.product .product_meta a { color: #33a185; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 40px; border-top: 1px solid #eee; padding-top: 30px; }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 900px; color: #333; font-size: 17px; line-height: 1.7; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 2px solid #eee; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color: #eee; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: none; border-radius: 0; margin: 0 4px -2px 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: "Alegreya Sans", sans-serif; font-weight: 700; color: #777; padding: 10px 18px; display: block; border-bottom: 2px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #33a185; border-bottom-color: #33a185; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-family: "Playfair Display", serif; font-weight: 900; color: #111; }
.woocommerce .related.products, .woocommerce .upsells.products { grid-column: 1 / -1; border-top: 1px solid #eee; padding-top: 34px; margin-top: 44px; }
.woocommerce .related.products > h2, .woocommerce .upsells.products > h2 { font-family: "Playfair Display", serif; font-weight: 900; color: #111; font-size: 26px; margin: 0 0 24px; text-align: center; }
.woocommerce .related.products ul.products, .woocommerce .upsells.products ul.products { grid-template-columns: repeat(3, 1fr) !important; }

/* ==========================  NOTICES  ========================== */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
	border-top: 3px solid #33a185; background: #f7faf9; color: #1a1a1a; border-radius: 4px;
}
.woocommerce-error { border-top-color: #cf2e2e; }
.woocommerce-message::before, .woocommerce-info::before { color: #33a185; }

/* ==========================  CART  ========================== */
.woocommerce table.shop_table { border: 1px solid #eee; border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.woocommerce table.shop_table thead th { background: #000; color: #fff; font-family: "Alegreya Sans", sans-serif; font-weight: 700; padding: 14px 12px; text-transform: uppercase; font-size: 13px; letter-spacing: .3px; }
.woocommerce table.shop_table td { padding: 16px 12px; vertical-align: middle; border-top: 1px solid #f0f0f0; }
.woocommerce-cart table.cart img { width: 70px; border-radius: 4px; border: 1px solid #eee; }
.woocommerce-cart table.cart td.product-name a { color: #111; font-weight: 700; }
.woocommerce a.remove { color: #cf2e2e !important; border: 1px solid #eee; border-radius: 50%; line-height: 22px; width: 24px; height: 24px; font-weight: 700; }
.woocommerce a.remove:hover { background: #cf2e2e !important; color: #fff !important; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
	float: right; width: 42%; background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 24px;
}
.woocommerce .cart_totals h2 { font-family: "Playfair Display", serif; font-weight: 900; color: #111; margin-top: 0; }
.woocommerce .cart_totals table.shop_table { border: none; }
.woocommerce .cart_totals table.shop_table th { background: transparent; color: #111; text-transform: none; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { display: block; text-align: center; font-size: 16px; padding: 14px; }
.woocommerce .coupon .input-text { padding: 11px; border: 1px solid #ccc; border-radius: 4px; }
.woocommerce .cart input.qty { padding: 9px; border: 1px solid #ccc; border-radius: 4px; width: 64px; }

/* ==========================  CHECKOUT  ========================== */
.woocommerce-checkout #customer_details.col2-set { display: flex; gap: 30px; flex-wrap: wrap; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { flex: 1 1 300px; float: none; width: auto; }
.woocommerce-checkout h3, .woocommerce-checkout #order_review_heading { font-family: "Playfair Display", serif; font-weight: 900; color: #111; font-size: 22px; }
.woocommerce form .form-row label { font-family: "Alegreya Sans", sans-serif; font-weight: 600; color: #333; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text, .woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
	border: 1px solid #cfcfcf; padding: 12px; border-radius: 4px; font-size: 15px; line-height: 1.4;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: #33a185; outline: none; box-shadow: 0 0 0 2px rgba(51,161,133,.15); }
.woocommerce-checkout #order_review, .woocommerce-checkout .woocommerce-checkout-review-order { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 26px; }
.woocommerce-checkout #payment { background: transparent; }
.woocommerce-checkout #payment ul.payment_methods { border: 1px solid #eee; border-radius: 6px; background: #fff; }
.woocommerce-checkout #payment div.payment_box { background: #f3f7f6; }
.woocommerce #place_order { width: 100%; font-size: 17px; padding: 15px; margin-top: 10px; }

/* ==========================  MY ACCOUNT  ========================== */
.woocommerce-account .woocommerce { max-width: 960px; margin: 0 auto; }
.woocommerce .col2-set#customer_login { display: flex; gap: 26px; flex-wrap: wrap; align-items: stretch; }
.woocommerce #customer_login .col-1, .woocommerce #customer_login .col-2 { flex: 1 1 0; min-width: 260px; float: none; width: auto; margin: 0; }
.woocommerce #customer_login .col-1 form.login, .woocommerce #customer_login .col-2 form.register { height: 100%; box-sizing: border-box; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password {
	border: 1px solid #e7e7e7; border-radius: 10px; padding: 30px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.woocommerce #customer_login h2, .woocommerce-account h2 { font-family: "Playfair Display", serif; font-weight: 900; color: #111; text-align: center; margin-bottom: 20px; }
.woocommerce form.login .form-row, .woocommerce form.register .form-row { margin-bottom: 16px; }
.woocommerce form.login label.woocommerce-form__label-for-checkbox { font-weight: 400; }
.woocommerce form.login .button, .woocommerce form.register .button { width: 100%; }
.woocommerce-account.logged-in .woocommerce { display: flex; gap: 36px; align-items: flex-start; flex-wrap: wrap; }
.woocommerce-account .woocommerce-MyAccount-navigation { flex: 0 0 230px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid #f0f0f0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { padding: 12px 16px; display: block; color: #333; font-family: "Alegreya Sans", sans-serif; font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: #33a185; color: #000; }
.woocommerce-account .woocommerce-MyAccount-content { flex: 1 1 300px; min-width: 0; }

/* ==========================  RESPONSIVE  ========================== */
@media (max-width: 1023px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
	.woocommerce .cart-collaterals .cart_totals { width: 100%; float: none; }
}
@media (max-width: 600px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr 1fr; gap: 14px; }
	.woocommerce ul.products li.product { padding: 14px 10px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; min-height: 0; }
	.woocommerce-checkout #customer_details.col2-set, .woocommerce #customer_login.col2-set { flex-direction: column; }
	.woocommerce-account.logged-in .woocommerce { flex-direction: column; }
	.rg-woo-banner h1 { font-size: 26px; }
}

/* ==========================================================================
   Cart / store page-title cleanup + polish
   ========================================================================== */
/* hide the theme's duplicate page-title header — our banner replaces it */
.woocommerce-cart .page-header,
.woocommerce-checkout .page-header,
.woocommerce-account .page-header,
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-account .entry-title { display: none !important; }

.woocommerce-cart .rg-content, .woocommerce-checkout .rg-content, .woocommerce-account .rg-content { padding-top: 4px; }

/* cart table polish */
.woocommerce-cart table.cart { margin-bottom: 30px; }
.woocommerce-cart table.cart td.product-name a { color: #111; font-weight: 700; text-decoration: none; }
.woocommerce-cart table.cart td.product-name a:hover { color: #33a185; }
.woocommerce-cart table.cart tr:hover td { background: #fafafa; }
.woocommerce-cart table.cart td.product-thumbnail img { width: 68px; height: auto; border-radius: 6px; border: 1px solid #eee; }
.woocommerce-cart td.product-price, .woocommerce-cart td.product-subtotal { font-family: "Playfair Display", serif; font-weight: 900; color: #111; }
.woocommerce-cart td.product-subtotal { color: #33a185; }

/* coupon (left) + update-cart (right) on one clean row — keep the cell as
   table-cell (do NOT set display:block, that collapses the colspan width) */
.woocommerce-cart td.actions { overflow: hidden; padding: 18px 14px; vertical-align: middle; }
.woocommerce-cart td.actions .coupon { float: left; display: inline-flex; gap: 10px; align-items: center; margin: 0; }
.woocommerce-cart td.actions .coupon .input-text { width: 210px; min-width: 0; margin: 0; }
.woocommerce-cart td.actions button[name="update_cart"],
.woocommerce-cart td.actions input[name="update_cart"] { float: right; margin: 0; }

/* totals card — two-column: "continue shopping" panel + totals card */
.woocommerce-cart .cart-collaterals {
	width: 100%; margin-top: 26px; display: flex; justify-content: space-between;
	align-items: stretch; gap: 40px; float: none;
}
.rg-cart-continue { flex: 1 1 auto; background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 28px 30px; }
.rg-cart-continue h3 { font-family: "Playfair Display", serif; font-weight: 900; color: #111; margin: 0 0 10px; font-size: 22px; }
.rg-cart-continue p { color: #555; font-size: 16px; margin: 0 0 18px; }
.rg-cart-continue .button { background: #fff; color: #33a185 !important; }
.woocommerce-cart .cart-collaterals .cart_totals { flex: 0 0 380px; width: 380px; min-width: 0; float: none; }
.woocommerce-cart .cart_totals table.shop_table td, .woocommerce-cart .cart_totals table.shop_table th { padding: 14px 8px; }
.woocommerce-cart .cart_totals .order-total .amount { color: #33a185; font-family: "Playfair Display", serif; font-weight: 900; font-size: 22px; }

@media (max-width: 782px) {
	.woocommerce-cart .cart-collaterals .cart_totals { width: 100%; min-width: 0; }
	.woocommerce-cart .actions { flex-direction: column; align-items: stretch; }
}

/* ---- cart table column widths (stop the empty remove column) ---- */
.woocommerce-cart table.cart { table-layout: fixed; width: 100%; }
.woocommerce-cart table.cart th.product-remove,
.woocommerce-cart table.cart td.product-remove { width: 52px; text-align: center; padding-left: 6px; padding-right: 6px; }
.woocommerce-cart table.cart th.product-thumbnail,
.woocommerce-cart table.cart td.product-thumbnail { width: 104px; text-align: center; }
.woocommerce-cart table.cart th.product-name,
.woocommerce-cart table.cart td.product-name { width: auto; text-align: left; }
.woocommerce-cart table.cart th.product-price,
.woocommerce-cart table.cart td.product-price { width: 120px; text-align: center; }
.woocommerce-cart table.cart th.product-quantity,
.woocommerce-cart table.cart td.product-quantity { width: 120px; text-align: center; }
.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal { width: 120px; text-align: center; }
.woocommerce-cart table.cart td { vertical-align: middle; }
.woocommerce-cart table.cart td.product-name { font-size: 16px; }
.woocommerce-cart .quantity .qty { width: 64px; text-align: center; }

/* ==========================================================================
   PREMIUM cart / checkout / account — generous side spacing + polish
   ========================================================================== */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
	padding: 12px 56px 60px;   /* space left & right (and bottom) */
}
/* premium cart table card */
.woocommerce-cart table.cart {
	box-shadow: 0 8px 30px rgba(0,0,0,.07);
	border: 1px solid #ececec;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 0;
}
.woocommerce-cart table.cart thead th { padding: 18px 18px; font-size: 12px; letter-spacing: .6px; }
.woocommerce-cart table.cart td { padding: 24px 18px; }
.woocommerce-cart table.cart tbody tr:not(:last-child) td { border-bottom: 1px solid #f2f2f2; }
.woocommerce-cart table.cart td.product-thumbnail img { width: 78px; box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.woocommerce-cart table.cart td.product-name { font-size: 17px; }

/* action row inside its own soft strip */
.woocommerce-cart td.actions { padding: 22px 18px; background: #fafafa; }
.woocommerce-cart td.actions .coupon .input-text { width: 220px; padding: 12px 14px; border-radius: 8px; }
.woocommerce-cart td.actions .button { border-radius: 8px; }

/* premium bottom cards */
.woocommerce-cart .cart-collaterals { margin-top: 40px; gap: 44px; }
.rg-cart-continue {
	box-shadow: 0 8px 30px rgba(0,0,0,.05); border-radius: 14px; padding: 34px 36px;
	display: flex; flex-direction: column; justify-content: center;
}
.woocommerce-cart .cart-collaterals .cart_totals {
	box-shadow: 0 8px 30px rgba(0,0,0,.07); border-radius: 14px; padding: 30px; background: #fff; border: 1px solid #ececec;
}
.woocommerce-cart .cart_totals h2 { margin-top: 0; font-size: 24px; border-bottom: 1px solid #eee; padding-bottom: 14px; }
.woocommerce-cart .cart_totals table.shop_table { box-shadow: none; }
.woocommerce-cart .wc-proceed-to-checkout { padding-top: 6px; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { border-radius: 10px; font-size: 17px; padding: 15px; }

@media (max-width: 900px) {
	.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce, .woocommerce-account .woocommerce { padding: 10px 18px 40px; }
	.woocommerce-cart .cart-collaterals { flex-direction: column; }
	.woocommerce-cart .cart-collaterals .cart_totals { flex: 1 1 auto; width: 100%; }
}

/* ==========================================================================
   PREMIUM CHECKOUT — two columns: form (left) + sticky order card (right)
   ========================================================================== */
.woocommerce-checkout form.checkout { display: block; }
.woocommerce-checkout form.checkout::after { content: ""; display: table; clear: both; }
.woocommerce-checkout #customer_details { float: left; width: 57%; }
.woocommerce-checkout #customer_details.col2-set { display: block; }
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 { width: 100% !important; float: none !important; margin: 0 0 14px; }
.woocommerce-checkout #order_review_heading { float: right; width: 39%; clear: right; margin: 0 0 16px; }
.woocommerce-checkout #order_review {
	float: right; width: 39%; clear: right; position: sticky; top: 24px;
	background: #fafafa; border: 1px solid #ececec; border-radius: 14px;
	padding: 28px 28px 30px; box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
/* headings */
.woocommerce-checkout h3, .woocommerce-checkout #order_review_heading {
	font-family: "Playfair Display", serif; font-weight: 900; color: #111; font-size: 24px;
}
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3 {
	border-bottom: 1px solid #eee; padding-bottom: 12px; margin-bottom: 20px;
}
.woocommerce-checkout .woocommerce-additional-fields { margin-top: 26px; }
/* form fields */
.woocommerce-checkout form .form-row { margin-bottom: 16px; }
.woocommerce-checkout .form-row label { font-family: "Alegreya Sans", sans-serif; font-weight: 600; color: #333; margin-bottom: 6px; }
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .select2-container .select2-selection,
.woocommerce-checkout .form-row select {
	border: 1px solid #cfcfcf !important; border-radius: 8px; padding: 13px 14px; font-size: 15px;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus { border-color: #33a185 !important; box-shadow: 0 0 0 2px rgba(51,161,133,.15); outline: none; }
/* order table inside the review card */
.woocommerce-checkout #order_review table.shop_table { border: none; box-shadow: none; background: transparent; border-radius: 0; }
.woocommerce-checkout #order_review table.shop_table thead th { background: transparent; color: #111; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; border-bottom: 2px solid #e6e6e6; padding: 8px 4px; }
.woocommerce-checkout #order_review table.shop_table td, .woocommerce-checkout #order_review table.shop_table th { padding: 12px 4px; border-top: 1px solid #eee; }
.woocommerce-checkout #order_review .cart_item td { color: #333; }
.woocommerce-checkout #order_review .order-total th { font-family: "Playfair Display", serif; }
.woocommerce-checkout #order_review .order-total .amount { color: #33a185; font-family: "Playfair Display", serif; font-weight: 900; font-size: 22px; }
/* payment */
.woocommerce-checkout #payment { background: transparent; border-radius: 0; margin-top: 8px; }
.woocommerce-checkout #payment ul.payment_methods { border: 1px solid #eee; border-radius: 10px; background: #fff; padding: 8px 16px; margin: 0 0 12px; }
.woocommerce-checkout #payment div.payment_box { background: #eef6f3; border-radius: 8px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #eef6f3 !important; }
.woocommerce-checkout #payment .woocommerce-privacy-policy-text { font-size: 13px; color: #777; }
.woocommerce-checkout #place_order { width: 100%; border-radius: 10px; font-size: 17px; padding: 15px; margin-top: 8px; }

@media (max-width: 900px) {
	.woocommerce-checkout form.checkout { grid-template-columns: 1fr; gap: 28px; }
	.woocommerce-checkout #customer_details { grid-column: 1; grid-row: auto; }
	.woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
}

/* =========================================================================
   Product gallery — single-image display, natural height, borderless.
   Only the active slide is shown (display toggle in normal document flow),
   so the frame height follows the image (height:auto) and there is no
   sideways-slide math that could ever blank the frame. FlexSlider manages
   .flex-active-slide on thumbnail click; a :not(:has()) rule plus the JS
   safety-net in functions.php guarantee exactly one image is always shown.
   ========================================================================= */
.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
	height: auto !important;
	overflow: visible !important;
}
.woocommerce div.product .woocommerce-product-gallery__wrapper {
	position: relative !important;
	width: 100% !important;
	height: auto !important;
	transform: none !important;   /* neutralise FlexSlider's sideways slide */
	transition: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	overflow: visible !important;
}
.woocommerce div.product .woocommerce-product-gallery__image {
	position: static !important;
	float: none !important;
	margin: 0 !important;
	width: 100% !important;
	height: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
	display: none !important;
}
/* Show the active slide (FlexSlider sets this on load and on thumb click). */
.woocommerce div.product .woocommerce-product-gallery__image.flex-active-slide {
	display: block !important;
}
/* Fallback: show the first image until/if no active slide is set. */
.woocommerce div.product .woocommerce-product-gallery__wrapper:not(:has(.flex-active-slide)) .woocommerce-product-gallery__image:first-child {
	display: block !important;
}
.woocommerce div.product .woocommerce-product-gallery__image a {
	display: block;
	border: 0 !important;
	box-shadow: none !important;
}
.woocommerce div.product .woocommerce-product-gallery__image img {
	width: 100% !important;
	height: auto !important;
	display: block;
	margin: 0 auto;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent;
}
/* Zoom / lightbox trigger stays neatly in the corner. */
.woocommerce div.product .woocommerce-product-gallery__trigger {
	top: 12px;
	right: 12px;
	z-index: 5;
}

/* Thumbnails: uniform-height, tidy professional row under the main image. */
.woocommerce div.product .flex-control-thumbs {
	margin: 18px 0 0 !important;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
}
.woocommerce div.product .flex-control-thumbs li {
	width: 80px;
	height: 80px;
	margin: 0;
	float: none;
	list-style: none;
}
.woocommerce div.product .flex-control-thumbs li img {
	width: 100% !important;
	height: 80px !important;
	object-fit: cover !important;
	display: block;
	margin: 0;
	border: 1px solid #e3e3e3 !important;
	border-radius: 6px;
	opacity: .6;
	cursor: pointer;
	transition: opacity .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.woocommerce div.product .flex-control-thumbs li img.flex-active,
.woocommerce div.product .flex-control-thumbs li img:hover {
	opacity: 1;
	border-color: #33a185 !important;
	box-shadow: 0 0 0 1px #33a185;
}
@media (max-width: 480px) {
	.woocommerce div.product .flex-control-thumbs li,
	.woocommerce div.product .flex-control-thumbs li img {
		width: 64px;
		height: 64px !important;
	}
}

/* =========================================================================
   Product image — hover zoom.
   The active image scales up smoothly toward the cursor and is clipped to
   its frame (overflow:hidden on the link). transform-origin is updated from
   the mouse position by the script in functions.php. Click still opens the
   full lightbox.
   ========================================================================= */
.woocommerce div.product .woocommerce-product-gallery__image a {
	overflow: hidden !important;
	cursor: zoom-in;
}
.woocommerce div.product .woocommerce-product-gallery__image img {
	transition: transform .3s ease !important;
	will-change: transform;
}
.woocommerce div.product .woocommerce-product-gallery__image a:hover img {
	transform: scale(2);
}
/* No zoom on touch devices (hover isn't meaningful there). */
@media (hover: none) {
	.woocommerce div.product .woocommerce-product-gallery__image a { cursor: pointer; }
	.woocommerce div.product .woocommerce-product-gallery__image a:hover img { transform: none; }
}
