.distributors-wrapper {
    margin-bottom: 30px;
}

/* =========================================
   1. (Select2)
   ========================================= */
.distributors-filter-form {
    margin-bottom: 40px;
    text-align: center;
}

.filter-container {
    display: inline-block;
    max-width: 70%;
    width: 100%;
}

.filter-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px !important;
    text-align: center;
}

.select2-container--default .select2-selection--single {
    background-color: #ffffff;
    border: 1px solid #e2e8f0 !important;
    height: 50px !important;
    display: flex;
    align-items: center;
    padding: 0 15px;
    outline: none;
    transition: all 0.3s ease;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #3182ce !important;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    left: 15px !important;
    right: auto !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #2d3748 !important;
    font-size: 15px;
    padding-right: 0 !important;
}

.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
}

.select2-search--dropdown .select2-search__field {
    border-radius: 6px !important;
    padding: 10px 12px !important;
    border: 1px solid #cbd5e0 !important;
    outline: none;
}

/* =========================================
   2. Cards
   ========================================= */
.distributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 10px;
}

.distributor-card {
    background-color: #ffffff;
    border: 1px solid #edf2f7;
    padding: 30px 20px;
    text-align: center;
/*     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02); */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.distributor-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
}

.dist-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: block;
    border: 4px solid #f7fafc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.distributor-card a {
    display: inline-block;
}

.distributor-card:hover .dist-img {
    border-color: #8ac451;
    transform: scale(1.05);
}

.dist-img.placeholder {
    background: #edf2f7;
    line-height: 100px;
    color: #a0aec0;
    font-size: 14px;
}


.dist-country {
    display: inline-block;
    background-color: #e6fbd1;
    color: #8ac451;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}


.dist-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 15px 0;
    line-height: 1.4;
}


.dist-address, .dist-phone {
    font-size: 14px;
    color: #4a5568;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dist-phone a {
    color: #8ac451;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.dist-phone a:hover {
    color: #3182ce;
    text-decoration: underline;
}


.no-distributors {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #f7fafc;
    border-radius: 12px;
    color: #718096;
    font-size: 16px;
    border: 1px dashed #cbd5e0;
}


/* =========================================
   3. Authors & Artist
   ========================================= */


.books-terms-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:30px;
}

.books-term-item{
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.books-term-item:hover{
    transform:translateY(-5px);
}

.books-term-item a{
    text-decoration:none;
    color:inherit;
    display:block;
}

.books-term-image{
    width:200px;
    height:200px;
    margin:0 auto 15px;
    border-radius:50%;
    overflow:hidden;
    background:#f5f5f5;
}

.books-term-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.books-term-name{
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #1a202c;
}

/* Tablet */
@media (max-width:1024px){

    .books-terms-grid{
        grid-template-columns:repeat(3,1fr);
    }

}

/* Mobile */
@media (max-width:767px){

    .books-terms-grid{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

    .books-term-image{
        width:100px;
        height:100px;
    }

}
/* =========================================
   3. Author Archive
   ========================================= */

.current-term-image{
    width:200px;
    height:200px;
    border-radius:50%;
    object-fit:cover;
    display:block;
	margin-right: auto;
	margin-left: auto;
	
}

/* =========================================
   3. Download Files
   ========================================= */

/* .pdf-grid{
	display:grid;
	grid-template-columns:repeat(4,1fr);
	gap:12px;
} */


.pdf-grid{
	display: flex;
    gap: 12px;
    flex-direction: column;
}

.pdf-item{
	padding:14px;
	background:#8AC451;
	color:#fff;
	text-align:center;
	border-radius:0px;
	display:block;
	text-decoration:none;
}

.pdf-item:hover{background:#333;}

#pdfPopup{
	display:none;
	position:fixed;
	inset:0;
	background:rgba(0,0,0,0.6);
	justify-content:center;
	align-items:center;
	z-index:99999;
}

.pdf-box{
	background:#fff;
	padding:20px;
	width:340px;
	border-radius:10px;
	text-align:center;
}

#pdfEmail{
	width:100%;
	padding:10px;
	margin-top:10px;
}

#sendPdf{
	width:100%;
	padding:10px;
	margin-top:10px;
	background:#111;
	color:#fff;
	border:none;
	cursor:pointer;
}

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


/* Not Archive Pages */
body.not-author-archive .elementor-element-495a5ade {
    display: none !important;
}

body.not-author-archive .elementor-29236 .elementor-element-cb03241 .title {
    text-align: center;
}

body.not-author-archive .elementor-element-5b1bfda0 {
	width: 100% !important;
}



.wd-product.wd-hover-standard .wd-add-btn>a {
	display: none !important;
}


.wd-my-account-sidebar.wd-grid-col {
    display: none !important;
}

.woocommerce-MyAccount-content.wd-grid-col {
    grid-column: auto / span 12!important;
}

.wd-post .wd-post-meta, .wd-post-meta {
	display: none !important;
}


/* body:not([class*="term-"]) .elementor-element-9fb5ff8 {
    display: none !important;
}

body:not([class*="term-"]) .elementor-29236 .elementor-element.elementor-element-75f7c4e {
        --width: 100% !important;
}

body:not([class*="term-"]) .elementor-29236 .elementor-element.elementor-element-02b2eea .title {
    text-align: center !important;
} */



.book-person-bio{
    display:flex;
    gap:20px;
    align-items:flex-start;
    margin:30px 0;
}

.book-person-bio-image{
    flex:0 0 120px;
}


.book-person-bio-content{
    flex:1;
}

.book-person-bio-name{
    margin:0 0 10px;
    font-size:24px;
}

.book-person-bio-description{
    line-height:1.8;
}






.book-person-bio {
    display: block !important;
    overflow: hidden;
}

.book-person-bio-image {
    float: right;
    margin: 0 0 20px 25px;
}

html[lang^="es"] .book-person-bio-image {
    float: left;
    margin: 0 20px 25px 0;
}



.book-person-bio-image img {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.book-person-bio-name {
    margin: 0 0 15px;
    font-size: 28px;
    line-height: 1.2;
	font-weight: 700 !important;
}

.book-person-bio-description {
    line-height: 2;
}

.book-person-bio-description p {
    margin: 0 0 15px;
}

@media (max-width: 768px) {
    .book-person-bio {
        flex-direction: column;
    }
	.book-person-bio-name {
		font-size: 20px !important;
		font-weight: 700 !important;
	}
}
