

/* Start:/local/templates/tkanililiya_custom/components/bitrix/catalog.section.list/bootstrap_v4/style.css?17715202105586*/
.catalog-section-list-item { }

.catalog-section-list-item-title {
	overflow: hidden;
	margin: 0;
	padding: 0;
	vertical-align: middle;
	text-align: center;
	text-overflow: ellipsis;
	font-size: 14px;
	line-height: 20px;
}

.catalog-section-list-item-link {
	vertical-align: middle;
	font-size: 14px;
	line-height: 20px;
}

.catalog-section-list-item-counter {
	vertical-align: middle;
	font-size: 12px;
	line-height: 20px;
}

.catalog-section-list-item-description { font-size: 13px; }

.catalog-section-list-item-img {
	display: block;
	padding-top: 100%;
	width: 100%;
	border: 1px solid #ccc;
	border-radius: 2px;
	background-color: #fff;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	transition: 250ms linear all;
}

.catalog-section-list-item-img:hover { border-color: var(--theme-color-primary); }

/* region Line */
.catalog-section-list-line-list {
	padding: 0;
	list-style: none;
}

.catalog-section-list-line-list .catalog-section-list-item {
	display: flex;
	margin-bottom: 15px;
	align-items: flex-start;
}

.catalog-section-list-line-list .catalog-section-list-item-title { text-align: left; }

.catalog-section-list-line-img-container {
	padding-right: 15px;
	min-width: 75px;
	width: 75px;
}

.catalog-section-list-line-list .catalog-section-list-titles {
	margin: 0;
	line-height: 20px;
}

/*endregion*/

/*region Text */
.catalog-section-list-text-list {
	padding: 0;
	list-style: none;
	column-count: 3;
}

.catalog-section-list-text-list .catalog-section-list-item-title { text-align: left; }

@media (max-width: 767px) {
	.catalog-section-list-text-list { column-count: 1; }
}

/*endregion*/

/*region Tile */

.catalog-section-list-tile-list {
	padding: 0;
	list-style: none;
}

.catalog-section-list-tile-img-container { width: 100%; }

/*endregion*/

/* list */

.catalog-section-list-list { margin-bottom: 30px; }

.catalog-section-list-list .catalog-section-list-item {
	padding: 0;
	line-height: 16px;
}

.catalog-section-list-list .catalog-section-list-item:before { content: '' !important }

.catalog-section-list-list-title {
	display: inline-block;
	margin: 0;
	margin-bottom: 10px;
	padding: 0;
	vertical-align: top;
	font-weight: normal;
	font-size: 12px;
	line-height: 16px;
}

.catalog-section-list-list-link {
	white-space: nowrap;
	font-size: 13px;
}

.catalog-section-list-list-link:hover { text-decoration: none }

.catalog-section-list-list-title span { font-size: 11px; }

@media (max-width: 639px) {
	.bx-touch .catalog-section-list-list .bx_catalog_line_title {
		margin-bottom: 5px;
		line-height: 12px;
	}

	.bx-touch .catalog-section-list-list .bx_catalog_line_title a { font-size: 12px; }
}

.catalog-section-list-list-title,
.catalog-section-list-list-link { transition: all 0.3s ease; }

/* ============================================
   Ткани Лилия - Кастомные стили категорий
   ============================================ */

/* Сетка категорий (TILE mode) */
.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1rem;
}

.categories-grid .category-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform 0.2s, box-shadow 0.2s;
	text-decoration: none !important;
	color: inherit;
}

.categories-grid .category-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	text-decoration: none !important;
	color: inherit;
}

.categories-grid .category-card-image-wrapper {
	position: relative;
	padding-top: 100%;
	background: #f8f8f8;
	overflow: hidden;
}

.categories-grid .category-card-image-wrapper img,
.categories-grid .category-card-image {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center top;
	transition: transform 0.3s;
}

.categories-grid .category-card:hover .category-card-image,
.categories-grid .category-card:hover .category-card-image-wrapper img {
	transform: scale(1.05);
}

.category-card-body {
	padding: 1rem;
	text-align: center;
}

.category-card-title {
	font-size: 1rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 0.25rem;
}

.category-card-count {
	font-size: 0.85rem;
	color: #888;
}

/* Кнопки категорий (LINE mode) */
.category-buttons-wrapper {
	overflow-x: auto;
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
}

.category-buttons-list {
	display: flex;
	gap: 0.5rem;
	flex-wrap: nowrap;
}

.category-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	color: #333;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s;
}

.category-btn:hover {
	background: #e8e8e8;
	text-decoration: none;
	color: #333;
}

.category-btn.active {
	background: var(--primary, #007bff);
	border-color: var(--primary, #007bff);
	color: #fff;
}

.category-btn-name {
	font-weight: 500;
}

.category-btn-count {
	font-size: 0.8rem;
	opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 768px) {
	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.category-card-body {
		padding: 0.75rem;
	}

	.category-card-title {
		font-size: 0.9rem;
	}

	/* Скрываем кнопки категорий на мобильных */
	.catalog-category-buttons {
		display: none !important;
	}
}
/* End */


/* Start:/local/templates/tkanililiya_custom/components/bitrix/catalog.element/product_detail_v2/style.css?177152021024478*/
/* ============================================
   Карточка товара (2 колонки)
   Ткани Лилия — Корпоративная палитра
   ============================================ */

.product-detail-wb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

/* ============================================
   Сетка: 2 колонки (60/40)
   ============================================ */
.product-detail-wb__grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

/* ============================================
   ЛЕВАЯ КОЛОНКА
   ============================================ */
.product-detail-wb__left {
    min-width: 0;
}

/* ============================================
   Галерея
   ============================================ */
.product-detail-wb__gallery {
    display: flex;
    gap: 0.75rem;
    align-self: start;
}

.product-detail-wb__thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 72px;
    flex-shrink: 0;
}

.product-detail-wb__thumb {
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.product-detail-wb__thumb:hover,
.product-detail-wb__thumb.active {
    border-color: var(--primary, #2A4B6D);
}

.product-detail-wb__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-wb__main-image {
    position: relative;
    flex: 1;
    min-width: 0;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: visible; /* Для zoom-результата вне контейнера */
    max-height: 500px;
}

.product-detail-wb__image {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.product-detail-wb__no-image {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 12px;
}

.product-detail-wb__no-image .material-symbols-outlined {
    font-size: 48px;
    color: #ccc;
}

/* Zoom (десктоп) */
.product-detail-wb__main-image {
    cursor: crosshair;
}

.product-detail-wb__zoom-lens {
    display: none;
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 129, 138, 0.5);
    background: rgba(0, 129, 138, 0.08);
    border-radius: 4px;
    pointer-events: none;
    z-index: 3;
}

.product-detail-wb__zoom-lens.active {
    display: block;
}

.product-detail-wb__zoom-result {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 12px);
    width: 400px;
    height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-repeat: no-repeat;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10;
    pointer-events: none;
}

.product-detail-wb__zoom-result.active {
    display: block;
}

/* Мобильный слайдер (scroll-snap) */
.product-detail-wb__mobile-gallery {
    display: none;
    position: relative;
}

.product-detail-wb__slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.product-detail-wb__slider::-webkit-scrollbar {
    display: none;
}

.product-detail-wb__slide {
    min-width: 100%;
    scroll-snap-align: start;
}

.product-detail-wb__slide img {
    width: 100%;
    height: auto;
    display: block;
    touch-action: pinch-zoom;
}

.product-detail-wb__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
}

.product-detail-wb__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.product-detail-wb__dot.active {
    background: #00818a;
    transform: scale(1.3);
}

/* Бейджи */
.product-detail-wb__badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 2;
}

.product-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge--sale { background: #e53935; color: #fff; }
.product-badge--new { background: #4caf50; color: #fff; }
.product-badge--hit { background: #ff9800; color: #fff; }

/* ============================================
   Контентные секции (под галереей)
   ============================================ */
.product-detail-wb__content {
    margin-top: 2rem;
}

.product-detail-wb__section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-detail-wb__section:last-child {
    border-bottom: none;
}

.product-detail-wb__section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem;
}

.product-detail-wb__description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

.product-detail-wb__description-empty,
.product-detail-wb__reviews-empty {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Характеристики — стиль WB (с точками) */
.product-detail-wb__props-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-detail-wb__props-item {
    display: flex;
    align-items: baseline;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.product-detail-wb__props-name {
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-detail-wb__props-dots {
    flex: 1;
    border-bottom: 1px dotted #ddd;
    min-width: 20px;
    margin-bottom: 0.25rem;
}

.product-detail-wb__props-value {
    color: #333;
    font-weight: 500;
    text-align: right;
    flex-shrink: 0;
    max-width: 50%;
}

/* Иконки ухода */
.product-detail-wb__care-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.care-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    cursor: help;
    transition: all 0.2s;
}

.care-icon:hover {
    background: #e8e8e8;
    border-color: #999;
}

.care-icon--wash_30,
.care-icon--wash_30_delicate { color: #2196F3; }
.care-icon--no_bleach { color: #f44336; }
.care-icon--no_tumble_dry { color: #ff9800; }
.care-icon--iron_low,
.care-icon--iron_medium { color: #795548; }
.care-icon--dry_clean_p,
.care-icon--dry_clean_optional { color: #9c27b0; }

.product-detail-wb__care-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   ПРАВАЯ КОЛОНКА: Buy Box (Sticky)
   ============================================ */
.product-detail-wb__right {
    position: sticky;
    top: 20px;
    align-self: start;
}

.product-detail-wb__buybox {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Заголовок + избранное */
.product-detail-wb__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.product-detail-wb__title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.product-detail-wb__favorite-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.product-detail-wb__favorite-btn:hover {
    border-color: #e53935;
}

.product-detail-wb__favorite-btn .material-symbols-outlined {
    font-size: 22px;
    color: #999;
    transition: color 0.2s;
}

.product-detail-wb__favorite-btn:hover .material-symbols-outlined {
    color: #e53935;
}

/* Тизер */
.product-detail-wb__teaser {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
    font-style: italic;
}

/* Артикул */
.product-detail-wb__article {
    color: #999;
    font-size: 0.85rem;
}

.product-detail-wb__article span {
    font-weight: 500;
    color: #666;
}

/* Наличие */
.product-detail-wb__stock {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-detail-wb__stock .material-symbols-outlined {
    font-size: 18px;
}

.product-detail-wb__stock.in-stock {
    color: #4caf50;
}

.product-detail-wb__stock.out-stock {
    color: #e53935;
}

/* ============================================
   Блок цены
   ============================================ */
.product-detail-wb__price-block {
    padding: 0.75rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.product-detail-wb__price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-detail-wb__current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.product-detail-wb__old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.product-detail-wb__discount-badge {
    background: #e53935;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-detail-wb__price-per {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.15rem;
}

.product-detail-wb__price-request {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

/* ============================================
   Итоговая цена (динамическая)
   ============================================ */
.product-detail-wb__total-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.product-detail-wb__total-label {
    font-size: 0.85rem;
    color: #888;
}

.product-detail-wb__total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00818a;
}

/* ============================================
   Чипсы метража
   ============================================ */
.product-detail-wb__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-detail-wb__chip {
    padding: 0.4rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 44px;
    min-height: 36px;
    text-align: center;
}

.product-detail-wb__chip:hover {
    border-color: #00818a;
    color: #00818a;
}

.product-detail-wb__chip.active {
    background: #00818a;
    border-color: #00818a;
    color: #fff;
}

/* ============================================
   Количество
   ============================================ */
.product-detail-wb__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-detail-wb__quantity {
    display: flex;
    align-items: center;
}

.product-detail-wb__qty-btn {
    width: 44px;
    height: 44px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-detail-wb__qty-btn.minus {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.product-detail-wb__qty-btn.plus {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.product-detail-wb__qty-btn:hover {
    background: #e0e0e0;
}

.product-detail-wb__qty-btn:active {
    background: #d5d5d5;
}

.product-detail-wb__qty-input {
    width: 60px;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    background: #fff;
    -moz-appearance: textfield;
}

.product-detail-wb__qty-input::-webkit-outer-spin-button,
.product-detail-wb__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-detail-wb__qty-input:focus {
    outline: none;
    border-color: #d0d0d0;
}

/* ============================================
   Кнопки
   ============================================ */
.product-detail-wb__buy-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #00818a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    min-height: 50px;
}

.product-detail-wb__buy-btn:hover {
    background: #006d75;
    transform: translateY(-1px);
}

.product-detail-wb__buy-btn .material-symbols-outlined {
    font-size: 20px;
}

.product-detail-wb__buy-btn.success {
    background: #28a745;
}

.product-detail-wb__buy-btn .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.product-detail-wb__notify-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--primary, #2A4B6D);
    border: 2px solid var(--primary, #2A4B6D);
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 50px;
}

.product-detail-wb__notify-btn:hover {
    background: var(--primary, #2A4B6D);
    color: #fff;
}

.product-detail-wb__oneclick-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #333;
}

.product-detail-wb__oneclick-btn:hover {
    background: #e8e8e8;
}

/* ============================================
   Гарантии
   ============================================ */
.product-detail-wb__guarantees {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.product-detail-wb__guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.product-detail-wb__guarantee-item .material-symbols-outlined {
    font-size: 18px;
    color: #4caf50;
}

/* ============================================
   Мобильная липкая панель
   ============================================ */
.product-detail-wb__mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 0.5rem 1rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.product-detail-wb__mobile-bar-left {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.product-detail-wb__mobile-bar-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

.product-detail-wb__mobile-bar-per {
    font-size: 0.8rem;
    color: #999;
}

.product-detail-wb__mobile-bar-btn {
    background: #00818a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.product-detail-wb__mobile-bar-btn--notify {
    background: var(--primary, #2A4B6D);
}

/* ============================================
   Модалка "Купить в 1 клик"
   ============================================ */
.oneclick-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.oneclick-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.oneclick-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: oneclick-slideIn 0.2s ease-out;
}

@keyframes oneclick-slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oneclick-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #666;
    transition: color 0.2s;
}

.oneclick-modal__close:hover {
    color: #000;
}

.oneclick-modal__title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.oneclick-modal__product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.oneclick-modal__product-name {
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 0.5rem;
}

.oneclick-modal__product-qty {
    color: var(--primary, #2A4B6D);
    font-weight: 600;
    white-space: nowrap;
}

.oneclick-modal__field {
    margin-bottom: 1rem;
}

.oneclick-modal__field label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.oneclick-modal__field .required {
    color: #dc3545;
}

.oneclick-modal__field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.oneclick-modal__field input:focus {
    outline: none;
    border-color: var(--primary, #2A4B6D);
    box-shadow: 0 0 0 3px rgba(42, 75, 109, 0.1);
}

.oneclick-modal__error {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

.oneclick-modal__agreement {
    margin-bottom: 1rem;
    color: #666;
}

.oneclick-modal__agreement a {
    color: var(--primary, #2A4B6D);
    text-decoration: underline;
}

.oneclick-modal__submit {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary, #2A4B6D);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.oneclick-modal__submit:hover:not(:disabled) {
    background: #1e3a5f;
}

.oneclick-modal__submit:active:not(:disabled) {
    transform: scale(0.98);
}

.oneclick-modal__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.oneclick-modal__submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.oneclick-modal__global-error {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff5f5;
    border: 1px solid #dc3545;
    border-radius: 8px;
    color: #dc3545;
    font-size: 0.875rem;
}

.spin {
    animation: oneclick-spin 1s linear infinite;
}

@keyframes oneclick-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .oneclick-modal__content {
        padding: 1.25rem;
        border-radius: 16px 16px 0 0;
        position: absolute;
        bottom: 0;
        max-height: 85vh;
    }

    .oneclick-modal {
        align-items: flex-end;
    }
}

/* Модалка подписки */
.subscribe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    overflow: hidden;
}

.subscribe-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.subscribe-modal__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.subscribe-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.subscribe-modal__close:hover { color: #333; }

.subscribe-modal__body {
    padding: 20px;
}

.subscribe-modal__body p {
    margin: 0 0 12px;
    color: #555;
    font-size: 0.95rem;
}

.subscribe-modal__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.subscribe-modal__input:focus {
    outline: none;
    border-color: var(--primary, #2A4B6D);
}

.subscribe-modal__error {
    margin-top: 8px;
    color: #DC3545;
    font-size: 0.85rem;
}

.subscribe-modal__footer {
    padding: 0 20px 20px;
}

.subscribe-modal__btn {
    width: 100%;
    padding: 12px;
    background: #00818a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.subscribe-modal__btn:hover { opacity: 0.9; }
.subscribe-modal__btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* ============================================
   Адаптивность
   ============================================ */
@media (max-width: 1024px) {
    .product-detail-wb__grid {
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-detail-wb {
        padding: 0.5rem 0 5rem; /* Отступ снизу для mobile bar */
    }

    .product-detail-wb__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Порядок на мобильном: галерея → buy box → контент */
    .product-detail-wb__left {
        display: contents;
    }

    .product-detail-wb__gallery {
        order: 1;
        flex-direction: column;
    }

    /* Скрываем миниатюры на мобильном */
    .product-detail-wb__gallery .product-detail-wb__thumbs {
        display: none;
    }

    /* Если есть слайдер — скрываем десктопную галерею целиком */
    .product-detail-wb__gallery.has-slider {
        display: none;
    }

    .product-detail-wb__mobile-gallery {
        display: block;
        order: 1;
    }

    .product-detail-wb__content {
        order: 3;
    }

    .product-detail-wb__zoom-lens,
    .product-detail-wb__zoom-result {
        display: none !important;
    }

    .product-detail-wb__right {
        order: 2;
        position: static; /* Убираем sticky на мобильном */
    }

    .product-detail-wb__thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }

    .product-detail-wb__thumb {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }

    .product-detail-wb__main-image {
        min-width: 0;
        max-width: 100%;
    }

    /* Buy Box: карточка без рамки */
    .product-detail-wb__buybox {
        border: none;
        padding: 0;
    }

    /* Показываем мобильную панель */
    .product-detail-wb__mobile-bar {
        display: flex;
    }

    .product-detail-wb__title {
        font-size: 1.15rem;
    }

    .product-detail-wb__current-price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-detail-wb__qty-btn {
        width: 40px;
        height: 40px;
    }

    .product-detail-wb__qty-input {
        height: 40px;
    }

    .product-detail-wb__buy-btn {
        min-height: 44px;
        border-radius: 10px;
    }
}

/* End */
/* /local/templates/tkanililiya_custom/components/bitrix/catalog.section.list/bootstrap_v4/style.css?17715202105586 */
/* /local/templates/tkanililiya_custom/components/bitrix/catalog.element/product_detail_v2/style.css?177152021024478 */
