/*
Theme Name: Woodmart Child
Template: woodmart
Description: Child theme for Woodmart
Version: 1.0.0
Author: Your Name
Text Domain: woodmart-child
*/

/**
 * PROS-R Category Template Styles
 * Version: 1.0.0
 * Description: Styles personnalisés pour les pages de catégories WooCommerce
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700&display=swap');

/* ===================================== */
/* RESET ET BASE */
/* ===================================== */
.pros-r-custom-page {
    font-family: 'Urbanist', sans-serif;
    background: #FBF7F6 !important;
    margin: 0;
    padding: 20px 0;
}

/* Forcer la largeur à 100% et supprimer max-width du thème */
.pros-r-custom-page,
.pros-r-custom-page .wd-content-area.site-content.wd-grid-col,
.pros-r-custom-page .container,
.pros-r-custom-page .container-fluid,
.pros-r-custom-page .row,
.pros-r-custom-page .col-12 {
    --wd-col-lg: 12 !important;
    --wd-col-md: 12 !important;
    --wd-col-sm: 12 !important;
    --wd-col: 12 !important;
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
}

/* Forcer le parent du template */
.wd-content-area {
    --wd-col-lg: 12 !important;
    --wd-col: 12 !important;
}

/* Version pleine largeur */
.pros-r-fullwidth {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 20px 0;
}

/* Masquer les éléments WooCommerce et WoodMart par défaut */
.pros-r-custom-page .woocommerce-breadcrumb,
.pros-r-custom-page .woocommerce-result-count,
.pros-r-custom-page .woocommerce-ordering,
.pros-r-custom-page .woocommerce-products-header,
.pros-r-custom-page .wd-show-sidebar-btn,
.pros-r-custom-page .wd-products-per-page,
.pros-r-custom-page .wd-products-shop-view {
    display: none !important;
}

.pros-r-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 40px;
}

/* ===================================== */
/* BREADCRUMB PERSONNALISÉ AVEC FLÈCHES */
/* ===================================== */
/* ===================================== */
/* BREADCRUMB AVEC SVG - Style compatible */
/* ===================================== */

/* Container principal du breadcrumb */
nav.breadcrumb {
    margin-bottom: 30px;
}

nav.breadcrumb ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

nav.breadcrumb li {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: -25px;
}

nav.breadcrumb li:first-child {
    margin-left: 0;
}

/* SVG breadcrumb */
.breadcrumb-svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Texte du breadcrumb */
.breadcrumb-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    padding: 0 30px;
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    font-weight: 400;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Élément actif */
.breadcrumb-item.active {
    color: #FFFFFF;
    font-weight: 500;
}

/* Liens */
nav.breadcrumb a.breadcrumb-item {
    cursor: pointer;
}

nav.breadcrumb a.breadcrumb-item:hover {
    color: #FF5722;
}

/* ===================================== */
/* ALTERNATIVE : BREADCRUMB STYLE HTML/CSS */
/* ===================================== */
.pros-r-breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    gap: 0;
    height: 50px;
}

.pros-r-breadcrumb .breadcrumb-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    background: #FFFFFF;
    color: #333333;
    padding: 0 40px 0 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-top: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
    margin-left: -20px;
    z-index: 1;
}

/* Premier élément */
.pros-r-breadcrumb .breadcrumb-item:first-child {
    margin-left: 0;
    padding-left: 30px;
    border-left: 1px solid #E0E0E0;
    border-radius: 25px 0 0 25px;
}

/* Flèche après chaque élément (sauf le dernier) */
.pros-r-breadcrumb .breadcrumb-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -25px;
    top: -1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 26px 0 26px 25px;
    border-color: transparent transparent transparent #FFFFFF;
    z-index: 2;
}

/* Bordure de la flèche */
.pros-r-breadcrumb .breadcrumb-item:not(:last-child)::before {
    content: '';
    position: absolute;
    right: -26px;
    top: -1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 26px 0 26px 25px;
    border-color: transparent transparent transparent #E0E0E0;
    z-index: 1;
}

/* Élément actif - orange */
.pros-r-breadcrumb .breadcrumb-item.active {
    background: #FF5722;
    color: #FFFFFF;
    font-weight: 500;
    border-color: #FF5722;
    z-index: 10;
}

/* Flèche de l'élément actif */
.pros-r-breadcrumb .breadcrumb-item.active::after {
    border-left-color: #FF5722;
}

.pros-r-breadcrumb .breadcrumb-item.active::before {
    border-left-color: #FF5722;
}

/* Dernier élément - bord arrondi à droite */
.pros-r-breadcrumb .breadcrumb-item:last-child {
    border-right: 1px solid #E0E0E0;
    border-radius: 0 25px 25px 0;
    padding-right: 30px;
}

/* Si le dernier élément est actif */
.pros-r-breadcrumb .breadcrumb-item:last-child.active {
    border-color: #FF5722;
}

/* Hover effect */
.pros-r-breadcrumb .breadcrumb-item:not(.active):hover {
    background: #F5F5F5;
    color: #FF5722;
    z-index: 5;
}

.pros-r-breadcrumb .breadcrumb-item:not(.active):hover::after {
    border-left-color: #F5F5F5;
}

/* Lien */
.pros-r-breadcrumb .breadcrumb-item a,
.breadcrumb-item a {
    color: inherit;
    text-decoration: none;
}

/* Responsive pour les deux versions */
@media (max-width: 768px) {
    nav.breadcrumb,
    .pros-r-breadcrumb {
        font-size: 13px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .pros-r-breadcrumb {
        height: 40px;
    }
    
    .pros-r-breadcrumb .breadcrumb-item {
        height: 40px;
        padding: 0 35px 0 25px;
        white-space: nowrap;
        margin-left: -15px;
    }
    
    .pros-r-breadcrumb .breadcrumb-item:first-child {
        margin-left: 0;
        padding-left: 20px;
        border-radius: 20px 0 0 20px;
    }
    
    .pros-r-breadcrumb .breadcrumb-item:not(:last-child)::after {
        right: -20px;
        border-width: 21px 0 21px 20px;
    }
    
    .pros-r-breadcrumb .breadcrumb-item:not(:last-child)::before {
        right: -21px;
        border-width: 21px 0 21px 20px;
    }
    
    .pros-r-breadcrumb .breadcrumb-item:last-child {
        border-radius: 0 20px 20px 0;
        padding-right: 20px;
    }
    
    /* SVG version responsive */
    nav.breadcrumb li {
        margin-left: -20px;
    }
    
    .breadcrumb-item {
        font-size: 13px;
        padding: 0 25px;
    }
}

@media (max-width: 480px) {
    nav.breadcrumb,
    .pros-r-breadcrumb {
        font-size: 12px;
    }
    
    .pros-r-breadcrumb {
        height: 35px;
    }
    
    .pros-r-breadcrumb .breadcrumb-item {
        height: 35px;
        padding: 0 30px 0 20px;
        margin-left: -12px;
    }
    
    .pros-r-breadcrumb .breadcrumb-item:first-child {
        padding-left: 15px;
        border-radius: 17px 0 0 17px;
    }
    
    .pros-r-breadcrumb .breadcrumb-item:not(:last-child)::after {
        right: -17px;
        border-width: 18px 0 18px 17px;
    }
    
    .pros-r-breadcrumb .breadcrumb-item:not(:last-child)::before {
        right: -18px;
        border-width: 18px 0 18px 17px;
    }
    
    .pros-r-breadcrumb .breadcrumb-item:last-child {
        border-radius: 0 17px 17px 0;
        padding-right: 15px;
    }
    
    /* SVG version responsive */
    nav.breadcrumb li {
        margin-left: -15px;
    }
    
    .breadcrumb-item {
        font-size: 12px;
        padding: 0 20px;
        height: 30px;
    }
}

/* ===================================== */
/* HEADER AVEC IMAGE */
/* ===================================== */
.pros-r-page-header {
    display: flex;
    align-items: flex-start; /* Alignement en haut pour le texte */
    margin-bottom: 30px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.header-image {
    width: 150px;
    height: 150px;
    margin-right: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF; /* Fond blanc au lieu de gris */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.header-content {
    flex: 1;
    text-align: left;
    padding-top: 10px;
}

.header-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 15px 0;
    text-align: left;
    line-height: 1.2;
}

.header-content .subtitle {
    color: #666;
    font-size: 18px;
    margin: 0 0 20px 0;
    text-align: left;
}

.category-description {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
    max-width: 900px;
}

/* ===================================== */
/* MARQUES */
/* ===================================== */
.pros-r-brands {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.brand-logo {
    height: 50px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.brand-logo:hover {
    opacity: 1;
}

/* ===================================== */
/* SOUS-CATÉGORIES - Design exact de la capture */
/* ===================================== */
.pros-r-subcategories {
    margin-bottom: 50px;
    padding: 0;
    position: relative;
}

.subcategories-slider {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subcategories-slider::-webkit-scrollbar {
    display: none;
}

.subcategories-grid {
    display: flex;
    gap: 24px;
    padding: 0 40px;
    min-width: max-content;
}

/* Carte de catégorie - style exact */
.subcategory-item {
    flex: 0 0 auto;
}

.subcategory-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 280px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.subcategory-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Image container */
.subcategory-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

/* Badge de comptage - exactement comme la capture */
.subcategory-count {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    background: #1F2937;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Titre centré en bas */
.subcategory-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

/* Flèches de navigation */
.slider-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    user-select: none;
}

.slider-nav:hover {
    background: #FF5722;
    color: white;
    border-color: #FF5722;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.slider-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===================================== */
/* LAYOUT PRINCIPAL */
/* ===================================== */
.pros-r-main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

/* ===================================== */
/* CONTENU PRINCIPAL */
/* ===================================== */
.pros-r-main-content {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

/* ===================================== */
/* TOOLBAR AFFICHAGE ET TRI */
/* ===================================== */
.pros-r-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #6B7280;
}

.view-btn svg {
    width: 20px;
    height: 20px;
}

.view-btn.active {
    background: #FF5722;
    color: white;
    border-color: #FF5722;
}

.view-btn:hover:not(.active) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.results-info {
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

/* Masquer la liste UL par défaut de WooCommerce */
.tax-product_cat .woocommerce ul.products {
    display: none !important;
}

/* ===================================== */
/* LISTE PRODUITS - Vue Liste et Grille */
/* ===================================== */
.pros-r-products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

/* Vue Grille */
.pros-r-products-list.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Card produit - Style de base */
.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ===================================== */
/* VUE LISTE - Cards horizontales */
/* ===================================== */
.view-list .product-card {
    display: flex;
    min-height: 232px;
    height: auto;
}

/* Badge de réduction */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FF5722;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
}

/* Image produit - Vue Liste */
.view-list .product-image-section {
    width: 173px;
    min-width: 173px;
    height: 173px;
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin: 30px 0 30px 11px;
    align-self: flex-start;
}

.view-list .product-image-section img {
    width: 173px;
    height: 173px;
    object-fit: contain;
}

.view-list .product-image-section a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 173px;
    height: 173px;
    text-decoration: none;
}

/* ===================================== */
/* VUE GRILLE - Cards verticales */
/* ===================================== */
.view-grid .product-card {
    display: flex;
    flex-direction: column;
    height: auto;
}

/* Image produit - Vue Grille */
.view-grid .product-image-section {
    width: 100%;
    height: 220px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin: 0;
}

.view-grid .product-image-section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.view-grid .product-image-section a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Contenu principal - Vue Liste */
.view-list .product-content-section {
    flex: 1;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    max-width: 320px;
    justify-content: flex-start;
}

/* Contenu principal - Vue Grille */
.view-grid .product-content-section {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Catégorie et titre */
.product-category {
    color: #999;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.product-title-horizontal {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: #333;
}

.product-title-horizontal a {
    color: #333;
    text-decoration: none;
}

.product-title-horizontal a:hover {
    color: #FF5722;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.rating-stars {
    color: #FFB400;
    font-size: 14px;
}

.rating-text {
    color: #666;
    font-size: 12px;
}

/* Référence */
.product-reference {
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Spécifications techniques - Vue Liste */
.view-list .product-specs-section {
    width: 280px;
    min-width: 280px;
    padding: 25px 15px;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
}

/* Spécifications techniques - Vue Grille */
.view-grid .product-specs-section {
    display: none; /* Masquer les specs en vue grille */
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dotted #e0e0e0;
    font-size: 12px;
    height: 18px;
}

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

.spec-label {
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.spec-icon {
    width: 12px;
    height: 12px;
    color: #666;
}

.spec-value {
    color: #333;
    font-weight: 600;
    text-align: right;
    min-width: 80px;
}

/* Zone prix et actions - Vue Liste */
.view-list .product-actions-section {
    width: 240px;
    min-width: 240px;
    padding: 25px 20px;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

/* Zone prix et actions - Vue Grille */
.view-grid .product-actions-section {
    padding: 0 20px 20px;
    border-left: none;
    border-top: 1px solid #e0e0e0;
    width: 100%;
    min-width: auto;
}

/* Statut stock */
.stock-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
    font-size: 12px;
}

.stock-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
}

.stock-text {
    color: #4CAF50;
    font-weight: 500;
}

/* Prix */
.product-price {
    margin-bottom: 15px;
}

/* Prix principal FORCÉ en noir */
.price-current {
    font-size: 26px !important;
    font-weight: bold !important;
    color: #000000 !important;
    display: block;
    line-height: 1.2;
    margin-bottom: 5px;
}

/* Forcer aussi dans WooCommerce */
.product-price-custom,
.product-price-custom .amount,
.woocommerce-Price-amount {
    color: #000000 !important;
}

.price-old {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
    margin-left: 8px;
    display: inline;
}

.price-details {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    margin-top: 8px;
}

/* Masquer les détails de prix en vue grille */
.view-grid .price-details {
    display: none;
}

/* Quantité et boutons */
.quantity-and-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quantity-and-cart-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

/* Sélecteur quantité */
.quantity-selector {
    width: 72px;
    height: 28px;
    position: relative;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    flex: 0 0 auto;
}

/* Masquer le sélecteur de quantité en vue grille */
.view-grid .quantity-selector {
    display: none;
}

/* Bouton moins */
.quantity-btn-minus {
    width: 24px;
    height: 24px;
    position: absolute;
    left: 2px;
    top: 2px;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn-minus::after {
    content: '';
    width: 8px;
    height: 1px;
    background: black;
    opacity: 0.6;
}

/* Bouton plus */
.quantity-btn-plus {
    width: 24px;
    height: 24px;
    position: absolute;
    left: 46px;
    top: 2px;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn-plus::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 1px;
    background: black;
    opacity: 0.6;
}

.quantity-btn-plus::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 8px;
    background: black;
    opacity: 0.6;
}

/* Input quantité */
.quantity-number {
    position: absolute;
    left: 32px;
    top: 8px;
    opacity: 0.8;
    color: black;
    font-size: 12px;
    font-weight: bold;
    background: transparent;
    border: none;
    width: 12px;
    text-align: center;
}

.btn-add-cart {
    background: #FF5722;
    color: white !important;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 80px;
}

/* Bouton pleine largeur en vue grille */
.view-grid .btn-add-cart {
    width: 100%;
}

.btn-add-cart span {
    color: white !important;
}

.btn-add-cart:hover {
    background: #E64A19;
}

.btn-add-cart.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.btn-more-info {
    color: #FF5722;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 5px;
    text-align: center;
}

.btn-more-info:hover {
    text-decoration: underline;
}

/* ===================================== */
/* PAGINATION */
/* ===================================== */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin-top: 40px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #FF5722;
    color: white;
    border-color: #FF5722;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #FF5722;
    color: white;
    border-color: #FF5722;
}

.woocommerce .cart_totals .wc-cart-totals-bottom {
    margin-top: 15px;
}

/* ===================================== */
/* RESPONSIVE */
/* ===================================== */
@media (max-width: 1400px) {
    .pros-r-container {
        padding: 0 30px;
    }
    
    .product-content-section {
        min-width: 240px;
        max-width: 280px;
    }
    
    .product-specs-section {
        width: 260px;
        min-width: 260px;
        padding: 25px 12px;
    }
    
    .product-actions-section {
        width: 200px;
        min-width: 200px;
        padding: 25px 15px;
    }
}

@media (max-width: 1200px) {
    .pros-r-container {
        padding: 0 20px;
    }
    
    .product-card-horizontal {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        min-width: auto;
        flex-direction: column;
    }
    
    .product-image-section {
        width: 100%;
        min-width: auto;
        height: 200px;
        margin: 15px;
        align-self: center;
        max-width: 300px;
    }
    
    .product-image-section img,
    .product-image-section a {
        width: 100%;
        height: 100%;
        max-width: 200px;
        max-height: 200px;
    }
    
    .product-content-section,
    .product-specs-section,
    .product-actions-section {
        width: 100%;
        min-width: auto;
        max-width: none;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        min-height: auto;
    }
    
    .product-content-section {
        border-top: none;
    }
}

@media (max-width: 968px) {
    .pros-r-main-layout {
        grid-template-columns: 1fr;
    }
    
    .pros-r-sidebar {
        order: 2;
        border-right: none;
        border-top: 1px solid #e0e0e0;
    }
    
    .pros-r-main-content {
        order: 1;
    }
    
    .product-card-horizontal {
        flex-direction: column;
        height: auto;
        width: 100%;
        min-width: auto;
    }
    
    .product-content-section {
        max-width: none;
        width: 100%;
    }
    .cart-content-wrapper .row {
      flex-direction: column;
    }
    .shop_table-responsive-wrapper {
      max-width: 100% !important;
      flex: 0 0 100% !important;
    }
    .woocommerce-checkout .p-wrapper {
      flex-direction: column;
    }
    .woocommerce-checkout .p-wrapper > * {
      width: 100% !important;
    }
}

@media (max-width: 768px) {
    .pros-r-container {
        padding: 0 10px;
    }
    
    .pros-r-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .brand-logo {
        height: 35px;
    }
    
    .pros-r-subcategories {
        padding: 0 50px;
    }
    
    .subcategory-item {
        width: 180px;
    }
    
    .subcategories-grid {
        gap: 20px;
    }
    
    .subcategory-image {
        height: 140px;
    }
    
    .subcategory-title {
        font-size: 14px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-nav.prev {
        left: 5px;
    }
    
    .slider-nav.next {
        right: 5px;
    }
    .thwmsc-tab-panel {
        padding: 24px 10px !important;
    }
    .woocommerce-checkout-payment .wc_payment_method:has(> input[type="radio"]:checked) {
      padding-bottom: 12px !important;
    }

    .woocommerce-checkout-payment .wc_payment_method input[type="radio"]:checked + label {
      padding: 12px 12px 0px o !important;
    }
    li.wc_payment_method > label  {
      padding: 12px !important;
    }
    button#place_order {
      width: 100%;
      float: none !important;
    }
    ul#thwmsc-tabs {
      display: flex;
      flex-direction: column;
      gap: 11px;
    }

    .elementor-swiper-button-prev,
    .elementor-swiper-button-next {
      display: none !important; 
    }
}

.swiper-pagination .swiper-pagination-bullet {
  width: 40px !important;
  height: 5px !important;
  border-radius: 16px;
}

.elementor-swiper-button-prev,
.elementor-swiper-button-next {
  background-color: white;
  font-size: 1rem;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
  top: -60px !important;
  transform: translateY(0%) !important;
}

.elementor-swiper-button-prev {
  left: calc(100% - 110px) !important;
}

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


    /* Breadcrumb responsive 
    .breadcrumb-item {
        padding: 0 25px 0 20px;
        font-size: 13px;
        margin-right: -8px;
    }
    
    .breadcrumb-item:first-child {
        padding-left: 12px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-item {
        padding: 0 20px 0 15px;
        font-size: 12px;
    }
    
    .breadcrumb-item:first-child {
        padding-left: 10px;
    }
}*/


.woocommerce-cart-form .wrapper-shop-table {
  width: 70%;
  flex: 0 0 70%;
}

.woocommerce-radio-wrapper input[type="radio"]:checked + .checkbox {
  background: #FF5722;
  color: white;
}

.woocommerce-radio-wrapper input[type="radio"] {
  display: none;
}

.woocommerce-radio-wrapper .checkbox {
  padding: 19px 22px;
  border: 1px solid #e0e0e0;
  border-radius: 1em;
  cursor: pointer;
  font-size: 0.875rem;
  background-color: white;
  font-weight: 300;
}

.woocommerce-input-wrapper input[type="text"],
.woocommerce-input-wrapper input[type="email"],
.woocommerce-input-wrapper input[type="password"],
.woocommerce-input-wrapper input[type="tel"],
.woocommerce-input-wrapper input[type="number"],
.woocommerce-input-wrapper input[type="url"],
li.wc_payment_method input[type="text"],
.woocommerce-input-wrapper textarea {
  padding: 19px 22px;
  border: 1px solid #e0e0e0;
  border-radius: 1em;
  height: auto;
  font-size: 0.875rem;
}

.wooccm-field label {
  font-weight: 500;
  font-size: 0.875rem;
}

.consent-box {
  border-radius: 6px !important;
}

.consent-input:checked + .consent-box {
  background-color: #FF5722 !important;
  border-color:  #FF5722 !important;
}

.checkout-coupon-form button,
button#place_order {
  background-color: #FF5722 !important;
  color: white !important;
  border-radius: .875em;
}

.woocommerce-checkout-payment .wc_payment_method input[type="radio"] {
  display: none;
}

.woocommerce-checkout-payment .wc_payment_method:has(> input[type="radio"]:checked) {
  padding-bottom: 33px;
}

.woocommerce-checkout-payment .wc_payment_method input[type="radio"]:checked + label {
  padding: 33px 36px 0px;
}

.payment_box.payment_method_woocommerce_payments {
  background-color: transparent;
  padding: 0;
  box-shadow: none;
}

li.wc_payment_method {
  border: 1px solid #e0e0e0;
  border-radius: 1em;
  overflow: hidden;
  padding-bottom: 0;
}

li.wc_payment_method > label  {
  cursor: pointer;
  display: block !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
}

li.wc_payment_method .payment_box {
    padding: 0 36px;
    background-color: transparent;
    box-shadow: none;
}

.thwmsc-tab-panel {
  background-color: white !important;
  padding: 43px 65px;
  border-radius: 1em;
}

ul.thwmsc-tabs {
  margin-top: 0 !important;
  margin-bottom: 41px;
}

span.thwmsc-index.thwmsc-tab-icon {
    position: relative;
    margin-right: 1rem;
    border-radius: .5em !important;
    border: none;
    background-color: #e0e0e0 !important;
}

span.thwmsc-tab-label {
    text-wrap: nowrap;
}

.thwmsc-layout-time-line ul.thwmsc-tabs li a,
.thwmsc-layout-time-line ul.thwmsc-tabs li a.active {
    border-top: 0px;
    padding: 0px !important;
}

#thwmsc_wrapper a.active .thwmsc-img-icon, #thwmsc_wrapper a.active .thwmsc-tab-icon,
.thwmsc-layout-time-line ul.thwmsc-tabs .thwmsc-completed .thwmsc-tab-icon {
    background-color: #FF5722 !important;
    color: white !important;
}

li.thwmsc-tab {
    width: fit-content !important;
    margin-bottom: 0px !important;
}

span.thwmsc-tab-label {
  padding: 16px 24px !important;
}

.thwmsc-layout-time-line ul.thwmsc-tabs .thwmsc-completed span.thwmsc-tab-label {
    color: #b2b2b2 !important;
}

.thwmsc-layout-time-line ul.thwmsc-tabs .thwmsc-completed .thwmsc-tab-icon {
    background-color: #FF5722 !important;
    color: white !important;
}

.thwmsc-layout-time-line ul.thwmsc-tabs .active span.thwmsc-tab-label {
    color: black !important;
    font-weight: 500;
}

ul#thwmsc-tabs {
    background-color: white;
    padding: 24px;
    border-radius: 1em;
}

.text-highlight {
    background-color: #FF5722;
    padding: 5px;
}