.skel-block {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: skelShimmer 1.4s infinite;
    border-radius: 6px;
}

.homesize{
        font-size: 12px;
    margin-bottom: 0;
}

@keyframes skelShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.img-box {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    position: relative;
}

.main-img {
    width: 100%;
    /* height: 400px; */
    object-fit: cover;
    border-radius: 7px;
    cursor: zoom-in;
    transition: opacity .2s;
    display: block;
}

.main-img:hover {
    opacity: .92;
}

.zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: .7rem;
    padding: 3px 8px;
    border-radius: 20px;
    pointer-events: none;
}

.thumb-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.thumb-viewport {
    flex: 1;
    overflow: hidden;
}

.thumb-track {
    display: flex;
    gap: 8px;
    transition: transform .3s ease;
}

.thumb-img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color .2s;
    flex-shrink: 0;
}

.thumb-img:hover,
.thumb-img.active-thumb {
    border-color: var(--base-color);
}

.thumb-nav {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 18px;
    padding: 2px 9px;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
    line-height: 1.5;
}

.thumb-nav:hover {
    background: var(--base-color);
    color: #fff;
    border-color: var(--base-color);
}

.zoom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.zoom-modal.active {
    display: flex;
}

.zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(4px);
}

.zoom-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    max-width: 90vw;
}

.zoom-img {
    max-width: 70vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
    animation: zoomIn .2s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(.88);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--base-color);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.zoom-nav {
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}

.zoom-nav:hover {
    background: #f57224;
}

.product-info-panel {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212121;
    line-height: 1.45;
}

.price {
    color: var(--base-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: .95rem;
}

.discount-badge {
    background: var(--logo-color);
    color: #fff;
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 700;
}

.qty-minus,
.qty-plus {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.qty-minus:hover,
.qty-plus:hover {
    background: var(--base-color);
    color: #fff;
    border-color: var(--base-color);
}

.qty-input {
    width: 52px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.label-txt {
    font-size: .85rem;
    color: #555;
    font-weight: 600;
}

.action-btns {
    display: flex;
    gap: 10px;
}

.btn-buy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: .9rem;
    transition: all .2s;
}

.btn-buy:hover {
    background: #efefef;
    color: var(--logo-color);
    /* border: 1px solid var(--logo-color); */
    /* transform: translateY(-1px); */
    box-shadow: 0 5px 16px rgba(245, 114, 36, .4);
}

.btn-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    color: var(--base-color);
    border: 2px solid var(--base-color);
    border-radius: 8px;
    padding: 11px 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: .9rem;
    transition: all .2s;
}

.btn-cart:hover {
    background: var(--base-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(245, 114, 36, .25);
}

.desc-heading {
    font-size: .9rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.product-content {
    font-size: .85rem;
    color: #555;
    line-height: 1.75;
    text-align: justify;
}

/* ===== RELATED SLIDER ===== */
.related-section {
    background: #fff;
    border-radius: 10px;
    padding: 16px 16px 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    margin-top: 18px;
}

.related-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--base-color);
}

.related-heading {
    font-size: .95rem;
    font-weight: 800;
    color: #222;
    display: flex;
    align-items: center;
    gap: 7px;
}

.related-heading::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--base-color);
    border-radius: 3px;
    display: inline-block;
}

.related-slider-nav {
    display: flex;
    gap: 6px;
}

.rel-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--base-color);
    background: #fff;
    color: var(--base-color);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
    flex-shrink: 0;
    line-height: 1;
}

.rel-nav-btn:hover {
    background: var(--base-color);
    color: #fff;
}

.rel-nav-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* Viewport clips overflow */
.related-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.related-slider-track {
    display: flex;
    gap: 12px;
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.related-slide {
    flex-shrink: 0;
}

.related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all .2s;
    background: #fff;
    height: 100%;
}

.related-card:hover {
    border-color: var(--base-color);
    box-shadow: 0 4px 14px rgba(245, 114, 36, .15);
    transform: translateY(-2px);
}

.related-img-wrap {
    overflow: hidden;
}

.related-card-img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}

.related-card:hover .related-card-img {
    transform: scale(1.05);
}

.related-card-body {
    padding: 8px 8px 10px;
}

.related-card-title {
    font-size: .75rem;
    color: #333;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-price {
    font-size: .82rem;
    color: var(--base-color);
    font-weight: 700;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#productActual {
    animation: fadeUp .3s ease;
}
