/**
 * Custom CSS for Rajput Fashion Theme
 * Additional styles for Bootstrap 5 integration and custom components
 */

/* Global Styles */
body {
    overflow-x: hidden;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-secondary {
    background-color: var(--bs-secondary) !important;
}

/* Buttons */
.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
}

/* Cards */
.card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* Product Cards */
.product-card {
    border: none;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.btn-wishlist {
    background-color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    background-color: var(--bs-primary);
    color: white;
}

.product-price {
    color: var(--bs-primary);
    font-size: 1.1rem;
}

.product-price-old {
    font-size: 0.9rem;
}

/* Testimonial Cards */
.testimonial-card, .testimonial-card-sm {
    transition: all 0.3s ease;
}

.testimonial-card:hover, .testimonial-card-sm:hover {
    transform: translateY(-5px);
}

.testimonial-quote {
    position: relative;
}

/* Team Cards */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--bs-primary);
    color: white !important;
}

/* Store Cards */
.store-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.store-card .card-header {
    border-bottom: none;
    position: relative;
}

.store-card .badge {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
}

.store-image {
    overflow: hidden;
    border-radius: 6px;
}

.store-image img {
    transition: transform 0.5s ease;
}

.store-card:hover .store-image img {
    transform: scale(1.05);
}

.store-details .fas {
    width: 24px;
    text-align: center;
}

/* Video Testimonials */
.video-thumbnail {
    overflow: hidden;
    position: relative;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-play-button .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.video-play-button .btn i {
    margin-left: 4px;
}

/* About Page */
.about-hero {
    position: relative;
    background-color: var(--bs-primary);
}

/* Catalog Page */
.filter-btn.active {
    background-color: var(--bs-primary);
    color: white;
}

/* Footer */
.footer-widget h3 {
    position: relative;
    margin-bottom: 1.5rem;
}

.footer-widget ul {
    padding-left: 0;
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Blog Page Styles */
.blog-hero {
    background-color: var(--bs-secondary);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.9) 0%, rgba(29, 53, 87, 0.7) 100%);
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero .title-underline {
    width: 80px;
    height: 4px;
    background-color: #fff;
}

/* Blog Cards */
.card .card-img-top {
    overflow: hidden;
}

.card .card-img-top img {
    transition: transform 0.5s ease;
}

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

.card .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.pagination .page-item .page-link {
    color: var(--bs-secondary);
    border: 1px solid #dee2e6;
    margin: 0 3px;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.pagination .page-item .page-link:hover {
    background-color: #f8f9fa;
    color: var(--bs-primary);
}

.pagination .page-item.active .page-link:hover {
    background-color: var(--bs-primary);
    color: #fff;
}

/* Sidebar Styles */
.sidebar-container {
    transition: all 0.3s ease;
}

.widget-area .card {
    border: none;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.widget-area .card-header {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.1);
    padding: 1.25rem 1.5rem 0.75rem;
}

.widget-area .card-body {
    padding: 1.5rem;
}

.widget-area .widget-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: var(--bs-dark);
    font-size: 1.25rem;
}

.widget-area .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--bs-primary), var(--bs-secondary));
    border-radius: 3px;
}

.widget-area .recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.widget-area .recent-posts li:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.widget-area .recent-posts li:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-area .recent-posts img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.widget-area .recent-posts a:hover img {
    transform: scale(1.05);
}

.widget-area .categories-list li a {
    color: var(--bs-dark);
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.widget-area .categories-list li a::before {
    content: '\f105'; /* Font Awesome arrow icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: var(--bs-primary);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.widget-area .categories-list li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.widget-area .categories-list li:last-child a {
    border-bottom: none;
}

.widget-area .categories-list li a:hover {
    color: var(--bs-primary);
    padding-left: 5px;
}

.widget-area .tagcloud a {
    margin-right: 5px;
    margin-bottom: 8px;
    font-size: 0.8rem !important;
    border-radius: 20px;
    padding: 5px 12px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    border: 1px solid #f0f0f0;
}

.widget-area .tagcloud a:hover {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: var(--bs-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.social-icon:hover {
    background-color: var(--bs-primary);
    color: white;
    transform: translateY(-3px);
}

/* 404 Page Styles */
.error-404 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.error-404:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Search Form */
.search-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #e9ecef;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    box-shadow: none;
    border-color: var(--bs-primary);
}

.search-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Newsletter Form */
.newsletter-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #e9ecef;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: var(--bs-primary);
}

.newsletter-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .hero-section, .blog-hero {
        padding: 3rem 0;
    }
    
    .stores-section .card-header {
        text-align: center;
    }
    
    .stores-section .badge {
        position: static;
        transform: none;
        display: inline-block;
        margin-top: 5px;
    }
    
    .widget-area {
        margin-top: 2rem;
    }
    
    .widget-area .card {
        margin-bottom: 1.5rem;
    }
    
    .social-icons {
        justify-content: space-around;
    }
    
    .store-details .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .store-details .flex-shrink-0 {
        margin-bottom: 10px;
    }
    
    .store-details .fas {
        width: auto;
    }
}

@media (max-width: 575.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}