/* public/assets/css/product-details.css - Modern Product Details Styling for New Family Health Care */

:root {
    --brand-primary: #0B391C;
    --brand-primary-light: #16562d;
    --brand-primary-dark: #062311;
    --brand-accent: #22c55e;
    --brand-gold: #eab308;
    --brand-bg-soft: #f4f8f5;
    --brand-card-bg: #ffffff;
    --brand-border: #e2e8f0;
    --brand-text-dark: #1e293b;
    --brand-text-muted: #64748b;
    --brand-whatsapp: #25d366;
    --brand-whatsapp-dark: #128c7e;
    --brand-shadow: 0 10px 30px -5px rgba(11, 57, 28, 0.08);
    --brand-shadow-hover: 0 20px 40px -10px rgba(11, 57, 28, 0.15);
}

/* Breadcrumbs */
.product-breadcrumb-section {
    background: #f8faf9;
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem 0;
}

.product-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--brand-text-muted);
}

.product-breadcrumbs a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.product-breadcrumbs a:hover {
    color: var(--brand-primary-light);
    text-decoration: underline;
}

.product-breadcrumbs .separator {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.product-breadcrumbs .current {
    color: var(--brand-text-dark);
    font-weight: 600;
}

/* Product Detail Main Section */
.product-detail-section {
    padding: 3rem 0 4.5rem;
    background: #ffffff;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* Left: Gallery & Trust */
.product-gallery-wrapper {
    position: sticky;
    top: 100px;
}

.product-main-showcase {
    position: relative;
    background: linear-gradient(135deg, #f8fbf9 0%, #edf5f0 100%);
    border-radius: 24px;
    border: 1px solid #e2ece5;
    padding: 2.5rem;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--brand-shadow);
    transition: all 0.3s ease;
}

.product-main-showcase:hover {
    box-shadow: var(--brand-shadow-hover);
}

.showcase-badge-pill {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: linear-gradient(135deg, #0B391C 0%, #16562d 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(11, 57, 28, 0.25);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.showcase-badge-pill i {
    font-size: 0.75rem;
    color: #4ade80;
}

.product-showcase-img {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.08));
}

.product-main-showcase:hover .product-showcase-img {
    transform: scale(1.04);
}

/* Trust Badges Strip */
.product-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.trust-item {
    background: #f8faf9;
    border: 1px solid #e7eee9;
    border-radius: 14px;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.trust-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(11, 57, 28, 0.1);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.trust-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-primary-dark);
    margin-bottom: 0.2rem;
}

.trust-sub {
    font-size: 0.72rem;
    color: var(--brand-text-muted);
}

/* Right: Product Info */
.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
    background: rgba(11, 57, 28, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}

.category-pill {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-text-muted);
    background: #f1f5f9;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}

.product-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
}

.product-quantity-tag {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    padding: 0.35rem 0.9rem;
    border-radius: 8px;
    width: fit-content;
}

/* Ratings */
.product-rating-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.product-rating-box .stars-gold,
.product-rating-box .rating-score,
.product-rating-box .review-count {
    display: none !important;
}

.review-count {
    color: var(--brand-text-muted);
    font-size: 0.88rem;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    margin-left: auto;
}

.stock-status.in-stock::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

/* Pricing Card Box */
.product-pricing-box {
    background: #f8fbf9;
    border: 1px solid #e1eee5;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.price-main {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: -0.02em;
}

.price-original {
    font-size: 1.25rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.discount-pill {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tax-badge {
    width: 100%;
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Short Description */
.product-short-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

/* Quantity & Action CTA */
.product-purchase-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.qty-control-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.qty-btn {
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #f1f5f9;
}

.qty-input {
    width: 50px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    background: transparent;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cta-actions-group {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
}

.btn-detail-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-detail-whatsapp:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #0e7266 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

.btn-detail-cart {
    background: var(--brand-primary);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(11, 57, 28, 0.2);
    transition: all 0.25s ease;
}

.btn-detail-cart:hover {
    background: var(--brand-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(11, 57, 28, 0.3);
    color: #ffffff;
}

.btn-detail-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f8faf9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-detail-call:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

/* Tabs & Structured Content */
.product-details-tabs-section {
    background: #f8faf9;
    border-top: 1px solid #e9ecef;
    padding: 3.5rem 0;
}

.tab-container {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2ece5;
    box-shadow: var(--brand-shadow);
    padding: 2.5rem;
}

.tab-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #edf2f7;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #64748b;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.tab-btn:hover {
    color: var(--brand-primary);
}

.tab-btn.active {
    color: var(--brand-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 3px 3px 0 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Key Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.benefit-card {
    background: #f8faf9;
    border: 1px solid #e7eee9;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
}

/* Ingredients Chips */
.ingredients-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ingredient-chip {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredient-chip i {
    color: #10b981;
}

/* How to use card */
.how-to-use-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ec 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.how-to-use-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.how-to-use-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-primary-dark);
}

.how-to-use-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #1e293b;
}

/* Claims List */
.claims-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.claim-tag {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.claim-tag i {
    color: var(--brand-primary);
}

/* Related Products Section */
.related-products-section {
    padding: 4rem 0;
    background: #ffffff;
}

.related-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.related-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin: 0 0 0.5rem;
}

.related-subtitle {
    color: var(--brand-text-muted);
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-gallery-wrapper {
        position: static;
    }

    .product-hero-title {
        font-size: 1.8rem;
    }

    .price-main {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .cta-actions-group {
        grid-template-columns: 1fr;
    }

    .product-trust-strip {
        grid-template-columns: 1fr;
    }

    .product-main-showcase {
        padding: 1.5rem;
    }

    .product-showcase-img {
        max-height: 320px;
    }
}
