/**
 * PURCHASE.CSS - Shop Page Styles (Condensed)
 */

/* Page Wrapper - Override dark body background */
.purchase-page {
    background: white;
    margin-top: -60px;
    padding-top: 60px;
}

/* Hero Section */
.shop-hero {
    padding: 80px 5% 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.shop-hero.empty {
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Image */
.hero-image {
    position: sticky;
    top: 100px;
}

.hero-image .image-wrapper {
    background: #f5f5f7;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Hero Content */
.hero-content {
    padding: 20px 0;
    text-align: left;
}

.hero-content .badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: #1c1824;
    margin: 0 0 10px;
    line-height: 1.15;
    font-weight: 800;
    text-align: left;
}

/* Rating Row - below title */
.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: flex-start;
}

.rating-row .stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: -1px;
}

.rating-row .rating-text {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.product-tagline {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
    margin: 0 0 15px;
    text-align: left;
}

.product-description {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 25px;
    text-align: left;
}

/* Product Highlights */
.product-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.product-highlights li {
    padding: 8px 0;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-highlights li::before {
    content: "✓";
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Price Section */
.price-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.price-row .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1c1824;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #dcfce7;
    color: #16a34a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.stock-status {
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-status.in-stock {
    color: #16a34a;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.btn-cart.primary {
    flex: 1;
    padding: 18px 35px;
    background: linear-gradient(135deg, #1c1824 0%, #2d2a36 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-cart.primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.action-buttons .btn-secondary {
    padding: 18px 25px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.action-buttons .btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    display: block;
    color: #1c1824;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.trust-text {
    color: #666;
    font-size: 0.8rem;
}

/* Benefits Bar */
.benefits-bar {
    background: #f8f9fa;
    padding: 40px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.benefit-text strong {
    display: block;
    color: #1c1824;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.benefit-text p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* Products Section */
.products-section {
    padding: 80px 5%;
    background: #f8f9fa;
    text-align: center;
}

.products-section h2 {
    font-size: 2rem;
    color: #1c1824;
    margin-bottom: 50px;
}

.products-section.empty {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.products-section.empty p {
    color: #666;
    font-size: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    background: #f5f5f7;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stock-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #059669;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 1.2rem;
    color: #1c1824;
    margin-bottom: 8px;
}

.product-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.product-footer .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1c1824;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn-view {
    padding: 10px 16px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view:hover {
    background: #667eea;
    color: #fff;
}

.btn-add {
    padding: 10px 16px;
    background: #1c1824;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btn-add:hover {
    background: #667eea;
}

/* Cart Popup */
.cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.cart-popup.show {
    display: flex;
}

.popup-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-icon {
    font-size: 2rem;
    color: #059669;
    margin-bottom: 15px;
    display: block;
    font-weight: 700;
}

.popup-box h3 {
    font-size: 1.4rem;
    color: #1c1824;
    margin-bottom: 8px;
}

.popup-box p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.popup-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: #1c1824;
    color: white;
}

.btn-primary:hover {
    background: #667eea;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* FAQ Section */
.faq-section {
    padding: 60px 5%;
    background: #fff;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1c1824;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.faq-item h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #1c1824;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }

    .hero-image {
        order: -1;
        position: relative;
        top: auto;
    }

    .hero-image .image-wrapper {
        padding: 30px;
        min-height: auto;
    }

    .hero-image img {
        max-width: 280px;
    }

    .hero-content {
        padding: 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
        text-align: center;
    }

    .rating-row {
        justify-content: center;
    }

    .product-tagline,
    .product-description {
        text-align: center;
    }

    .product-highlights {
        display: inline-block;
        text-align: left;
    }

    .price-section {
        text-align: center;
    }

    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-cart,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 30px 15px;
    }

    .hero-image .image-wrapper {
        padding: 20px;
    }

    .hero-image img {
        max-width: 220px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .price-section .price {
        font-size: 2rem;
    }

    .benefits-bar {
        padding: 30px 15px;
    }

    .benefits-bar .benefit-item {
        font-size: 0.85rem;
    }
}