.systems-section .section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

.systems-section .section-header .section-title {
    font-size: 48px;
    line-height: normal;
    max-width: 717px;
}

/* systems-grid */

.systems-grid,
.category-grid {
    margin-top: 50px;
}

.category-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.category-grid .row {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.systems-section .systems-wrapper,
.systems-section .category-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.systems-text .systems-title,
.category-text .category-title {
    font-family: "URW Gothic L", sans-serif;
    line-height: normal;
    letter-spacing: -2px;
    white-space: nowrap;
    padding: 24px 0px 94px;
}

.systems-grid,
.category-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    justify-content: space-between;
    width: 100%;
}

.systems-grid .system-card,
.category-grid .category-card {
    position: relative;
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
    padding: 32px;
    aspect-ratio: 16 / 9;
    border-radius: 25px;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.systems-grid .system-card {
    background-image: url(/assets/frontend/images/home/sky.webp);
}

.category-grid .category-card {
    background: var(--primary);
    display: flex;
    align-items: center;
}

.category-grid .category-card svg:not(.system-button-item svg) {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    /* opacity: 0.5; */
    transition: all 0.3s ease;
}

.category-grid .category-card svg:not(.system-button-item svg) path {
    fill: #145c00;
    transition: all 0.3s ease;
}

.category-grid .category-card svg:not(.system-button-item svg) rect {
    stroke: #145c00;
    transition: all 0.3s ease;
}

.category-grid .category-card:hover svg:not(.system-button-item svg) path {
    fill: #000;
}

.category-grid .category-card:hover svg:not(.system-button-item svg) rect {
    stroke: #000;
}

.systems-grid .system-card .card-item-text,
.category-grid .category-card .card-item-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: var(--white);
    transition: all 0.6s ease;
}

.systems-grid .system-card:hover .card-item-text,
.category-grid .category-card:hover .card-item-text {
    color: var(--text);
}

.systems-grid .system-card .card-label,
.category-grid .category-card .card-label {
    display: block;
    font-family: "URW Gothic L", sans-serif;
    font-size: 26px;
    z-index: 9999;
}

.systems-grid .system-card::before {
    content: "";
    position: absolute;
    height: 7px;
    width: 7px;
    top: 0;
    right: 0;
    background: var(--primary);
    border-radius: 0 0 0 100%;
    transform-origin: top right;
    transition: all 0.6s ease;
}

.systems-grid .system-card:hover::before {
    height: 700px;
    width: 700px;
}

.systems-grid .system-card .layots-3d-img,
.category-grid .category-card .layots-3d-img {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 9990;
    opacity: 1;
    transition: all 0.3s ease;
}

.systems-grid .system-card .paint,
.category-grid .category-card .paint {
    position: absolute;
    z-index: 9999;
    transition: all 0.6s ease;
}

.systems-grid .system-card .system-button-item,
.category-grid .category-card .system-button-item {
    position: absolute;
    display: flex;
    width: 50px;
    height: 50px;
    padding: 15px;
    align-items: center;
    gap: 10px;
    border-radius: 25px;
    border: 1.5px solid var(--text_light);
    z-index: 999;
    top: 0;
    right: 0;
    transition: all 0.3s ease;
}

.systems-grid .system-card:hover .system-button-item,
.category-grid .category-card:hover .system-button-item {
    border: 1.5px solid transparent;
    background-color: var(--primary);
}

.systems-grid .system-card .border-shapes,
.category-grid .category-card .border-shapes {
    position: absolute;
    height: 60px;
    width: 60px;
    border-radius: 0 0 0 30px;
    top: 0;
    right: 0;
    background: var(--background);
}

.systems-grid .system-card .border-shapes::after,
.systems-grid .system-card .border-shapes::before,
.category-grid .category-card .border-shapes::after,
.category-grid .category-card .border-shapes::before {
    content: "";
    position: absolute;
    height: 30px;
    width: 30px;
    clip-path: path("M0 0 Q0,30 30,30 L 0 30 Z");
    background: var(--background);
}

.systems-grid .system-card .border-shapes::after,
.category-grid .category-card .border-shapes::after {
    top: 0;
    left: -30px;
    transform: rotate(180deg);
}

.systems-grid .system-card .border-shapes::before,
.category-grid .category-card .border-shapes::before {
    right: 0;
    bottom: -30px;
    transform: rotate(180deg);
}

/* systems-grid */

/* components */

.component-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 20px 0 150px;
}

.obtional-components .component-list {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 150px;
}

.component-card {
    border-radius: 30px;
    border: 1px solid rgba(170, 136, 170, 0.2);
    padding: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.component-thumb {
    position: relative;
    width: 100%;
}

.component-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.component-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 16px !important;
    line-height: 1.3;
}

.component-thumb .component-box {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
}

.component-thumb .component-icon {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary);
    position: absolute;
    bottom: -20px;
    right: 40px;
    z-index: 99;
}

.component-thumb .component-border-element {
    position: absolute;
    width: 60px;
    height: 35px;
    bottom: 0;
    right: 35px;
    border-radius: 999px 999px 0 0;
    background-color: var(--background);
}

.component-thumb .component-border-element::after,
.component-thumb .component-border-element::before {
    content: "";
    position: absolute;
    height: 15px;
    width: 15px;
    clip-path: path("M0 0 Q0,15 15,15 L 0 15 Z");
    bottom: -1px;
    right: 0;
    background: var(--background);
}

.component-thumb .component-border-element::after {
    left: -14px;
    transform: rotate(270deg);
}

.component-thumb .component-border-element::before {
    right: -14px;
}

.component-info {
    margin-top: 49px;
    padding: 0px 10px 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.component-info .component-title {
    width: 80%;
    font-size: 26px;
}

.component-info .quality {
    color: rgba(170, 136, 170, 0.53);
}

.price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
}

.component-list-title {
    margin-top: 50px;
}
/* components */

/* obtional-components */

.obtional-components {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-top: 50px;
}

.obtional-components .filter-box {
    display: block;
    height: 100%;
    max-width: 300px;
    width: 100%;
    border: 1px solid #c1c3ca;
    border-radius: 14px;
    overflow: hidden;
}

.obtional-components .filter-box a {
    display: block;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.obtional-components .filter-box li:not(:last-of-type) a {
    border-bottom: 1px solid #c1c3ca;
}

.obtional-components .filter-box a.active {
    background: var(--primary);
    color: var(--white);
}

/* obtional-components */

.system-tag {
    background: var(--primary);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* System card active state */
.system-card.active {
    background: var(--primary);
    color: var(--white);
}

.system-card.active .card-label {
    color: var(--white);
}

.system-card.active .system-button-item {
    color: var(--white);
}

/* Loading and error states */
.loading,
.no-products,
.error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text);
    font-size: 16px;
}

.loading {
    color: var(--primary);
}

.error {
    color: #e74c3c;
}

/* Single Product Page Styles */
.product-details {
    padding: 60px 0;
}

.product-content {
    max-width: 1200px;
    margin: 0 auto;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.product-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.product-category {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.product-systems {
    margin-top: 30px;
    margin-bottom: 20px;
}

.product-systems h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text);
}

.systems-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-description,
.product-application,
.product-recommendations {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.product-description h2,
.product-application h2,
.product-recommendations h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.description-content,
.application-content,
.recommendations-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}

/* Product Tabs Styles */
.product-tabs {
    margin-top: 40px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    padding: 40px 80px;
}

.tabs-navigation {
    display: flex;
    gap: 24px;
    position: relative;
}

.tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    background: transparent;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 60px;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.tab-button.active {
    background: var(--primary);
    color: var(--white);
    border: none;
}

.tab-button.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px 2px 0 0;
}

.tab-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tabs-content {
    position: relative;
    min-height: 200px;
}

.tab-content {
    display: none;
    padding: 0;
    animation: fadeIn 0.4s ease-in-out;
}

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

.tab-content-body {
    padding: 30px;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 16px;
}

.tab-content-body p {
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: 400;
}

.tab-content-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

.tab-content-body ul,
.tab-content-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.tab-content-body li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Rich text (editor) content */
.tab-content-body h1,
.tab-content-body h2,
.tab-content-body h3,
.tab-content-body h4,
.tab-content-body h5,
.tab-content-body h6 {
    margin: 16px 0 12px;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

.tab-content-body a {
    color: var(--primary);
    text-decoration: none;
}

.tab-content-body a:hover {
    text-decoration: underline;
}

.tab-content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 12px;
}

.tab-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.tab-content-body th,
.tab-content-body td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.tab-content-body th {
    background: #fafafa;
    font-weight: 600;
}

.tab-content-body blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--primary);
    background: rgba(0, 0, 0, 0.03);
    color: var(--text);
    border-radius: 6px;
}

.tab-content-body hr {
    margin: 24px 0;
    border: none;
    border-top: 1px solid #eee;
}

.tab-content-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    background: #f6f8fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.tab-content-body pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    background: #f6f8fa;
    padding: 12px;
    border-radius: 8px;
    overflow: auto;
}

.tab-content-body ul li {
    list-style: disc !important;
    font-weight: 400;
}
.tab-content-body ol li {
    list-style: decimal !important;
    font-weight: 400;
}
.tab-content-body ul ul li {
    list-style: circle !important;
    margin-top: 8px;
    font-weight: 400;
}
.tab-content-body ol ol li {
    list-style: lower-alpha !important;
    margin-top: 8px;
    font-weight: 400;
}

.tab-content-body figure {
    margin: 16px 0;
}
.tab-content-body figcaption {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 6px;
}

.tab-content-body iframe,
.tab-content-body video {
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 8px;
}

/* Tab animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New Product Layout Styles */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.product-image {
    max-height: 500px;
    height: 100%;
    overflow: hidden;
    width: 100%;
    text-align: center;
    border-radius: 8px;
}

.product-image img {
    max-width: 100%;
    object-fit: cover;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.product-name-section {
    flex: 1;
}

.product-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.order-button {
    background: #f5f5f5;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.order-button:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.order-icon {
    background: #4caf50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.essential-details {
    margin-bottom: 30px;
}

.essential-details-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item .detail-value.pdf-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cta-buttons-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px;
}

.cta-buttons-links .custom-button.filled {
    justify-content: space-between;
}

.cta-buttons-links .link-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
}

.cta-buttons-links .link-cta,
.cta-buttons-links .link-cta svg path {
    transition: all 0.3s ease;
}

.cta-buttons-links .link-cta:hover svg path {
    fill: var(--primary);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    flex: 1;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: right;
    flex: 1;
}

/* Responsive tabs */
@media (max-width: 768px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .order-button {
        align-self: flex-start;
    }

    .tabs-navigation {
        flex-direction: column;
    }

    .tab-button {
        padding: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .tab-button:last-child {
        border-bottom: none;
    }

    .tab-button.active {
        transform: none;
        box-shadow: inset 4px 0 0 var(--primary);
    }

    .tab-button.active::after {
        display: none;
    }

    .tab-content-header {
        padding: 20px;
    }

    .tab-content-header h2 {
        font-size: 20px;
    }

    .tab-content-body {
        padding: 20px;
        font-size: 15px;
    }
}

.component-list a svg,
.component-list a svg path {
    transition: all 0.3s ease;
}

.component-list a:hover svg,
.component-list a:hover svg path {
    fill: white !important;
}

/* Project system tag */
.component-card .component-box {
    position: relative;
}
.system-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    backdrop-filter: blur(4px);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s ease, transform 0.2s ease,
        border-color 0.2s ease;
}
.system-tag:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}
@media (max-width: 576px) {
    .system-tag {
        font-size: 12px;
        padding: 6px 10px;
    }
}

.filter-scroll {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.filter-scroll .filter-link {
    border: 1px solid #c1c3ca;
    border-radius: 1000px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-scroll .filter-link.active {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}
