@font-face {
    font-family: 'PangMenZhengDao';
    src: url('../fonts/PangMenZhengDao/PangMenZhengDao.ttf') format('truetype');
}

@font-face {
    font-family: 'Inder';
    src: url('../fonts/Inder/Inder-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Karla';
    src: url('../fonts/Karla/Karla-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'KarlaBold';
    src: url('../fonts/Karla/Karla-Bold.ttf') format('truetype');
}

#my-header{
    display: none;
}

.footer-container{
    display: none;
}

body,
.site-main {
    background: #0f0f0f;
    font-family: 'Inder', sans-serif;
    min-width: auto;
}

/* 右下角内阴影：用于替代复杂的 inset 多重阴影，兼容性好且可精确控制 */
.shadow-br {
    position: relative;
    overflow: hidden;
}

.shadow-br::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    /* combine bottom-right radial spot with a bottom-edge inset shadow */
    background:
        radial-gradient(ellipse at 100% 100%,
            rgba(26, 26, 26, 1) 0%,
            rgba(26, 26, 26, 0.25) 30%,
            rgba(26, 26, 26, 0) 60%),
        linear-gradient(to top,
            rgba(26, 26, 26, 1) 0%,
            rgba(26, 26, 26, 0.25) 40%,
            rgba(26, 26, 26, 0) 100%);
    background-repeat: no-repeat;
    background-size: 60% 60%, 100% 20%;
    background-position: 100% 100%, 0% 100%;
}

.fp-title {
    /* 2px crisp outline (stroke) via multiple zero-blur shadows, then a blurred downward shadow for 3D */
    text-shadow:
        2px 0 0 #131313,
        -2px 0 0 #131313,
        0 2px 0 #131313,
        0 -2px 0 #131313,
        2px 2px 0 #131313,
        -2px -2px 0 #131313,
        2px -2px 0 #131313,
        -2px 2px 0 #131313,
        1px 1px 0 #131313,
        -1px -1px 0 #131313,
        1px -1px 0 #131313,
        -1px 1px 0 #131313,
        /* downward blurred shadow for depth — replicate the outline offsets shifted down and blurred */
        2px 5px 3px rgba(0, 0, 0, 0.9),
        -2px 5px 3px rgba(0, 0, 0, 0.9),
        0 5px 3px rgba(0, 0, 0, 0.9),
        1px 6px 3px rgba(0, 0, 0, 0.9),
        -1px 6px 3px rgba(0, 0, 0, 0.9);
}

/* local tab styles (native CSS) */
#parts-tabs {
    --theme-orange: #FFC300;
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: end;
}

#parts-tabs .tab-btn {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    color: #d1d5db;
    /* gray-300 */
    padding: 0.25rem 0.75rem 0.9rem;
    font-size: 1.5rem;
    border-radius: 0.75rem 0.75rem 0 0;
    cursor: pointer;
    position: relative;
    transition: background-color 280ms cubic-bezier(.2, .9, .2, 1), color 220ms ease, transform 200ms ease, box-shadow 280ms ease;
    outline: none;
}

#parts-tabs .tab-btn:hover {
    color: #fff;
}

#parts-tabs .tab-btn.active {
    background-color: var(--theme-orange);
    color: #111;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(255, 193, 0, 0.12) inset;
}

/* sliding indicator */
#tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--theme-orange);
    border-radius: 4px;
    transform: translateX(0);
    transition: transform 320ms cubic-bezier(.2, .9, .2, 1), width 320ms cubic-bezier(.2, .9, .2, 1), opacity 240ms ease;
    will-change: transform, width;
}

/* ensure container for the tabs has no interfering styles */
#parts-tabs-wrap {
    position: relative;
    display: inline-block;
}


/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Reusable Component Styles */
.category-tab-btn {
    height: 2.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    /* Added default color */
}

.category-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.category-tab-btn.active {
    background-color: white;
    border-color: white;
    color: #131313;
}

.category-tab-icon {
    display: none;
}

.category-tab-btn.active .category-tab-icon {
    display: block;
}

/* Navigation Buttons */
.nav-icon-btn {
    height: 2.5rem;
    width: 2.5rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-icon-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.home #my-header.newheader {
    display: none !important;
}

.nav-icon-btn-outline:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-icon-btn-filled {
    background-color: #FFC300;
    color: #131313;
}

.nav-icon-btn-filled:hover:not(:disabled) {
    background-color: #eab308;
}

/* Sub Card Styles */
.sub-card-base {
    cursor: pointer;
    width: max-content;
    position: relative;
    border-radius: 1.25rem;
    border-width: 1px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border-color: #2E2B22;
}

.sub-card-base.active {
    border-color: #756E58;
}

.sub-card-base:not(.active):hover {
    border-color: #756E58;
}

.sub-card-blur {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 83.333333%;
    height: 83.333333%;
    filter: blur(12px);
    border-radius: 1.25rem;
    background-color: rgba(255, 195, 0, 0.1);
    /* theme-orange/10 */
    z-index: 0;
    opacity: 0;
    transition: opacity 300ms;
}

.sub-card-base.active .sub-card-blur {
    opacity: 1;
}

.sub-card-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(103, 103, 103, 0.2);
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    backdrop-filter: blur(12px);
    transition: background-color 300ms;
}

.sub-card-base.active .sub-card-content {
    background-color: rgba(103, 103, 103, 0.4);
}

.sub-card-title {
    color: white;
    font-weight: 500;
    white-space: nowrap;
    transition: color 300ms;
}

.sub-card-base.active .sub-card-title {
    color: #FFC300;
}

.sub-card-icon {
    width: 1rem;
    height: 1rem;
    color: white;
    transition: color 300ms, transform 200ms;
}

.sub-card-base.active .sub-card-icon {
    color: #FFC300;
    transform: rotate(180deg);
}

/* Product Card Styles */
.product-card-base {
    position: relative;
    flex-shrink: 0;
    transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.product-card-inner {
    position: relative;
    z-index: 10;
    padding: 1rem;
    background-color: rgba(103, 103, 103, 0.2);
    border-radius: 0.9375rem;
    border: 1px solid #6A6A6A;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.product-card-base:hover .product-card-inner {
    border-color: #756E58;
}

.product-card-overlay {
    position: absolute;
    top: 0;
    inset: 0;
    width: 100%;
    height: 270px;
    transition-duration: 300ms;
    opacity: 0;
    filter: blur(12px);
    border-radius: 1.25rem;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.product-card-base:hover .product-card-overlay {
    opacity: 1;
}

.product-img-container {
    position: relative;
    width: 262px;
    height: 250px;
    background-color: #E5DFD2;
    border-radius: 0.9375rem;
    padding: 25px 20px;
}

.product-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(51, 51, 51, 0.2);
    border-radius: 0.75rem;
    width: 3rem;
    padding: 0.75rem;
    opacity: 0;
    transform: translateX(1rem);
    transition-duration: 300ms;
}

.product-card-base:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    color: #131313;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 200ms;
}

.product-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.product-title {
    margin-top: 1.25rem;
    font-size: 1.25rem;
    color: white;
}

.product-price {
    margin-top: 0.5rem;
    color: white;
}

.add-to-cart-wrapper {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -151px);
    opacity: 0;
    z-index: 0;
    width: 278px;
    height: 151px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    pointer-events: none;
    transition-duration: 300ms;
}

.product-card-base:hover .add-to-cart-wrapper {
    opacity: 1;
    transform: translate(-50%, -100px);
    pointer-events: auto;
}

.add-to-cart-btn {
    margin-top: auto;
    font-size: 1.25rem;
    color: #131313;
    font-weight: 500;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.partner-logos-container {
    position: relative;
    height: 2.5rem;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 20%,
        black 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 20%,
        black 90%,
        transparent 100%
    );
}
.partner-logos-container::before,
.partner-logos-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 1;
}

.partner-logos-container::before {
    left: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.partner-logos-container::after {
    right: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.partner-logos{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3.75rem;
    user-select: none;
    opacity: 0.7;
    transition: opacity 500ms;
}

.partner-logo{
    width: 180px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
}

@media screen and (max-width: 767px) {
    .partner-logos{
        gap: 2rem;
    }

    .partner-logos-container::before,
    .partner-logos-container::after {
        display: none;
    }
}