/*
Theme Name: Pour-Elle.re Premium
Theme URI: https://pour-elle.re
Author: Eziom
Description: Thème custom ultra-premium pour la marketplace Pour-Elle.re. Intègre le design system Rosy Premium.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pour-elle
*/

:root {
    --p-primary: #ff2d78;
    --p-secondary: #9c27b0;
    --p-accent: #fce4ec;
    --p-bg: #ffffff;
    --p-section-bg: #fff5f8;
    --p-card: #ffffff;
    --p-text: #2d3436;
    --p-text-light: #636e72;
    --p-border: #f1f2f6;
    --p-radius: 20px;
    --p-shadow: 0 10px 30px rgba(255, 45, 120, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--p-text);
    background-color: var(--p-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header & Nav */
header.site-header {
    background: white;
    border-bottom: 2px solid var(--p-section-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--p-primary);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--p-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--p-primary);
}

/* Hero Section */
.hero {
    padding: 120px 0;
    /* Increased padding */
    background: radial-gradient(circle at top right, rgba(255, 45, 120, 0.05) 0%, #ffffff 50%),
        radial-gradient(circle at bottom left, rgba(255, 45, 120, 0.03) 0%, #ffffff 50%),
        linear-gradient(to bottom, #fff5f8 0%, #ffffff 100%);
    /* New background layer */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--p-primary);
    filter: blur(150px);
    opacity: 0.05;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--p-text-light);
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--p-primary);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--p-text-light);
    font-weight: 600;
}

.btn-primary {
    display: inline-block;
    background: var(--p-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 45, 120, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 45, 120, 0.3);
}

/* Goods Plans Grid */
.pe-section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pe-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--p-section-bg);
}

.pe-section-subtitle {
    text-align: center;
    color: var(--p-text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pe-main-section {
    padding: 60px 0;
}

/* Category Grid */
.pe-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.pe-category-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 45, 120, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.pe-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 45, 120, 0.1);
    border-color: rgba(255, 45, 120, 0.2);
}

.pe-category-icon {
    font-size: 2rem;
    color: var(--p-primary);
    margin-bottom: 15px;
    display: block;
}

.pe-category-name {
    font-weight: 700;
    color: var(--p-text);
    font-size: 0.95rem;
}

/* Benefits Section */
.pe-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.pe-benefit-item {
    text-align: center;
    padding: 30px;
}

.pe-benefit-icon {
    width: 70px;
    height: 70px;
    background: #fff5f8;
    color: var(--p-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
}

.pe-benefit-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--p-text);
}

.pe-benefit-desc {
    color: var(--p-text-light);
    line-height: 1.6;
}

/* Partners CTA */
.pe-partners-cta {
    background: #1a1a1a;
    color: white;
    padding: 100px 0;
    border-radius: 40px;
    margin: 80px 0;
    text-align: center;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 45, 120, 0.1) 0%, transparent 40%);
}

.pe-partners-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.pe-partners-cta p {
    color: #a0a0a0;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.btn-white {
    background: white;
    color: #1a1a1a;
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-white:hover {
    background: var(--p-primary);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 45, 120, 0.4);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

.plan-card {
    background: white;
    border-radius: var(--p-radius);
    overflow: hidden;
    border: 1px solid var(--p-border);
    box-shadow: var(--p-shadow);
    transition: all 0.3s;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 45, 120, 0.12);
}

.plan-image {
    height: 200px;
    background-color: #fce4ec;
    position: relative;
}

.plan-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--p-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 2;
}

.pe-no-photo {
    width: 100%;
    height: 200px;
    background: #fff5f8;
    color: #ff2d78;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 20px 20px 0 0;
    flex-direction: column;
    gap: 10px;
}

.pe-no-photo::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    opacity: 0.3;
}

.plan-content {
    padding: 25px;
}

.plan-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-new {
    color: var(--p-primary);
    font-weight: 800;
    font-size: 1.2rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--p-text-light);
    font-size: 0.9rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cat-link {
    text-decoration: none;
    color: var(--p-text-light);
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid var(--p-border);
    transition: all 0.3s;
}

.cat-link:hover,
.cat-link.active {
    background: var(--p-primary);
    color: white;
    border-color: var(--p-primary);
    box-shadow: 0 8px 15px rgba(255, 45, 120, 0.2);
}

/* WooCommerce Customizations */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #fce4ec;
    border-radius: 12px;
    color: #2d3436;
    background-color: #ffffff;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
}

.woocommerce-error {
    background: #fff5f8;
    color: #ff2d78;
    padding: 15px;
    border-radius: 12px;
    border-left: 5px solid #ff2d78;
    font-weight: 500;
}

.woocommerce-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 12px;
    border-left: 5px solid #00b894;
    font-weight: 500;
}

.woocommerce-info {
    background: #ffffff;
    color: #636e72;
    padding: 15px;
    border-radius: 12px;
    border-top: 5px solid #ff2d78;
    /* Updated to match theme primary color */
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.08);
    font-weight: 500;
}

.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
    display: none !important;
}

.woocommerce button.button {
    background: #ff2d78 !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 15px 30px !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
}

.woocommerce a.button {
    background: #ff2d78 !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 15px 30px !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
    text-decoration: none;
    display: inline-block;
}

/* Cart Specific Styling */
.pe-cart-container {
    margin-top: 30px;
    margin-bottom: 50px;
}

.pe-coupon-wrapper {
    display: inline-flex;
    gap: 10px;
    margin-right: 20px;
}

.pe-coupon-wrapper .input-text {
    width: 200px;
    padding: 12px;
    border: 2px solid #fce4ec;
    border-radius: 8px;
    font-family: 'Outfit';
    outline: none;
}

.btn-apply-coupon {
    background: #2d3436 !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    border: none !important;
}

.btn-update-cart {
    background: #fce4ec !important;
    color: #ff2d78 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    border: none !important;
}

.plan-card-btn {
    display: block;
    text-align: center;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* Checkout Styling */
.pe-checkout-fields {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.08);
    display: flex !important;
    flex-direction: column !important;
}

.pe-checkout-fields .col-1,
.pe-checkout-fields .col-2 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 0px;
}

.pe-checkout-fields .col-2 {
    margin-top: 40px;
}


.pe-checkout-order-review {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.08);
}

form.woocommerce-checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Fix for injected 3rd-party gateway buttons (Stripe Link, Apple Pay) taking space in the flex loop */
form.woocommerce-checkout > div:not(.pe-checkout-fields):not(.pe-checkout-order-review) {
    width: 100%;
    flex-basis: 100%;
}

/* Hide Stripe "— OR —" separator for cleaner design */
#wc-stripe-payment-request-wrapper, 
#wc-stripe-express-checkout-button-container #wc-stripe-payment-request-button-separator,
.wc-stripe-auth-separator,
#wc-stripe-express-checkout-separator,
p.wc-stripe-payment-request-button-separator {
    display: none !important;
}

.woocommerce-checkout table.shop_table {
    border-collapse: collapse;
    width: 100%;
}

.woocommerce-checkout table.shop_table th {
    font-weight: 600;
    color: #2d3436;
    padding: 15px 0;
    border-bottom: 2px solid #fce4ec;
}

.woocommerce-checkout table.shop_table td {
    padding: 15px 0;
    border-bottom: 1px solid #fce4ec;
}

#payment {
    background: #fdfdfd;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

#payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

#payment .payment_methods li {
    margin-bottom: 15px;
}

#payment .payment_box {
    background: #fff5f8;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #636e72;
    margin-top: 10px;
    border-left: 5px solid #ff2d78;
}

button#place_order {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    background: #ff2d78 !important;
    color: white !important;
    font-weight: 700;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button#place_order:hover {
    background: #e0005a !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 45, 120, 0.2);
}

/* Thank You Page Styling */
.woocommerce-order {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.08);
    text-align: center;
}

.woocommerce-order ul.woocommerce-order-overview {
    list-style: none;
    padding: 30px;
    background: #fff5f8;
    border-radius: 12px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.woocommerce-order ul.woocommerce-order-overview li {
    font-size: 0.9rem;
    color: #636e72;
    text-align: left;
}

.woocommerce-order ul.woocommerce-order-overview li strong {
    display: block;
    font-size: 1.2rem;
    color: #2d3436;
    margin-top: 5px;
}

.woocommerce-customer-details {
    margin-top: 40px;
    text-align: left;
}

.woocommerce-customer-details address {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f1f2f6;
    font-style: normal;
    line-height: 1.6;
}

/* Fix for cart qty buttons layout */
.woocommerce .quantity .qty {
    width: 80px;
    padding: 10px;
    border: 2px solid #fce4ec;
    border-radius: 8px;
    text-align: center;
    font-family: 'Outfit';
    font-weight: bold;
    color: #ff2d78;
}

/* Remove button adjustments */
.woocommerce a.remove {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff5f8;
    color: #ff2d78 !important;
    text-align: center;
    line-height: 28px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.woocommerce a.remove:hover {
    background: #ff2d78;
    color: white !important;
    text-decoration: none;
}

/* Checkout Order table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th {
    padding: 15px 0;
    text-align: left;
    border-bottom: 2px solid #fce4ec;
    color: #2d3436;
}

.woocommerce-checkout-review-order-table td {
    padding: 15px 0;
    border-bottom: 1px solid #f1f2f6;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    padding-top: 20px;
    border-top: 3px solid #fce4ec;
    font-size: 1.2rem;
    color: #ff2d78;
}

/* Fix for single product layout placeholder */
.pe-product-single {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.pe-product-gallery {
    flex: 1;
    min-width: 300px;
}

.pe-product-gallery img {
    border-radius: 20px;
    width: 100%;
}

.pe-product-summary {
    flex: 1;
    min-width: 300px;
}

.pe-product-title {
    color: #ff2d78;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.pe-product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
}

/* WOOCOMMERCE BLOCKS CATCH-ALL FIXES */
.wc-block-checkout {
    font-family: 'Outfit', sans-serif !important;
}

.wc-block-components-text-input input,
.wc-block-components-combobox-control input,
.wc-block-components-textarea textarea,
.components-text-control__input,
.wc-block-components-radio-control__input {
    border-radius: 12px !important;
    border: 2px solid #fce4ec !important;
    padding: 15px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1rem !important;
    color: #2d3436 !important;
    box-shadow: none !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus {
    border-color: #ff2d78 !important;
    outline: none !important;
}

.wc-block-components-checkout-step__title,
.wc-block-components-title {
    color: #ff2d78 !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
}

.wc-block-components-checkout-place-order-button,
.wc-block-components-button {
    background-color: #ff2d78 !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 18px !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button:hover {
    background-color: #e0005a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(255, 45, 120, 0.2) !important;
}

.wc-block-components-panel__content {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.08) !important;
}

.wc-block-components-notice-banner {
    background: #fff5f8 !important;
    border-left: 5px solid #ff2d78 !important;
    border-radius: 12px !important;
}

.wc-block-components-notice-banner>.wc-block-components-notice-banner__content {
    color: #ff2d78 !important;
}

.wc-block-components-sidebar-layout {
    gap: 40px !important;
}

.wc-block-checkout__sidebar {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.08) !important;
}

/* HIGHER SPECIFICITY FOR WOOCOMMERCE BLOCKS CATCH-ALL FIXES */
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link) {
    background-color: #ff2d78 !important;
    color: white !important;
    border-radius: 12px !important;
}

.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):hover {
    background-color: #e0005a !important;
}

/* WooCommerce Shop / Products Grid Overrides */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
    /* remove floats */
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid #f1f2f6;
    padding-bottom: 20px;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 45, 120, 0.15);
    border-color: #ff2d78;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 20px 20px 0 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff2d78 !important;
    /* Force pink brand color for titles */
    margin: 10px 15px;
    font-family: 'Outfit', sans-serif;
}

.woocommerce ul.products li.product .price {
    color: #ff2d78;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 10px 15px 20px 15px;
}

.woocommerce ul.products li.product .price del {
    color: #636e72;
    font-size: 0.9rem;
    font-weight: 400;
    margin-right: 8px;
}

.woocommerce ul.products li.product .price ins {
    background: transparent;
    font-weight: 800;
    text-decoration: none;
}

.woocommerce span.onsale {
    background: #ff2d78 !important;
    color: white !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    padding: 5px 15px !important;
    top: 15px !important;
    left: 15px !important;
    right: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1.2 !important;
}

.woocommerce ul.products li.product .button {
    display: inline-block !important;
    background: #ff2d78 !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    margin-top: 10px !important;
    text-transform: none !important;
}

.woocommerce ul.products li.product .button:hover {
    background: #e0005a !important;
    color: #fff !important;
}

.woocommerce a.added_to_cart {
    display: block;
    margin-top: 10px;
    color: #ff2d78;
    font-weight: 700;
    font-size: 0.9rem;
}

.woocommerce-products-header__title.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff2d78;
    text-align: center;
    margin-bottom: 30px;
}

.woocommerce-ordering {
    margin-bottom: 30px;
}

/* =========================================================================
   WOOCOMMERCE MY ACCOUNT
   ========================================================================= */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.woocommerce-MyAccount-navigation {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.05);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 8px !important;
    list-style: none !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 20px;
    color: #636e72 !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #fce4ec;
    color: #ff2d78 !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #ff2d78;
    color: #fff !important;
}

.woocommerce-MyAccount-content {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.05);
    min-height: 400px;
}

.woocommerce-MyAccount-content h1,
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    color: #ff2d78;
    font-weight: 800;
    margin-bottom: 25px;
}

.woocommerce-MyAccount-content p {
    line-height: 1.6;
    color: #636e72;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content a:not(.button) {
    color: #ff2d78;
    text-decoration: none;
    font-weight: 600;
}

.woocommerce-MyAccount-content a:not(.button):hover {
    text-decoration: underline;
}

/* Account Forms */
.woocommerce-EditAccountForm fieldset,
.woocommerce-address-fields fieldset {
    border: none;
    padding: 0;
    margin-top: 30px;
}

.woocommerce-EditAccountForm legend,
.woocommerce-address-fields legend {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fce4ec;
    width: 100%;
}

.woocommerce-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3436;
}

.woocommerce-form-row input.input-text {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #fce4ec;
    border-radius: 12px;
    outline: none;
    font-family: 'Outfit';
    transition: all 0.3s;
    background: #fff !important;
}

.woocommerce-form-row input.input-text:focus {
    border-color: #ff2d78;
    box-shadow: 0 0 0 4px rgba(255, 45, 120, 0.1);
}

.woocommerce-MyAccount-content .woocommerce-Button {
    background: #ff2d78 !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 15px 30px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

/* Login / Register */
.woocommerce-account .u-columns.col2-set {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 45, 120, 0.05);
}

.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
    margin-top: 20px;
}

.woocommerce-LostPassword a {
    color: #636e72;
    font-size: 0.9rem;
    text-decoration: none;
}

.woocommerce-LostPassword a:hover {
    color: #ff2d78;
}

/* =========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================= */

@media (max-width: 1100px) {
    .main-nav ul {
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation {
        width: 100%;
        margin-bottom: 30px;
        padding: 10px;
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 5px !important;
    }

    .woocommerce-MyAccount-navigation ul li {
        margin-bottom: 0 !important;
        white-space: nowrap;
    }

    .woocommerce-MyAccount-content {
        padding: 25px;
    }

    .woocommerce-account .u-columns.col2-set {
        flex-direction: column;
        gap: 20px;
    }

    .pe-cockpit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .pe-section-title {
        font-size: 1.8rem;
    }

    .plans-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .main-nav ul {
        gap: 10px;
        flex-wrap: wrap;
    }

    .main-nav a {
        font-size: 0.85rem;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
    }

    .category-filters {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        margin-bottom: 30px;
    }

    .cat-link {
        white-space: nowrap;
        padding: 8px 15px;
    }

    /* Forms & Cards */
    .pe-page-content,
    .pe-card,
    .pe-form-container {
        padding: 20px !important;
    }

    .pe-form-row {
        flex-direction: column;
        gap: 15px;
    }

    /* Checkout & Cart Mobile Optimization */
    .pe-cart-container {
        padding: 20px !important;
        margin-top: 15px;
    }

    .woocommerce table.shop_table_responsive tr td {
        display: block;
        width: 100%;
        text-align: right !important;
        padding: 15px 0 !important;
        border-bottom: 1px dashed var(--p-border);
    }

    .woocommerce table.shop_table_responsive tr td::before {
        content: attr(data-title) ": ";
        float: left;
        font-weight: 700;
        color: var(--p-primary);
    }

    .woocommerce table.shop_table_responsive tr td.product-remove::before,
    .woocommerce table.shop_table_responsive tr td.product-thumbnail::before {
        content: none;
    }

    .woocommerce table.shop_table_responsive tr td.product-remove {
        text-align: left !important;
        border-bottom: none;
        padding-bottom: 0 !important;
    }

    .woocommerce table.shop_table_responsive tr td.product-thumbnail {
        text-align: center !important;
    }

    .woocommerce table.shop_table_responsive tr td.product-thumbnail img {
        margin: 0 auto;
        width: 100px;
    }

    .woocommerce table.shop_table_responsive tr td.actions {
        text-align: center !important;
    }

    .pe-coupon-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .pe-coupon-wrapper .input-text {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .btn-apply-coupon,
    .btn-update-cart {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .cart-collaterals {
        margin-top: 30px;
    }

    .cart-collaterals .cart_totals {
        width: 100% !important;
    }

    .wc-block-components-sidebar-layout {
        flex-direction: column !important;
    }

    .wc-block-checkout__sidebar {
        margin-top: 30px !important;
    }
}

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

    .site-logo {
        font-size: 1.5rem;
    }
}

/* --- Fix placeholder Image Override issues --- */
.plan-image img.attachment-medium {
    position: relative;
    z-index: 1;
    /* Keep actual images below absolute badges */
}

.pe-no-photo {
    position: relative;
    z-index: 1;
    /* Keep placeholder background below badges but above nothing */
}

/* Ensure wooCommerce placeholder in shop loops is hidden if we have our own */
.plan-card .woocommerce-placeholder {
    display: none !important;
}

/* WOOCOMMERCE SINGLE PRODUCT PAGE PREMIUM STYLES */
.pe-product-summary .product_title {
    font-size: 2.5rem;
    color: #2d3436;
    margin: 0 0 15px 0;
    line-height: 1.2;
    font-weight: 900;
}

.pe-product-summary .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--p-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pe-product-summary .price del,
.pe-product-summary .price del span {
    font-size: 1.2rem;
    color: #b2bec3;
    font-weight: 600;
    text-decoration: line-through;
}

.pe-product-summary .price ins,
.pe-product-summary .price ins span {
    text-decoration: none;
    background: transparent;
}

.pe-product-summary form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.pe-product-summary .quantity input.qty {
    width: 70px !important;
    height: 50px !important;
    border-radius: 12px !important;
    border: 2px solid #fce4ec !important;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2d3436;
    font-family: inherit;
    box-shadow: none !important;
}

.pe-product-summary button.single_add_to_cart_button {
    background: var(--p-primary) !important;
    color: white !important;
    border: none !important;
    padding: 0 40px !important;
    height: 50px !important;
    border-radius: 30px !important;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

.pe-product-summary button.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 45, 120, 0.3) !important;
}

/* Express Checkout Wrapper isolation */
#wc-stripe-payment-request-wrapper, 
#wc-stripe-payment-request-button,
#wc-stripe-express-checkout-button-container {
    width: 100% !important;
    margin-top: 5px;
}

/* Product Meta (Categories, Tags) */
.pe-product-summary .product_meta {
    font-size: 0.95rem;
    color: #636e72;
    border-top: 2px solid #fce4ec;
    padding-top: 20px;
    margin-top: 30px;
}

.pe-product-summary .product_meta a {
    color: var(--p-primary);
    text-decoration: none;
    font-weight: 600;
}

/* WOOCOMMERCE TABS (Description, Reviews) */
.pe-product-extra .woocommerce-tabs ul.tabs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #fce4ec;
}

.pe-product-extra .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
}

.pe-product-extra .woocommerce-tabs ul.tabs li::before,
.pe-product-extra .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.pe-product-extra .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    color: #636e72;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: -2px;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.pe-product-extra .woocommerce-tabs ul.tabs li a:hover {
    color: var(--p-primary);
}

.pe-product-extra .woocommerce-tabs ul.tabs li.active a {
    color: var(--p-primary);
    border-bottom-color: var(--p-primary);
}

.pe-product-extra .woocommerce-Tabs-panel {
    padding-top: 30px !important;
    color: #2d3436;
    line-height: 1.6;
    font-size: 1.05rem;
}

.pe-product-extra .woocommerce-Tabs-panel h2 {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 20px;
}

/* WOOCOMMERCE REVIEWS (AVIS) PREMIUM STYLES */
#reviews h2, 
#review_form_wrapper #reply-title {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 20px;
    font-weight: 800;
}

#reviews p.noreviews {
    color: #ff2d78;
    background: #fff5f8;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-weight: 600;
}

#review_form_wrapper {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #fce4ec;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.comment-form-rating {
    margin-bottom: 20px;
}

.comment-form-rating label {
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
    display: block;
}

/* Form inputs & submit */
#commentform textarea,
#commentform input[type="text"],
#commentform input[type="email"] {
    width: 100%;
    border: 2px solid #fce4ec;
    border-radius: 15px;
    padding: 15px;
    font-family: inherit;
    font-size: 1rem;
    color: #2d3436;
    background: #fafafa;
    transition: 0.3s;
    box-shadow: none !important;
    box-sizing: border-box;
    margin-bottom: 20px;
}

#commentform textarea {
    min-height: 120px;
    resize: vertical;
}

#commentform textarea:focus,
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus {
    border-color: var(--p-primary);
    outline: none;
    background: white;
}

#commentform input[type="submit"] {
    background: var(--p-primary);
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 45, 120, 0.2);
    transition: 0.3s;
    margin-top: 10px;
}

#commentform input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 45, 120, 0.3);
}

/* Existing Reviews List */
.commentlist {
    list-style: none !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
}

.commentlist li.comment {
    background: white;
    padding: 25px;
    border-radius: 20px;
    border: 2px solid #fce4ec;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.commentlist li .comment-text {
    margin: 0;
    padding: 0;
    border: none;
}

.commentlist li .star-rating {
    color: var(--p-primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.commentlist li p.meta {
    font-size: 0.95rem;
    color: #b2bec3;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #fce4ec;
}

.commentlist li p.meta strong {
    color: #2d3436;
    font-weight: 800;
    font-size: 1.1rem;
}

.commentlist li .description {
    color: #636e72;
    line-height: 1.6;
}

.commentlist li .avatar {
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- Correctifs responsive mobile --- */
@media (max-width: 768px) {
    /* Garde-fou : empêche tout scroll horizontal parasite sur mobile */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
    /* La grille "Pourquoi nous choisir" reste en 3 colonnes fixes -> 1 colonne sur mobile */
    .pe-benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    /* Les images ne débordent jamais de leur conteneur */
    img {
        max-width: 100%;
        height: auto;
    }
}