.product-hero {
    position: relative;
    height: 480px;
    margin-top: 81px;
    padding: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #0F1720;
    overflow: hidden;
}

.product-hero-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.product-secondary-bar {
    padding: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #D9E0E7;
}

.product-secondary-wrap {
    width: min(1540px, calc(100% - 80px));
    margin: 0 auto;
}

.product-secondary-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    gap: 16px 18px;
    padding: 24px 0;
}

.product-secondary-link,
.product-secondary-empty {
    position: relative;
    display: inline-flex;
    flex: 0 1 280px;
    align-items: center;
    justify-content: center;
    width: min(280px, 100%);
    min-height: 56px;
    padding: 12px 18px;
    border: 1px solid #D9E0E7;
    font-size: 18px;
    line-height: 1.4;
    color: #2F3A45;
    text-align: center;
    white-space: normal;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.product-secondary-link::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -1px;
    height: 2px;
    background: #0D3F78;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.product-secondary-link:hover,
.product-secondary-link.is-active {
    color: #0D3F78;
    border-color: #0D3F78;
    background: #FFFFFF;
    box-shadow: 0 10px 24px rgba(13, 63, 120, 0.08);
}

.product-secondary-link:hover::after,
.product-secondary-link.is-active::after {
    transform: scaleX(1);
}

.product-page-section {
    padding: 88px 0 150px;
    background: #FFFFFF;
}

.product-category-switching .product-secondary-bar,
.product-category-switching .product-page-section {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.product-page-wrap {
    width: min(1540px, calc(100% - 80px));
    margin: 0 auto;
}

.product-page-content {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.product-third-sidebar {
    position: sticky;
    top: 116px;
    border: 1px solid #E5E9EE;
    background: #F7F9FB;
}

.product-third-list {
    display: flex;
    flex-direction: column;
}

.product-third-link,
.product-third-empty {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 16px 24px;
    border-bottom: 1px solid #E5E9EE;
    font-size: 17px;
    line-height: 1.6;
    color: #666666;
    transition: background 0.3s ease, color 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}

.product-third-list > :last-child {
    border-bottom: 0;
}

.product-third-link:hover,
.product-third-link.is-active {
    padding-left: 30px;
    background: #FFFFFF;
    color: #0581B7;
    border-left: 3px solid #0581B7;
}

.product-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.product-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.35s ease;
}

.product-card-shell {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 360px;
    padding: 18px 18px 20px;
    background: #ECF2F5;
    transition: transform 0.35s ease;
}

.product-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    background: #FFFFFF;
}

.product-card-media-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #FFFFFF;
}

.product-card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.45s ease;
}

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

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

.product-card-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #A7B5C4;
}

.product-card-title {
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 500;
    color: #666666;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-empty {
    grid-column: 1 / -1;
    padding: 84px 32px;
    border: 1px solid #E5E9EE;
    background: #F7F9FB;
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    color: #7B8794;
}

.product-pagination {
    margin-top: 44px;
}

.product-pagination .pagination {
    margin-bottom: 0;
}

.product-pagination .pagination > li > a,
.product-pagination .pagination > li > span {
    border: 1px solid #D8E0E8;
    background: #FFFFFF;
    color: #666666;
}

.product-pagination .pagination > .active > span,
.product-pagination .pagination > .active > a,
.product-pagination .pagination > .active > a:hover,
.product-pagination .pagination > .active > span:hover,
.product-pagination .pagination > li > a:hover,
.product-pagination .pagination > li > span:hover {
    border-color: #0D3F78;
    background: #0D3F78;
    color: #FFFFFF;
}

@media (max-width: 1440px) {
    .product-secondary-nav {
        gap: 14px 16px;
    }

    .product-card-grid {
        gap: 22px;
    }
}

@media (max-width: 1199px) {
    .product-secondary-nav {
        gap: 14px;
    }

    .product-page-content {
        grid-template-columns: 1fr;
    }

    .product-third-sidebar {
        position: static;
    }

    .product-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .product-hero {
        margin-top: 64px;
        display: block;
        height: auto;
        min-height: 0;
        overflow: hidden;
        background: none !important;
        line-height: 0;
    }

    .product-hero-image {
        display: block;
        width: 120%;
        height: auto;
        max-width: none;
        margin-left: -10%;
        object-fit: contain;
        object-position: center top;
    }

    .product-secondary-wrap,
    .product-page-wrap {
        width: calc(100% - 32px);
    }

    .product-secondary-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 8px 0 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .product-secondary-nav::-webkit-scrollbar {
        display: none;
    }

    .product-secondary-link,
    .product-secondary-empty {
        flex: 0 0 auto;
        width: auto;
        min-height: 40px;
        padding: 0 16px;
        border-radius: 999px;
        font-size: 14px;
        line-height: 40px;
        white-space: nowrap;
    }

    .product-secondary-link::after {
        display: none;
    }

    .product-secondary-link:hover {
        color: #2F3A45;
        border-color: #D9E0E7;
        background: #FFFFFF;
        box-shadow: none;
    }

    .product-secondary-link.is-active,
    .product-secondary-link.is-active:hover {
        color: #FFFFFF;
        border-color: #0D3F78;
        background: #0D3F78;
        box-shadow: 0 8px 18px rgba(13, 63, 120, 0.14);
    }

    .product-page-section {
        padding: 18px 0 150px;
    }

    .product-page-content {
        gap: 12px;
    }

    .product-third-sidebar {
        border: 0;
        background: transparent;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
    }

    .product-third-sidebar::-webkit-scrollbar {
        display: none;
    }

    .product-third-list {
        flex-direction: row;
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        gap: 10px;
        padding-bottom: 2px;
    }

    .product-third-link,
    .product-third-empty {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 16px;
        border: 1px solid #D9E0E7;
        border-radius: 999px;
        background: #FFFFFF;
        font-size: 14px;
        line-height: 40px;
        white-space: nowrap;
    }

    .product-third-list > :last-child {
        border-bottom: 1px solid #D9E0E7;
    }

    .product-third-link:hover {
        padding: 0 16px;
        background: #FFFFFF;
        color: #666666;
        border-color: #D9E0E7;
    }

    .product-third-link.is-active,
    .product-third-link.is-active:hover {
        padding: 0 16px;
        background: #0581B7;
        color: #FFFFFF;
        border-color: #0581B7;
    }

    .product-card-grid {
        grid-template-columns: 1fr;
    }

    .product-card-shell {
        min-height: 320px;
        padding: 16px;
    }

    .product-card-title {
        margin-top: 14px;
        font-size: 16px;
    }

    .product-card-empty {
        padding: 64px 20px;
    }
}
