/*
 * Мебель Дельта — Product Landing Page
 * Styles for the product mini-landing (Marya-level)
 */

/* === Product Hero === */
.product-hero { position: relative; min-height: 85vh; display: flex; align-items: flex-end; overflow: hidden; }
.product-hero__bg { position: absolute; inset: 0; }
.product-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.product-hero__gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.92) 0%, rgba(26,26,26,0.5) 40%, rgba(26,26,26,0.15) 100%); }
.product-hero__body { position: relative; z-index: 2; width: 100%; padding: var(--sp-16) 0 var(--sp-12); }
.product-hero__label { font-size: var(--fs-sm); color: var(--c-gold); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: var(--sp-4); }
.product-hero__title { font-size: var(--fs-4xl); color: #fff; line-height: 1.1; margin-bottom: var(--sp-4); }
.product-hero__desc { font-size: var(--fs-lg); color: rgba(255,255,255,0.8); max-width: 38rem; margin-bottom: var(--sp-8); line-height: 1.7; }
@media (min-width: 768px) { .product-hero__title { font-size: var(--fs-6xl); } }
@media (min-width: 1024px) { .product-hero__title { font-size: var(--fs-7xl); } }

/* Hero Stats */
.product-hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-8); }
@media (min-width: 768px) { .product-hero__stats { grid-template-columns: repeat(4, auto); gap: var(--sp-10); } }
.product-stat { text-align: left; }
.product-stat__number { font-family: var(--f-heading); font-size: var(--fs-4xl); color: var(--c-gold); font-weight: 700; line-height: 1; }
.product-stat__text { font-size: var(--fs-sm); color: rgba(255,255,255,0.6); margin-top: var(--sp-1); letter-spacing: 0.02em; }
@media (min-width: 768px) { .product-stat__number { font-size: var(--fs-5xl); } }

/* Hero Price Block */
.product-hero__price-block { display: flex; align-items: baseline; gap: var(--sp-6); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.product-hero__price { font-family: var(--f-heading); font-size: var(--fs-3xl); color: #fff; font-weight: 700; }
.product-hero__credit { font-size: var(--fs-sm); color: var(--c-gold); background: rgba(201,169,97,0.15); padding: 6px 16px; border: 1px solid rgba(201,169,97,0.3); display: inline-flex; align-items: center; gap: var(--sp-2); }
.product-hero__credit svg { width: 16px; height: 16px; }
@media (min-width: 768px) { .product-hero__price { font-size: var(--fs-4xl); } }

/* Hero Actions */
.product-hero__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* === Promo Strip === */
.promo-strip { background: var(--c-graphite); overflow: hidden; padding: var(--sp-4) 0; border-bottom: 1px solid rgba(201,169,97,0.2); }
.promo-strip__inner { display: flex; animation: promoScroll 20s linear infinite; white-space: nowrap; width: max-content; }
.promo-strip__item { display: flex; align-items: center; gap: var(--sp-2); color: rgba(255,255,255,0.85); font-size: var(--fs-sm); letter-spacing: 0.03em; flex-shrink: 0; padding: 0 var(--sp-6); }
.promo-strip__dot { width: 6px; height: 6px; background: var(--c-gold); border-radius: 50%; flex-shrink: 0; }
@keyframes promoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === Decor Gallery === */
.decor-section { padding: var(--sp-20) 0; }
.decor-grid { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; margin-top: var(--sp-10); }
.decor-item { text-align: center; cursor: pointer; transition: transform var(--duration) var(--ease); }
.decor-item:hover { transform: translateY(-4px); }
.decor-item__swatch { width: 64px; height: 64px; border-radius: 50%; border: 3px solid transparent; transition: border-color var(--duration) var(--ease); box-shadow: var(--shadow-sm); margin: 0 auto var(--sp-2); }
.decor-item:hover .decor-item__swatch, .decor-item.active .decor-item__swatch { border-color: var(--c-gold); }
.decor-item__name { font-size: var(--fs-xs); color: var(--c-text-muted); max-width: 80px; margin: 0 auto; line-height: 1.3; }
@media (min-width: 768px) { .decor-item__swatch { width: 80px; height: 80px; } }

/* === Feature Cards === */
.features-section { padding: var(--sp-20) 0; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); margin-top: var(--sp-10); }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: var(--c-white); padding: var(--sp-8); box-shadow: var(--shadow-sm); transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); cursor: pointer; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--c-gold); transform: scaleY(0); transform-origin: top; transition: transform var(--duration) var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleY(1); }
.feature-card__num { font-family: var(--f-heading); font-size: var(--fs-3xl); color: var(--c-gold); margin-bottom: var(--sp-4); font-weight: 700; opacity: 0.5; }
.feature-card__title { font-family: var(--f-heading); font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.feature-card__desc { font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.7; }

/* === Specs Table === */
.specs-section { padding: var(--sp-20) 0; }
.specs-table { width: 100%; max-width: 700px; margin: var(--sp-10) auto 0; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--c-border); }
.specs-table td { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }
.specs-table td:first-child { font-weight: 600; color: var(--c-text); white-space: nowrap; width: 40%; }
.specs-table td:last-child { color: var(--c-text-muted); }
.specs-table tr:hover { background: var(--c-light); }

/* Material Badge (inline) */
.material-badge { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 4px 12px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-emerald); background: rgba(45,95,76,0.08); letter-spacing: 0.05em; position: relative; cursor: help; }
.material-badge__tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--c-graphite); color: #fff; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-xs); font-weight: 400; line-height: 1.5; width: 240px; white-space: normal; opacity: 0; visibility: hidden; transition: all var(--duration) var(--ease); z-index: 10; pointer-events: none; box-shadow: var(--shadow-lg); }
.material-badge__tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--c-graphite); }
.material-badge:hover .material-badge__tooltip { opacity: 1; visibility: visible; }

/* === Project Cards (realized projects with this model) === */
.projects-section { padding: var(--sp-20) 0; }
.project-card { background: var(--c-white); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--duration) var(--ease); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card__img { width: 100%; height: 240px; object-fit: cover; }
.project-card__body { padding: var(--sp-6); }
.project-card__title { font-family: var(--f-heading); font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.project-card__meta { display: flex; flex-direction: column; gap: var(--sp-1); font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: var(--sp-4); }
.project-card__meta span strong { color: var(--c-text); }
.project-card__review { font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.7; font-style: italic; border-left: 3px solid var(--c-gold); padding-left: var(--sp-4); }

/* === Calc Form === */
.calc-section { padding: var(--sp-20) 0; }
.calc-form { max-width: 600px; margin: var(--sp-10) auto 0; background: var(--c-white); padding: var(--sp-8); box-shadow: var(--shadow-md); }
.calc-form select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* === Gallery Swiper (product page) === */
.product-gallery { margin-top: var(--sp-10); }
.product-gallery .swiper-slide img { width: 100%; height: 420px; object-fit: cover; cursor: pointer; }
@media (min-width: 768px) { .product-gallery .swiper-slide img { height: 560px; } }

/* === Catalog Card Enhancements === */
.card__credit { font-size: var(--fs-xs); color: var(--c-gold); margin-top: var(--sp-1); display: flex; align-items: center; gap: 4px; }
.card__material { margin-top: var(--sp-3); }
.card__actions { margin-top: var(--sp-4); display: flex; gap: var(--sp-3); }
.card__tag--premium { background: linear-gradient(135deg, #C9A961, #8B6F3A); }
.card__tag--hit { background: var(--c-emerald); }

/* === Catalog Promo Bar === */
.catalog-promos { display: flex; gap: var(--sp-4); padding: var(--sp-4) 0; overflow-x: auto; scrollbar-width: none; }
.catalog-promos::-webkit-scrollbar { display: none; }
.catalog-promo-item { flex-shrink: 0; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5); background: var(--c-white); border: 1px solid var(--c-border); font-size: var(--fs-sm); white-space: nowrap; transition: all var(--duration) var(--ease); }
.catalog-promo-item:hover { border-color: var(--c-gold); background: rgba(201,169,97,0.05); }
