/* ===============================================
   Product Gallery - Modern Card-Based Design
   =============================================== */

/* Product Container */
.products-container {
    /*padding: 60px 0;*/
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    font-weight: 300;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 60px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 14px 35px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    font-weight: 600;
    color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.filter-tab.active {
    background: linear-gradient(135deg, #EC4F90 0%, #D94C87 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f0 100%);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.15) rotate(2deg);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
}

.badge-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
    color: #fff;
}

/* ===============================================
   SOLD OUT - Ribbon & Effects
   =============================================== */

/* Sold Out Ribbon */
.sold-out-ribbon {
    position: absolute;
    top: 25px;
    left: -35px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 8px 40px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(-45deg);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    z-index: 20;
    animation: ribbonSlide 0.5s ease-out forwards;
}

@keyframes ribbonSlide {
    from {
        opacity: 0;
        transform: rotate(-45deg) translateX(-20px);
    }

    to {
        opacity: 1;
        transform: rotate(-45deg) translateX(0);
    }
}

/* Sold Out Overlay on Image */
.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlayFade 0.4s ease-out forwards;
}

@keyframes overlayFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sold-out-text {
    background: rgba(231, 76, 60, 0.95);
    color: #fff;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 5px;
    border: 2px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Grayscale Effect for Sold Out Products */
.product-card.sold-out .product-image {
    filter: grayscale(70%) brightness(0.9);
    transition: filter 0.4s ease;
}

.product-card.sold-out:hover .product-image {
    filter: grayscale(50%) brightness(0.95);
    transform: scale(1.05);
}

/* Reduced hover effect for sold out */
.product-card.sold-out:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Sold Out Price Styling */
.product-card.sold-out .product-price {
    color: #95a5a6;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Disabled Button for Sold Out */
.product-card.sold-out .btn-view-product {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
}

.product-card.sold-out .btn-view-product:hover {
    transform: none;
    box-shadow: none;
}

/* Sold Out Badge (Alternative to Ribbon) */
.badge-soldout {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 15;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    animation: badgeBounce 0.6s ease-out forwards;
}

@keyframes badgeBounce {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Sold Out Styling */
.modal-soldout-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}


/* Product Info */
.product-info {
    padding: 25px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.product-size {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.product-size i {
    margin-right: 5px;
    color: #3498db;
}

.product-price {
    font-size: 26px;
    font-weight: 700;
    color: #27ae60;
    display: flex;
    align-items: baseline;
}

.currency {
    font-size: 16px;
    margin-right: 4px;
    font-weight: 600;
}

/* View Button */
.btn-view-product {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-view-product:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-view-product i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-view-product:hover i {
    transform: translateX(5px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 40px auto;
    max-width: 600px;
}

.empty-state i {
    font-size: 80px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 16px;
    color: #7f8c8d;
}

/* Loading Skeleton */
.product-skeleton {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.skeleton-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Product Modal */
.product-modal .modal-dialog {
    max-width: 800px;
}

.product-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.product-modal .modal-header {
    border-bottom: 1px solid #ecf0f1;
    padding: 25px 30px;
    background: linear-gradient(135deg, #EC4F90 0%, #D94C87 100%);
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.product-modal .modal-title {
    font-size: 24px;
    font-weight: 700;
}

.product-modal .close {
    color: #fff;
    opacity: 1;
    font-size: 32px;
}

.product-modal .modal-body {
    padding: 40px 30px;
}

.modal-product-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-product-details {
    padding-left: 30px;
}

.modal-product-details h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.detail-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.detail-label {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 500;
}

.detail-value.price {
    font-size: 32px;
    color: #27ae60;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .filter-tabs {
        gap: 15px;
    }

    .modal-product-details {
        padding-left: 0;
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .product-title {
        font-size: 18px;
        min-height: 45px;
    }

    .filter-tab {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .products-container {
        padding: 40px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-title {
        font-size: 28px;
    }

    .filter-tabs {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }

    .filter-tab {
        width: 100%;
        text-align: center;
    }

    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Page Banner */
.products-banner {
    background: linear-gradient(135deg, #EC4F90 0%, #D94C87 100%);
    padding: 10px 0;
    text-align: center;
    color: #fff;
    /* margin-bottom: 60px; */
}

.products-banner h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.products-banner p {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .products-banner {
        padding: 50px 20px;
    }

    .products-banner h1 {
        font-size: 32px;
    }

    .products-banner p {
        font-size: 16px;
    }
}