/* Ketabbin Phase 1: small, last-in-cascade responsive safety layer. */
body.kb-editorial-v2,
body.kb-editorial-v2 .site,
body.kb-editorial-v2 main {
	max-width: 100%;
	overflow-x: clip;
}

body.kb-editorial-v2 .woocommerce-breadcrumb {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.kb-editorial-v2 .kb-pdp-v3__hero,
body.kb-editorial-v2 .kb-pdp-v3__gallery,
body.kb-editorial-v2 .kb-pdp-v3__summary,
body.kb-editorial-v2 .kb-pdp-v3__buy {
	min-width: 0;
}

body.kb-editorial-v2 .kb-pdp-v3 img,
body.kb-editorial-v2 .woocommerce img {
	max-width: 100%;
}

body.kb-editorial-v2 .woocommerce form,
body.kb-editorial-v2 .woocommerce table,
body.kb-editorial-v2 .woocommerce .form-row {
	max-width: 100%;
}

@media (max-width: 900px) {
	body.kb-editorial-v2 .kb-pdp-v3__hero {
	grid-template-columns: minmax(0, 1fr) !important;
	grid-template-areas: "gallery" "summary" "buy" !important;
	gap: 20px !important;
	}
	body.kb-editorial-v2 .kb-pdp-v3__stage {
	min-height: min(470px, 76vw) !important;
	padding: 18px !important;
	}
	body.kb-editorial-v2 .kb-pdp-v3__zoom {
	min-height: min(420px, 68vw) !important;
	}
	body.kb-editorial-v2 .kb-pdp-v3__summary h1 {
	font-size: clamp(25px, 7vw, 36px) !important;
	line-height: 1.5 !important;
	overflow-wrap: anywhere;
	}
	body.kb-editorial-v2 .kb-pdp-v3__buy {
	position: static !important;
	width: 100%;
	}
}

@media (max-width: 600px) {
	body.kb-editorial-v2 .kb-pdp-v3__shell {
	width: calc(100% - 20px) !important;
	padding-top: 14px !important;
	}
	body.kb-editorial-v2 .kb-pdp-v3__breadcrumb {
	margin-bottom: 12px !important;
	font-size: 11px !important;
	}
	body.kb-editorial-v2 .kb-pdp-v3__stage {
	min-height: 300px !important;
	}
	body.kb-editorial-v2 .kb-pdp-v3__zoom {
	min-height: 270px !important;
	}
	body.kb-editorial-v2 .kb-pdp-v3__stage img {
	max-height: 270px !important;
	}
	body.kb-editorial-v2 .woocommerce table.shop_table,
	body.kb-editorial-v2 .woocommerce-checkout-review-order-table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	}
	body.kb-editorial-v2 .kb-v2-header__main {
	grid-template-columns: minmax(88px, 1fr) auto !important;
	gap: 6px !important;
	min-width: 0;
	}
	body.kb-editorial-v2 .kb-v2-brand,
	body.kb-editorial-v2 .kb-v2-actions {
	min-width: 0;
	}
	body.kb-editorial-v2 .kb-v2-brand img,
	body.kb-editorial-v2 .kb-v2-brand .custom-logo {
	max-width: 96px !important;
	}
	body.kb-editorial-v2 .kb-v2-actions {
	gap: 2px !important;
	}
	body.kb-editorial-v2 .kb-v2-action,
	body.kb-editorial-v2 .kb-v2-mobile-search {
	min-width: 44px !important;
	width: 44px !important;
	min-height: 44px !important;
	padding: 0 !important;
	}
	body.kb-editorial-v2 .kb-v2-action--cart em {
	left: 0 !important;
	}
	body.kb-editorial-v2 .kb-v2-shop__heading h1 {
	font-size: clamp(28px, 8vw, 38px) !important;
	}
	body.kb-editorial-v2 .kb-v2-shop ul.products,
	body.kb-editorial-v2 .woocommerce ul.products {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	body.kb-editorial-v2 .kb-v2-product-card__media {
	height: clamp(180px, 54vw, 230px) !important;
	}
	body.kb-editorial-v2 .kb-v2-product-card__media>a {
	padding: 10px !important;
	}
	body.kb-editorial-v2 .kb-v2-product-card__body {
	min-height: 142px !important;
	padding: 10px !important;
	}
	body.kb-editorial-v2 .kb-v2-product-card .woocommerce-loop-product__title {
	min-height: 0 !important;
	font-size: 11px !important;
	line-height: 1.65 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	}
	body.kb-editorial-v2 .kb-v2-product-card__arrow {
	width: 40px !important;
	height: 40px !important;
	flex: 0 0 40px;
	}
}

@media (max-width: 380px) {
	body.kb-editorial-v2 .kb-v2-shop ul.products,
	body.kb-editorial-v2 .woocommerce ul.products {
	gap: 6px !important;
	}
	body.kb-editorial-v2 .kb-v2-product-card__footer .price {
	font-size: 10px !important;
	}
}

/* Phase 3: purchase-path polish, presentation-only. */
body.kb-editorial-v2 .kb-pdp-v3__buy form.cart,
body.kb-editorial-v2 .kb-pdp-v3__buy .single_add_to_cart_button {
	width: 100%;
}

body.kb-editorial-v2 .kb-pdp-v3__buy .single_add_to_cart_button,
body.kb-editorial-v2 .kb-pdp-v3__buy button.button,
body.kb-editorial-v2 .kb-pdp-v3__buy a.button {
	min-height: 48px;
}

body.kb-editorial-v2 .kb-wc-system-page__body .woocommerce-message,
body.kb-editorial-v2 .kb-wc-system-page__body .woocommerce-error,
body.kb-editorial-v2 .kb-wc-system-page__body .woocommerce-info {
	max-width: 100%;
	overflow-wrap: anywhere;
}

body.kb-editorial-v2 .kb-wc-system-page__body .quantity .qty {
	min-height: 44px;
	max-width: 88px;
}

@media (max-width: 700px) {
	body.kb-editorial-v2 .kb-wc-system-page__body .coupon {
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 8px;
	}
	body.kb-editorial-v2 .kb-wc-system-page__body .coupon button,
	body.kb-editorial-v2 .kb-wc-system-page__body .wc-proceed-to-checkout a.checkout-button,
	body.kb-editorial-v2 .kb-wc-system-page--checkout #place_order {
	width: 100% !important;
	min-height: 48px !important;
	}
	body.kb-editorial-v2 .kb-wc-system-page .woocommerce-cart-form table.cart .product-remove {
	left: auto !important;
	right: 9px !important;
	}
	body.kb-editorial-v2 .kb-wc-system-page .woocommerce-cart-form table.cart .product-name {
	padding-left: 0 !important;
	padding-right: 32px !important;
	min-width: 0;
	overflow-wrap: anywhere;
	}
	body.kb-editorial-v2 .kb-wc-system-page--checkout .woocommerce-billing-fields__field-wrapper,
	body.kb-editorial-v2 .kb-wc-system-page--checkout form.checkout {
	max-width: 100%;
	}
}

@media (max-width: 420px) {
	body.kb-editorial-v2 .kb-wc-system-page__header ol {
	gap: 4px;
	}
	body.kb-editorial-v2 .kb-wc-system-page__header li {
	font-size: 9px;
	}
	body.kb-editorial-v2 .kb-wc-system-page__header li i {
	width: 30px;
	height: 30px;
	}
}
