/**
 * SINGLE PRODUCT CSS - DLM CONSEIL
 * Clean rebuild for working single product pages
 */

/* ===== HEADER WIDTH FIX ===== */
/* Fix header width issues on product pages */
.single-product .site-header,
.single-product .main-navigation,
.single-product .hero-section,
.single-product .page-header {
    max-width: 100% !important;
    width: 100% !important;
}

.single-product .container,
.single-product .woocommerce-breadcrumb,
.single-product .entry-header {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* Fix WooCommerce wrapper conflicts */
.woocommerce .single-product-page,
.woocommerce-page .single-product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.woocommerce div.product div.summary,
.woocommerce #content div.product div.summary {
    width: 100% !important;
    float: none !important;
}

/* Ensure responsive behavior */
@media (max-width: 768px) {
    .single-product .container,
    .woocommerce .single-product-page,
    .woocommerce-page .single-product-page {
        padding: 0 1rem !important;
    }
}

/* === RESET & BASE === */
.single-product .site-content {
    background: #f8fafc;
    min-height: 100vh;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === PRODUCT HERO === */
.product-hero {
    background: linear-gradient(135deg, #9e3235 0%, #7a252a 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
    color: white;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
}

.trust-item i {
    color: white;
}

/* === PRODUCT CONTENT === */
.product-content-wrapper {
    background: white;
    margin-top: -30px;
    border-radius: 30px 30px 0 0;
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.product-main {
    padding-right: 20px;
}

.product-sidebar {
    position: sticky;
    top: 30px;
}

/* === PRODUCT IMAGES === */
.product-images {
    margin-bottom: 40px;
    text-align: center;
}

.product-images img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* === PRODUCT DETAILS === */
.product-details {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.product-details h2 {
    color: #1f2937;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.product-details p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* === FEATURES LIST === */
.features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: #9e3235;
    width: 20px;
    font-size: 1.1rem;
}

/* === SUMMARY CARD === */
.summary-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: 2px solid #f3f4f6;
}

.summary-header {
    text-align: center;
    margin-bottom: 25px;
}

.summary-header h3 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.summary-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #9e3235;
    margin-bottom: 5px;
}

.price-note {
    color: #6b7280;
    font-size: 0.9rem;
}

/* === SUMMARY FEATURES === */
.summary-features {
    margin: 25px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.summary-features h4 {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 0.9rem;
}

.feature-item i {
    color: #9e3235;
    width: 16px;
}

/* === PURCHASE SECTION === */
.purchase-section {
    margin-top: 30px;
}

.purchase-section .quantity {
    margin-bottom: 20px;
}

.purchase-section .quantity input {
    width: 60px;
    padding: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.add-to-cart-wrapper {
    margin-bottom: 25px;
}

.single_add_to_cart_button {
    width: 100%;
    background: linear-gradient(135deg, #9e3235 0%, #7a252a 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(158, 50, 53, 0.3);
    color: white;
}

/* === GUARANTEE & SUPPORT === */
.guarantee-section {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    text-align: center;
}

.guarantee-section h4 {
    color: #15803d;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.guarantee-section p {
    color: #166534;
    font-size: 0.9rem;
    margin: 0;
}

.support-contact {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
}

.support-contact h4 {
    color: #1d4ed8;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1e40af;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-item i {
    color: #2563eb;
}

.contact-item a {
    color: #1e40af;
    text-decoration: none;
}

.contact-item a:hover {
    color: #1d4ed8;
}

/* === TABS SECTION === */
.product-tabs {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-top: 40px;
}

.tabs-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f3f4f6;
    flex-wrap: wrap;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    color: #9e3235;
    border-bottom-color: #9e3235;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.tab-content h3 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.tab-content p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 15px;
}

.tab-content ul {
    padding-left: 20px;
    margin: 20px 0;
}

.tab-content ul li {
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* === WOOCOMMERCE OVERRIDES === */
.woocommerce div.product {
    margin: 0;
    padding: 0;
}

.woocommerce div.product .product_title {
    display: none; /* Using custom hero title */
}

.woocommerce div.product p.price {
    display: none; /* Using custom price display */
}

.woocommerce .woocommerce-tabs {
    display: none; /* Using custom tabs */
}

.woocommerce .woocommerce-product-gallery {
    margin: 0;
    padding: 0;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-sidebar {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }

    .product-main {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 15px;
    }

    .product-container {
        padding: 0 15px;
    }

    .product-details,
    .summary-card,
    .product-tabs {
        padding: 25px;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-button {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

    .product-content-wrapper {
        margin-top: -20px;
        border-radius: 20px 20px 0 0;
    }

    .product-hero {
        padding: 40px 0 30px;
    }

    .product-details,
    .summary-card,
    .product-tabs {
        padding: 20px;
    }
}
