:root {
    --ultra-red: #D90429;
    --ultra-dark: #0B0F19;
}

body {
    background-color: #F8FAFC;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1E293B;
}

.product-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--ultra-dark);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .product-main-title {
        font-size: 1.65rem;
    }
}

.p-gallery-stage {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    padding: 20px;
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

@media (max-width: 576px) {
    .p-gallery-stage {
        height: 300px;
    }
}

.p-gallery-stage img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.thumb-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.thumb-btn {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 12px;
    border: 2px solid #E2E8F0;
    background: #FFF;
    padding: 4px;
    cursor: pointer;
    object-fit: contain;
    transition: all 0.25s;
}

.thumb-btn.active, .thumb-btn:hover {
    border-color: var(--ultra-red);
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.2);
}

.trust-perks-box {
    background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
    border: 1.5px solid #86EFAC;
    border-radius: 16px;
    padding: 16px;
}

.btn-qty-control {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
}

.express-buy-btn {
    background: var(--ultra-red);
    border-color: var(--ultra-red);
    transition: opacity 0.2s;
}

.express-buy-btn:hover {
    opacity: 0.9;
}

/* Related Products Horizontal Slider */
.related-products-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    scrollbar-width: thin;
}

.related-card-item {
    min-width: 260px;
    max-width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

@media (max-width: 576px) {
    .related-card-item {
        min-width: 220px;
    }
}

.related-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--ultra-red);
}

.related-img-wrap {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    padding: 15px;
}

.related-img-wrap img {
    max-height: 100%;
    object-fit: contain;
}

.cart-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #10B981;
    color: #FFF;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-weight: bold;
    display: none;
    animation: fadeInOut 0.3s ease;
}

@keyframes fadeInOut {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}