/* ===== COMPACT PRODUCT DETAIL PAGE STYLES ===== */
/* Professional e-commerce layout - similar to MUD\WTR, Bulletproof */

/* Remove excessive spacing */
.product-detail-page .product-section {
    padding: 2rem 0;
}

/* Compact Breadcrumb */
.breadcrumb-section {
    background: #fff;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
}

/* MAIN PRODUCT SECTION - Side by Side Layout */
.product-main-section {
    padding: 2rem 0;
    background: #fff;
    margin-top: 110px; /* Push content below sticky header */
}

/* Product Details Section - Two Column Layout */
.product-details-section {
    padding: 3rem 0;
    background: #fff;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.details-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.detail-section {
    background: #fff;
}

.detail-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #223e29;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ff6b35;
}

.detail-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 1rem 0;
}

.detail-section p:last-child {
    margin-bottom: 0;
}

.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Column - Product Image */
.product-image-column {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-main-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


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

.product-category-compact {
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-title-compact {
    font-size: 2rem;
    font-weight: 700;
    color: #223e29;
    margin: 0;
    line-height: 1.2;
}

.product-rating-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.product-rating-compact .stars {
    color: #ffa500;
}

.product-price-compact {
    font-size: 2rem;
    font-weight: 700;
    color: #223e29;
}

.product-description-compact {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.product-features-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #333;
}

.feature-badge i {
    color: #ff6b35;
}

/* Buy Section */
.product-buy-section-compact {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f8f9fa;
}



.product-meta-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.meta-item-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item-compact i {
    color: #ff6b35;
}

/* Responsive adjustments for product details grid */
@media (max-width: 768px) {
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .details-column {
        gap: 2rem;
    }

    .detail-section h2 {
        font-size: 1.25rem;
    }
}

/* Benefits Grid - Compact */
.benefits-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.benefit-item-compact {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.benefit-icon-compact {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.benefit-content-compact h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #223e29;
}

.benefit-content-compact p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Ingredients List - Compact */
.ingredients-list-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.ingredient-item-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.ingredient-icon-compact {
    font-size: 1.5rem;
}

.ingredient-info-compact h5 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: #223e29;
}

.ingredient-info-compact p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

/* Nutrition Facts - Compact */
.nutrition-facts-compact {
    max-width: 500px;
    margin: 1.5rem 0;
    background: white;
    border: 2px solid #223e29;
    border-radius: 8px;
    padding: 1.5rem;
}

.nutrition-header-compact {
    border-bottom: 6px solid #223e29;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.nutrition-header-compact h3 {
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0 0 0.25rem 0;
}

.nutrition-header-compact .serving-size {
    font-size: 0.9rem;
}

.nutrition-facts-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nutrition-row-compact {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

.nutrition-row-compact:last-child {
    border-bottom: none;
}

.nutrition-row-compact .nutrient {
    font-weight: 600;
}

.nutrition-row-compact .value {
    font-weight: 700;
}

/* Usage Steps - Compact */
.usage-steps-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.usage-step-compact {
    display: flex;
    gap: 1rem;
}

.step-number-compact {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content-compact h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.step-content-compact p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Related Products - Compact */
.related-products-compact {
    background: #f8f9fa;
    padding: 2rem 0;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.related-product-card-compact {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-product-card-compact:hover {
    transform: translateY(-4px);
}

.related-product-image-compact {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.related-product-info-compact {
    padding: 1rem;
}

.related-product-info-compact h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.related-product-info-compact .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #223e29;
    margin-bottom: 0.75rem;
}

.related-product-info-compact .btn-view {
    display: block;
    width: 100%;
    padding: 0.6rem;
    background: #ff6b35;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.related-product-info-compact .btn-view:hover {
    background: #e55a2b;
}

/* Trust Badges */
.trust-badges-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-badge-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.trust-badge-icon i {
    font-size: 24px;
    color: #ff6b35;
}

.trust-badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Social Proof Bar */
.social-proof-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    background: #fff5f2;
    border-radius: 8px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #333;
}

.proof-item i {
    color: #ff6b35;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
}

.faq-question {
    padding: 1.25rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #ff6b35;
    font-weight: 400;
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.25rem;
}

.faq-answer-content {
    padding: 1rem 0;
    color: #666;
    line-height: 1.6;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-notification-content i {
    color: #4CAF50;
    font-size: 1.5rem;
}

.cart-notification-content span {
    font-weight: 600;
    color: #223e29;
}

/* New cart notification structure (matches JS markup) */

.cart-notification .success-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eaf7ee;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.cart-notification .success-indicator i {
    font-size: 1.25rem;
    color: #22c55e;
}

.cart-notification .notification-body {
    margin: 0.25rem 0 0.75rem 0;
}

.cart-notification .notification-headline {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f3b27;
}

.cart-notification .notification-description {
    margin: 0 0 0.75rem 0;
    color: #555;
    line-height: 1.5;
}

.cart-notification .notification-footer {
    display: flex;
    gap: 0.5rem;
}

.cart-notification .action-button {
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    background: #e9ecef;
    color: #223e29;
}

.cart-notification .action-button:hover {
    filter: brightness(0.98);
}

.cart-notification .action-button-outline {
    background: #ffffff;
    border-color: #d1d5db;
    color: #223e29;
}

.cart-notification .action-button-outline:hover {
    background: #f5f6f7;
}

.cart-notification .action-button-primary {
    background: #22c55e;
    color: #ffffff;
    border-color: #16a34a;
}

.cart-notification .action-button-primary:hover {
    background: #1fb155;
}

.btn-checkout-now,
.btn-continue {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-checkout-now {
    background: #4CAF50;
    color: white;
}

.btn-checkout-now:hover {
    background: #45a049;
}

.btn-continue {
    background: #e9ecef;
    color: #223e29;
}

.btn-continue:hover {
    background: #dee2e6;
}


/* Custom Add to Cart Button */
.custom-add-to-cart-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: #2d5a27;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.2);
}

.custom-add-to-cart-btn:hover {
    background: #3d7a37;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 90, 39, 0.3);
}

.custom-add-to-cart-btn:active {
    transform: translateY(0);
}

.custom-add-to-cart-btn i {
    font-size: 1.2rem;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: #2d5a27;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.2);
}

.add-to-cart-btn:hover {
    background: #3d7a37;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 90, 39, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn i {
    font-size: 1.2rem;
}

/* Cart system handled by existing cartManager - no additional styles needed */

/* Sticky Mobile Cart */
.sticky-cart-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
}

.sticky-cart-mobile.visible {
    display: block;
}

.sticky-cart-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sticky-cart-info {
    flex: 1;
}

.sticky-cart-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.sticky-cart-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #223e29;
}

.sticky-cart-button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.sticky-cart-button:hover {
    background: #e55a2b;
}

/* Responsive */
@media (max-width: 968px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-image-column {
        position: relative;
        top: 0;
    }
    
    .benefits-grid-compact,
    .ingredients-list-compact,
    .usage-steps-compact {
        grid-template-columns: 1fr;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-badges-row {
        gap: 1rem;
    }
    
    .social-proof-bar {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .details-column {
        gap: 2rem;
    }

    .detail-section h2 {
        font-size: 1.25rem;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges-row {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .trust-badge-icon {
        width: 40px;
        height: 40px;
    }

    .trust-badge-icon i {
        font-size: 20px;
    }

    .social-proof-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
}

