/*==================================================
BRANDS DIRECTORY
==================================================*/

.brands-directory{
padding:60px 0;
background:#fff;
}

.brand-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
margin-top:30px;
}

.brand-box{
background:#fff;
padding:20px 15px;
text-align:center;
font-size:15px;
font-weight:600;
border-radius:10px;
box-shadow:0 2px 12px rgba(0,0,0,.06);
transition:.3s;
color:#0B2D5C;
text-decoration:none;
display:flex;
flex-direction:column;
align-items:center;
}

.brand-box:hover{
transform:translateY(-4px);
box-shadow:0 6px 20px rgba(0,0,0,.1);
}

.brand-box img{
max-width:100px;
max-height:45px;
object-fit:contain;
display:block;
margin-bottom:10px;
}

@media(max-width:992px){
.brand-grid{grid-template-columns:repeat(3,1fr);}
}

@media(max-width:600px){
.brand-grid{grid-template-columns:repeat(2,1fr);}
}

/*==================================================
INDIVIDUAL BRAND PAGE
==================================================*/

.brand-page{
padding:60px 0;
background:#fff;
}

.brand-page-header{
text-align:center;
padding:40px 0;
border-bottom:1px solid #eee;
margin-bottom:40px;
}

.brand-logo{
max-width:400px;
max-height:160px;
object-fit:contain;
margin-bottom:20px;
}

.brand-page-header h1{
font-size:32px;
color:#0B2D5C;
margin-bottom:10px;
font-weight:800;
}

.brand-tagline{
font-size:15px;
color:#888;
font-weight:500;
}

.brand-content-grid{
display:grid;
grid-template-columns:1.5fr 1fr;
gap:40px;
margin-bottom:40px;
}

.brand-description p{
font-size:15px;
line-height:1.8;
color:#555;
margin-bottom:15px;
}

.brand-highlights{
background:#f8f9fb;
border-radius:12px;
padding:25px;
}

.highlight-item{
padding:10px 0;
font-size:14px;
color:#333;
border-bottom:1px solid #eee;
}

.highlight-item:last-child{
border-bottom:none;
}

.highlight-item strong{
color:#0B2D5C;
margin-right:8px;
}

.brand-actions{
display:flex;
gap:15px;
padding-top:20px;
border-top:1px solid #eee;
}

.btn-outline{
display:inline-block;
padding:12px 28px;
border:2px solid #0B2D5C;
color:#0B2D5C;
border-radius:50px;
text-decoration:none;
font-weight:600;
font-size:14px;
transition:.3s;
}

.btn-outline:hover{
background:#0B2D5C;
color:#fff;
}

/*==================================================
BRAND LAYOUT (SIDEBAR + MAIN)
==================================================*/

.brand-layout{
display:grid;
grid-template-columns:280px 1fr;
gap:30px;
margin-top:40px;
}

.brand-sidebar{
display:flex;
flex-direction:column;
gap:25px;
}

.sidebar-search h3,
.sidebar-info h3,
.sidebar-categories h3{
font-size:14px;
font-weight:800;
color:#0B2D5C;
text-transform:uppercase;
letter-spacing:1px;
margin-bottom:12px;
padding-bottom:8px;
border-bottom:2px solid #0B2D5C;
}

.search-form{
display:flex;
gap:0;
}

.search-select{
padding:10px 12px;
border:2px solid #e0e6ef;
border-right:none;
border-radius:6px 0 0 6px;
font-size:13px;
font-weight:600;
color:#0B2D5C;
background:#fff;
cursor:pointer;
font-family:'Poppins',sans-serif;
outline:none;
min-width:70px;
}

.search-input{
flex:1;
padding:10px 12px;
border:2px solid #e0e6ef;
font-size:13px;
color:#333;
outline:none;
font-family:'Poppins',sans-serif;
}

.search-input:focus{
border-color:#0B2D5C;
}

.search-btn{
width:44px;
min-width:44px;
background:#1D9448;
border:none;
border-radius:0 6px 6px 0;
color:#fff;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
transition:.3s;
}

.search-btn:hover{
background:#145d2f;
}

.sidebar-info{
background:#f8f9fb;
border-radius:10px;
padding:20px;
}

.sidebar-img{
width:100%;
border-radius:8px;
margin-bottom:12px;
object-fit:cover;
max-height:140px;
}

.sidebar-info p{
font-size:13px;
color:#666;
line-height:1.7;
}

.sidebar-categories ul{
list-style:none;
padding:0;
margin:0;
}

.sidebar-categories li{
padding:10px 0;
border-bottom:1px solid #eee;
}

.sidebar-categories li:last-child{
border-bottom:none;
}

.sidebar-categories a{
color:#1D9448;
text-decoration:none;
font-size:14px;
font-weight:600;
transition:.3s;
}

.sidebar-categories a:hover{
color:#145d2f;
}

.brand-main{
min-width:0;
}

.results-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:15px;
padding-bottom:12px;
border-bottom:1px solid #eee;
}

.results-count{
font-size:13px;
color:#888;
font-weight:500;
}

.sort-select{
padding:8px 14px;
border:1px solid #ddd;
border-radius:6px;
font-size:13px;
color:#555;
background:#fff;
cursor:pointer;
font-family:'Poppins',sans-serif;
outline:none;
}

.sort-select:focus{
border-color:#0B2D5C;
}

/*==================================================
BRAND TIRE SIZES
==================================================*/

.brand-sizes{
margin-top:0;
padding-top:0;
border-top:none;
}

.sizes-header h2{
font-size:24px;
color:#0B2D5C;
margin-bottom:0;
font-weight:700;
}

.sizes-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:15px;
}

.size-card{
display:block;
background:#fff;
border-radius:10px;
padding:18px 15px;
text-align:center;
transition:.3s;
border:1px solid #e8edf3;
position:relative;
overflow:hidden;
cursor:pointer;
}

.size-card:hover{
transform:translateY(-3px);
box-shadow:0 5px 20px rgba(0,0,0,.08);
border-color:#0B2D5C;
}

.size-label{
display:inline-block;
background:#0B2D5C;
color:#fff;
padding:3px 12px;
border-radius:15px;
font-size:11px;
font-weight:700;
letter-spacing:.5px;
margin-bottom:10px;
}

.size-brand{
display:block;
font-size:13px;
font-weight:700;
color:#F28C28;
margin-bottom:6px;
text-transform:uppercase;
letter-spacing:.5px;
}

.size-value{
display:block;
font-size:18px;
font-weight:800;
color:#0B2D5C;
margin-bottom:4px;
line-height:1.2;
}

.size-pattern{
display:block;
font-size:12px;
font-weight:600;
color:#555;
margin-bottom:4px;
}

.size-load{
display:block;
font-size:11px;
color:#999;
margin-bottom:12px;
font-weight:500;
}

.size-card .size-cta{
display:inline-block;
padding:7px 16px;
background:#1D9448;
color:#fff;
border-radius:6px;
font-size:12px;
font-weight:600;
transition:.3s;
}

.size-card:hover .size-cta{
background:#145d2f;
}

/*==================================================
SIZES HEADER & FILTERS
==================================================*/

.sizes-header{
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:15px;
margin-bottom:20px;
}

.sizes-header h2{
margin-bottom:0;
}

.size-filters{
display:flex;
gap:8px;
flex-wrap:wrap;
}

.filter-btn{
padding:8px 20px;
border:2px solid #e0e6ef;
background:#fff;
color:#555;
border-radius:25px;
font-size:13px;
font-weight:600;
cursor:pointer;
transition:.3s;
font-family:'Poppins',sans-serif;
}

.filter-btn:hover{
border-color:#0B2D5C;
color:#0B2D5C;
}

.filter-btn.active{
background:#0B2D5C;
border-color:#0B2D5C;
color:#fff;
}

/*==================================================
WHY CHOOSE US
==================================================*/

.brand-why{
margin-top:50px;
padding:40px 0;
border-top:1px solid #eee;
}

.brand-why h2{
font-size:24px;
color:#0B2D5C;
margin-bottom:25px;
font-weight:700;
text-align:center;
}

.why-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.why-item{
text-align:center;
padding:25px 15px;
background:#f8f9fb;
border-radius:12px;
transition:.3s;
border:1px solid transparent;
}

.why-item:hover{
border-color:#1D9448;
transform:translateY(-3px);
box-shadow:0 8px 20px rgba(0,0,0,.06);
}

.why-icon{
font-size:32px;
margin-bottom:12px;
}

.why-item h4{
font-size:15px;
color:#0B2D5C;
margin-bottom:8px;
font-weight:700;
}

.why-item p{
font-size:13px;
color:#666;
line-height:1.6;
}

@media(max-width:992px){
.brand-layout{grid-template-columns:1fr;}
.sizes-grid{grid-template-columns:repeat(3,1fr);}
.why-grid{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:768px){
.sizes-grid{grid-template-columns:repeat(2,1fr);}
.brand-content-grid{
grid-template-columns:1fr;
}
.brand-actions{
flex-direction:column;
}
.sizes-header{
flex-direction:column;
align-items:flex-start;
}
.results-header{
flex-direction:column;
gap:10px;
align-items:flex-start;
}
}

@media(max-width:480px){
.sizes-grid{grid-template-columns:1fr;}
.why-grid{grid-template-columns:1fr;}
}

/*==================================================
PRODUCT DETAIL MODAL
==================================================*/

.product-modal{
display:none;
position:fixed;
inset:0;
z-index:10000;
align-items:center;
justify-content:center;
padding:20px;
}

.product-modal.active{
display:flex;
}

.modal-overlay{
position:absolute;
inset:0;
background:rgba(0,0,0,.6);
}

.modal-content{
position:relative;
background:#fff;
border-radius:10px;
max-width:960px;
width:100%;
max-height:90vh;
overflow-y:auto;
padding:30px 35px;
box-shadow:0 20px 60px rgba(0,0,0,.2);
animation:modalIn .3s ease;
}

@keyframes modalIn{
from{opacity:0;transform:translateY(20px);}
to{opacity:1;transform:translateY(0);}
}

.modal-close{
position:absolute;
top:12px;
right:18px;
background:none;
border:none;
font-size:28px;
color:#888;
cursor:pointer;
transition:.3s;
line-height:1;
}

.modal-close:hover{color:#0B2D5C;}

.modal-breadcrumb{
font-size:12px;
color:#888;
margin-bottom:10px;
text-transform:uppercase;
letter-spacing:.5px;
}

.modal-product-title{
font-size:26px;
color:#1D9448;
font-weight:800;
line-height:1.3;
margin-bottom:12px;
padding-bottom:12px;
border-bottom:1px solid #eee;
}

.modal-meta{
display:flex;
gap:25px;
font-size:13px;
color:#333;
margin-bottom:20px;
}

.modal-meta strong{
font-weight:700;
}

.modal-two-col{
display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
}

.modal-left{
display:flex;
flex-direction:column;
gap:15px;
}

.modal-image-wrap{
position:relative;
background:#f8f9fb;
border-radius:8px;
overflow:hidden;
text-align:center;
}

.modal-tire-img{
width:100%;
max-height:280px;
object-fit:cover;
filter:grayscale(30%);
}

.modal-zoom-icon{
position:absolute;
bottom:10px;
left:10px;
width:32px;
height:32px;
background:rgba(255,255,255,.9);
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:16px;
cursor:pointer;
}

.modal-brand-logo-wrap{
text-align:left;
}

.modal-brand-logo{
max-width:120px;
max-height:50px;
object-fit:contain;
}

.modal-social{
display:flex;
gap:8px;
}

.modal-social a{
width:34px;
height:34px;
border-radius:50%;
background:#e8edf3;
display:flex;
align-items:center;
justify-content:center;
text-decoration:none;
font-size:14px;
transition:.3s;
color:#555;
}

.modal-social a:hover{
background:#1D9448;
color:#fff;
}

.modal-right{
display:flex;
flex-direction:column;
}

.modal-tabs{
display:flex;
gap:0;
border-bottom:2px solid #eee;
margin-bottom:15px;
}

.modal-tab{
background:none;
border:none;
padding:10px 18px;
font-size:13px;
font-weight:700;
color:#888;
cursor:pointer;
border-bottom:3px solid transparent;
margin-bottom:-2px;
transition:.3s;
font-family:'Poppins',sans-serif;
text-transform:uppercase;
letter-spacing:.5px;
}

.modal-tab.active{
color:#1D9448;
border-bottom-color:#1D9448;
}

.modal-tab:hover{
color:#0B2D5C;
}

.modal-tab-content{
display:none;
}

.modal-tab-content.active{
display:block;
}

.modal-spec-table{
width:100%;
border-collapse:collapse;
}

.modal-spec-table tr{
border-bottom:1px solid #eee;
}

.modal-spec-table tr:last-child{
border-bottom:none;
}

.modal-spec-table td{
padding:8px 0;
font-size:13px;
}

.modal-spec-table td:first-child{
font-weight:700;
color:#333;
text-transform:uppercase;
letter-spacing:.3px;
width:55%;
}

.modal-spec-table td:last-child{
color:#555;
}

.modal-actions{
display:flex;
gap:12px;
margin-top:20px;
padding-top:15px;
border-top:1px solid #eee;
}

.modal-actions .btn-primary{
flex:1;
text-align:center;
}

.modal-actions .btn-outline{
flex:0;
white-space:nowrap;
}

.modal-related{
margin-top:30px;
padding-top:20px;
border-top:1px solid #eee;
}

.modal-related h3{
font-size:16px;
color:#1D9448;
font-weight:800;
text-transform:uppercase;
letter-spacing:.5px;
margin-bottom:15px;
}

.related-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:15px;
}

.related-card{
background:#f8f9fb;
border-radius:8px;
overflow:hidden;
text-align:center;
transition:.3s;
border:1px solid #e8edf3;
}

.related-card:hover{
transform:translateY(-3px);
box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.related-card img{
width:100%;
height:100px;
object-fit:cover;
filter:grayscale(30%);
}

.related-cat{
display:block;
font-size:10px;
color:#888;
text-transform:uppercase;
letter-spacing:.5px;
padding:6px 8px 2px;
}

.related-title{
display:block;
font-size:12px;
color:#0B2D5C;
font-weight:700;
padding:0 8px 10px;
}

@media(max-width:768px){
.modal-two-col{grid-template-columns:1fr;}
.modal-content{padding:20px;}
.modal-product-title{font-size:20px;}
.modal-actions{flex-direction:column;}
.related-grid{grid-template-columns:1fr;}
.modal-meta{flex-direction:column;gap:5px;}
}
