﻿:root {
    --primary: #0d6efd;
    --success: #198754;
    --danger: #dc3545;
    --dark: #212529;
    --light: #f8f9fa;
    --border: #e9ecef;
    --radius: 18px;
    --shadow: 0 8px 25px rgba(0,0,0,.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter',sans-serif;
    background: #fafafa;
    color: #212529;
    padding-bottom: 90px;
}

a {
    text-decoration: none;
}

img {
    user-select: none;
    -webkit-user-drag: none;
}


.container {
    max-width: 1300px;
}

.navbar {
    height: 72px;
    background: #fff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d6efd !important;
}

.navbar .btn {
    border-radius: 12px;
}

.card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}


.product-gallery {
    position: sticky;
    top: 90px;
}

.main-image {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
}

    .main-image img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: contain;
        transition: .35s;
        cursor: zoom-in;
    }

    .main-image:hover img {
        transform: scale(1.04);
    }


.discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    font-size: .9rem;
}

.stock-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
}

.thumbnail-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px;
}

    .thumbnail-container::-webkit-scrollbar {
        height: 6px;
    }

.thumbnail-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .25s;
}

    .thumbnail-image:hover {
        border-color: #0d6efd;
        transform: translateY(-2px);
    }

.display-6 {
    font-weight: 700;
}

.attribute-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 15px;
    height: 100%;
}

.attribute-title {
    color: #6c757d;
    font-size: .8rem;
}

.attribute-value {
    margin-top: 4px;
    font-weight: 600;
}


.seller-card {
    border-radius: 20px;
}

.seller-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f1f1;
}


.related-card {
    transition: .25s;
    cursor: pointer;
}

    .related-card:hover {
        transform: translateY(-6px);
    }

.related-image {
    aspect-ratio: 1;
    object-fit: cover;
}

.btn {
    border-radius: 14px;
    font-weight: 600;
    height: 50px;
}

.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -3px 20px rgba(0,0,0,.08);
    z-index: 999;
}


@media(max-width:992px) {

    .product-gallery {
        position: static;
    }

    .main-image {
        padding: 10px;
    }

    .thumbnail-image {
        width: 70px;
        height: 70px;
    }

    .display-6 {
        font-size: 1.7rem;
    }
}


.shopaxo-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #212529;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    opacity: 0;
    transition: .3s;
    z-index: 99999;
}

    .shopaxo-toast.show {
        opacity: 1;
    }

.thumbnail-image.active {
    border-color: #0d6efd;
}

img {
    transition: opacity .25s ease, transform .3s ease;
}


.floating-share {
    position: fixed;
    right: 20px;
    bottom: 110px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    border: none;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    z-index: 999;
}

.back-top {
    position: fixed;
    bottom: 185px;
    right: 20px;
    display: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #212529;
    color: white;
    border: none;
    z-index: 999;
}

.main-image {
    touch-action: pan-y;
}