* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Times New Roman", serif;
    color: #1e1e1e;
    background: #f6f7fb;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e6e7eb;
    padding: 16px 0;
}

.brand {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.brand-text {
    text-align: center;
}

.brand-logo {
    height: 48px;
    width: auto;
}

.site-main {
    padding: 24px 0 40px;
}

.catalog-list .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.catalog-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.catalog-list-head h2 {
    margin: 0 0 6px 0;
}

.catalog-list-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.catalog-count {
    background: #fff;
    border: 1px solid #e6e7eb;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #374151;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.catalog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e6e7eb;
    min-height: 140px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-list .catalog-card {
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.catalog-list .catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
}

.catalog-list .catalog-card .card-body h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.catalog-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin-bottom: 10px;
}

.catalog-list .catalog-card .card-body p {
    margin: 0;
    opacity: 0.85;
}

.catalog-list .catalog-card:nth-child(6n + 1) {
    background: linear-gradient(135deg, #0b1a3a 0%, #1e3c72 100%);
}

.catalog-list .catalog-card:nth-child(6n + 2) {
    background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
}

.catalog-list .catalog-card:nth-child(6n + 3) {
    background: linear-gradient(135deg, #5b1b1b 0%, #c02626 100%);
}

.catalog-list .catalog-card:nth-child(6n + 4) {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
}

.catalog-list .catalog-card:nth-child(6n + 5) {
    background: linear-gradient(135deg, #3a2c0b 0%, #d7b36a 100%);
}

.catalog-list .catalog-card:nth-child(6n + 6) {
    background: linear-gradient(135deg, #0f244a 0%, #1f6feb 100%);
}

.catalog-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.catalog-card .card-body {
    padding: 12px;
}

.catalog-cover {
    background: #0b1a3a;
    border: 2px solid #d7b36a;
    box-shadow: 0 0 0 2px #0b1a3a inset;
    margin-bottom: 24px;
    color: #f6e9c2;
    padding: 14px;
}

.catalog-cover.theme-dark {
    background: #0b1a3a;
    color: #f6e9c2;
}

.catalog-cover.theme-accent {
    background: #14264f;
}

.cover-frame {
    border: 1px solid #d7b36a;
    padding: 16px 18px;
    position: relative;
    background: linear-gradient(180deg, #0b1a3a 0%, #0f244a 100%);
}

.cover-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-align: center;
    margin-bottom: 10px;
}

.cover-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.cover-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cover-about {
    margin-top: 6px;
    color: #f2f2f2;
    font-size: 12px;
    line-height: 1.4;
}

.cover-about-title {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #d7b36a;
    margin-bottom: 4px;
}

.cover-about-text {
    font-weight: 400;
}

.cover-company {
    margin: 0;
    font-size: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cover-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #d7b36a;
}

.cover-tagline {
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    border-top: 1px solid rgba(215, 179, 106, 0.4);
    border-bottom: 1px solid rgba(215, 179, 106, 0.4);
    padding: 10px 8px;
    margin: 10px 0 12px;
}

.cover-info {
    display: grid;
    gap: 4px;
    font-size: 12px;
    text-align: center;
}

.cover-info span {
    color: #f2f2f2;
}

.cover-image {
    margin-top: 12px;
    border: 1px solid #d7b36a;
    padding: 6px;
    background: #fff;
}

.cover-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.catalog-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    gap: 8px;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    background: #1e88e5;
    color: #fff;
}

.btn-pdf {
    background: #e53935;
}

.btn-excel {
    background: #2e7d32;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 18px;
}

.product-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    background: #fff;
    border: 2px solid #0b1a3a;
    box-shadow: 0 0 0 2px #d7b36a inset;
    align-items: stretch;
}

.product-image {
    background: #fff;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 220px;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    background: #0b1a3a;
    color: #fff;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-info h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
}

.product-langs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 11px;
    line-height: 1.2;
}

.product-langs span {
    display: block;
    color: #f2f2f2;
}

.product-desc {
    margin: 4px 0;
    font-size: 11px;
}

.product-prices {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.product-prices span {
    background: #0b1a3a;
    border: 2px solid #d7b36a;
    text-align: center;
    padding: 4px 4px;
    font-weight: 700;
    font-size: 12px;
    color: #d7b36a;
}

.product-variations {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.variation-item {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #f2f2f2;
    margin-bottom: 3px;
}

.pagination {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.site-footer {
    background: #fff;
    border-top: 1px solid #e6e7eb;
    padding: 16px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .product-list {
        grid-template-columns: 1fr;
    }
    .cover-top {
        flex-direction: column;
    }
    .catalog-list-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .catalog-cover {
        grid-template-columns: 1fr;
    }
    .product-card {
        grid-template-columns: 1fr;
    }
    .product-info {
        padding: 10px;
    }
}

@media print {
    body {
        background: #f6f7fb;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .site-header,
    .site-footer,
    .catalog-actions,
    .pagination {
        display: block !important;
    }

    .product-list {
        grid-template-columns: repeat(2, minmax(320px, 1fr));
        gap: 18px;
    }

    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
