/* shop/static/shop/style.css */

/* Import Vazir font from web */
@import url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css');

/* General Styles */
body {
    font-family: 'Vazir', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    direction: rtl;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #6624e0b3;
}

.hero-content {
    position: relative;
    color: #fff;
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-in-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn-hero {
    background-color: #243ae0;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-hero:hover {
    background-color: #1e32c1;
}

/* Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navigation Bar */
.navbar {
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 100px;
    transition: transform 0.3s;
}

.navbar-brand img:hover {
    transform: rotate(360deg);
}

.navbar-brand, .nav-link {
    color: #6624e0 !important;
}

.nav-link {
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: #6624e0;
    transition: width 0.3s;
}

.nav-link:hover {
    color: #5520bd !important;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar .badge {
    position: absolute;
    top: -8px;
    left: -10px;
    font-size: 0.8rem;
}

.navbar-nav .nav-link:hover {
    color: #5520bd !important;
}

/* Footer */
.footer {
    background-color: #6624e0;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer .social-icons a {
    color: #fff;
    transition: color 0.3s, transform 0.3s;
}

.footer .social-icons a:hover {
    color: #5520bd;
    transform: translateY(-5px);
}

/* Category Sidebar */
.category-list .list-group-item {
    border: none;
    padding: 12px 15px;
    text-align: center;
    font-weight: 500;
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.category-list .list-group-item:hover {
    background-color: rgba(217, 175, 189, 0.1);
}

.category-list .list-group-item.active {
    font-weight: bold;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    border: none;
    background-color: #fff;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.product-card .card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.1);
}

.product-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 36, 224, 0.7);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover .card-overlay {
    opacity: 1;
}

.btn-overlay {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.btn-overlay:hover {
    background-color: #fff;
    color: #6624e0;
}

/* Card Body */
.product-card .card-body {
    flex-grow: 1;
    padding: 20px;
}

.product-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: #6624e0;
}

/* Buttons */
.btn-primary {
    background-color: #6624e0;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    transition: background-color 0.3s;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #5520bd;
}

.btn-outline-primary {
    border-color: #6624e0;
    color: #6624e0;
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline-primary:hover {
    background-color: #6624e0;
    color: #fff;
}

/* Headings */
h2, h4, .heading {
    color: #6624e0;
    font-weight: 700;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #6624e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #5520bd;
}

/* Toast Styles */
.toast {
    min-width: 250px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .product-card .card-img-top {
        height: 200px;
    }

    .navbar-brand img {
        height: 40px;
    }

    .nav-link {
        font-size: 1rem;
    }

    .product-card {
        display: flex;
        flex-direction: column;
    }

    .product-card .card-body {
        flex-grow: 1;
    }
}

@media (max-width: 576px) {
    .footer .social-icons a {
        margin: 0 5px;
    }

    .btn-overlay {
        padding: 8px 20px;
    }
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0 5px;
}

.page-item .page-link {
    color: #6624e0;
    background-color: #fff;
    border: 1px solid #6624e0;
    border-radius: 50px;
    padding: 10px 15px;
    transition: background-color 0.3s, color 0.3s;
}

.page-item.active .page-link {
    background-color: #6624e0;
    color: #fff;
    border-color: #6624e0;
}

.page-item.disabled .page-link {
    color: #ccc;
    background-color: #f0f4f8;
    border-color: #ccc;
}

.page-item .page-link:hover {
    background-color: #5520bd;
    color: #fff;
}

/* Carousel Styles */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #6624e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #5520bd;
}

.carousel-indicators li {
    background-color: #6624e0;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: #5520bd;
}

.carousel-item {
    padding: 10rem;
}
