.product-page{
    padding-top:20px;
    padding-bottom:96px;
}

.product-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(320px,420px);
    gap:24px;
    align-items:start;
}

.product-gallery-wrap{
    min-width:0;
}

.product-gallery-card,
.product-section-card,
.product-buy-card{
    background:#fff;
    border:1px solid #e9e9e9;
    border-radius:20px;
    box-shadow:0 1px 2px rgba(16,24,40,.03);
}

.product-gallery-card{
    padding:18px;
}

.product-main-image{
    width:100%;
    aspect-ratio:1 / 1;
    background:#f7f7f7;
    border:1px solid #f0f0f0;
    border-radius:16px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:14px;
}

.product-main-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:22px;
}

.product-thumb-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
}

.product-thumb-btn{
    border:1px solid #e7e7e7;
    background:#fff;
    border-radius:14px;
    padding:0;
    aspect-ratio:1 / 1;
    overflow:hidden;
    cursor:pointer;
    transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.product-thumb-btn:hover{
    border-color:#bdbdbd;
    transform:translateY(-1px);
}

.product-thumb-btn:focus-visible{
    outline:none;
    border-color:#111;
    box-shadow:0 0 0 3px rgba(17,17,17,.08);
}

.product-thumb-btn img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:8px;
}

.product-buy-card{
    padding:0;
}

.product-buy-sticky{
    padding:22px;
    position:sticky;
    top:96px;
}

.product-title{
    margin:0 0 10px;
    font-size:24px;
    line-height:1.4;
    font-weight:700;
    letter-spacing:0;
    color:#111;
    word-break:break-word;
}

.product-short-desc{
    margin:0 0 14px;
    color:#5f5f5f;
    font-size:14px;
    line-height:1.8;
}

.product-price-row{
    margin-bottom:18px;
}

.product-price-main-wrap{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.product-price{
    font-size:30px;
    line-height:1.1;
    font-weight:800;
    color:#111;
    letter-spacing:-0.02em;
}

.product-price-origin-row{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.product-price-original{
    font-size:16px;
    line-height:1.2;
    color:#8a8a8a;
    text-decoration:line-through;
    text-decoration-thickness:1.5px;
}

.product-price-discount{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:24px;
    padding:0 8px;
    border-radius:999px;
    background:#fff1f1;
    color:#d93025;
    font-size:13px;
    font-weight:700;
    line-height:1;
}

.product-meta-grid{
    display:grid;
    gap:10px;
    margin-bottom:20px;
    padding-bottom:18px;
    border-bottom:1px solid #efefef;
}

.product-meta-item{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    font-size:14px;
    line-height:1.5;
}

.product-meta-label{
    color:#777;
    font-weight:700;
}

.product-meta-text{
    color:#111;
    font-weight:600;
    text-align:right;
    word-break:break-word;
}

.product-form{
    margin:0;
}

.product-option-group{
    margin-bottom:14px;
}

.product-option-label{
    display:block;
    margin-bottom:8px;
    color:#111;
    font-size:14px;
    font-weight:700;
    line-height:1.4;
}

.product-option-select,
.product-qty-input{
    width:100%;
    height:48px;
    border:1px solid #d8d8d8;
    border-radius:14px;
    background:#fff;
    padding:0 14px;
    font-size:15px;
    color:#111;
    outline:none;
    box-shadow:none;
    transition:border-color .18s ease, box-shadow .18s ease;
}

.product-option-select:focus,
.product-qty-input:focus{
    border-color:#111;
    box-shadow:0 0 0 3px rgba(17,17,17,.08);
}

.product-action-row{
    margin-top:16px;
}

.product-btn{
    width:100%;
    min-height:50px;
    border:none;
    border-radius:999px;
    font-size:15px;
    font-weight:800;
    cursor:pointer;
    transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.product-btn:hover{
    transform:translateY(-1px);
}

.product-btn:active{
    transform:translateY(0);
}

.product-btn-primary{
    background:#111;
    color:#fff;
    box-shadow:0 8px 18px rgba(17,17,17,.12);
}

.product-btn-primary:hover{
    box-shadow:0 10px 20px rgba(17,17,17,.16);
}

.product-btn-secondary{
    background:#f3f3f3;
    color:#111;
}

.product-buy-now-form{
    margin-top:10px;
}

.product-ebay-link{
    display:inline-flex;
    margin-top:14px;
    font-size:14px;
    font-weight:700;
    color:#111;
    text-decoration:none;
}

.product-ebay-link:hover{
    text-decoration:underline;
}

.product-section-card{
    padding:22px;
    margin-top:20px;
}

.product-tabs-card,
.product-related-card{
    grid-column:1 / -1;
}

.product-section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}

.product-section-title{
    margin:0;
    font-size:22px;
    line-height:1.25;
    font-weight:800;
    color:#111;
}

.product-tab-head{
    display:flex;
    align-items:center;
    gap:24px;
    flex-wrap:wrap;
    margin-bottom:18px;
    padding-bottom:14px;
    border-bottom:1px solid #efefef;
}

.product-tab-btn{
    appearance:none;
    -webkit-appearance:none;
    border:none;
    background:transparent;
    color:#7a7a7a;
    font-size:15px;
    font-weight:700;
    line-height:1;
    padding:0 0 10px;
    border-bottom:2px solid transparent;
    cursor:pointer;
    transition:color .18s ease, border-color .18s ease;
}

.product-tab-btn:hover{
    color:#111;
}

.product-tab-btn.is-active{
    color:#111;
    border-bottom-color:#111;
}

.product-tab-panel{
    display:none;
}

.product-tab-panel.is-active{
    display:block;
}

.product-description p{
    margin:0 0 14px;
    color:#444;
    font-size:15px;
    line-height:1.9;
}

.product-description p:last-child{
    margin-bottom:0;
}

.product-spec-table-wrap{
    border:1px solid #efefef;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
}

.product-spec-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
}

.product-spec-table tr:first-child th,
.product-spec-table tr:first-child td{
    border-top:none;
}

.product-spec-table th,
.product-spec-table td{
    padding:14px 16px;
    border-top:1px solid #f2f2f2;
    text-align:left;
    vertical-align:top;
    font-size:14px;
    line-height:1.7;
    word-break:break-word;
}

.product-spec-table th{
    width:220px;
    background:#fafafa;
    color:#666;
    font-weight:700;
    border-right:1px solid #f2f2f2;
}

.product-spec-table td{
    color:#111;
    font-weight:500;
    background:#fff;
}

.related-product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.related-product-grid .product-card-body{
    min-height:72px;
}

.mobile-cart-bar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:1300;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.96);
    border-top:1px solid #e9e9e9;
    box-shadow:0 -8px 24px rgba(0,0,0,.08);
    backdrop-filter:blur(10px);
    transform:translateY(120%);
    transition:transform .22s ease;
    display:none;
}

.mobile-cart-bar.is-visible{
    transform:translateY(0);
}

.mobile-cart-bar-inner{
    display:flex;
    align-items:center;
    gap:12px;
}

.mobile-cart-price-group{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;
}

.mobile-cart-price{
    font-size:18px;
    font-weight:800;
    color:#111;
    line-height:1.2;
}

.mobile-cart-price-original{
    font-size:13px;
    line-height:1.2;
    color:#8a8a8a;
    text-decoration:line-through;
}

.mobile-cart-btn{
    flex:1 1 auto;
    min-height:46px;
    border:none;
    border-radius:999px;
    background:#111;
    color:#fff;
    font-size:15px;
    font-weight:800;
    cursor:pointer;
}

.cart-price-box{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin-top:6px;
}

.cart-sale-price{
    font-size:16px;
    font-weight:700;
    color:#111;
}

.cart-original-price{
    font-size:14px;
    color:#8a8a8a;
    text-decoration:line-through;
}

.cart-discount-badge{
    display:inline-flex;
    align-items:center;
    padding:2px 8px;
    border-radius:999px;
    background:#fff1f1;
    color:#d93025;
    font-size:12px;
    font-weight:700;
}

@media (max-width:1200px){
    .product-layout{
        grid-template-columns:1fr;
    }

    .product-buy-sticky{
        position:static;
        top:auto;
    }

    .related-product-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media (max-width:860px){
    .product-layout{
        gap:16px;
    }

    .product-buy-card{
        order:2;
    }

    .product-tabs-card{
        order:3;
        grid-column:auto;
    }

    .product-related-card{
        order:4;
        grid-column:auto;
    }

    .product-title{
        font-size:21px;
        line-height:1.45;
    }

    .product-price{
        font-size:26px;
    }

    .product-price-original{
        font-size:14px;
    }

    .product-spec-table th{
        width:140px;
    }

    .product-spec-table th,
    .product-spec-table td{
        padding:12px 14px;
    }

    .mobile-cart-bar{
        display:block;
    }
}

@media (max-width:560px){
    .product-page{
        padding-top:14px;
    }

    .product-gallery-card,
    .product-section-card{
        padding:14px;
    }

    .product-buy-sticky{
        padding:16px;
    }

    .product-title{
        font-size:19px;
        line-height:1.45;
    }

    .product-price{
        font-size:24px;
    }

    .product-thumb-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:8px;
    }

    .product-tab-head{
        gap:16px;
    }

    .product-tab-btn{
        font-size:14px;
    }

    .product-spec-table th{
        width:120px;
    }

    .product-spec-table th,
    .product-spec-table td{
        font-size:13px;
        line-height:1.55;
        padding:10px 12px;
    }

    .mobile-cart-bar-inner{
        gap:10px;
    }

    .mobile-cart-btn{
        min-height:44px;
        font-size:14px;
    }
}