/* Shop Styles */

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

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

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

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

/* Vendor Badge */
.vendor-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
}

/* Category Cards */
.category-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Vendor Cards */
.vendor-card {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.vendor-card:hover {
    transform: translateY(-3px);
}

/* Search Results Dropdown */
.search-results-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: white;
}

.search-result-item {
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    font-size: 0.875rem;
}

/* Price Styling */
.price-formatted {
    font-weight: 600;
    color: #198754;
}

.sale-price {
    color: #dc3545;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
}

/* Wishlist Button */
.wishlist-btn {
    transition: all 0.3s ease;
    z-index: 2;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

/* Add to Cart Button */
.add-to-cart-btn {
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
}

/* Filter Sidebar */
.filter-sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Skeleton Loading */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Product Grid */
.product-grid {
    min-height: 400px;
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
    color: #0d6efd;
}

.swiper-pagination-bullet-active {
    background-color: #0d6efd !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .vendor-card {
        padding: 1rem;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .product-image {
        height: 300px;
    }
}

/* Mobile-First Enhancements */
@media (max-width: 575.98px) {
    /* Horizontal product cards on mobile */
    .product-card {
        flex-direction: row;
    }
    
    /* Compact spacing */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Better button sizing for touch */
    .btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }
    
    /* Optimized typography */
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    /* Improved card spacing */
    .card-body {
        padding: 0.875rem;
    }
}

/* Tablet improvements */
@media (min-width: 576px) and (max-width: 991.98px) {
    .product-card .card-img-top {
        height: 220px;
    }
}

/* Desktop enhancements */
@media (min-width: 992px) {
    .product-card:hover {
        transform: translateY(-4px);
    }
    
    .product-card .card-img-top {
        height: 250px;
    }
}

/* AddThis Share Buttons */
.addthis_inline_share_toolbox {
    margin-top: 1rem;
}

.addthis_inline_share_toolbox .at-icon-wrapper {
    margin: 0 2px;
}

/* Toast Notifications */
.toast-container {
    z-index: 9999;
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Gallery Thumbnails */
.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.gallery-thumb:hover {
    border-color: #0d6efd;
}

.gallery-thumb.active {
    border-color: #0d6efd;
}

/* Quantity Input */
.quantity-input {
    text-align: center;
    border: 1px solid #ced4da;
}

/* Vendor Info */
.vendor-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

/* Stock Status */
.stock-status .badge {
    font-size: 0.875rem;
}

/* Social Sharing */
.social-sharing {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #0d6efd;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.search-bar {
    background: white;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-bar .form-control {
    border: none;
    background: transparent;
    padding: 12px 20px;
}

.search-bar .btn {
    border-radius: 20px;
    padding: 12px 24px;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}
