/* ============================================
   Modern Shop Page Styles
   ============================================ */

/* Text Shadow Utility */
.text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out;
}

/* Shop Banner Section - Matching Welcome Page */
.shop-banner-section {
    background-color: #f8f9fa;
    margin-bottom: 2rem;
}

.banner-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.banner-item:hover {
    transform: scale(1.01);
}

.shop-hero-bg {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-attachment: fixed;
}

.shop-banner-image {
    height: 500px;
    max-height: 500px;
    object-fit: cover;
    filter: brightness(0.85);
}

.shop-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.shop-hero-content {
    position: relative;
    z-index: 2;
}

.shop-hero-title {
    font-size: 3rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.shop-banner-btn {
    background: #EFB036;
    border-color: #EFB036;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.shop-banner-btn:hover {
    background: #d99f2e;
    border-color: #d99f2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 176, 54, 0.4);
}

/* Shop Hero Section - Fallback */
.shop-hero-section {
    background-color: #f8f9fa;
}

.shop-hero-wrapper {
    position: relative;
}

.shop-products-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.breadcrumb-modern {
    background: transparent;
    padding: 0;
    margin: 0;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Product Controls Modern */
.product-controls-modern {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.shop-products-badge {
    background: #EFB036 !important;
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(239, 176, 54, 0.3);
}

.shop-filter-btn {
    border: 1px solid #e9ecef;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.shop-filter-btn:hover {
    background: #EFB036;
    border-color: #EFB036;
    color: white;
}

.shop-sort-icon {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #EFB036;
    font-size: 0.9rem;
}

.sort-select-wrapper {
    position: relative;
}

.form-select-modern {
    background-color: #ffffff;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    font-size: 0.9rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.form-select-modern:focus {
    background-color: #fff;
    border-color: #EFB036 !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 176, 54, 0.15) !important;
}

.shop-view-toggle {
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.875rem;
    transition: all 0.3s ease;
    color: #6c757d;
    background: white;
}

.shop-view-toggle.active {
    background-color: #EFB036 !important;
    border-color: #EFB036 !important;
    color: white !important;
}

.shop-view-toggle:hover:not(.active) {
    background-color: rgba(239, 176, 54, 0.1);
    border-color: #EFB036;
    color: #EFB036;
}

/* Product Card Modern */
.product-card-modern {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(239, 176, 54, 0.2);
    border-color: #EFB036;
}

/* Product Badge Modern */
.product-badge-modern {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-badge-modern.badge-hot {
    background: #EFB036;
    color: white;
    box-shadow: 0 2px 6px rgba(239, 176, 54, 0.3);
}

/* Product Actions Modern */
.product-actions-modern {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card-modern:hover .product-actions-modern {
    opacity: 1;
    transform: translateX(0);
}

.action-btn-modern {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background: white;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
}

.action-btn-modern:hover {
    background: #EFB036;
    border-color: #EFB036;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(239, 176, 54, 0.3);
}

.action-btn-modern.add-to-wishlist.active {
    background: #EFB036;
    border-color: #EFB036;
    color: white;
}

/* Product Image Modern */
.product-image-modern {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    height: 240px;
}

.product-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-modern:hover .product-image-modern img {
    transform: scale(1.08);
}

/* Product Info Modern */
.product-info-modern {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title-modern {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8rem;
}

.product-title-modern a {
    transition: color 0.3s ease;
}

.product-title-modern a:hover {
    color: #EFB036;
}

/* Product Rating Modern */
.product-rating-modern {
    display: flex;
    align-items: center;
}

.stars-modern i {
    font-size: 0.85rem;
    margin-right: 2px;
}

/* Product Price Modern */
.product-price-modern {
    margin-top: auto;
}

.current-price-modern {
    color: #EFB036;
    letter-spacing: 0.3px;
    font-size: 1.1rem;
}

/* Add to Cart Button Modern */
.add-to-cart-btn-modern {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    border: none;
    background: #EFB036 !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(239, 176, 54, 0.3);
    font-size: 0.9rem;
}

.add-to-cart-btn-modern:hover {
    background: #d99f2e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(239, 176, 54, 0.4);
}

.add-to-cart-btn-modern:active {
    transform: translateY(0);
}

/* Empty State Modern */
.empty-state-modern {
    background: white;
    border-radius: 12px;
    padding: 3rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    margin-top: 2rem;
}

.empty-state-modern h3 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.empty-state-modern .btn {
    background: #EFB036;
    border-color: #EFB036;
    color: white;
}

.empty-state-modern .btn:hover {
    background: #d99f2e;
    border-color: #d99f2e;
}

/* Pagination Modern */
.pagination-modern {
    flex-wrap: wrap;
    margin-top: 2rem;
}

.page-link-modern {
    border: 1px solid #e9ecef;
    border-radius: 8px !important;
    padding: 0.5rem 0.875rem;
    margin: 0 0.25rem;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.page-link-modern:hover {
    background: #EFB036;
    border-color: #EFB036;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 176, 54, 0.3);
}

.page-item.active .page-link-modern {
    background: #EFB036;
    border-color: #EFB036;
    color: white;
    box-shadow: 0 4px 8px rgba(239, 176, 54, 0.3);
}

.page-item.disabled .page-link-modern {
    background: #f8f9fa;
    color: #dee2e6;
    border-color: #e9ecef;
    box-shadow: none;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .shop-hero-bg,
    .shop-banner-image {
        min-height: 400px;
        height: 400px;
        background-attachment: scroll !important;
    }

    .shop-hero-title {
        font-size: 2.5rem !important;
        line-height: 1.3 !important;
    }

    .min-vh-50 {
        min-height: 400px;
        padding: 2.5rem 0 !important;
    }
}

@media (max-width: 768px) {
    .shop-hero-bg,
    .shop-banner-image {
        min-height: 350px;
        height: 350px;
    }

    .shop-hero-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    .min-vh-50 {
        min-height: 350px;
        padding: 2rem 0 !important;
    }

    .shop-products-container {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .product-controls-modern {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .products-count-badge {
        margin-bottom: 0.75rem;
        margin-right: 0 !important;
    }

    .sort-select-wrapper {
        margin-bottom: 0.75rem;
        width: 100%;
    }

    .form-select-modern {
        min-width: 100% !important;
    }

    .product-card-modern {
        margin-bottom: 0.75rem;
    }

    .product-actions-modern {
        opacity: 1;
        transform: translateX(0);
    }

    .product-image-modern {
        height: 220px;
    }

    .product-info-modern {
        padding: 0.875rem;
    }
}

@media (max-width: 576px) {
    .shop-hero-bg,
    .shop-banner-image {
        min-height: 300px;
        height: 300px;
    }

    .shop-hero-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .min-vh-50 {
        min-height: 300px;
        padding: 1.5rem 0 !important;
    }

    .shop-banner-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .shop-products-container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .product-controls-modern {
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .products-count-badge .badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.75rem !important;
    }

    .shop-filter-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .shop-view-toggle {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }

    .product-image-modern {
        height: 200px;
    }

    .product-info-modern {
        padding: 0.75rem;
    }

    .product-title-modern {
        font-size: 0.9rem;
        min-height: 2.4rem;
    }

    .current-price-modern {
        font-size: 1rem;
    }

    .add-to-cart-btn-modern {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 1000px 100%;
}

/* Hover Effects for Links */
a {
    text-decoration: none;
}

/* List View Styles */
.products-grid-modern.list-view .product-card-modern {
    display: flex;
    flex-direction: row;
    margin-bottom: 1.5rem;
}

.products-grid-modern.list-view .product-image-modern {
    width: 250px;
    min-width: 250px;
    height: 200px;
}

.products-grid-modern.list-view .product-info-modern {
    padding: 1.5rem;
}

.products-grid-modern.list-view .product-title-modern {
    font-size: 1.2rem;
    -webkit-line-clamp: 1;
    min-height: auto;
}

.products-grid-modern.list-view .add-to-cart-btn-modern {
    width: auto;
    display: inline-block;
}

@media (max-width: 768px) {
    .products-grid-modern.list-view .product-card-modern {
        flex-direction: column;
    }

    .products-grid-modern.list-view .product-image-modern {
        width: 100%;
        height: 280px;
    }
}

/* Container Improvements */
.container {
    max-width: 1320px;
}

/* Container Alignment */
.shop-products-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
