/* 
    Beauty Line - Luxury Aesthetic Theme
    Colors: Black, White, Soft Grays
*/

:root {
    --black: #080808;
    --dark: #121212;
    --gray-dark: #1f1f1f;
    --gray: #666666;
    --gray-light: #f8f8f8;
    --white: #ffffff;
    --gold: #d4af37;
    /* More metallic/lux gold */
    --gold-muted: rgba(212, 175, 55, 0.6);

    --container-width: 81.25rem;
    --transition-slow: 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    /* Luxury "reveal" easing */
    --transition-fast: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --tracking-wide: 0.15em;
    --tracking-narrow: 0.05em;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 3.75rem;
    /* More generous side padding */
}

/* Page Header Fix for Inner Pages */
.inner-page .page-header {
    padding-top: 6.25rem;
    padding-bottom: 1.25rem;
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.inner-page .page-header h1 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 0.312rem;
    letter-spacing: var(--tracking-wide);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Typography Helpers */
.subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    font-size: 0.75rem;
    color: var(--gold);
    /* Use gold for subtitles to pop */
    margin-bottom: 1.562rem;
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.562rem;
}

p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1.25rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    background: transparent;
    transition: var(--transition-fast);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(0.938rem);
    padding: 0.75rem 0;
    box-shadow: 0 0.25rem 1.875rem rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 0.375rem;
    text-transform: uppercase;
    text-decoration: none !important;
    /* Force no underline */
    border-bottom: none !important;
    color: var(--white);
    /* Default white for hero */
    transition: color var(--transition-fast);
}

.logo span {
    font-weight: 700;
}

header.scrolled .logo {
    color: var(--black);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    /* Default white for hero */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color var(--transition-fast);
}

header.scrolled .nav-links a {
    color: var(--black);
}

.nav-links a:hover {
    color: var(--gold);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 1.875rem;
    height: 1.25rem;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--white);
    transition: all var(--transition-fast);
}

/* Mobile Toggle Header Adjust */
header.scrolled .menu-toggle span {
    background-color: var(--black);
}

/* Open State */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(0.562rem) rotate(45deg);
    background-color: var(--black) !important;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-0.562rem) rotate(-45deg);
    background-color: var(--black) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.125rem 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--black);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--gray);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

header.scrolled .btn-outline {
    border-color: var(--black);
    color: var(--black);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
}

header.scrolled .btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

.btn-link {
    color: var(--white);
    padding: 0;
    border-bottom: 1px solid var(--white);
    letter-spacing: var(--tracking-wide);
}

.btn-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateX(0.312rem);
}

.full-width {
    width: 100%;
}

@media (min-width: 48.062rem) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 48rem) {
    .btn-link {
        border-bottom: none;
        border: 1px solid var(--white);
        padding: 0.875rem 2rem;
        text-align: center;
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-color: var(--black);
    background-image: url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

@media (max-width: 768px) {
    .hero-section {
        background-position: 70% center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 50rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 1.875rem;
}

.hero-content h1 span {
    font-style: italic;
    color: var(--gold);
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.812rem;
    font-weight: 300;
    letter-spacing: var(--tracking-narrow);
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2.5rem;
}

/* About Section */
/* Shared Full-Screen Section Centering Framework */
.about-section::before,
.about-section::after,
.advantages-section::before,
.advantages-section::after,
.products-section::before,
.products-section::after,
.contact-section::before,
.contact-section::after {
    content: '';
    margin: auto;
}

.about-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 6rem 0 2rem 0;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding-left: 1.875rem;
    position: relative;
    margin-bottom: 0.938rem;
    font-size: 1.1rem;
}

.features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 0.75rem;
    height: 1px;
    background-color: var(--gold);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    right: -1.25rem;
    bottom: -1.25rem;
    border: 1px solid var(--black);
    z-index: -1;
}

#about-img {
    width: 100%;
    display: block;
    filter: none;
    /* Removed all Gray/Saturate effects */
    transition: transform var(--transition-slow);
}

#about-img:hover {
    transform: scale(1.03);
    filter: saturate(1) contrast(1.1);
}

/* Advantages Section */
.advantages-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 6rem 0 2rem 0;
    background-color: #fafafa;
    /* Very light gray to make white cards pop */
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.advantage-card {
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.02);
    /* Soft initial shadow */
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0.25rem;
}

.advantage-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: -1;
    transform: translateY(105%);
    /* Hidden below */
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.advantage-card:hover {
    transform: translateY(-0.938rem);
    border-color: var(--black);
    box-shadow: 0 2.5rem 4.375rem rgba(0, 0, 0, 0.12);
}

.advantage-card:hover::before {
    transform: translateY(0);
}

.advantage-icon {
    margin-bottom: 1.5rem;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-muted);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    color: var(--gold);
}

.advantage-card:hover .advantage-icon {
    border-color: var(--white);
    color: var(--gold);
    /* Keep icon gold on black background for luxury pop */
    transform: rotateY(180deg) scale(1.1);
    /* Added elegant rotation */
}

.advantage-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.375rem;
    letter-spacing: 2px;
    transition: color 0.5s ease;
    font-weight: 400;
    text-transform: uppercase;
}

.advantage-card:hover h3 {
    color: var(--white);
}

.advantage-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 0;
    transition: color 0.5s ease;
    opacity: 0.9;
}

.advantage-card:hover p {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

@media (max-width: 84.375rem) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 48rem) {

    /* Remove forced full-screen heights on mobile */
    .about-section,
    .advantages-section,
    .products-section,
    .contact-section {
        min-height: auto;
        padding: 4rem 0 2rem 0; /* padding-top: 4rem > header height (3.1rem), so anchors always clear the header */
    }

    /* Disable the vertical centering pseudo-elements on mobile */
    .about-section::before,
    .about-section::after,
    .advantages-section::before,
    .advantages-section::after,
    .products-section::before,
    .products-section::after,
    .contact-section::before,
    .contact-section::after {
        display: none;
    }

    h2 {
        margin-bottom: 1rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        margin-top: 1rem;
    }

    .advantage-card {
        padding: 2.5rem 1.5rem;
    }

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

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .contact-form {
        padding: 2rem 1.25rem;
    }

    footer {
        padding: 3rem 0;
    }
}

/* Products Section */
.products-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 6rem 0 2rem 0;
    background-color: var(--gray-light);
}

/* Category Navigation */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    margin: 0.312rem 0 0.625rem 0;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 0.75rem 1.562rem;
    border: 1px solid var(--black);
    background: transparent;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--black);
    color: var(--white);
}

.center {
    text-align: center;
    margin-bottom: 0;
}

@media (max-width: 48rem) {
    /* Compact catalog header */
    .inner-page .page-header {
        padding-top: 4rem;
        padding-bottom: 0.75rem;
    }
    .inner-page .page-header h1 {
        font-size: 1.4rem;
    }
    .inner-page .page-header .subtitle {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    /* Standard filter buttons but smaller and swipeable */
    .category-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        margin: 1.25rem 0 0.5rem 0; /* Add margin above filters */
        justify-content: flex-start;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .category-nav::-webkit-scrollbar {
        display: none;
    }
    .cat-btn {
        flex-shrink: 0;
        padding: 0.4rem 0.8rem;
        font-size: 0.6rem;
        border-radius: 0; /* Strict square, matches homepage */
        letter-spacing: 1px;
    }

    /* Compact Product Cards (with borders, matching homepage) */
    .catalog-section {
        padding-bottom: 1.5rem;
    }
    .catalog-section .product-card {
        padding: 1rem;
        border: 1px solid rgba(0,0,0,0.03); /* Restored border */
    }
    .catalog-section .product-img {
        height: auto;
        max-height: 12rem; /* Reasonable fixed max height */
        aspect-ratio: auto;
        width: 100%;
    }
    .catalog-section .product-img img {
        object-fit: contain;
    }
    .catalog-section .product-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    .catalog-section .product-info .price {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Restore description visibility, just truncate it */
    .catalog-section .product-info p {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
    }
    .catalog-section .product-info .view-more {
        display: inline-block;
    }
}

.catalog-section {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    padding-bottom: 3.75rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns for better screen usage */
    gap: 1.875rem;
    width: 100%;
}

@media (max-width: 78.125rem) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 48rem) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    text-decoration: none;
    color: inherit;
    background: var(--white);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-0.312rem);
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.product-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    max-height: 40vh;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: all var(--transition-slow);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.25rem;
    /* Larger title */
    margin-bottom: 0.312rem;
    letter-spacing: 0.5px;
    min-height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--gold);
    font-size: 1.1rem;
    /* Larger price */
    margin: 0.312rem 0 0.625rem 0;
    letter-spacing: 1px;
}

.product-card p {
    font-size: 0.9rem;
    /* Increased body size */
    color: var(--gray);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-more {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border-bottom: 1px solid var(--black);
    display: inline-block;
    padding-bottom: 2px;
    transition: all var(--transition-fast);
}

.product-card:hover .view-more {
    color: var(--gold);
    border-color: var(--gold);
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 6rem 0 2rem 0;
}

.contact-form {
    background: var(--dark);
    padding: 3.75rem;
    color: var(--white);
}

.form-group {
    margin-bottom: 1.562rem;
}

.form-group label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.625rem;
    opacity: 0.7;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--white);
}

.contact-form-container {
    position: relative;
    overflow: hidden;
}

.form-status {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    display: none;
    text-align: center;
}

.form-status.error {
    display: block;
    color: #dc3545;
}

.form-status.success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    padding: 2rem;
    color: var(--white);
    z-index: 10;
    box-sizing: border-box;
    text-align: center;
    animation: fadeIn 0.4s ease-out forwards;
}

.contact-form .btn-primary {
    background-color: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
}

.contact-form .btn-primary:hover {
    background-color: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

footer .logo {
    margin-bottom: 1.875rem;
}

footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.socials {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1.875rem;
}

.socials a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Product Detail Page */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6.25rem;
    padding: 7.5rem 0 2.5rem 0;
    align-items: start;
}

@media (max-width: 48rem) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 4.5rem 0 1.5rem 0;
    }
}

.main-img-wrapper {
    background: var(--white);
    padding: 3.75rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 2px;
}

.main-img-wrapper img {
    width: 100%;
    display: block;
    filter: sepia(0.1) contrast(1.05);
    transition: transform var(--transition-slow);
}

.main-img-wrapper:hover img {
    transform: scale(1.05);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 3.125rem;
}

.specs-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color var(--transition-fast);
}

.specs-table tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}


.specs-table td {
    padding: 1.5rem 0;
    font-size: 0.95rem;
    letter-spacing: var(--tracking-narrow);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--black);
    width: 40%;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: var(--tracking-wide);
}

.specs-table td:last-child {
    color: var(--gray);
    text-align: right;
}

.back-nav {
    margin-bottom: 3.125rem;
}

.back-nav a {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.back-nav a:hover {
    color: var(--gold);
    transform: translateX(-0.312rem);
}

/* Product Detail Redesign */
.product-badge {
    display: inline-block;
    padding: 0.375rem 0.938rem;
    background: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border-radius: 2px;
}

.product-price-row {
    margin-bottom: 0.938rem;
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
}

.price-label {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-size: 1.25rem;
    /* Further reduced from 1.35rem for better balance */
    color: var(--black);
    /* Back to black as requested */
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.installment-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.188rem;
    color: var(--gray);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.installment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    opacity: 0.8;
}

.action-row {
    margin-bottom: 2.812rem;
}

.btn-gold {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 0.75rem;
    padding: 0.938rem 2.188rem;
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.description-block {
    margin-bottom: 2.812rem;
    padding-top: 2.188rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.description-block h2 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.156rem;
    color: var(--gray);
    margin-bottom: 1.125rem;
    font-weight: 600;
}

.roi-container {
    display: flex;
    align-items: center;
    gap: 0.938rem;
    margin-top: 1.25rem;
    padding: 0.938rem 1.25rem;
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Very subtle gold border */
    border-radius: 0.25rem;
    width: fit-content;
}

.roi-badge {
    background: transparent;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding-right: 0.938rem;
}

.roi-info {
    display: flex;
    align-items: baseline;
}

.roi-info .value {
    font-size: 1.1rem;
    color: var(--black);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Detail Sections Grid */
.detail-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.125rem;
    margin-top: 2.812rem;
    /* Reduced from 5rem */
    padding-top: 3.438rem;
    /* Reduced from 5rem */
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.detail-section h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.875rem;
    padding-bottom: 0.938rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.full-width {
    grid-column: span 2;
}

.check-list {
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.875rem;
    margin-bottom: 0.938rem;
    color: var(--gray);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.comma-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    list-style: none;
}

.comma-list li {
    background: var(--gray-light);
    padding: 0.5rem 0.938rem;
    font-size: 0.85rem;
    color: var(--gray);
    border-radius: 1.25rem;
}

.final-cta {
    margin-top: 5vh;
    margin-bottom: 5vh;
    text-align: center;
    padding: 8vh 4vw;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.final-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 1.25rem;
}

.final-cta p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.final-cta .btn-primary {
    background: var(--black);
    color: var(--white);
    padding: 1.25rem 3.125rem;
}

.final-cta .btn-primary:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-0.188rem);
}

@media (max-width: 62rem) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 3.125rem;
    }

    .detail-sections-grid {
        grid-template-columns: 1fr;
        padding-top: 2.5rem;
        margin-top: 1.875rem;
    }

    .full-width {
        grid-column: span 1;
    }
}

@media (max-width: 62rem) {
    .grid {
        grid-template-columns: 1fr;
        gap: 3.75rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 48rem) {
    .menu-toggle {
        display: flex;
    }

    /* Override base section padding for mobile (must be here, after base definitions) */
    .products-section,
    .contact-section {
        min-height: auto;
        padding: 4rem 0 2rem 0;
    }

    /* Inner anchor for "Консультація" button — needs its own offset to clear the header */
    #contactFormWrap {
        scroll-margin-top: 5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(1.562rem);
        /* Premium blur */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.8s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(1.25rem);
        transition: all 0.5s var(--transition-slow);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered delay for menu items */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-links a {
        color: var(--black) !important;
        font-size: 1.8rem;
        font-family: 'Playfair Display', serif;
        letter-spacing: var(--tracking-wide);
    }

    .nav-links .btn-mobile {
        margin-top: 1.25rem;
        width: 80%;
        text-align: center;
        border: 1px solid var(--black);
        padding: 0.8rem 1.5rem;
        font-size: 1.3rem;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        text-decoration: none;
        color: var(--black);
    }

    .desktop-only {
        display: none !important;
    }

    .container {
        padding: 0 1.562rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .btn-outline {
        border-color: var(--white);
    }

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

    .product-card {
        padding: 5vw;
    }

    .product-img {
        height: auto;
        aspect-ratio: 1/1;
        max-height: 40vh;
    }

    .contact-form {
        padding: 2.5rem 1.25rem;
    }
}

@media (max-width: 30rem) {
    h2 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 0.188rem;
    }
}

/* Gallery Styles and Bulletproof Specificity Fixes */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.product-media {
    display: flex;
    flex-direction: column;
    gap: 0.938rem;
    width: 100%;
    position: sticky;
    top: 7.5rem;
}

/* Base Gallery Styles */
.main-img-wrapper {
    background: #fdfdfd;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.product-media .main-img-wrapper img.main-img {
    max-width: 100%;
    max-height: 31.25rem;
    width: auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

.product-gallery {
    display: flex;
    gap: 0.625rem;
    overflow-x: auto;
    padding-bottom: 0.312rem;
    flex-wrap: wrap;
    width: 100%;
}

.product-media .product-gallery img.gallery-thumb {
    width: 5rem !important;
    height: 5rem !important;
    max-width: 5rem !important;
    min-width: 5rem !important;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    opacity: 0.7;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.product-media .product-gallery img.gallery-thumb:hover {
    opacity: 1;
}

.product-media .product-gallery img.gallery-thumb.active {
    border-color: #d4af37;
    opacity: 1;
}

@media (max-width: 48rem) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Gallery: show smaller thumbnails to the right of main photo */
    .product-media {
        position: static;
        flex-direction: row;
        gap: 0.5rem;
    }
    .main-img-wrapper {
        flex: 1;
        min-width: 0;
        padding: 0.5rem;
        max-height: 16rem;
    }
    .product-media .main-img-wrapper img.main-img {
        max-height: 15rem;
    }
    .product-gallery {
        flex-direction: column;
        width: auto;
        gap: 0.375rem;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 16rem;
        padding-bottom: 0;
        flex-wrap: nowrap;
    }
    .product-media .product-gallery img.gallery-thumb {
        width: 3rem !important;
        height: 3rem !important;
        max-width: 3rem !important;
        min-width: 3rem !important;
    }

    /* Tighten product info spacing */
    .product-badge {
        margin-bottom: 0.5rem;
        padding: 0.25rem 0.625rem;
        font-size: 0.65rem;
    }
    .product-info h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    .product-price-row {
        margin-bottom: 0.5rem;
    }
    .installment-block {
        margin-bottom: 1rem;
    }
    .action-row {
        margin-bottom: 1.5rem;
    }
    .action-row .btn-gold {
        width: 100%;
        text-align: center;
    }
}