/* ============================================
   ENHANCED ECOMMERCE STYLES
   Responsive & Modern Design
============================================ */

/* Featured Categories Section */
.featured-categories {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: rotate(360deg) scale(1.1);
}

.category-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Products Container */
.products-container {
    padding: 80px 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
}

.product-card.out-of-stock {
    opacity: 0.7;
}

.product-card.out-of-stock .product-image img {
    filter: grayscale(50%);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-sale {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-featured {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
}

.badge-stock {
    background: #dc3545;
    color: white;
}

.badge-low-stock {
    background: #ffc107;
    color: #1a1a2e;
}

/* Product Image */
.product-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn,
.add-to-cart-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-view-btn {
    background: white;
    color: #1a1a2e;
}

.quick-view-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

/* Product Info */
.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.product-rating .stars {
    display: flex;
    gap: 3px;
}

.product-rating .stars i {
    color: #ffc107;
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

/* Price Section */
.product-price-section {
    margin-bottom: 15px;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.product-price-current {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price-old {
    font-size: 18px;
    color: #6c757d;
    text-decoration: line-through;
    font-weight: 500;
}

.savings-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* Stock Indicator */
.stock-indicator {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
}

.stock-status.in {
    background: #d4edda;
    color: #155724;
}

.stock-status.low {
    background: #fff3cd;
    color: #856404;
}

.stock-status.out {
    background: #f8d7da;
    color: #721c24;
}

/* View All Section */
.view-all-section {
    text-align: center;
    margin-top: 60px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    color: white;
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #667eea;
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

/* Tablets */
@media (max-width: 992px) {
    .section-title {
        font-size: 36px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .featured-categories,
    .products-container,
    .features-section {
        padding: 60px 0;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-card {
        border-radius: 15px;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 14px;
        min-height: 40px;
    }

    .product-price-current {
        font-size: 18px;
    }

    .product-price-old {
        font-size: 14px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card {
        padding: 30px 20px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-card {
        padding: 30px 15px;
    }

    .featured-categories,
    .products-container,
    .features-section {
        padding: 40px 0;
    }

    .quick-view-btn,
    .add-to-cart-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .view-all-btn {
        padding: 14px 30px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 250px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .product-price-current {
        font-size: 20px;
    }
}

/* Container Responsive */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 60px;
    }
}


/* ============================================
   NOTIFICATION TOAST
============================================ */
.notification-toast {
    position: fixed;
    top: 100px;
    right: -400px;
    background: white;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    min-width: 300px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
}

.notification-toast.show {
    right: 20px;
}

.notification-toast i {
    font-size: 24px;
}

.notification-toast span {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a2e;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-success i {
    color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-error i {
    color: #dc3545;
}

.notification-warning {
    border-left-color: #ffc107;
}

.notification-warning i {
    color: #ffc107;
}

@media (max-width: 480px) {
    .notification-toast {
        min-width: auto;
        left: 20px;
        right: 20px;
        top: 80px;
    }

    .notification-toast.show {
        right: 20px;
    }
}


/* ============================================
   ALL PRODUCTS PAGE STYLES
============================================ */

/* Page Header */
.page-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
}

.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-nav a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-nav i {
    font-size: 10px;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.filters-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Search Box */
.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Sort Dropdown */
.sort-dropdown {
    margin-left: auto;
}

.sort-select {
    padding: 12px 40px 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    background: white url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23667eea" d="M6 9L1 4h10z"/></svg>') no-repeat right 15px center;
    appearance: none;
}

.sort-select:hover,
.sort-select:focus {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* Results Info */
.results-info {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.wishlist-btn i {
    font-size: 18px;
    color: #667eea;
    transition: all 0.3s ease;
}

.wishlist-btn i.fas {
    color: #f5576c;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 100px 20px;
}

.no-results-icon {
    font-size: 80px;
    color: #e9ecef;
    margin-bottom: 30px;
}

.no-results h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.no-results p {
    font-size: 16px;
    color: #6c757d;
}

/* Pagination Wrapper */
.pagination-wrapper {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper .page-item {
    list-style: none;
}

.pagination-wrapper .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    color: #6c757d;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-link:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.pagination-wrapper .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pagination-wrapper .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE - ALL PRODUCTS PAGE
============================================ */

@media (max-width: 992px) {
    .page-title {
        font-size: 36px;
    }

    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .filter-buttons {
        justify-content: center;
    }

    .sort-dropdown {
        margin-left: 0;
    }

    .sort-select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 60px 0 40px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .filters-section {
        padding: 20px 0;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .wishlist-btn {
        width: 35px;
        height: 35px;
    }

    .wishlist-btn i {
        font-size: 16px;
    }

    .pagination-wrapper .page-link {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }

    .breadcrumb-nav {
        font-size: 12px;
        padding: 8px 20px;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .no-results-icon {
        font-size: 60px;
    }

    .no-results h3 {
        font-size: 22px;
    }
}
