/* Single Product Page Custom CSS - Redesigned */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
}

.product-container {
    padding-top: 30px;
    padding-bottom: 60px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 700;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.1rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.9rem;
}

/* Breadcumb & Title Section */
.product-header {
    margin-bottom: 2rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-meta-badges .badge {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5em 1em;
}

/* Main Layout */
.product-gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.main-image-container {
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 450px;
    padding: 10px;
}

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

/* Tabbed Content */
.product-content-tabs .nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.product-content-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
    margin-bottom: -2px;
}

.product-content-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.tab-content {
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.spec-table th {
    width: 30%;
    background-color: var(--bg-light);
    font-weight: 600;
}

/* Sidebar Styling */
.sidebar-sticky {
    position: sticky;
    top: 90px;
    /* Adjust based on navbar height */
    z-index: 99;
}

.price-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.price-tag {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.seller-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.contact-btn {
    width: 100%;
    padding: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    color: white;
}

.safety-card {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 12px;
    padding: 1rem;
}

/* Mobile Bottom Bar (Optional, for now handled by stacking) */
@media (max-width: 991px) {
    .product-title {
        font-size: 1.75rem;
    }

    .main-image-container {
        min-height: 300px;
    }
}

/* Force smaller headings in body content */
.long-desc-content h1,
.long-desc-content h2 {
    font-size: 1.15rem !important;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.long-desc-content h3 {
    font-size: 1.1rem !important;
    font-weight: 700;
}

.long-desc-content h4,
.long-desc-content h5,
.long-desc-content h6 {
    font-size: 1rem !important;
    font-weight: 600;
}
