/* Explain: Styles for various site components, including headers, buttons, navigation, cards, and galleries. */
.site-header {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 44px rgba(10, 14, 26, 0.08);
}

.site-header::before {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background-image: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    content: "";
}

a.btn[class*="bg-[var(--button-color)]"],
button.btn[class*="bg-[var(--button-color)]"] {
    color: var(--accent-ink);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #4D8BFF 100%);
    box-shadow: var(--shadow-button);
}

a.btn[class*="bg-[var(--button-color)]"]:hover,
button.btn[class*="bg-[var(--button-color)]"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 52px rgba(11, 92, 255, 0.45);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.15rem;
    color: var(--text-color);
    font-weight: 700;
    transition: color 250ms ease;
}

.nav-link::after {
    position: absolute;
    inset-inline: 0.15rem;
    bottom: 0.1rem;
    height: 2px;
    border-radius: 999px;
    background-image: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 250ms ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 2px;
    border-radius: 999px;
    background-image: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    content: "";
}

.glass-panel {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(11, 92, 255, 0.35);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.75rem;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(10, 14, 26, 0.10);
    transition: transform 320ms cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 320ms ease, border-color 320ms ease;
}

.product-card.is-filtered-out {
    display: none;
}

.product-card:hover {
    border-color: rgba(11, 92, 255, 0.50);
    box-shadow: 0 34px 72px rgba(11, 92, 255, 0.22);
    transform: translateY(-8px);
}

.product-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ffffff;
}

.product-media-img {
    display: block;
    height: 100%;
    width: 100%;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 500ms ease;
}

.product-media img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 0.9rem;
    transition: transform 500ms ease;
}

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

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

.product-badge {
    position: absolute;
    top: 1rem;
    inset-inline-start: 1rem;
    border-radius: 999px;
    background-image: linear-gradient(135deg, var(--accent-color), #3E6FD6);
    color: var(--accent-ink);
    padding: 0.4rem 1rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 26px rgba(10, 46, 110, 0.40);
}

.price-tag {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary-color);
}

.category-card {
    position: relative;
    display: block;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    box-shadow: 0 18px 44px rgba(10, 14, 26, 0.14);
    transition: transform 320ms ease, box-shadow 320ms ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 72px rgba(11, 92, 255, 0.22);
}

.category-card img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.category-card::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.05), rgba(10, 14, 26, 0.90));
    content: "";
}

.category-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.9rem;
    color: #ffffff;
}

.reason-card {
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 1.6rem;
    background: #ffffff;
    padding: 1.7rem;
    box-shadow: 0 14px 34px rgba(10, 14, 26, 0.08);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.reason-card:hover {
    border-color: rgba(11, 92, 255, 0.40);
    box-shadow: 0 26px 56px rgba(11, 92, 255, 0.18);
    transform: translateY(-6px);
}

.reason-icon {
    display: inline-flex;
    height: 3.2rem;
    width: 3.2rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    background-image: linear-gradient(135deg, var(--primary-color), #4D8BFF);
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 16px 34px rgba(11, 92, 255, 0.35);
}

.filter-btn {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(10, 14, 26, 0.03);
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text-color);
    transition: all 300ms ease;
    cursor: pointer;
}

@media (min-width: 640px) {
    .filter-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background: rgba(11, 92, 255, 0.08);
    color: var(--primary-color);
}

.filter-btn.is-active {
    border-color: transparent;
    background-image: linear-gradient(135deg, var(--primary-color), #4D8BFF);
    color: #ffffff;
    box-shadow: var(--shadow-button);
}

.nav-cat-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    -webkit-overflow-scrolling: touch;
}

.nav-cat-strip::-webkit-scrollbar {
    height: 6px;
}

.nav-cat-strip::-webkit-scrollbar-track {
    background: transparent;
}

.nav-cat-strip::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

@media (min-width: 640px) {
    .nav-cat-strip {
        gap: 0.75rem;
    }
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-status.success {
    color: var(--primary-color);
}

.form-status.error {
    color: #FF3B2F;
}

.footer-dark {
    background: linear-gradient(160deg, #0A0E1A 0%, #101A33 100%);
    color: #ffffff;
}

.footer-link {
    display: inline-flex;
    padding: 0.4rem 0;
    color: rgba(255, 255, 255, 0.72);
    transition: color 250ms ease, transform 250ms ease;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large {
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 0;
    }

    .category-card {
        min-height: 250px;
    }

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

    .reason-card {
        padding: 1.2rem;
    }
}

.showcase-section {
    position: relative;
}

.showcase-row {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}

.showcase-row::-webkit-scrollbar {
    height: 6px;
}

.showcase-row::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

.showcase-item {
    position: relative;
    flex: 0 0 auto;
    width: 44%;
    min-width: 148px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.6rem;
    box-shadow: 0 18px 44px rgba(10, 14, 26, 0.14);
    scroll-snap-align: start;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.showcase-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(11, 92, 255, 0.22);
}

.showcase-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.showcase-item:hover img {
    transform: scale(1.06);
}

.showcase-label {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.6rem 1rem 0.95rem;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0) 0%, rgba(10, 14, 26, 0.92) 100%);
}

@media (min-width: 768px) {
    .showcase-row {
        overflow: visible;
        gap: 1.25rem;
    }

    .showcase-item {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }
}

.hero-bleed-overlay {
    position: absolute;
    inset: 0;
    z-index: -10;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.35) 0%, rgba(10, 14, 26, 0.55) 55%, rgba(10, 14, 26, 0.97) 100%);
}

.product-gallery {
    width: 100%;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.gallery-thumb {
    position: relative;
    height: 4.75rem;
    width: 4.75rem;
    flex: none;
    overflow: hidden;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    background: #ffffff;
    padding: 0;
    transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.gallery-thumb img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    background: #ffffff;
    padding: 0.2rem;
    transition: transform 400ms ease;
}

.gallery-thumb-bg {
    display: block;
    height: 100%;
    width: 100%;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 400ms ease;
}

.gallery-thumb:hover .gallery-thumb-bg {
    transform: scale(1.08);
}

.gallery-main-bg {
    display: block;
    height: 100%;
    width: 100%;
    background-color: #ffffff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.gallery-main-img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: contain;
    background-color: #ffffff;
    padding: 1.5rem;
}

.gallery-thumb:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.gallery-thumb:hover img {
    transform: scale(1.08);
}

.gallery-thumb:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.gallery-thumb.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 12px 26px rgba(11, 92, 255, 0.28);
}

.gallery-thumb-video {
    position: relative;
}

.gallery-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 26, 0.45);
    color: #ffffff;
    font-size: 1rem;
    transition: background 250ms ease;
}

.gallery-thumb-video:hover .gallery-thumb-play {
    background: rgba(11, 92, 255, 0.65);
}

.gallery-thumb-video.is-active .gallery-thumb-play {
    background: rgba(11, 92, 255, 0.55);
}

.gallery-main-video {
    background: #0A0E1A;
    object-fit: contain;
}

.gallery-hidden {
    display: none;
}

.gallery-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-color);
    backdrop-filter: blur(2px);
}

@media (max-width: 640px) {
    .gallery-thumb {
        height: 4rem;
        width: 4rem;
    }
}

.legal-content {
    color: var(--text-color);
}

.legal-content h2 {
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.95;
}

.legal-content ul {
    margin: 0 0 1.1rem;
    padding-inline-start: 1.25rem;
    list-style: disc;
}

.legal-content li {
    margin-bottom: 0.55rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.85;
}

.legal-content strong {
    color: var(--text-color);
}

.lang-option {
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 0 1rem;
    text-align: start;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 200ms ease, color 200ms ease;
}

.lang-option:hover {
    background: var(--sage-soft);
    color: var(--primary-color);
}

.lang-option.is-active {
    background: var(--sage-soft);
    color: var(--primary-color);
    font-weight: 800;
}

.lang-option .lang-check {
    margin-inline-start: auto;
    opacity: 0;
    transition: opacity 200ms ease;
}

.lang-option.is-active .lang-check {
    opacity: 1;
}