/**
 * KeyhanBazaar - WooCommerce Single Product
 *
 * Path: assets/css/woocommerce/single-product.css
 */

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
	--kb-product-primary-color: #2b9a50;
	--kb-product-card-background: #fbfbfb;
	--kb-product-card-border: #e5e5e5;
	--kb-product-card-radius: 8px;
	--kb-product-text-color: #222;
	--kb-product-muted-color: #666;
	--kb-product-gallery-background: #fff;
	--kb-product-transition: 180ms ease-in-out;
}


/* ==========================================================================
   Single-product layout
   ========================================================================== */

.single-product .product {
	color: var(--kb-product-text-color);
}

.single-product .product .uk-section {
	padding-top: 30px;
	padding-bottom: 40px;
}

.single-product .product .sp-gallery {
	min-width: 0;
}


/* ==========================================================================
   Product gallery
   ========================================================================== */

.single-product .kb-product-gallery {
	position: relative;
	width: 100%;
}

.single-product .kb-product-gallery .uk-slideshow-items {
	background-color: var(--kb-product-gallery-background);
	border-radius: var(--kb-product-card-radius);
	min-height: 350px;
	overflow: hidden;
}

.single-product .kb-product-gallery__slide {
	align-items: center;
	background-color: var(--kb-product-gallery-background);
	display: flex;
	justify-content: center;
	padding: 15px;
}

.single-product .kb-product-gallery__slide > a {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}

.single-product .kb-product-gallery__image {
	display: block;
	height: auto;
	margin-right: auto;
	margin-left: auto;
	max-height: 600px;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.single-product .kb-product-gallery .uk-slidenav {
	align-items: center;
	background-color: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	color: #333;
	display: flex;
	height: 38px;
	justify-content: center;
	transition:
		background-color var(--kb-product-transition),
		color var(--kb-product-transition),
		opacity var(--kb-product-transition);
	width: 38px;
}

.single-product .kb-product-gallery .uk-slidenav:hover,
.single-product .kb-product-gallery .uk-slidenav:focus {
	background-color: var(--kb-product-primary-color);
	color: #fff;
}


/* ==========================================================================
   Gallery thumbnails
   ========================================================================== */

.single-product .kb-product-gallery .uk-thumbnav {
	gap: 8px;
	margin-right: 0;
	margin-left: 0;
}

.single-product .kb-product-gallery .uk-thumbnav > * {
	padding-right: 0;
	padding-left: 0;
}

.single-product .kb-product-gallery .uk-thumbnav > li > a {
	align-items: center;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	display: flex;
	height: 82px;
	justify-content: center;
	overflow: hidden;
	padding: 4px;
	transition:
		border-color var(--kb-product-transition),
		box-shadow var(--kb-product-transition);
	width: 82px;
}

.single-product .kb-product-gallery .uk-thumbnav > li > a:hover,
.single-product .kb-product-gallery .uk-thumbnav > li > a:focus,
.single-product .kb-product-gallery .uk-thumbnav > .uk-active > a {
	border-color: var(--kb-product-primary-color);
	box-shadow: 0 0 0 1px var(--kb-product-primary-color);
}

.single-product .kb-product-gallery__thumb {
	display: block;
	height: 72px;
	max-height: 72px;
	max-width: 72px;
	object-fit: contain;
	width: 72px;
}


/* ==========================================================================
   Product title and description
   ========================================================================== */

.single-product .product h1[itemprop="name"] {
	color: var(--kb-product-text-color);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.8;
}

.single-product .product [itemprop="description"] {
	line-height: 2;
}

.single-product .woocommerce-product-rating {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	margin-bottom: 12px;
}


/* ==========================================================================
   Product summary card
   ========================================================================== */

.single-product .product-summary-card {
	background-color: var(--kb-product-card-background);
	border: 1px solid var(--kb-product-card-border);
	border-radius: var(--kb-product-card-radius);
	box-shadow: none;
	overflow: hidden;
}

.single-product .product-summary-card .uk-card-body {
	padding: 20px;
}

.single-product .product-summary-card .uk-card-footer {
	background-color: transparent;
	border-top: 1px solid var(--kb-product-card-border);
	padding: 16px 20px 20px;
}

.single-product .product-summary-card hr {
	border-color: var(--kb-product-card-border);
	margin-top: 15px;
	margin-bottom: 15px;
}

.single-product .product-summary-card strong {
	color: var(--kb-product-text-color);
	font-weight: 700;
}

.single-product .product-summary-card [uk-icon] {
	color: var(--kb-product-primary-color);
}


/* ==========================================================================
   Product price
   ========================================================================== */

.single-product .product-summary-card [itemprop="offers"] {
	margin-top: 18px;
}

.single-product .product-summary-card [itemprop="offers"] del {
	color: var(--kb-product-muted-color);
	font-size: 13px;
	opacity: 0.8;
}

.single-product .product-summary-card [itemprop="offers"] b {
	color: var(--kb-product-text-color);
	font-size: 18px;
	font-weight: 800;
}

.single-product .product-summary-card .price {
	margin-top: 0;
	margin-bottom: 0;
}


/* ==========================================================================
   Add-to-cart form
   ========================================================================== */

.single-product .product-summary-card form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	width: 100%;
}

.single-product .product-summary-card form.cart::after {
	clear: both;
	content: "";
	display: table;
}

.single-product .product-summary-card .quantity {
	display: flex;
	flex: 0 0 auto;
	margin: 0 !important;
}

.single-product .product-summary-card .quantity .qty {
	background-color: #fff;
	border: 1px solid var(--kb-product-card-border);
	border-radius: 6px;
	box-sizing: border-box;
	height: 44px;
	text-align: center;
	width: 50px;
}

.single-product .single_add_to_cart_button,
.single-product .product-summary-card .uk-button-primary,
.single-product .product-summary-card .kb-product-add-button,
.single-product .product-summary-card .button.alt {
	background-color: var(--kb-product-primary-color) !important;
	border: 1px solid var(--kb-product-primary-color) !important;
	border-radius: 6px;
	box-sizing: border-box;
	color: #fff !important;
	cursor: pointer;
	flex: 1 1 150px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	min-height: 44px;
	padding: 10px 18px;
	text-align: center;
	transition:
		filter var(--kb-product-transition),
		opacity var(--kb-product-transition),
		transform var(--kb-product-transition);
}

.single-product .single_add_to_cart_button:hover,
.single-product .single_add_to_cart_button:focus,
.single-product .product-summary-card .uk-button-primary:hover,
.single-product .product-summary-card .uk-button-primary:focus,
.single-product .product-summary-card .kb-product-add-button:hover,
.single-product .product-summary-card .kb-product-add-button:focus,
.single-product .product-summary-card .button.alt:hover,
.single-product .product-summary-card .button.alt:focus {
	color: #fff !important;
	filter: brightness(0.94);
	text-decoration: none;
}

.single-product .single_add_to_cart_button:active,
.single-product .product-summary-card .uk-button-primary:active,
.single-product .product-summary-card .kb-product-add-button:active,
.single-product .product-summary-card .button.alt:active {
	transform: translateY(1px);
}

.single-product .single_add_to_cart_button.disabled,
.single-product .single_add_to_cart_button:disabled,
.single-product .single_add_to_cart_button.loading {
	cursor: not-allowed;
	opacity: 0.65;
}


/* ==========================================================================
   Variable products
   ========================================================================== */

.single-product .product-summary-card .variations {
	margin-bottom: 15px;
	width: 100%;
}

.single-product .product-summary-card .variations tbody,
.single-product .product-summary-card .variations tr,
.single-product .product-summary-card .variations th,
.single-product .product-summary-card .variations td {
	display: block;
	width: 100%;
}

.single-product .product-summary-card .variations th {
	margin-bottom: 5px;
	text-align: right;
}

.single-product .product-summary-card .variations td {
	margin-bottom: 12px;
}

.single-product .product-summary-card .variations select {
	background-color: #fff;
	border: 1px solid var(--kb-product-card-border);
	border-radius: 6px;
	box-sizing: border-box;
	height: 44px;
	padding: 0 12px;
	width: 100%;
}

.single-product .product-summary-card .reset_variations {
	display: inline-block;
	font-size: 12px;
	margin-top: 8px;
}

.single-product .product-summary-card .single_variation_wrap {
	width: 100%;
}

.single-product .product-summary-card .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
}


/* ==========================================================================
   Site feature items
   ========================================================================== */

.single-product .sp-feature {
	min-height: 50px;
}

.single-product .sp-feature img {
	display: block;
	height: 40px;
	object-fit: contain;
	width: 40px;
}

.single-product .sp-feature h5 {
	line-height: 1.8;
	margin: 0;
}


/* ==========================================================================
   WooCommerce notices
   ========================================================================== */

.single-product .woocommerce-notices-wrapper {
	margin-bottom: 20px;
}

.single-product .woocommerce-message,
.single-product .woocommerce-error,
.single-product .woocommerce-info {
	border-radius: 6px;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 959px) {
	.single-product .product .uk-section {
		padding-top: 20px;
		padding-bottom: 30px;
	}

	.single-product .kb-product-gallery .uk-slideshow-items {
		min-height: 320px;
	}

	.single-product .kb-product-gallery__image {
		max-height: 500px;
	}

	.single-product .product-summary-card {
		margin-top: 20px;
	}
}

@media (max-width: 639px) {
	.single-product .product .uk-section {
		padding-top: 15px;
		padding-bottom: 25px;
	}

	.single-product .product h1[itemprop="name"] {
		font-size: 18px;
	}

	.single-product .kb-product-gallery .uk-slideshow-items {
		min-height: 280px;
	}

	.single-product .kb-product-gallery__slide {
		padding: 10px;
	}

	.single-product .kb-product-gallery__image {
		max-height: 380px;
	}

	.single-product .kb-product-gallery .uk-thumbnav > li > a {
		height: 68px;
		width: 68px;
	}

	.single-product .kb-product-gallery__thumb {
		height: 58px;
		max-height: 58px;
		max-width: 58px;
		width: 58px;
	}

	.single-product .product-summary-card .uk-card-body {
		padding: 16px;
	}

	.single-product .product-summary-card .uk-card-footer {
		padding: 14px 16px 16px;
	}

	.single-product .product-summary-card form.cart,
	.single-product .product-summary-card .woocommerce-variation-add-to-cart {
		display: flex;
	}

	.single-product .single_add_to_cart_button,
	.single-product .product-summary-card .button.alt {
		width: 100%;
	}
}


/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.single-product .kb-product-gallery .uk-slidenav,
	.single-product .kb-product-gallery .uk-thumbnav > li > a,
	.single-product .single_add_to_cart_button,
	.single-product .product-summary-card .button.alt {
		transition: none;
	}
}




/* Plus Membership Banner - Digikala Style */
.kb-plus-banner {
    background-color: #fff;
    border: 1px solid #e0e0e2;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.kb-plus-banner .plus-icon {
    color: #a020f0; /* بنفش پلاس */
}

.kb-plus-banner .plus-title {
    color: #a020f0;
    font-size: 14px;
    font-weight: 700;
}

.kb-plus-banner .plus-subtitle {
    color: #717171;
    font-size: 11px;
    margin-top: 4px;
    padding-right: 22px; /* تراز شدن زیر متن عنوان در RTL */
}

.kb-plus-banner .plus-link {
    color: #19bfd3; /* آبی دیجی‌کالا */
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    padding-right: 22px;
}

.kb-plus-banner .plus-link:hover {
    color: #15a1b3;
}

.kb-plus-banner .plus-truck-img {
    opacity: 0.9;
    filter: brightness(1.1);
    margin-bottom: -10px; /* برای جلوه بصری بهتر در گوشه */
}

/* افکت هاور روی کل باکس */
.kb-plus-banner:hover {
    border-color: #c0c0c2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Product Highlights */
.kb-product-highlights__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #3f4064;
}

.kb-product-highlights__box {
    background: #f5f5f5;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    padding: 10px 12px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kb-product-highlights__label {
    display: block;
    font-size: 12px;
    color: #81858b;
    margin-bottom: 4px;
    line-height: 1.7;
    font-weight: 500;
}

.kb-product-highlights__value {
    display: block;
    font-size: 12px;
    color: #3f4064;
    line-height: 1.8;
    font-weight: 600;
}



/* استایل دکمه مشاهده همه ویژگی‌ها */
.kb-view-all-attributes {
    display: inline-flex;
    align-items: center;
    color: #19bfd3; /* رنگ فیروزه‌ای دیجی‌کالا */
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.kb-view-all-attributes:hover {
    color: #128e9d;
    text-decoration: none;
}

/* باکس‌ها کاملاً تخت و خاکستری روشن */
.kb-product-highlights__box {
    background: #f0f0f1;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none; /* حذف حاشیه برای شباهت به دیجی‌کالا */
}

/* فونت و رنگ عنوان و مقدار */
.kb-product-highlights__label {
    font-size: 11px;
    color: #81858b;
    margin-bottom: 4px;
}

.kb-product-highlights__value {
    font-size: 13px;
    color: #3f4064;
    font-weight: 700;
}

/* =========================================================
   Product Highlights - Digikala Style
   ========================================================= */

.kb-product-highlights {
    direction: rtl;
    width: 100%;
    margin-top: 28px;
    font-family: "IRANYekan", Tahoma, sans-serif;
}

.kb-product-highlights__title {
    margin: 0 0 16px;
    color: #0c0c0c;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
    text-align: right;
}

.kb-product-highlights__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.kb-product-highlights__card {
    box-sizing: border-box;
    min-height: 76px;
    padding: 10px 14px;
    overflow: hidden;
    border-radius: 9px;
    background-color: #f1f1f2;
    text-align: right;
}

.kb-product-highlights__label {
    margin-bottom: 5px;
    overflow: hidden;
    color: #81858b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.8;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kb-product-highlights__value {
    overflow: hidden;
    color: #3f4064;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* خط‌ها و دکمه، مطابق تصویر */
.kb-product-highlights__more {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    direction: ltr;
}

.kb-product-highlights__line {
    flex: 1 1 auto;
    height: 1px;
    background-color: #e0e0e2;
}

.kb-product-highlights__more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 48px;
    margin: 0 18px;
    padding: 0 18px;
    border: 1px solid #e0e0e2;
    border-radius: 9px;
    background-color: #fff;
    color: #3f4064;
    font-family: "IRANYekan", Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kb-product-highlights__more-link:hover {
    border-color: #b8b8bb;
    background-color: #fafafa;
    color: #3f4064;
}

.kb-product-highlights__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #424750;
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 15px;
    transform: translateY(-1px);
}

/* موبایل */
@media (max-width: 767px) {
    .kb-product-highlights__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kb-product-highlights__more-link {
        margin-right: 10px;
        margin-left: 10px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .kb-product-highlights__grid {
        grid-template-columns: 1fr;
    }
}
