﻿/* =========================================================
   SUNSHINE ENERGY - Silky Premium Product Page Styles
   ========================================================= */

/* ---------- BACKGROUND ---------- */
.bg-light-soft {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ---------- HERO HEADER ---------- */
.page-header-sunshine {
    background: linear-gradient(135deg, #071a10 0%, #0e3521 40%, #1a5230 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #FFD700;
}

    .page-header-sunshine::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
        border-radius: 50%;
        animation: floatOrb 8s ease-in-out infinite;
    }

    .page-header-sunshine::after {
        content: '';
        position: absolute;
        bottom: -50%;
        left: -10%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(255, 140, 0, 0.12), transparent 70%);
        border-radius: 50%;
        animation: floatOrb 10s ease-in-out infinite reverse;
    }

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.05);
    }
}

.text-gold {
    color: #FFD700 !important;
}

.text-gold-light {
    color: #FFE57F !important;
}

/* ---------- SECTION TAGS ---------- */
.section-tag-sunshine {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
    color: #0e3521;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.golden-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FF8C00);
    border-radius: 2px;
    margin-top: 1.5rem;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ---------- CATEGORY PILLS ---------- */
.category-pills-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    white-space: nowrap;
}

    .category-pill i {
        color: #F9A826;
        transition: all 0.3s ease;
    }

    .category-pill:hover {
        border-color: rgba(255, 215, 0, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.15);
        color: #071a10;
    }

        .category-pill:hover i {
            transform: scale(1.15);
            color: #FFD700;
        }

    .category-pill.active {
        background: linear-gradient(135deg, #FFD700, #FF8C00);
        color: #071a10;
        border-color: transparent;
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.35);
        transform: translateY(-2px);
    }

        .category-pill.active i {
            color: #071a10;
        }

/* ---------- PRODUCT CARD ---------- */
.product-card-sunshine {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

    .product-card-sunshine:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(249, 168, 38, 0.15), 0 5px 15px rgba(0,0,0,0.05);
        border-color: rgba(255, 215, 0, 0.3);
    }

.product-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #ffffff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f3f5;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-sunshine:hover .product-img {
    transform: scale(1.08);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

    .product-badge.premium {
        background: linear-gradient(135deg, #FFD700, #F9A826);
        color: #071a10;
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
        left: auto;
        right: 15px;
    }

    .product-badge.out-of-stock {
        background: #dc3545;
        color: #fff;
        top: auto;
        bottom: 15px;
        left: 15px;
    }

/* Product Info */
.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.product-card-sunshine:hover .product-name {
    color: #0e3521;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: #198754; /* Success Green */
    margin-bottom: 0.75rem;
}

.product-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e9ecef;
}

    .product-specs span {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 4px 10px;
        background: #f8f9fa;
        border-radius: 6px;
        font-size: 0.75rem;
        color: #495057;
        font-weight: 600;
        border: 1px solid #e9ecef;
    }

    .product-specs i {
        color: #F9A826;
        font-size: 0.7rem;
    }

.product-stock-info {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.in-stock {
    color: #198754;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.out-of-stock-text {
    color: #dc3545;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Actions */
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-add-cart {
    flex: 1;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #071a10, #0e3521);
    color: #FFD700;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .btn-add-cart:hover:not(.disabled) {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #FFD700, #F9A826);
        color: #071a10;
        box-shadow: 0 8px 20px rgba(249, 168, 38, 0.4);
    }

    .btn-add-cart.disabled {
        background: #e9ecef;
        color: #6c757d;
        cursor: not-allowed;
    }

.btn-quick-view, .btn-wishlist {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-quick-view:hover {
        background: #f8f9fa;
        color: #0d6efd;
        border-color: #0d6efd;
        transform: translateY(-2px);
    }

    .btn-wishlist:hover {
        background: #f8f9fa;
        color: #dc3545;
        border-color: #dc3545;
        transform: translateY(-2px);
    }

/* ---------- PREMIUM MODAL ---------- */
.premium-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

    .premium-modal .modal-header {
        background: linear-gradient(135deg, #071a10, #0e3521);
        color: #fff;
        border: none;
        padding: 1.25rem 1.5rem;
    }

    .premium-modal .modal-title {
        font-weight: 700;
        font-size: 1.2rem;
    }

    .premium-modal .btn-close {
        filter: invert(1);
        opacity: 0.8;
    }

    .premium-modal .modal-body {
        padding: 2rem;
    }

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

    .feature-list li {
        padding: 0.4rem 0;
        color: #495057;
        font-size: 0.9rem;
        display: flex;
        align-items: flex-start;
    }

    .feature-list i {
        margin-top: 0.2rem;
        flex-shrink: 0;
        color: #198754;
    }

.specifications-modal ul li {
    padding: 0.4rem 0;
    color: #495057;
}

.text-gold {
    color: #FFD700 !important;
    font-weight: 800;
}

.premium-modal .modal-footer {
    border: none;
    padding: 1rem 1.5rem 1.5rem;
    background: #fafbff;
}

.btn-add-cart-modal {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #071a10, #0e3521);
    color: #FFD700;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-add-cart-modal:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #FFD700, #F9A826);
        color: #071a10;
        box-shadow: 0 8px 20px rgba(249, 168, 38, 0.4);
    }

/* ---------- EMPTY STATE ---------- */
.empty-state {
    padding: 4rem 2rem;
}

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #F9A826;
    border: 1px dashed rgba(249, 168, 38, 0.4);
}

.empty-state h3 {
    color: #071a10;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
    .category-pill {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }

        .category-pill i {
            font-size: 0.85rem;
        }

    .product-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .category-pills-top {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .category-pills-top::-webkit-scrollbar {
            display: none;
        }

    .category-pill {
        flex-shrink: 0;
    }

    .product-price {
        font-size: 1.35rem;
    }

    .btn-quick-view, .btn-wishlist {
        width: 40px;
        height: 40px;
    }
}
