/*
Theme Name: Buyno Child
Theme URI: https://shokrino.com
Author: Matin Shokri
Author URI: https://shokrino.com/make
Description: A clean, upgrade-safe child theme for Buyno with design tokens, quick font tools, custom hook slots, and developer-friendly extension points.
Template: buyno
Requires at least: 5.3
Tested up to: 6.5.5
Requires PHP: 7.4
Version: 1.3.6
License: All Rights Reserved for Shokrino Team.
Text Domain: buyno-child
Domain Path: /languages
*/

.buyno-child-hook-slot {
    width: 100%;
}

.buyno-child-hidden {
    display: none !important;
}


/* Cart badge: number + محصول as compact pill */
.cart-count-badge {
	min-width: 18px !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	min-height: 18px !important;
	padding: 2px 7px !important;
	line-height: 1.25 !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	white-space: nowrap !important;
	border-radius: 999px !important;
	overflow: visible !important;
	box-sizing: border-box !important;
	aspect-ratio: auto !important;
}

/* Bottom nav: override theme 18x18 circle so text fits */
.item-mobile-nav-byno .cart-count-badge,
.mobile-navigation-byno .cart-count-badge {
	top: 4px !important;
	right: 50% !important;
	transform: translateX(55%) !important;
	width: auto !important;
	min-width: 22px !important;
	height: auto !important;
	min-height: 18px !important;
	aspect-ratio: auto !important;
	padding: 2px 6px !important;
	font-size: 9px !important;
	line-height: 1.3 !important;
	z-index: 12 !important;
	border-radius: 999px !important;
}

/* Header cart badge */
.byno-mobile-header-shop-btn .cart-count-badge,
.desktop-header-byno .cart-count-badge {
	width: auto !important;
	aspect-ratio: auto !important;
	padding: 2px 6px !important;
	font-size: 10px !important;
}

/* Brand color (matches design tokens) */
:root,
body.buyno-child-active {
	--byno-var-main-color: #88ad2f !important;
	--byno-var-main-color-rgb: 136, 173, 47 !important;
}


/* ========== Header extras: hamburger + custom link ========== */
.buyno-child-header-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border: 0;
	background: var(--byno-var-color-light-dark-opacity-bg, rgba(0,0,0,.06));
	color: var(--byno-var-color-light-dark-text, #4a4a4a);
	border-radius: 12px;
	padding: 6px;
	cursor: pointer;
	text-decoration: none;
	font: inherit;
	font-weight: 500;
	line-height: 1;
	flex-shrink: 0;
}
.buyno-child-header-btn:hover {
	color: var(--byno-var-main-color, #88ad2f);
}
.buyno-child-hamburger {
	width: 38px;
	height: 38px;
	padding: 0;
}
.buyno-child-hamburger svg {
	width: 22px;
	height: 22px;
	display: block;
}
.left-box-m-header-byno {
	display: flex;
	align-items: center;
	gap: 6px;
}
.buyno-child-header-link {
	padding: 12px 12px !important;
	font-size: 12px;
	white-space: nowrap;
	max-width: none;
	overflow: hidden;
	text-overflow: ellipsis;
}
.buyno-child-header-link--desktop {
	margin-inline-end: 8px;
	padding: 8px 12px;
	font-size: 13px;
	max-width: none;
	background: var(--byno-var-second-color-opacity, rgba(136,173,47,.14));
	color: var(--byno-var-main-color, #88ad2f);
	border-radius: 10px;
}
.buyno-child-header-extras--mobile {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: auto;
}


/* Support header button look */
.buyno-child-header-link {
	background: var(--byno-var-second-color-opacity, rgba(136, 173, 47, 0.14)) !important;
	color: var(--byno-var-main-color, #88ad2f) !important;
	font-weight: 600 !important;
	border-radius: 10px !important;
	padding: 8px 12px !important;
	max-width: none !important;
	gap: 6px !important;
}
.buyno-child-header-link:hover {
	filter: brightness(0.95);
}
.buyno-child-header-link__icon {
	width: 18px;
	height: 18px;
	display: block;
	flex-shrink: 0;
	object-fit: contain;
	border-radius: 4px;
}
.buyno-child-header-link--desktop .buyno-child-header-link__icon {
	width: 18px;
	height: 18px;
}


/* Site mobile chrome overrides (from production tweaks) */
.byno-mobile-header {
	margin-top: 0 !important;
	top: 0 !important;
}
.mobile-navigation-byno {
	bottom: 0 !important;
}
.byno-mobile-header > .right-box-m-header-byno img,
.byno-mobile-header > .right-box-m-header-byno svg {
	height: 50px !important;
}


/* Logo + hamburger side by side */
.byno-mobile-header > .right-box-m-header-byno {
	display: flex !important;
	align-items: center;
	gap: 8px;
	max-height: none;
}
.byno-mobile-header > .right-box-m-header-byno .buyno-child-hamburger {
	order: 2;
}
.byno-mobile-header > .right-box-m-header-byno .byno-mobile-header-logo {
	order: 1;
	display: flex;
	align-items: center;
}


/* Product page uses home-style mobile chrome */
body.single-product .buyno-child-product-home-header {
	margin-top: 0 !important;
	top: 0 !important;
}
body.single-product .byno-mobile-product-nav {
	display: none !important;
}
.byno-mobile-header,.mobile-navigation-byno {
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100%;
}
.mobile-navigation-byno{
	bottom: 0 !important;
}
.byno-mobile-header>.right-box-m-header-byno img, .byno-mobile-header>.right-box-m-header-byno svg {
    height: 50px;
}
.left-box-m-header-byno {
    flex-direction: row-reverse;
}

/* Category tabs sticky: sit flush under 50px mobile header (no gap) */
.wccp-wrapper {
	--wccp-sticky-offset: 50px !important;
}
@media (max-width: 900px) {
	.wccp-tabs {
		top: 50px !important;
	}
}
@media (min-width: 901px) {
	.wccp-wrapper {
		--wccp-sticky-offset: 72px !important;
	}
}