/*
Theme Name: SIMFI Office — Architecture Studio
Description: Оформление Architecture Studio для каталога офисной мебели СИМФИ.
Template: woodmart
Version: 1.0.0
Text Domain: simfi-office-studio
*/

/*
 * Product gallery: keep a large main image and render the bottom thumbnails
 * as separate, comfortably tappable cards rather than one continuous strip.
 */
.single-product .thumbs-position-bottom .wd-gallery-thumb {
	margin-top: 6px;
	padding: 0 8px 8px;
}

.single-product .thumbs-position-bottom .wd-gallery-thumb .wd-carousel {
	--wd-gap: 12px;
	border-radius: 0;
}

.single-product .thumbs-position-bottom .wd-gallery-thumb .wd-carousel-item img {
	box-sizing: border-box;
	aspect-ratio: 1 / 1;
	border: 1px solid #dfe5df;
	border-radius: 10px;
	padding: 3px;
	background: #fff;
	object-fit: contain;
}

.single-product .thumbs-position-bottom .wd-gallery-thumb .wd-thumb-active img {
	border-color: var(--wd-primary-color);
	box-shadow: 0 0 0 1px var(--wd-primary-color);
}

@media (max-width: 576px) {
	.single-product .thumbs-position-bottom .wd-gallery-thumb {
		padding-inline: 6px;
	}

	.single-product .thumbs-position-bottom .wd-gallery-thumb .wd-carousel {
		--wd-gap: 8px;
	}
}

/* Keep decision-making blocks on archive cards aligned to one inner width. */
.office-catalog-mode .wd-product-wrapper .product-rating-price,
.office-catalog-mode .wd-product-wrapper .wrapp-product-price {
	width: 100%;
}

.office-catalog-mode .wd-product-wrapper .wrapp-product-price {
	align-items: stretch !important;
}

.office-catalog-mode .wd-product-wrapper .office-card-specs,
.office-catalog-mode .wd-product-wrapper .office-product-color {
	box-sizing: border-box;
	width: calc(100% - 36px) !important;
	margin-right: 18px !important;
	margin-left: 18px !important;
}

.office-catalog-mode .wd-product-wrapper .office-product-color {
	display: block;
	align-self: stretch;
	min-height: 56px;
}

.office-catalog-mode .wd-product-wrapper .office-card-specs > div {
	padding-top: 5px !important;
	padding-bottom: 5px !important;
}

/* Higher-specificity finishing pass: the catalogue stylesheet also marks
 * these rules important, so centre content rather than merely changing pads. */
body.office-catalog-mode .wd-product-wrapper .office-card-specs > div {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 38px;
	padding-top: 5px !important;
	padding-bottom: 5px !important;
	text-align: center;
}

body.office-catalog-mode .wd-product-wrapper .office-product-color {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 59px;
	padding: 5px !important;
	text-align: center;
}

body.office-catalog-mode .wd-product-wrapper .office-product-color > span {
	margin-bottom: 4px;
}

@media (max-width: 767px) {
	.office-catalog-mode .wd-product-wrapper .office-card-specs,
	.office-catalog-mode .wd-product-wrapper .office-product-color {
		width: calc(100% - 20px) !important;
		margin-right: 10px !important;
		margin-left: 10px !important;
	}
}

/* === SIMFI CLEAN SKU (READABLE, NOT OVERLY BOLD) === */
.simfi-clean-card-sku {
    display: inline-block !important;
    font-size: 12.5px !important;
    line-height: 1.3 !important;
    color: #4b5563 !important; /* Neutral dark gray */
    margin: 4px auto 6px !important;
    text-align: center !important;
}
.simfi-clean-card-sku .simfi-sku-title {
    font-weight: 400 !important;
    color: #6b7280 !important;
}
.simfi-clean-card-sku .simfi-sku-number {
    font-weight: 600 !important; /* Clean medium weight, not heavy bold */
    color: #1f2937 !important;
    margin-left: 2px !important;
}

/* === SIMFI CLICKABLE PREVIEWS (3-5 THUMBNAILS UNDER PHOTO) === */

.simfi-card-thumb-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 2px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
}

.simfi-card-thumb-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 3px !important;
    pointer-events: none !important;
}

.simfi-card-thumb-btn:hover {
    border-color: #0b7f64 !important;
    transform: translateY(-1px) !important;
}

.simfi-card-thumb-btn.is-active {
    border: 2px solid #0b7f64 !important;
    box-shadow: 0 0 0 1px #0b7f64 !important;
    background: #f0fdf4 !important;
}


/* === SIMFI SWIPEABLE THUMBNAIL CAROUSEL (TOUCH, STYLUS, MOUSE) === */
.simfi-card-thumbs-scroll-wrap {
    width: 100% !important;
    position: relative !important;
    margin: 4px 0 6px !important;
    box-sizing: border-box !important;
}

.simfi-card-thumbs-strip {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
    padding: 3px 6px 6px 6px !important;
    box-sizing: border-box !important;
    cursor: grab !important;
    user-select: none !important;
}

.simfi-card-thumbs-strip:active {
    cursor: grabbing !important;
}

.simfi-card-thumbs-strip::-webkit-scrollbar {
    height: 4px !important;
}

.simfi-card-thumbs-strip::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 4px !important;
}

.simfi-card-thumbs-strip::-webkit-scrollbar-thumb {
    background: #94a3b8 !important;
    border-radius: 4px !important;
}

.simfi-thumb-item {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 1px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: border-color 0.15s ease, transform 0.15s ease !important;
}

.simfi-thumb-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    pointer-events: none !important;
}

.simfi-thumb-item:hover {
    border-color: #0b7f64 !important;
    transform: scale(1.08) !important;
}

.simfi-thumb-item.is-active {
    border: 2px solid #0b7f64 !important;
    box-shadow: 0 0 0 1px #0b7f64 !important;
    background: #f0fdf4 !important;
}

