/* ============================================
   Modern Categories Page Styles
   ============================================ */

/* Text Shadow Utilities */
.text-shadow-strong {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

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

.category-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;
}

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

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

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

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

/* Category Hero Section - Fallback */
.category-hero-section {
    background-color: #f8f9fa;
    margin-bottom: 2rem;
}

.categories-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Section Badge */
.category-section-badge {
    background: #EFB036 !important;
    color: white !important;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(239, 176, 54, 0.3);
}

.category-section-title {
    font-size: 2.25rem;
    color: #2c3e50;
}

/* Section Header Modern */
.section-header-modern {
    margin-bottom: 2rem;
}

/* Category Card Modern */
.category-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;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    border: 1px solid #e9ecef;
}

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

/* Category Image Wrapper */
.category-image-wrapper-modern {
    height: 220px;
    position: relative;
}

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

.category-card-modern:hover .category-image-modern {
    transform: scale(1.1);
}

/* Category Gradients (for cards without images) */
.category-gradient-modern {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.category-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-gradient-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.category-gradient-6 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.category-icon-modern {
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.category-card-modern:hover .category-icon-modern {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
}

/* Category Overlay */
.category-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card-modern:hover .category-overlay-gradient {
    opacity: 1;
}

.category-name-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.category-card-modern:hover .category-name-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Category Content Modern */
.category-content-modern {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-title-modern {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-card-modern:hover .category-title-modern {
    color: #EFB036;
}

.category-description-modern {
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

/* Category Footer Modern */
.category-footer-modern {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.category-count-modern {
    font-size: 0.85rem;
}

.category-count-modern i {
    color: #EFB036;
}

/* Explore Button Modern */
.btn-explore-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #EFB036;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(239, 176, 54, 0.3);
}

.btn-explore-modern:hover {
    background: #d99f2e;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(239, 176, 54, 0.4);
}

.btn-explore-modern i {
    transition: transform 0.3s ease;
}

.btn-explore-modern:hover i {
    transform: translateX(3px);
}

/* 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 .btn {
    background: #EFB036;
    border-color: #EFB036;
    color: white;
}

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

.empty-icon-wrapper {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Featured Products Modern Section */
.featured-products-modern {
    background: #f8f9fa;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.category-view-all-btn {
    background: #EFB036;
    border-color: #EFB036;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(239, 176, 54, 0.3);
}

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

/* Product Card Featured */
.product-card-featured {
    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;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    border: 1px solid #e9ecef;
}

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

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

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

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

/* Product Actions Featured */
.product-actions-featured {
    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-featured:hover .product-actions-featured {
    opacity: 1;
    transform: translateX(0);
}

.action-btn-featured {
    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-featured: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-featured.add-to-wishlist:hover {
    background: #EFB036;
    border-color: #EFB036;
}

/* Product Image Featured */
.product-image-featured {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    height: 220px;
}

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

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

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

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

.product-category-featured {
    margin-bottom: 0.5rem;
}

.product-category-featured .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

.product-title-featured {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.product-title-featured a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.product-rating-featured {
    font-size: 0.85rem;
}

.product-rating-featured i {
    font-size: 0.8rem;
}

.product-price-featured {
    margin-top: auto;
}

.product-price-featured .current-price {
    color: #EFB036;
    font-size: 1.1rem;
}

.product-stock-featured {
    margin-top: 0.5rem;
}

.product-stock-featured .badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

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

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

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

    .category-image-wrapper-modern {
        height: 200px;
    }

    .category-section-title {
        font-size: 2rem;
    }
}

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

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

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

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

    .section-header-modern {
        margin-bottom: 1.5rem;
    }

    .category-card-modern {
        margin-bottom: 1rem;
    }

    .category-image-wrapper-modern {
        height: 180px;
    }

    .category-content-modern {
        padding: 0.875rem;
    }

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

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

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

    .empty-state-modern {
        padding: 2rem 1.25rem;
    }

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

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

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

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

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

    .section-header-modern {
        margin-bottom: 1.25rem;
    }

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

    .category-section-title {
        font-size: 1.75rem !important;
    }

    .category-image-wrapper-modern {
        height: 160px;
    }

    .category-content-modern {
        padding: 0.75rem;
    }

    .category-title-modern {
        font-size: 1rem;
    }

    .category-description-modern {
        font-size: 0.85rem;
    }

    .btn-explore-modern {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }

    .product-image-featured {
        height: 180px;
    }

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

    .product-title-featured {
        font-size: 0.9rem;
    }

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

    .category-view-all-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

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

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

/* Bootstrap badge subtle variants */
.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}
