/* Masquer le header et le footer sur la page du slider */
.page-template-default .site-header,
.page-template-default .site-footer {
    display: none !important;
}

/* Ajuster le contenu principal */
.page-template-default .site-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh;
}

.page-template-default .content-area {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

#primary.content-area {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
}

/* Structure principale */
.pss-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* Header */
.pss-header {
    background: #fff;
    padding: 0px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.pss-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.pss-customer-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.pss-cart-button {
    background: #fff;
    color: #C9AF50;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 2px solid #C9AF50;
    text-transform: uppercase;
}

.pss-cart-button:hover {
    background: #C9AF50;
    color: #fff;
    border-color: #C9AF50;
}

/* Ajuster le conteneur du slider */
.pss-slider-container {
    flex: 1;
    position: relative;
    padding: 0 120px;
    margin-top: 50px;
    overflow: visible;
    min-height: calc(100vh - 50px);
}

.pss-product-slider {
    height: auto;
    position: relative;
    overflow: visible;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pss-product-card {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
    margin: 0;
    padding: 20px;
    padding-left: 78px !important;
    padding-right: 78px !important;
}

.pss-product-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.pss-main-image {
    width: 100% !important;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.pss-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none !important;
    transition: none !important;
    -webkit-transform: none !important;
    -webkit-transition: none !important;
}

.pss-gallery {
    display: flex !important;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding: 15px;
    justify-content: flex-start !important;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.pss-gallery::before,
.pss-gallery::after {
    content: '';
    flex: 0 0 15px;
}

.pss-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.pss-gallery img:hover,
.pss-gallery img.active,
.pss-gallery img.gallery-thumbnail.active {
    border-color: #C9AF50 !important;
}

.pss-product-info {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pss-product-header {
    margin-bottom: 0px!important;
}

.pss-product-title {
    font-size: 28px;
    font-weight: normal !important;
    margin: 0 0 0px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-height: 2.4em;
}

.pss-product-reference{margin-bottom: 15px;}

.pss-product-price {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pss-price-label {
    color: #C9AF50;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 5px;
}

.pss-product-price .price,
.pss-product-price .price span,
.pss-product-price .price ins,
.pss-product-price .price del,
.pss-product-price .price bdi,
.pss-product-price .woocommerce-Price-amount {
    font-weight: normal;
    color: #f74b81;
    line-height: 1;
}

.pss-product-price .woocommerce-Price-amount bdi {
    font-size: 24px !important;
    font-weight: normal !important;
    color: #000 !important;
}

.pss-unit-label {
    font-size: 12px;
    color: #666;
    margin-top: 0;
}

.pss-product-price del {
    color: #999;
    font-size: 20px;
    margin-right: 10px;
}

.pss-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pss-product-short-description {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.5;
    max-height: none;
    font-size: 12px!important;
}

.pss-product-short-description p {
    margin: 0 0 10px;
    line-height: 1.5;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-height: none;
    display: block;
}

.pss-description-label {
    color: #C9AF50;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 2px!important;
    margin-top: 8px!important
}

.pss-product-variations {
    margin: 0 !important;
}

.pss-product-button {
    margin-top: auto;
}

.pss-product-button .button,
.pss-product-variations .button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #f74b81;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.pss-product-button .button:hover,
.pss-product-variations .button:hover {
    background-color: #e63e6d;
    color: #fff;
}

/* Navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    background: #C9AF50 !important;
    border-radius: 50% !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.swiper-button-prev {
    left: 20px !important;
}

.swiper-button-next {
    right: 20px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    display: none !important; /* Masquer les pseudo-éléments pour laisser les images s'afficher */
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #b89a40 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* Centrer les images dans les boutons de navigation */
.swiper-button-next img,
.swiper-button-prev img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 24px !important;
    height: 24px !important;
}

/* Styles pour l'indicateur de chargement */
.pss-loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 9999;
    text-align: center;
    font-family: Arial, sans-serif;
}

.pss-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination */
.swiper-pagination-bullet {
    background: #f74b81;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 12px;
    height: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pss-product-card {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .pss-product-images {
        width: 100%;
    }

    .pss-main-image {
        width: 100%;
        height: auto;
    }

    .pss-gallery {
        width: 100%;
        overflow-x: auto;
        padding: 10px 0;
    }

    .pss-product-info {
        width: 100%;
    }

    .pss-product-title {
        font-size: 24px;
    }

    .pss-product-price {
        font-size: 20px;
    }

    .pss-product-short-description {
        font-size: 14px;
        padding: 15px;
    }

    .pss-product-button {
        padding: 12px 20px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

.pss-variations-list {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.pss-variation-item {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.pss-variation-item:last-child {
    margin-bottom: 0;
}

.pss-variation-item strong {
    color: #333;
    margin-right: 5px;
}

/* Styles pour la page de connexion ERP */
.erp-login-page-wrapper {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #fff;
    background-image: url('../images/footer-background-erp.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    padding: 20px;
    padding-top: 50px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Centrer le contenu pour le message d'accès refusé */
.erp-access-wrapper {
    align-items: center !important;
}

.erp-login-page-wrapper .erp-access-denied {
    align-items: center !important;
}

.erp-login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 500px;
    width: 100%;
    margin-top: 16vh;
}

.erp-login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.erp-site-logo {
    max-width: 250px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.erp-site-title {
    color: white;
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.customer-login-container {
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    text-align: center;
}

.customer-login-container h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: bold;
}

.customer-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.erp-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #f5f5f5 !important;
    border-radius: 25px !important;
    font-size: 1.1em;
    transition: all 0.3s ease;
    background: #f5f5f5 !important;
    color: #333;
    box-shadow: none;
}

.erp-input:focus {
    outline: none !important;
    border: 2px solid #ececec !important;
    background: #ececec !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08);
}

.button-primary {
    background: #C9AF50;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.notice {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}

.notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Responsive design */
@media (max-width: 768px) {
    .erp-login-content {
        gap: 20px;
    }
    
    .erp-site-logo {
        max-width: 150px;
        max-height: 60px;
    }
    
    .erp-site-title {
        font-size: 2em;
    }
    
    .customer-login-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .customer-login-container h2 {
        font-size: 1.5em;
    }
    
    .form-control {
        padding: 12px;
        font-size: 1em;
    }
    
    .button-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* Styles pour la page de connexion réussie */
.customer-login-success-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.customer-info {
    margin: 30px 0;
    text-align: center;
}

.customer-info h2 {
    color: #333;
    margin-bottom: 15px;
}

.customer-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.customer-actions .button {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.customer-actions .button-primary {
    background: #0073aa;
    color: #fff;
    border: none;
}

.customer-actions .button-primary:hover {
    background: #005177;
}

.customer-actions .button {
    background: #f7f7f7;
    color: #333;
    border: 1px solid #ddd;
}

.customer-actions .button:hover {
    background: #e7e7e7;
}

.notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Styles pour la grille de produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.2em;
    margin: 0 0 10px;
    color: #333;
}

.product-price {
    font-size: 1.1em;
    color: #0073aa;
    margin-bottom: 15px;
}

.product-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

.variations {
    margin-bottom: 20px;
}

.variation-select {
    margin-bottom: 10px;
}

.variation-select label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.variation-select select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.quantity-selector input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.single_add_to_cart_button {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

.single_add_to_cart_button:hover {
    background: #005177;
}

/* Styles pour les nouveaux éléments du shortcode customer_login_success */

/* Formulaire d'ajout au panier */
.pss-product-form {
    margin-top: 4px!important;
    padding: 0;
    background: none;
    border-radius: 0;
    border: none;
}

.pss-add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pss-product-variations {
    margin-bottom: 20px;
}

.pss-variation-field {
    margin-bottom: 15px;
}

.pss-variation-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    color: #C9AF50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pss-variation-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

.pss-variation-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.pss-quantity-field {
    margin-bottom: 0px!important;
    margin-top: 8px!important;
}

.pss-quantity-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    color: #C9AF50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bouton d'ajout au panier */
.pss-add-to-cart-button {
    margin-top: 10px;
}

.pss-add-to-cart-btn {
    width: 100%;
    padding: 12px 20px;
    background: #C9AF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.pss-add-to-cart-btn:hover:not(:disabled) {
    background: #b89a40;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pss-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pss-category-menu{margin-top: 80px; padding: 0 20px;}

/* Popup de confirmation */
.pss-cart-popup {
    position: fixed;
    top: 40px;
    right: 0;
    width: 470px;
    height: 200px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.pss-cart-popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pss-cart-popup-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    transform: scale(0.7);
    transition: all 0.3s ease;
    overflow: hidden;
}

.pss-cart-popup.show .pss-cart-popup-content {
    transform: scale(1);
}

.pss-cart-popup-header {
    background: #C9AF50;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pss-cart-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.pss-cart-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    position: absolute;
    right: 0px !important;
    top: 0px !important;
}

.pss-cart-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pss-cart-popup-body {
    padding: 15px 30px;
    text-align: center;
}

.pss-cart-popup-icon {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 20px;
    font-weight: bold;
}

.pss-cart-popup-body p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.pss-cart-popup-footer {
    padding: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #eee;
}

.pss-cart-popup-btn {
    padding: 0px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.pss-view-cart-btn {
    background: #C9AF50;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #C9AF50;
    padding: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(201, 175, 80, 0.3);
}

.pss-view-cart-btn:hover {
    background: #b89a40;
    border-color: #b89a40;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(201, 175, 80, 0.4);
}

.pss-continue-shopping-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.pss-continue-shopping-btn:hover {
    background: #e9ecef;
}

/* Responsive pour les nouveaux éléments */
@media (max-width: 768px) {
    .pss-product-form {
        padding: 15px;
    }
    
    .pss-quantity-controls {
        max-width: 120px;
    }
    
    .pss-quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .pss-quantity-input {
        height: 30px;
        font-size: 13px;
    }
    
    .pss-add-to-cart-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .pss-cart-popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .pss-cart-popup-footer {
        flex-direction: column;
    }
    
    .pss-cart-popup-btn {
        width: 100%;
        text-align: center;
    }
}

/* Styles pour les informations de lot */
.pss-lot-info {
    margin: 10px 0;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    font-size: 12px;
    color: #856404;
}

.pss-lot-info span {
    display: block;
    margin: 2px 0;
}

.pss-lot-min {
    font-weight: 600;
}

.pss-lot-step {
    font-style: italic;
}

/* Styles pour les notices de prix spécifiques */
.pss-specific-pricing-notice {
    margin-top: 5px;
    padding: 4px 8px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    text-align: center;
}

.pss-specific-pricing-notice small {
    color: #155724;
    font-size: 11px;
    font-weight: 500;
}

/* Amélioration de l'affichage des informations de quantité */
.pss-quantity-info {
    margin: 8px 0;
    padding: 6px 10px;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    font-size: 12px;
    color: #0066cc;
    text-align: center;
    font-weight: 500;
}

.pss-quantity-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Styles pour le champ de commentaire */
.pss-comment-field {
    margin-bottom: 20px;
}

.pss-comment-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    color: #C9AF50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pss-comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.pss-comment-textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.pss-comment-textarea::placeholder {
    color: #999;
    font-style: italic;
}

.pss-comment-counter {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.pss-comment-char-count {
    font-weight: 600;
}

.pss-comment-char-count-warning {
    color: #f39c12;
}

.pss-comment-char-count-error {
    color: #e74c3c;
}

/* Responsive pour le champ de commentaire */
@media (max-width: 768px) {
    .pss-comment-field {
        margin: 15px 0;
    }
    
    .pss-comment-textarea {
        min-height: 60px;
        padding: 10px;
        font-size: 13px;
    }
    
    .pss-comment-counter {
        font-size: 11px;
    }
}

/* Styles pour la page de récapitulatif du panier */
.pss-cart-summary-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

.pss-cart-summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.pss-customer-name {
    font-size: 1.5em;
    font-weight: bold;
}

.pss-back-to-products-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.pss-back-to-products-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.pss-cart-summary-content {
    display: block;
}

.pss-cart-items {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.pss-cart-items h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    margin-top: 72px; 
}

.pss-cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pss-cart-item:last-child {
    border-bottom: none;
}

.pss-cart-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.pss-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.pss-cart-item-details {
    flex: 1;
}

.pss-cart-item-title {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.pss-cart-item-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    color: #666;
}

.pss-cart-item-comment {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #007cba;
    font-style: italic;
}

.pss-cart-summary {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.pss-cart-totals {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.pss-cart-total-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.pss-cart-total-price {
    font-weight: bold;
    font-size: 1.3em;
    color: #007cba;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 10px;
}

.pss-delivery-selection {
    margin-bottom: 30px;
}

.pss-delivery-selection h3 {
    color: #333;
    margin-bottom: 10px;
}

.pss-delivery-info {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.pss-delivery-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.pss-delivery-month-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pss-delivery-month-btn:hover {
    background: #e9ecef;
    border-color: #007cba;
    transform: translateY(-2px);
}

.pss-delivery-month-btn.pss-month-current {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.pss-delivery-month-btn.pss-month-selected {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

.pss-month-name {
    font-weight: bold;
    font-size: 1.1em;
}

.pss-month-year {
    font-size: 0.9em;
    opacity: 0.8;
}

.pss-current-indicator {
    font-size: 0.8em;
    font-style: italic;
}

.pss-selected-delivery {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.pss-selected-delivery h4 {
    color: #155724;
    margin-bottom: 5px;
}

.pss-selected-delivery p {
    color: #155724;
    font-weight: bold;
    margin: 0;
}

.pss-cart-actions {
    text-align: center;
}

.pss-proceed-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.pss-proceed-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.pss-proceed-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.pss-empty-cart {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pss-empty-cart h2 {
    color: #333;
    margin-bottom: 20px;
}

.pss-empty-cart p {
    color: #666;
    margin-bottom: 30px;
}

.pss-back-to-products {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.pss-back-to-products:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .pss-cart-summary-content {
        gap: 20px;
    }
    
    .pss-cart-summary-header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pss-delivery-months {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .pss-cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .pss-cart-item-image {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
}

/* Styles pour l'affichage du mois de livraison dans la page de commande */
.pss-delivery-month-notice {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #155724;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Styles pour les boutons de quantité prédéfinis */
.pss-quantity-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.pss-quantity-option-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.1em;
    color: #495057;
    min-width: 60px;
    text-align: center;
}

.pss-quantity-option-btn:hover {
    background: #e9ecef;
    border-color: #007cba;
    transform: translateY(-2px);
}

.pss-quantity-option-btn.pss-quantity-selected {
    background: #C9AF50 !important;
    color: white !important;
    border-color: #C9AF50 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(201, 175, 80, 0.3) !important;
}

.pss-quantity-custom-inline {
    flex: 1;
    min-width: 120px;
}

.pss-quantity-input-inline {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #6c757d;
}

.pss-quantity-input-inline:focus {
    outline: none;
    border-color: #007cba;
    background: white;
    color: #495057;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.pss-quantity-input-inline::placeholder {
    color: #6c757d;
    font-style: italic;
}

.pss-quantity-custom {
    margin-top: 15px;
}

.pss-quantity-custom label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
}

.pss-quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 200px;
}

.pss-quantity-btn {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pss-quantity-btn:hover {
    background: #005a87;
    transform: scale(1.1);
}

.pss-quantity-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center;
    transition: all 0.3s ease;
}

.pss-quantity-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Responsive pour les boutons de quantité */
@media (max-width: 480px) {
    .pss-quantity-buttons {
        justify-content: center;
    }
    
    .pss-quantity-option-btn {
        min-width: 50px;
        padding: 10px 15px;
        font-size: 1em;
    }
    
    .pss-quantity-controls {
        max-width: 100%;
    }
}

.customer-login-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.customer-login-btn {
    border-radius: 25px !important;
    min-width: 120px;
    height: 48px;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 600px) {
    .customer-login-flex {
        flex-direction: column;
        gap: 10px;
    }
    .customer-login-btn {
        width: 100%;
        min-width: unset;
        height: 44px;
    }
    .form-control {
        width: 100%;
    }
}

/* Masquer la barre d'administration WordPress sur la page ERP */
body.erp-login-page #wpadminbar {
    display: none !important;
}

/* Ajuster la hauteur pour éviter le défilement */
body.erp-login-page {
    overflow: hidden !important;
    padding-top: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
}

html.erp-login-page {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Styles pour le message d'accès refusé */
.erp-access-denied {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 90vh;
    text-align: center;
    margin-top: 0 !important;
}

.erp-access-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 400px;
}

.erp-access-message h2 {
    color: #333;
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

.erp-access-message p {
    color: #666;
    font-size: 1.2em;
    margin: 0;
}

.erp-login-link {
    background: #C9AF50;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}

.erp-login-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Styles pour le nouveau template de panier */
.pss-cart-summary-header-alt {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.pss-cart-summary-header-content-alt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pss-back-to-shop-btn {
    background: #007cba;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.pss-back-to-shop-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.pss-cart-title {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    text-align: center;
}

@media (max-width: 768px) {
    .pss-cart-summary-header-content-alt {
        flex-direction: column;
        gap: 15px;
    }
    
    .pss-cart-title {
        font-size: 2em;
    }
}

/* Styles pour le nouveau template page-slider-cart */
.pss-header .pss-cart-title {
    font-size: 22px;
    font-weight: normal;
    color: #333;
    margin: 0;
}

.pss-header .pss-cart-button {
    background: white;
    color: #C9AF50;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid #C9AF50;
    margin: 10px 0;
}

.pss-header .pss-cart-button:hover {
    background: #C9AF50;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 175, 80, 0.3);
}

@media (max-width: 768px) {
    .pss-header .pss-cart-title {
        font-size: 1em;
    }
}

.pss-cart-items-title {
    font-weight: normal;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 0px;
} 