/* ==========================================
   GIESSEGI.RU — Custom Styles
   Based on giessegi.it design
   Bootstrap 5.1 + Google Fonts
   ========================================== */

:root {
    --red: #B5132B;
    --red-dark: #9A1020;
    --dark: #1A1A1A;
    --gray-dark: #0F1419;
    --gray: #606060;
    --gray-light: #999;
    --gray-lighter: #D0D5DA;
    --gray-bg: #F0F2F5;
    --white: #FAFCFF;
    --font-main: 'Roboto', sans-serif;
    --font-condensed: 'Roboto Condensed', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    --topbar-height: 35px;
    --header-height: 105px; /* topbar 35px + nav 70px */
    --transition: 0.3s ease;
}

/* ---- Reset & Base ---- */
* { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #FDFDFC;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #555;
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--red); }

img { max-width: 100%; height: auto; }

main {
    padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-condensed);
    font-weight: 400;
    margin: 0 0 1rem;
}

/* ---- Header Top Bar ---- */
.header-topbar {
    background: rgba(0,0,0,0.75);
    color: rgba(255,255,255,0.95);
    font-size: 13px;
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-main);
    font-weight: 300;
    transition: background 0.3s;
}
.header-topbar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color var(--transition);
}
.header-topbar a:hover { color: var(--white); }
.header-topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-topbar-left i { margin-right: 5px; }
.header-topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-topbar-right a {
    font-size: 15px;
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.site-header.scrolled .header-topbar {
    height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
}

.header-topbar {
    height: var(--topbar-height);
    transition: height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    max-width: 100%;
    transition: height 0.3s ease;
}
.site-header.scrolled .header-inner {
    height: 52px;
}

.header-logo img {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}
.site-header.scrolled .header-logo img {
    height: 38px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ---- Floating Order Button ---- */
.floating-order-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(183,28,28,0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.floating-order-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(183,28,28,0.5);
}
.floating-order-btn i {
    font-size: 18px;
}

/* ---- Order Modal ---- */
.order-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.order-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.order-modal {
    background: var(--white);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}
.order-modal-backdrop.active .order-modal {
    transform: translateY(0);
}
.order-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    padding: 4px 8px;
    line-height: 1;
}
.order-modal-close:hover { color: var(--red); }
.order-modal h3 {
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--red);
    text-align: center;
    margin-bottom: 30px;
}

.header-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--red);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-btn:hover { color: var(--red-dark); }

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--red);
    transition: var(--transition);
}

/* ---- Navigation Overlay ---- */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    padding: 30px 40px;
}
.main-nav.active { right: 0; }

.nav-close {
    text-align: right;
    margin-bottom: 30px;
}
.nav-close .header-btn {
    color: #333;
}

.nav-section {
    margin-bottom: 35px;
}

.nav-heading {
    font-family: var(--font-condensed);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 15px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-list li {
    margin-bottom: 8px;
}
.nav-list a {
    font-family: var(--font-condensed);
    font-size: 15px;
    font-weight: 300;
    color: #444;
    letter-spacing: 0.5px;
    transition: color var(--transition), padding-left var(--transition);
}
.nav-list a:hover {
    color: var(--red);
    padding-left: 5px;
}

/* Nav backdrop */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ---- Search Overlay ---- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.97);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-inner {
    width: 90%;
    max-width: 700px;
    position: relative;
}
.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-dark);
}
.search-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--gray-dark);
    padding: 15px 0;
    font-family: var(--font-condensed);
    font-size: 28px;
    font-weight: 300;
    outline: none;
    background: transparent;
}
.search-input:focus {
    border-bottom-color: var(--red);
}

/* ---- Hero Video ---- */
.hero-video {
    position: relative;
    overflow: hidden;
    height: 100vh;
    margin-top: calc(-1 * var(--header-height));
}
.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Tagline below hero ---- */
.hero-tagline-section {
    text-align: center;
    padding: 50px 20px 10px;
}
.hero-tagline-section .tagline-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 28px;
    color: #555;
    letter-spacing: 1px;
    line-height: 1.4;
    transition: opacity 0.6s linear, transform 0.6s linear;
}
body.reveal-ready .hero-tagline-section .tagline-text {
    opacity: 0;
    transform: translateY(20%);
}
body.reveal-ready .hero-tagline-section .tagline-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Scroll Reveal Animations (giessegi.it style) ---- */
/* Elements visible by default; JS adds .reveal-ready to body to enable animations */

/* Image reveal: clip-path wipe from right */
body.reveal-ready [data-inview] img {
    clip-path: inset(0 100% 0 0);
    transform: scale(1.1);
    transition: clip-path 0.6s linear, transform 0.6s linear;
    will-change: clip-path, transform;
}
body.reveal-ready [data-inview].in-view img {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
}

/* General animated element reveal */
body.reveal-ready .reveal {
    opacity: 0;
    transform: scale(0.95) translateY(-5%);
    transition: opacity 0.6s linear, transform 0.6s linear;
}
body.reveal-ready .reveal.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Translate-up variant */
body.reveal-ready .reveal-up {
    opacity: 0;
    transform: translateY(20%);
    transition: opacity 0.6s linear, transform 0.6s linear;
}
body.reveal-ready .reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.hero-video-content {
    text-align: center;
}
.hero-logo {
    height: 90px;
    width: auto;
    margin-bottom: 20px;
}
.hero-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 22px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 2px;
}

/* ---- Collections Section (giessegi.it style) ---- */
.collections-section {
    padding: 0 0 80px;
}
.collections-section .section-title {
    margin: 60px 0 40px;
    color: var(--red);
}
.collection-card-premium {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 46px;
    background: transparent;
}
.collection-card-image {
    overflow: hidden;
    aspect-ratio: 542/315;
}
.collection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s linear;
}
.collection-card-premium:hover .collection-card-image img {
    transform: scale(1.03);
}
.collection-card-info {
    padding: 13px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.collection-card-info h3 {
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #333;
    margin: 0;
    text-transform: uppercase;
}
.collection-card-link {
    display: none;
}

/* ---- Hero Slider ---- */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 100vh;
    margin-top: calc(-1 * var(--header-height));
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
}
.hero-slide.active { display: block; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide-label {
    position: absolute;
    left: 40px;
    bottom: 40px;
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--white);
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.35);
    padding: 8px 20px;
}

/* Hero navigation dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}
.hero-dots span.active {
    background: var(--white);
}

/* ---- Video Section ---- */
.video-section {
    padding: 0;
    margin: 0 auto;
    max-width: 820px;
}
.video-section video,
.video-section iframe {
    width: 100%;
    display: block;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
}
.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ---- Section Title (giessegi.it: 18px, 700, 0.05em) ---- */
.section-title {
    font-family: var(--font-condensed);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #333;
    text-align: center;
    margin: 80px 0 40px;
}

/* ---- Collections Grid ---- */
.collections-grid {
    padding: 0 20px 60px;
}

.collection-card {
    display: block;
    margin-bottom: 46px;
    overflow: hidden;
}

.collection-card img {
    width: 100%;
    aspect-ratio: 542/315;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s linear;
}
.collection-card:hover img {
    transform: scale(1.03);
}

.collection-card-title {
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: right;
    margin-top: 13px;
    color: #333;
}

/* ---- News Section ---- */
.news-section {
    padding: 0 20px 60px;
    background: var(--gray-bg);
}

.news-card {
    display: block;
    margin-bottom: 30px;
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
}

.news-card .news-date {
    font-size: 12px;
    color: var(--gray-light);
    margin-bottom: 5px;
}

.news-card .news-label {
    font-size: 11px;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card h3 {
    font-family: var(--font-condensed);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--gray-dark);
}

/* ---- Sustainability / Company Section ---- */
.company-section {
    padding: 60px 20px;
    text-align: center;
}

.company-section img {
    width: 100%;
    max-width: 500px;
    margin-bottom: 30px;
}

/* ---- Slogan ---- */
.slogan {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    font-size: 42px;
    line-height: 1.3;
    color: #555;
    text-align: center;
    padding: 80px 20px;
}

/* ---- Button ---- */
.btn-outline-dark {
    border: 1px solid var(--gray-dark);
    color: var(--gray-dark);
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 30px;
    background: transparent;
    transition: var(--transition);
    display: inline-block;
}
.btn-outline-dark:hover {
    background: var(--gray-dark);
    color: var(--white);
}

.btn-outline-red {
    border: 1px solid var(--red);
    color: var(--red);
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 30px;
    background: transparent;
    transition: var(--transition);
    display: inline-block;
}
.btn-outline-red:hover {
    background: var(--red);
    color: var(--white);
}

/* ---- Category Page ---- */
.category-hero {
    padding: 60px 20px 40px;
    text-align: center;
}

.category-hero h1 {
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--red);
}

.category-hero p {
    max-width: 700px;
    margin: 15px auto 0;
    font-weight: 300;
    color: var(--gray);
}

.subcategory-grid {
    padding: 0 20px 60px;
}

.subcategory-card {
    display: block;
    margin-bottom: 46px;
    text-align: right;
    overflow: hidden;
}

.subcategory-card img {
    width: 100%;
    aspect-ratio: 542/315;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s linear;
}
.subcategory-card:hover img {
    transform: scale(1.03);
}

.subcategory-card h3 {
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 13px;
    color: #333;
}

/* ---- Product Grid (giessegi.it style) ---- */
.product-grid {
    padding: 0 40px 80px;
}

.product-card {
    display: block;
    margin-bottom: 50px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    aspect-ratio: 352/250;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s linear;
}
.product-card:hover img {
    transform: scale(1.03);
}

.product-card h4 {
    font-family: var(--font-condensed);
    font-size: 16px;
    font-weight: 700;
    margin-top: 13px;
    color: #333;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: right;
}

/* ---- Product Detail ---- */
.product-detail {
    padding: 0;
}

.product-header {
    text-align: center;
    padding: 5px 20px 10px;
}
.product-header h1 {
    font-family: var(--font-condensed);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 5px;
}
.product-subtitle {
    font-weight: 300;
    color: var(--gray);
    font-size: 15px;
    margin: 0;
}

/* Main hero image */
.product-hero-image {
    max-width: 1000px;
    margin: 0 auto 30px;
}
.product-hero-image img {
    width: 100%;
    display: block;
    max-height: 75vh;
    object-fit: contain;
}
.product-hero-image .product-image-caption {
    font-weight: 300;
    color: var(--gray);
    font-size: 14px;
    padding: 12px 20px;
    line-height: 1.5;
}

/* Gallery grid (giessegi.it style — horizontal scrollable) */
.product-gallery-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 20px;
    margin: 0 auto 30px;
    max-width: 1200px;
    scrollbar-width: thin;
    scrollbar-color: var(--red) #eee;
}
.product-gallery-grid::-webkit-scrollbar {
    height: 4px;
}
.product-gallery-grid::-webkit-scrollbar-track {
    background: #eee;
}
.product-gallery-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #e2080f 0%, #b5132c 100%);
    border-radius: 2px;
}
.product-gallery-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    overflow: hidden;
}
.product-gallery-slide img {
    height: 470px;
    width: auto;
    display: block;
    object-fit: cover;
}

/* Product dimensions */
.product-dimensions {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px 20px 24px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-top: 8px;
    margin-bottom: 8px;
}
.product-dimensions p {
    font-family: var(--font-condensed);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #444;
    margin: 4px 0;
    line-height: 1.6;
}

/* Finishes section (giessegi.it style) */
.product-finishes-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.product-finishes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 20px;
}
.product-finish-item {
    width: calc(12.5% - 7px);
    text-align: center;
}
.product-finish-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    border: 1px solid #ddd;
}
.product-finish-item span {
    font-size: 10px;
    color: var(--gray);
    display: block;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.product-finish-group {
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}
.finish-group-header {
    display: flex;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.finish-group-header:hover {
    background: #fafafa;
}
.finish-group-count {
    font-family: var(--font-condensed);
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    letter-spacing: 0.03em;
}
.finish-group-arrow {
    margin-left: auto;
    font-size: 22px;
    color: #999;
    transition: transform 0.3s;
    line-height: 1;
    transform: rotate(0deg);
}
.product-finish-group.open .finish-group-arrow {
    transform: rotate(90deg);
}
.product-finish-group .product-finishes-grid {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.product-finish-group.open .product-finishes-grid {
    max-height: 2000px;
    padding: 10px 0 20px;
}
.finish-group-title {
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
    color: #333;
}
.finishes-subtitle {
    font-family: var(--font-condensed);
    font-size: 14px;
    letter-spacing: 0.03em;
    color: #555;
    background: #f5f5f5;
    padding: 10px 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.finish-swatches-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.finish-swatch-item {
    text-align: center;
    width: 60px;
}
.finish-swatch-color {
    width: 50px;
    height: 50px;
    border-radius: 2px;
    background: #ccc;
    border: 1px solid #ddd;
    margin: 0 auto;
}
.finish-swatch-label {
    font-size: 10px;
    color: var(--gray);
    margin-top: 4px;
    display: block;
}

/* Related products (giessegi.it: 3 columns) */
.product-related {
    margin-top: 60px;
    padding: 0 20px 40px;
}
.product-related-grid {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}
.product-related-card {
    width: calc(33.333% - 14px);
    display: block;
    overflow: hidden;
}
.product-related-card img {
    width: 100%;
    aspect-ratio: 352/250;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s linear;
}
.product-related-card:hover img {
    transform: scale(1.03);
}
.product-related-card h4 {
    font-family: var(--font-condensed);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: right;
    padding-top: 13px;
    color: #333;
    margin: 0;
}
.product-image-caption {
    font-weight: 300;
    color: var(--gray);
    font-size: 14px;
    padding: 12px 20px;
    line-height: 1.5;
}

.product-specs-block {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}
.product-specs-block h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--gray-dark);
}
.product-specs-block table {
    width: 100%;
    font-size: 14px;
}
.product-specs-block td {
    padding: 5px 15px 5px 0;
    border-bottom: 1px solid var(--gray-bg);
}

.product-actions {
    text-align: center;
    padding: 15px 20px 0;
}

.product-related {
    margin-top: 40px;
    padding: 0 20px;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--gray-lighter);
    cursor: pointer;
}

/* ---- Product Contact Form ---- */
.product-contact-section {
    background: var(--gray-bg);
    padding: 40px 20px;
}
.product-contact-section .section-title {
    margin-top: 0;
    margin-bottom: 15px;
}
.product-contact-subtitle {
    text-align: center;
    color: var(--gray);
    font-weight: 300;
    font-size: 15px;
    margin-bottom: 25px;
}
.product-contact-form-wrap {
    max-width: 700px;
    margin: 0 auto;
}
.pform-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.pform-group {
    flex: 1;
    margin-bottom: 0;
}
.pform-group input,
.pform-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: var(--font-main);
    background: var(--white);
}
.pform-group textarea {
    resize: vertical;
    margin-bottom: 15px;
}
.pform-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pform-captcha span {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}
.pform-captcha input {
    width: 90px !important;
    flex: none;
}
.pform-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.pform-check-item {
    padding: 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}
.pform-check-item:hover .pform-check-box {
    border-color: #999;
}
.pform-check-box {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}
.pform-check-input {
    display: none;
}
/* Captcha solved state */
.pform-check-box.solved {
    background: #2e7d32;
    border-color: #2e7d32;
}
.pform-check-box.solved::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.pform-check-input:checked + .pform-agree-box {
    background: #2e7d32;
    border-color: #2e7d32;
}
.pform-check-input:checked + .pform-agree-box::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.pform-check-label {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}
.pform-check-label a {
    color: var(--red);
    text-decoration: none;
}
.pform-check-label a:hover {
    text-decoration: underline;
}
.pform-submit {
    width: 100%;
    padding: 14px;
    background: #fff;
    color: var(--red);
    border: 2px solid var(--red);
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pform-submit:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(181, 19, 43, 0.3);
}
.pform-submit:active {
    background: var(--red);
    color: #fff;
    transform: translateY(0);
    box-shadow: none;
    transition: all 0.05s;
}

/* ---- Catalogues Page ---- */
.catalogues-grid {
    padding: 0 20px 60px;
}

.catalogue-card {
    display: block;
    margin-bottom: 40px;
    text-align: center;
}

.catalogue-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.catalogue-card:hover img {
    transform: scale(1.02);
}

.catalogue-card h3 {
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    color: var(--gray-dark);
}

/* ---- PDF Viewer ---- */
.pdf-viewer-page {
    padding: 40px 20px;
}

.pdf-viewer-page h1 {
    font-family: var(--font-condensed);
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.pdf-controls {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pdf-controls button {
    background: var(--gray-dark);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.pdf-controls button:hover { background: var(--red); }

.pdf-canvas-wrapper {
    text-align: center;
    overflow-x: auto;
}

#pdfCanvas {
    max-width: 100%;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.pdf-download {
    text-align: center;
    margin-top: 30px;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
    padding: 8px 20px;
    font-size: 12px;
    color: var(--gray-light);
}
.breadcrumbs a {
    color: var(--gray-light);
}
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { margin: 0 5px; }

/* ---- Company Page ---- */
.company-page {
    padding: 60px 20px;
}

.company-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.company-stat {
    text-align: center;
}

.company-stat .stat-number {
    font-family: var(--font-condensed);
    font-size: 48px;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.company-stat .stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    margin-top: 5px;
}

/* ---- Contact Page ---- */
.contact-page {
    padding: 60px 20px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-control {
    border-radius: 0;
    border: 1px solid var(--gray-lighter);
    padding: 12px;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 15px;
}

.contact-form .form-control:focus {
    border-color: var(--red);
    box-shadow: none;
}

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
    background: #f5f5f5;
}

.footer-top {
    padding: 40px 0;
}

.footer-logo-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 60px;
    width: auto;
    border: 1px solid #ddd;
    padding: 10px;
}

.footer-member {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gray-dark);
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--gray-dark);
    color: var(--white);
}

.footer-contacts {
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-label {
    font-family: var(--font-condensed);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 8px;
}

.footer-contacts p {
    font-size: 14px;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
}

.footer-contacts a {
    color: #666;
}
.footer-contacts a:hover { color: var(--red); }

.footer-links {
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 5px;
}

.footer-links a {
    font-size: 13px;
    font-weight: 300;
    color: var(--gray);
}
.footer-links a:hover { color: var(--red); }

.footer-collections a {
    color: var(--red);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-bottom p {
    font-size: 12px;
    color: #888;
    margin: 0;
}
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: var(--red); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    :root { --topbar-height: 30px; --header-height: 90px; }

    .header-topbar { font-size: 11px; padding: 5px 12px; }
    .header-topbar-left { gap: 12px; }
    .header-topbar .topbar-address { display: none; }

    .site-header.scrolled .header-inner { height: 46px; }
    .header-logo img { height: 40px; }
    .site-header.scrolled .header-logo img { height: 32px; }

    .product-gallery-slide img { height: 280px; }
    .product-finish-item { width: calc(25% - 6px); }
    .product-related-grid { flex-wrap: wrap; }
    .product-related-card { width: calc(50% - 7px); }
    .product-grid { padding: 0 15px 60px; }
    .product-card { margin-bottom: 35px; }

    .hero-slide-label { left: 20px; bottom: 20px; font-size: 12px; padding: 6px 14px; }
    .hero-dots { right: 20px; bottom: 16px; }

    .section-title { margin: 50px 0 25px; font-size: 14px; }

    .collection-card img { height: 220px; }

    .slogan { font-size: 28px; padding: 50px 15px; }

    .footer-social { justify-content: flex-start; margin-top: 20px; }

    .company-stats { gap: 30px; }
    .company-stat .stat-number { font-size: 36px; }

    .footer-logo-block { flex-direction: column; align-items: flex-start; }

    .floating-order-btn { bottom: 16px; right: 16px; padding: 12px 24px; font-size: 12px; }
    .floating-order-btn span.btn-label { display: none; }

    .order-modal { padding: 28px 20px; }
}

@media (max-width: 576px) {
    .main-nav { max-width: 100%; padding: 20px 25px; }
    .search-input { font-size: 20px; }
    .header-topbar-left .topbar-phone-text { display: none; }
}

/* ==========================================
   IMAGE VIEWER / LIGHTBOX
   ========================================== */
#imgViewer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999; display: none; align-items: center; justify-content: center;
}
#imgViewer.iv-active { display: flex; }
.iv-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
}
.iv-container {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; overflow: hidden;
}
.iv-img {
    max-width: 90vw; max-height: 85vh; object-fit: contain;
    transition: transform 0.15s ease; user-select: none;
    transform-origin: center center;
}
.iv-toolbar {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(10px);
    border-radius: 40px; padding: 6px 12px;
}
.iv-btn {
    width: 38px; height: 38px; border: none; background: transparent;
    color: #fff; font-size: 18px; cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.iv-btn:hover { background: rgba(255,255,255,0.15); }
.iv-zoom-label {
    color: #fff; font-family: var(--font-condensed); font-size: 14px;
    min-width: 44px; text-align: center; letter-spacing: 0.03em;
    user-select: none;
}
.iv-counter {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.7); font-family: var(--font-condensed);
    font-size: 13px; letter-spacing: 0.05em;
}
.iv-close {
    position: absolute; top: 16px; right: 20px;
    width: 44px; height: 44px; background: rgba(0,0,0,0.5);
    color: #fff; border: none; font-size: 22px; cursor: pointer;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.iv-close:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 768px) {
    .iv-toolbar { bottom: 20px; padding: 4px 8px; gap: 2px; }
    .iv-btn { width: 34px; height: 34px; font-size: 16px; }
    .iv-img { max-width: 96vw; max-height: 80vh; }
}
