/* ============================================
   PRODUCT PAGE SPECIFIC STYLES
   ============================================ */

.product-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.product-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.back-button:hover {
    background: #e5e7eb;
    transform: translateX(-4px);
}

.merchant-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.merchant-link-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ============================================
   PRODUCT GALLERY
   ============================================ */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: #3b82f6;
}

.thumbnail.active {
    border-color: #3b82f6;
}

/* ============================================
   PRODUCT INFO
   ============================================ */
.product-info-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.badge-category {
    background: #e0e7ff;
    color: #3730a3;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.product-short-desc {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ============================================
   PRICING
   ============================================ */
.price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.compare-price {
    font-size: 1.25rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.discount-badge {
    padding: 0.25rem 0.75rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   STOCK INFO
   ============================================ */
.stock-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.in-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 600;
}

.out-of-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc2626;
    font-weight: 600;
}

.sku {
    color: #6b7280;
    font-size: 0.875rem;
}

/* ============================================
   PRODUCT DETAILS
   ============================================ */
.product-description,
.product-specifications,
.contact-seller {
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.product-description h3,
.product-specifications h3,
.contact-seller h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.product-description p {
    color: #4b5563;
    line-height: 1.7;
}

.product-specifications dl {
    display: grid;
    gap: 0.75rem;
}

.spec-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

.spec-item dt {
    font-weight: 600;
    color: #374151;
}

.spec-item dd {
    color: #6b7280;
    margin: 0;
}

/* ============================================
   CONTACT BUTTONS
   ============================================ */
.contact-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .product-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .back-button,
    .merchant-link-btn {
        justify-content: center;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .spec-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }
}