/* FONT DECLARATION */
@font-face {
    font-family: 'Futura PT Bold';
    src: url('/file/font/FuturaPTBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Futura PT Bold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #000000;
    --nav-gap: 1rem;       /* Разстояние между страниците: 1rem */
    --socials-gap: 0.5rem;   /* Разстояние между логата: 0.5rem */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.4;
}

/* HEADER & NAVIGATION */
.header {
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: 3rem;
    padding-right: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    gap: 0.6rem;
}

.logo-img {
    height: 35px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Futura PT Bold', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

/* МЕНЮ СЪС СТРАНИЦИТЕ */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--nav-gap);
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease, border-bottom 0.2s ease;
    padding: 0;
    line-height: 1;
    position: relative;
}

.nav-link:hover {
    opacity: 0.5;
}

.nav-link.active {
    opacity: 1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
}

/* HEADER SOCIAL ICONS */
.header-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--socials-gap);
    flex-shrink: 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    height: 32px;
}

.social-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icon:hover img {
    opacity: 0.6;
    transform: translateY(-1px);
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--text-color);
    line-height: 1;
}

/* MAIN CONTENT AREA */
.page-content {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.products-section {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.6rem;
    padding: 0 0.5rem;
}

.product-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.product-code {
    font-size: 1.15rem;
    font-weight: 800;
    color: #000000;
    line-height: 1;
    margin: 0;
}

.product-title {
    font-size: 1.02rem;
    color: #444444;
    font-weight: 500;
    line-height: 1;
    margin: 0;
}

.product-card-price {
    font-size: 0.98rem;
    font-weight: 500;
    color: #222222;
    margin: 0;
    letter-spacing: 0.2px;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1;
}

.color-badge {
    height: 3.8rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: 0;
}

/* ================= INFO PAGES ================= */
.info-page-section {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: var(--bg-color);
}

.info-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.info-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

/* ================= FOOTER ================= */
.footer {
    background-color: var(--bg-color);
    border-top: none;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: auto;
    width: 100%;
}

.footer-content,
.footer-badges {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #000000;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    flex-wrap: wrap;
    line-height: 1.4;
}

.footer-item,
.badge-item {
    white-space: normal;
    text-align: center;
}

.footer-divider,
.badge-divider {
    display: none;
}

/* ================= PRODUCT MODAL (POPUP) ================= */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s ease, opacity 0.25s ease;
}

.product-modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    padding: 2rem;
    z-index: 2001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.product-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #222222;
    line-height: 1;
    transition: opacity 0.2s;
}

.modal-close-btn:hover {
    opacity: 0.5;
}

.modal-body {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.modal-image-wrapper {
    flex: 1;
    max-width: 380px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ИЗЦЯЛО ЕДНАКВИ РАЗСТОЯНИЯ 0.5REM В МОДАЛА */
.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-info > *,
.modal-info p,
.modal-info h4,
.modal-info ul,
.modal-section,
.modal-section h4,
.modal-section p {
    margin: 0 !important;
    padding: 0;
}

.modal-code {
    font-size: 1.6rem;
    font-weight: 800;
    color: #000000;
    line-height: 1;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #555555;
    line-height: 1.1;
}

.modal-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111111;
    letter-spacing: 0.2px;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1;
}

.modal-specs-inline {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #777777;
    text-transform: uppercase;
    flex-wrap: wrap;
    line-height: 1;
    margin: 0 !important;
}

.spec-divider {
    display: none;
}

.modal-colors-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #888888;
    text-transform: uppercase;
}

.modal-divider {
    display: none;
}

.modal-section h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.modal-section p,
#modalDescription,
#modalFabric {
    font-size: 0.9rem;
    color: #444444;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.35;
    white-space: pre-line;
}

/* ================= PRODUCT SINGLE PAGE STYLES ================= */
.product-container {
    max-width: 1200px;
    width: 100%;
    margin: 30px auto;
    padding: 0 2rem;
}

.product-main {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.product-gallery {
    flex: 1;
    max-width: 500px;
}

.main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background-color: #f5f5f5;
}

.thumb:hover, 
.thumb.active {
    border-color: #000000;
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-detail-info .product-code {
    font-size: 1.4rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 4px;
}

.product-detail-info .product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 25px;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 400;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    font-family: system-ui, -apple-system, sans-serif;
}

.specs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.9rem;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr td:first-child {
    font-weight: 600;
    color: #666666;
    width: 35%;
}

.specs-table tr td:last-child {
    color: #111111;
    font-weight: 500;
}

.colors-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-box {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.color-box:hover {
    transform: scale(1.15);
}

.product-details-tabs {
    border-top: 1px solid #eeeeee;
    padding-top: 25px;
    margin-top: 10px;
}

.tab-buttons {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    color: #888888;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn.active, 
.tab-btn:hover {
    color: #000000;
    border-bottom-color: #000000;
}

.tab-content {
    display: none;
    padding: 10px 0;
}

.tab-content.active {
    display: block;
}

.tab-content ul {
    list-style-type: disc;
    padding-left: 20px;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 400;
    color: #444444;
}

.tab-content li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ================= ABOUT US PAGE STYLES ================= */
.about-section {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 10px 1.5rem;
}

.about-container {
    text-align: center;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 1px;
    color: var(--text-color);
}

.about-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #222222;
    margin-bottom: 1.2rem;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 400;
}

.about-list {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
    padding-left: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #222222;
    font-family: system-ui, -apple-system, sans-serif;
}

.about-list li {
    margin-bottom: 0.6rem;
}

/* RESPONSIVE DESIGN & MOBILE MENU */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-main {
        flex-direction: column;
        gap: 25px;
    }

    .product-gallery {
        max-width: 100%;
    }

    .product-container {
        padding: 0 1.5rem;
    }

    .modal-body {
        flex-direction: column;
    }
    
    .modal-image-wrapper {
        max-width: 100%;
    }
    
    .modal-content {
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .footer-content,
    .footer-badges {
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
        width: 100%;
    }

    .footer-item,
    .badge-item {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 650px) {
    .logo-text {
        font-size: 1.35rem;
    }

    .logo-img {
        height: 28px;
    }

    .navbar {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 12px;
        padding-bottom: 12px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-socials {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
        gap: 0.6rem;
    }

    .burger {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: 1.2rem 1.5rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        gap: 1rem;
        text-align: center;
        z-index: 1001;
        flex: initial;
    }

    .nav-menu.active {
        display: flex;
    }

    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
