/* Styles personnalisés pour le frontend */

.main-nav {
    margin-left: 4rem !important;
}

/* Ajustement de la taille du logo */
.logo-site img,
.header .logo-site img,
.fixed-header .logo-site img,
#mobile-logo_header {
    max-width: 31rem !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
}

/* Ajustement de la position du logo */
.logo-site,
.header .logo-site,
.fixed-header .logo-site {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
}

/* Logo mobile */
@media (max-width: 768px) {
    .logo-site img,
    .header .logo-site img,
    .fixed-header .logo-site img,
    #mobile-logo_header {
        max-width: 200px !important;
    }
    .inner-mobile-nav .logo img {
        max-width: 180px !important;
    }
}

/* Price Entry Card Styles */
.card-product .content-wrap {
    padding: 15px;
}

.prices-list {
    margin: 15px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

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

.price-label {
    color: #666;
    font-size: 0.95rem;
}

.price-value {
    font-size: 1rem;
    font-weight: 500;
}

.market-name .badge {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
}

/* Styles pour les cartes de marché */
.market-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.market-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.market-body {
    padding: 15px;
}

.market-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.market-info {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Styles pour les tableaux */
.table-custom {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

.table-custom th {
    background-color: var(--primary-color15);
    color: white;
    padding: 12px;
    font-weight: 500;
}

.table-custom td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

/* Styles pour les boutons */
.btn-custom {
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.btn-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Styles pour les filtres */
.filter-section {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color15);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9rem;
}

/* Styles pour la pagination */
.pagination-custom {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-custom .page-item.active .page-link {
    background-color: var(--primary-color15);
    border-color: var(--primary-color15);
}

.pagination-custom .page-link {
    color: var(--primary-color15);
    padding: 8px 12px;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    font-size: 14px;
    position: relative;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert .close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.alert .close:hover {
    opacity: 1;
}

.text-danger {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .market-card {
        margin-bottom: 15px;
    }

    .filter-section {
        margin-bottom: 15px;
    }

    .table-custom {
        font-size: 14px;
    }

    .btn-custom {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Container widths */
.tf-container {
    max-width: 132rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.tf-container.w-1290 {
    max-width: 132rem !important;
}

@media (min-width: 1400px) {
    .tf-container,
    .tf-container.w-1290 {
        max-width: 132rem !important;
    }
}

@media (min-width: 1200px) {
    .tf-container,
    .tf-container.w-1290 {
        max-width: 117rem !important;
    }
}

@media (min-width: 992px) {
    .tf-container,
    .tf-container.w-1290 {
        max-width: 96rem !important;
    }
}

@media (min-width: 768px) {
    .tf-container,
    .tf-container.w-1290 {
        max-width: 72rem !important;
    }
}

@media (min-width: 576px) {
    .tf-container,
    .tf-container.w-1290 {
        max-width: 54rem !important;
    }
}

/* Styles pour la carte */
#marketsMap {
    height: 500px !important;
    width: 100% !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    z-index: 1 !important;
}

.map-container {
    background: #fff !important;
    padding: 15px !important;
    border-radius: 10px !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

.tf-item-detail {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !important;
}

.content-left {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* Contrôles de la carte */
.leaflet-control-container .leaflet-top {
    z-index: 999 !important;
}

.leaflet-control-container .leaflet-bottom {
    z-index: 999 !important;
}

/* Styles des boutons de zoom */
.leaflet-bar,
.leaflet-control-zoom {
    border: none !important;
    margin: 10px !important;
    clear: both !important;
    background: white !important;
}

.leaflet-bar a,
.leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    background-color: white !important;
    color: #333 !important;
    text-align: center !important;
    text-decoration: none !important;
    font-size: 18px !important;
    font-weight: bold !important;
    display: block !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.leaflet-bar a:first-child {
    border-radius: 4px 4px 0 0 !important;
}

.leaflet-bar a:last-child {
    border-radius: 0 0 4px 4px !important;
}

.leaflet-bar a:hover {
    background-color: #f8f9fa !important;
    color: #333 !important;
}

/* Attribution */
.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8) !important;
    padding: 0 5px !important;
    color: #333 !important;
    font-size: 11px !important;
}

/* Responsive */
@media (max-width: 768px) {
    #marketsMap {
        height: 400px !important;
    }
    .map-container {
        padding: 10px !important;
    }
}

/* DataTables customization */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    padding: 6px 12px !important;
}

.dataTables_wrapper .dt-buttons {
    margin-bottom: 20px !important;
}

.dt-button {
    padding: 8px 15px !important;
    border-radius: 5px !important;
    background: var(--primary-color15) !important;
    border: none !important;
    color: white !important;
}

.dataTables_paginate .paginate_button.current {
    background: var(--primary-color15) !important;
    border: none !important;
    color: white !important;
}

.footer {
    padding-top: 50px !important;
}

.main-content.page-index {
    margin-bottom: 6rem !important;
}
.tf-sidebar .sidebar-item .sb-content .tag-list li a {
    padding: 10px 11px 8px 11px !important;
    font-size: 1rem !important;
}

.tf-sidebar .sidebar-item .sb-content .latest-list.style-2 .content .name {
    line-height: 1rem !important;
    font-size: 1.2rem !important;
}
.tf-sidebar
    .sidebar-item
    .sb-content
    .latest-list.style-2
    .content
    .pricing-star
    .price {
    font-size: 1.1rem !important;
}
.card-productss .market-infos {
    padding: 1rem;
}

.footer .footer-top .footer-left .logo img {
    max-width: 32rem !important;
}

.header .header-inner .nav-list .item .sub-nav {
    min-width: 25rem !important;
}
.tf-topbar {
    padding: 4px 0px !important;
    display: flex;
}

.tf-topbar .topbar-inner .topbar-right .contact-list .item a {
    font-size: 12px !important;
}

/* Styles pour les réseaux sociaux */
.wg-social {
    margin-top: 30px;
}

.wg-social .list {
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wg-social .item {
    margin: 0;
}

.wg-social .item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color15);
    color: white;
    transition: all 0.3s ease;
}

.wg-social .item a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.wg-social .item i {
    font-size: 18px;
}
.page-title .content .title {
    font-family: "Farmhouse", sans-serif;
    text-transform: uppercase;
    margin-bottom: 1rem !important;
    font-size: 5rem !important;
    line-height: 6rem !important;
}

/* Container widths */
.tf-container {
    max-width: 132rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.tf-container.w-1290 {
    max-width: 132rem !important;
}

@media (min-width: 1400px) {
    .tf-container,
    .tf-container.w-1290 {
        max-width: 132rem !important;
    }
}

.header .header-inner .header-left .logo-site img {
    max-width: 28rem !important;
}

.footer {
    padding-top: 50px !important;
    margin-top: 6rem !important;
}

.tf-topbar {
    padding: 0.5rem 0rem !important;
}

/* Ajustement de la taille du logo */
.header .header-inner .header-left .logo-site img {
    max-width: 28rem !important;
}

/* Styles pour le footer */
.footer {
    padding-top: 50px !important;
    margin-top: 6rem !important;
}

/* Styles pour la topbar */
.tf-topbar {
    padding: 0.5rem 0rem !important;
}

/* Price Entry Card Styles */
.tf-card-product .content-wrap {
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.prices-list {
    margin: 15px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

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

.price-label {
    color: #666;
    font-size: 0.95rem;
}

.price-value {
    font-size: 1rem;
    font-weight: 500;
    color: #2c5a1e;
}

.market-name .tf-badge {
    font-size: 1rem !important;
    padding: 8px 15px;
    font-weight: normal;
    background: #2c5a1e;
    color: white;
    border-radius: 5px;
}

.product-btn-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.product-btn-list .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    color: #2c5a1e;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.product-btn-list .icon:hover {
    background: #2c5a1e;
    color: white;
}

/* Product Detail Styles */
.tf-page-title {
    background: #f8f9fa;
    padding: 20px 0;
    margin-bottom: 30px;
}

.tf-page-title .tf-breadcrumbs {
    font-size: 0.9rem;
}

.tf-page-title .tf-breadcrumbs a {
    color: #666;
}

.tf-page-title .tf-breadcrumbs span {
    color: #999;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tf-product-detail .content-inner {
        padding: 0;
        margin-top: 2rem;
    }

    .header .header-inner .header-left .logo-site img {
        max-width: 20rem !important;
    }

    .product-btn-list {
        flex-wrap: wrap;
    }

    .product-btn-list .icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Login Form Responsive */
    .tf-shop.login {
        padding: 30px 0;
        min-height: auto;
    }

    .login-form {
        padding: 25px 20px;
        margin: 0 15px;
        border-radius: 10px;
    }

    .login-form h2 {
        font-size: 24px;
    }

    .login-form p {
        font-size: 14px;
    }

    .login-btn {
        flex-direction: column;
        gap: 10px;
    }

    .login-btn .tf-button {
        width: 100%;
        max-width: none;
        min-width: auto;
    }

    .form-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .tf-button {
        min-width: 100px;
        font-size: 13px;
        padding: 10px 20px;
    }

    .form-group input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .g-recaptcha {
        transform: scale(0.9);
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 20px 15px;
        margin: 0 10px;
    }

    .login-form h2 {
        font-size: 22px;
    }

    .login-form p {
        font-size: 13px;
    }

    .tf-button {
        font-size: 12px;
        padding: 8px 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .g-recaptcha {
        transform: scale(0.8);
    }
}

/* Login Form Styles */
.tf-shop.login {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.login-form h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2c5a1e;
    text-align: center;
    font-weight: 600;
}

.login-form p {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group label span {
    color: #f00;
    margin-left: 4px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 16px;
    background: #fff;
}

.form-group input:focus {
    border-color: #2c5a1e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 90, 30, 0.1);
}

/* Button Styles */
.tf-button {
    padding: 12px 24px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    margin: 5px;
    min-width: 120px;
    font-size: 14px;
    line-height: 1.4;
}

.tf-button.color-style1 {
    background: #2c5a1e;
    color: white;
}

.tf-button.color-style1:hover {
    background: #1e3d14;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(44, 90, 30, 0.3);
}

.tf-button.color-style2 {
    background: #4a90e2;
    color: white;
}

.tf-button.color-style2:hover {
    background: #357abd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.tf-button.color-style3 {
    background: #39579a;
    color: white;
}

.tf-button.color-style3:hover {
    background: #2d4373;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(57, 87, 154, 0.3);
}

.tf-button.color-style4 {
    background: #db4437;
    color: white;
}

.tf-button.color-style4:hover {
    background: #c23321;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(219, 68, 55, 0.3);
}

/* Login Form Button Container */
.login-btn {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.login-btn .tf-button {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

/* Social Login Styles */
.social-login {
    text-align: center;
    margin: 20px 0;
}

.social-login span {
    display: block;
    margin: 10px 0;
    color: #666;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Form Footer Styles */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.checkbox-inline input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
}

.lost-pass {
    color: #2c5a1e;
    text-decoration: none;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
}

.lost-pass:hover {
    color: #1e3d14;
    text-decoration: underline;
}

/* reCAPTCHA Styles */
.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}
