/**
 * ============================================================
 * Author:    DARK-MASTER
 * Studio:    DARK DIGITAL STUDIO
 * Site:      dark-digital-studio.com
 * Email:     Service.Dark.Digital.studio@gmail.com
 * WhatsApp:  +905378664534
 * Telegram:  https://t.me/DARK_Digital_Studio
 * GitHub:    github.com/DARK-MASTER-0
 *
 * Copyright (c) 2018-2026 Dark Digital Studio. All Rights Reserved.
 * Unauthorized copying, distribution, or use of this software,
 * in whole or in part, is strictly prohibited without prior
 * written permission from the author.
 * ============================================================
 */
/* catalog.css */

.catalog-page main {
    gap: clamp(56px, 6vw, 80px);
    padding-top: calc(var(--header-height) + clamp(48px, 8vw, 72px));
    margin-bottom: clamp(120px, 12vw, 160px);
}

.catalog-hero {
    width: min(1180px, 92vw);
    margin: 0 auto;
    border-radius: var(--radius-xl);
    padding: clamp(40px, 6vw, 56px);
    position: relative;
    overflow: hidden;
    display: grid;
    gap: clamp(32px, 5vw, 48px);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    background: linear-gradient(140deg, rgba(13, 125, 220, 0.14), rgba(13, 125, 220, 0.04)), var(--color-bg-soft);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .catalog-hero {
    background: linear-gradient(140deg, rgba(27, 92, 224, 0.28), rgba(5, 12, 28, 0.72));
    border-color: rgba(84, 148, 255, 0.24);
    box-shadow: var(--shadow-raised);
}

.catalog-hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 20% 20%, rgba(93, 202, 255, 0.35), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.6;
}

html[data-theme="dark"] .catalog-hero::before {
    background: radial-gradient(circle at 28% 24%, rgba(31, 114, 242, 0.45), transparent 68%);
    opacity: 0.45;
}

.catalog-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 24px);
}

.catalog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--color-muted);
}

.catalog-hero__eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.6;
}

.catalog-hero__summary {
    max-width: 52ch;
    color: var(--color-text-soft);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.catalog-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.catalog-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, #0b6ec5 0%, #0d8bf0 40%, #38a3f8 70%, #5ec2ff 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 8px 28px -10px rgba(13, 125, 220, 0.5),
                0 2px 8px -2px rgba(13, 125, 220, 0.2);
}

.catalog-cta:hover,
.catalog-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -14px rgba(13, 125, 220, 0.6),
                0 4px 12px -2px rgba(13, 125, 220, 0.25);
    background: linear-gradient(135deg, #0952a5 0%, #0b73d1 35%, #1a94f5 65%, #42b0ff 100%);
}

.catalog-cta--ghost {
    background: rgba(13, 125, 220, 0.05);
    color: var(--color-primary);
    border-color: rgba(13, 125, 220, 0.3);
    box-shadow: none;
}

html[data-theme="dark"] .catalog-cta--ghost {
    background: rgba(31, 114, 242, 0.08);
    color: #c8dcff;
    border-color: rgba(84, 148, 255, 0.35);
}

.catalog-cta--ghost:hover,
.catalog-cta--ghost:focus-visible {
    background: rgba(13, 125, 220, 0.12);
    border-color: rgba(13, 125, 220, 0.45);
    box-shadow: 0 4px 16px -8px rgba(13, 125, 220, 0.3);
}

.catalog-hero__insights {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    align-content: start;
}

.catalog-hero__metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(13, 125, 220, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

html[data-theme="dark"] .catalog-hero__metric {
    background: rgba(8, 24, 60, 0.58);
    border-color: rgba(84, 148, 255, 0.26);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.catalog-hero__metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

html[data-theme="dark"] .catalog-hero__metric-value {
    color: #cfe1ff;
}

.catalog-hero__metric-label {
    font-size: 0.92rem;
    color: var(--color-muted);
}

.catalog-grid-section {
    width: min(1180px, 92vw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vw, 40px);
}

.catalog-grid-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
}

.catalog-grid-header h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.catalog-grid-header p {
    margin: 8px 0 0;
    color: var(--color-text-soft);
    max-width: 50ch;
}

.catalog-toolbar {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 3vw, 24px);
    align-items: stretch;
}

.catalog-toolbar .product-tabs {
    width: 100%;
}

@media (min-width: 768px) {
    .catalog-toolbar {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .catalog-toolbar .product-tabs {
        max-width: calc(100% - 220px);
    }
}

.catalog-result-count {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-muted);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    margin-left: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(13, 125, 220, 0.12);
    color: var(--color-primary);
}

html[data-theme="dark"] .tab-count {
    background: rgba(84, 148, 255, 0.22);
    color: #dbe7ff;
}

.catalog-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.catalog-search {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(13, 125, 220, 0.16);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.catalog-search input {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: inherit;
    min-width: 180px;
}

.catalog-search input::placeholder {
    color: var(--color-muted);
}

.catalog-search input:focus {
    outline: none;
}

.catalog-sort {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(13, 125, 220, 0.16);
    font-size: 0.92rem;
}

.catalog-sort select {
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--color-text);
}

.catalog-sort select:focus {
    outline: none;
}

html[data-theme="dark"] .catalog-search,
html[data-theme="dark"] .catalog-sort {
    background: rgba(8, 24, 60, 0.72);
    border-color: rgba(84, 148, 255, 0.24);
    color: #dbe7ff;
}

.catalog-grid {
    display: grid;
    gap: clamp(22px, 3vw, 32px);
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.catalog-empty {
    margin: 0;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(13, 125, 220, 0.28);
    text-align: center;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.72);
}

.catalog-grid-section .product-card-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.catalog-grid-section .product-card-footer .btn {
    width: auto;
    flex: 1 1 160px;
    justify-content: center;
}

.catalog-grid-section .product-card-footer .product-card-note {
    flex: 1 1 160px;
    text-align: center;
}

.product-card-tagline {
    font-size: 0.9rem;
    color: var(--color-text-soft);
}

.product-card-sku {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--color-muted);
    text-transform: uppercase;
}

.product-card-note {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-style: italic;
}

.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 125, 220, 0.16);
    background: rgba(13, 125, 220, 0.08);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-soft:hover,
.btn-soft:focus-visible {
    transform: translateY(-1px);
    background: rgba(13, 125, 220, 0.16);
    box-shadow: 0 16px 32px -24px rgba(13, 125, 220, 0.6);
}

html[data-theme="dark"] .btn-soft {
    border-color: rgba(84, 148, 255, 0.3);
    background: rgba(84, 148, 255, 0.12);
    color: #dbe7ff;
}

html[data-theme="dark"] .btn-soft:hover,
html[data-theme="dark"] .btn-soft:focus-visible {
    background: rgba(84, 148, 255, 0.24);
}

html[data-theme="dark"] .catalog-empty {
    border-color: rgba(84, 148, 255, 0.36);
    background: rgba(4, 12, 28, 0.68);
    color: #a9bff0;
}

.catalog-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: clamp(24px, 2.5vw, 32px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(13, 125, 220, 0.14);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2vw, 24px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 60%;
    background: radial-gradient(circle at 50% 50%, var(--card-accent, rgba(13, 125, 220, 0.4)), transparent 72%);
    opacity: 0.35;
    transform: translateY(40%) scale(1.1);
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

html[data-theme="dark"] .catalog-card {
    background: rgba(4, 12, 28, 0.82);
    border-color: rgba(84, 148, 255, 0.24);
    box-shadow: var(--shadow-raised);
}

.catalog-card:hover,
.catalog-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 30px 90px -40px rgba(13, 125, 220, 0.4);
}

.catalog-card:hover::before,
.catalog-card:focus-within::before,
.catalog-card[data-open="true"]::before {
    opacity: 0.55;
    transform: translateY(0) scale(1.2);
}

.catalog-card__header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalog-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(13, 125, 220, 0.12);
}

html[data-theme="dark"] .catalog-card__badge {
    color: #dbe7ff;
    background: rgba(84, 148, 255, 0.24);
}

.catalog-card__tagline {
    margin: 0;
    color: var(--color-text-soft);
}

.catalog-card__summary {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.catalog-card__body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(18px, 2vw, 24px);
}

.catalog-card__highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.catalog-card__highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.catalog-card__highlights li::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    background: var(--card-accent, var(--color-primary));
    box-shadow: 0 0 18px rgba(13, 125, 220, 0.5);
}

.catalog-card__specs {
    display: grid;
    gap: 10px;
}

.catalog-card__specs-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.catalog-card__specs-item dt {
    font-weight: 600;
    color: var(--color-text);
}

.catalog-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.catalog-card__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 125, 220, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.catalog-card__toggle svg {
    transition: transform 0.3s ease;
}

.catalog-card[data-open="true"] .catalog-card__toggle svg {
    transform: rotate(45deg);
}

html[data-theme="dark"] .catalog-card__toggle {
    background: rgba(8, 24, 60, 0.76);
    border-color: rgba(84, 148, 255, 0.32);
    color: #dbe7ff;
}

.catalog-card__toggle:hover,
.catalog-card__toggle:focus-visible {
    background: rgba(13, 125, 220, 0.12);
}

.catalog-card__cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.68rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-on-primary);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    box-shadow: 0 16px 40px -22px rgba(13, 125, 220, 0.8);
}

.catalog-card__cta:hover,
.catalog-card__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 58px -24px rgba(13, 125, 220, 0.85);
}

.catalog-card__detail {
    margin-top: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 125, 220, 0.14);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.4s ease, opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.catalog-card[data-open="true"] .catalog-card__detail {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.catalog-card__iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .catalog-hero {
        grid-template-columns: 1fr;
    }

    .catalog-card__cta {
        width: 100%;
        justify-content: center;
    }

    .catalog-card__toggle {
        width: 100%;
        justify-content: center;
    }

    .catalog-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-card__detail {
        max-height: 0;
    }

    .catalog-card[data-open="true"] .catalog-card__detail {
        max-height: 380px;
    }
}

@media (max-width: 540px) {
    .catalog-controls {
        width: 100%;
        justify-content: space-between;
    }

    .catalog-search {
        flex: 1 1 auto;
    }

    .catalog-search input {
        width: 100%;
    }

    .catalog-sort {
        flex: 0 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-card,
    .catalog-card::before,
    .catalog-card__detail,
    .catalog-cta,
    .catalog-card__cta,
    .catalog-card__toggle,
    .catalog-hero::before {
        transition: none !important;
        animation: none !important;
    }
}

body[data-modal-open="true"] {
    overflow: hidden;
}

.photo-lightbox[hidden] {
    display: none;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 6vw, 48px);
    background: rgba(5, 16, 32, 0.68);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.photo-lightbox.is-visible {
    opacity: 1;
    pointer-events: all;
}

.photo-lightbox__overlay {
    position: absolute;
    inset: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.photo-lightbox__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: min(92vw, 720px);
    width: 100%;
    padding: clamp(24px, 4vw, 36px);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(13, 125, 220, 0.12);
    box-shadow: var(--shadow-raised);
}

html[data-theme="dark"] .photo-lightbox__content {
    background: rgba(4, 12, 28, 0.9);
    border-color: rgba(84, 148, 255, 0.28);
}

.photo-lightbox__close {
    align-self: flex-end;
    border: none;
    background: rgba(13, 125, 220, 0.1);
    border-radius: 999px;
    padding: 8px;
    cursor: pointer;
    color: var(--color-muted);
    transition: transform 0.2s ease, background 0.2s ease;
}

.photo-lightbox__close:hover,
.photo-lightbox__close:focus-visible {
    background: rgba(13, 125, 220, 0.2);
    transform: translateY(-1px);
}

html[data-theme="dark"] .photo-lightbox__close {
    background: rgba(84, 148, 255, 0.24);
    color: #dbe7ff;
}

html[data-theme="dark"] .photo-lightbox__close:hover,
html[data-theme="dark"] .photo-lightbox__close:focus-visible {
    background: rgba(84, 148, 255, 0.34);
}

.photo-lightbox__image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
}

.photo-lightbox__caption {
    margin: 0;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.92rem;
}
