/*
Theme Name: MDX Clean
Theme URI: https://acpartsales.co.za
Author: Marius Dauth
Version: 1.0
*/

body{
font-family: Arial, Helvetica, sans-serif;
margin:0;
padding:0;
background:#ffffff;
}

/* ======================================================
   PART PROFILE PAGE
   ====================================================== */

.profile-wrapper{
max-width:1200px;
margin:auto;
padding:40px 20px;
}

.profile-header h1{
font-size:32px;
margin-bottom:5px;
}

.profile-meta{
color:#666;
margin-bottom:20px;
}

/* Two column layout */

.profile-grid{
display:grid;
grid-template-columns:1.4fr 1fr;
gap:40px;
margin-top:20px;
align-items:start;
}

/* Image gallery */

.profile-gallery{
background:#f5f5f5;
padding:20px;
max-width:720px;
}

.gallery-main{
width:100%;
height:420px;
background:#ddd;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
border:1px solid #ddd;
}

.gallery-main img{
width:100%;
height:100%;
object-fit:cover;
}

.gallery-thumbs{
display:flex;
gap:10px;
margin-top:10px;
}

.thumb{
background:#ccc;
flex:1;
height:70px;
display:flex;
align-items:center;
justify-content:center;
font-size:12px;
cursor:pointer;
overflow:hidden;
}

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

/* Info card */

.profile-info{
background:#ffffff;
border:1px solid #ddd;
padding:20px;
box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.info-row{
margin-bottom:10px;
}

.price-box{
font-size:22px;
margin:15px 0;
font-weight:bold;
}

.rfq-button{
background:#1e4b8b;
color:#fff;
border:none;
padding:12px;
width:100%;
cursor:pointer;
}

/* Sections */

.profile-section{
margin-top:40px;
}

/* ===============================
   PARTS GALLERY
================================ */

.parts-gallery-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
gap:25px;
margin-top:30px;
}
/* Tile */

.part-card{
background:#fff;
border:1px solid #ddd;
text-decoration:none;
color:#000;
display:block;
overflow:hidden;
border-radius:6px;
transition:all .2s ease;
}

/* Image area */

.card-image{
width:100%;
height:200px;
background:#f5f5f5;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
}

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

/* Text section */

.card-body{
padding:8px;
height:90px;
overflow:hidden;
}

.card-body h3{
margin:0 0 6px 0;
font-size:13px;
line-height:1.2;
font-weight:600;
}

/* Metadata */

.meta{
font-size:11px;
color:#666;
margin-bottom:4px;
}

/* Price */

.price{
font-size:14px;
font-weight:bold;
color:#0a7f3f;
}

.part-card:hover{
box-shadow:0 4px 12px rgba(0,0,0,0.15);
transform:translateY(-2px);
transition:all .2s;
}

.catalog-filters{
display:flex;
gap:10px;
margin-bottom:20px;
align-items:center;
}

.catalog-filters input{
padding:6px;
width:220px;
}

.catalog-filters select{
padding:6px;
}

.catalog-filters button{
padding:6px 12px;
background:#1e4b8b;
color:white;
border:none;
cursor:pointer;
}

/* ============================= */
/* PART PROFILE TABLES */
/* ============================= */

.profile-table{
width:100%;
border-collapse:collapse;
margin-top:15px;
table-layout:fixed;
}

.profile-table th{
width:260px;
text-align:left;
padding:10px 14px;
background:#f5f7fa;
font-weight:600;
color:#333;
border-bottom:1px solid #ddd;
}

.profile-table td{
padding:10px 14px;
border-bottom:1px solid #ddd;
color:#222;
word-break:break-word;
}

.profile-table tr:hover{
background:#fafafa;
}

.profile-section{
margin-top:40px;
padding-top:10px;
border-top:1px solid #e5e5e5;
}

.profile-section h2{
font-size:20px;
margin-bottom:10px;
font-weight:600;
}

/* ============================= */
/* FORM ALIGNMENT */
/* ============================= */
.info-row{
display:grid;
grid-template-columns:220px 1fr;
align-items:center;
margin-bottom:12px;
column-gap:12px;
}

.info-row b{
font-weight:600;
}

.info-row input,
.info-row select{
max-width:500px;
padding:6px 8px;
box-sizing:border-box;
}

.upload-button{
    display:inline-block;
    margin-top:20px;
    background:#0073aa;
    color:white;
    padding:10px 18px;
    border-radius:4px;
    cursor:pointer;
    font-weight:600;
}

.upload-button:hover{
    background:#005f8d;
}

.profile-gallery{
    margin-bottom:20px;
}

.photo-upload-container{
    margin-top:25px;
    text-align:center;
}

.upload-button{
    display:inline-block;
    background:#0073aa;
    color:white;
    padding:12px 22px;
    border-radius:6px;
    cursor:pointer;
    font-weight:600;
    letter-spacing:0.5px;
}

.upload-button:hover{
    background:#005f8d;
}

.gallery-thumbs{
    margin-bottom:15px;
}

.photo-upload-container{
    margin-top:30px;
    text-align:center;
}

.upload-button{
    background:#0073aa;
    color:white;
    border:none;
    padding:12px 24px;
    font-size:14px;
    font-weight:600;
    border-radius:6px;
    cursor:pointer;
}

.upload-button:hover{
    background:#005f8d;
}

.gallery-thumbs{
    margin-bottom:25px;
}

.hero{

height:520px;

background:linear-gradient(
rgba(0,0,0,0.4),
rgba(0,0,0,0.4)
),
url('../img/aircraft-bg.jpg');

background-size:cover;

background-position:center;

display:flex;

align-items:center;

justify-content:center;

text-align:center;

color:white;

}

.hero-content{

max-width:900px;

}

.home-logo{

width:380px;

margin-bottom:25px;

}

.home-search{

margin-top:20px;

}

.home-search input{

padding:12px;

width:300px;

border:none;

border-radius:4px;

}

.home-search button{

padding:12px 18px;

background:#0073aa;

color:white;

border:none;

border-radius:4px;

cursor:pointer;

}

.hero{

position:relative;

height:520px;

overflow:hidden;

display:flex;

align-items:center;

justify-content:center;

}

.hero-video{

position:absolute;

top:0;

left:0;

width:100%;

height:100%;

object-fit:cover;

z-index:-1;

}

.hero-overlay{

text-align:center;

color:white;

max-width:900px;

}

.home-logo{

width:360px;

margin-bottom:20px;

}

.hero-overlay h1{

font-size:38px;

margin-bottom:10px;

}

.hero-overlay p{

font-size:18px;

margin-bottom:20px;

}

.home-search input{

padding:12px;

width:320px;

border-radius:4px;

border:none;

margin-right:8px;

}

.home-search button{

padding:12px 20px;

background:#0073aa;

border:none;

color:white;

border-radius:4px;

cursor:pointer;

}

.hero{
height:500px;
background:linear-gradient(#f5f5f5,#eaeaea);
display:flex;
align-items:center;
justify-content:center;
text-align:center;
position:relative;
}

.hero-logo{
width:380px;
margin-bottom:20px;
}

.hero-overlay h1{
font-size:38px;
margin-bottom:10px;
}

.hero-search input{
padding:12px;
width:320px;
border-radius:4px;
border:1px solid #ccc;
}

.hero-search button{
padding:12px 20px;
background:#0c5f2c;
color:white;
border:none;
border-radius:4px;
}

.login-section{
padding:60px 0;
text-align:center;
background:white;
}

.login-box{
max-width:400px;
margin:auto;
}

.login-box input{
display:block;
width:100%;
padding:10px;
margin:10px 0;
}

.featured-parts{
padding:60px;
background:#f8f8f8;
}

.parts-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;
}

.parts-grid .part-card{
background:white;
padding:15px;
border-radius:6px;
box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.part-image img{
width:100%;
}

.site-header{

position:sticky;
top:0;
z-index:999;

background:white;

box-shadow:0 2px 8px rgba(0,0,0,0.1);

}

.nav-wrapper{

display:flex;
align-items:center;
justify-content:space-between;

padding:10px 40px;

}

.logo img{

height:55px;

}

.main-nav a{

margin:0 15px;
text-decoration:none;
font-weight:600;
color:#222;

}

.main-nav a:hover{

color:#0c5f2c;

}

.user-menu .nav-btn{

background:#0c5f2c;
color:white;
padding:8px 16px;
border-radius:4px;
text-decoration:none;

}

.admin-buttons{

position:absolute;
top:8px;
right:8px;

display:flex;
gap:6px;

}

.admin-buttons .btn{

display:flex;
align-items:center;
justify-content:center;

width:28px;
height:28px;

border-radius:4px;

font-size:14px;
font-weight:bold;

color:#fff;
text-decoration:none;

}

.btn.approve{

background:#2ecc71;

}

.btn.disable{

background:#f39c12;

}

.btn.delete{

background:#e74c3c;

}

.part-card{

position:relative;

}

.hero {

background-image: url("assets/img/hero-blueprint.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;

min-height: 500px;

display: flex;
align-items: center;
justify-content: center;

position: relative;

}

.hero {

background-image: url("assets/img/hero-blueprint.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;

min-height: 500px;

display: flex;
align-items: center;
justify-content: center;

position: relative;

}

/* CINEMATIC DARK OVERLAY */

.hero::before{

content:"";
position:absolute;

top:0;
left:0;

width:100%;
height:100%;

background:linear-gradient(
rgba(0,0,0,0.65),
rgba(0,0,0,0.35)
);

z-index:1;

}

/* CONTENT ABOVE OVERLAY */

.hero-overlay{
position:relative;
z-index:2;

background: rgba(0,0,0,0.55);
padding: 40px;
border-radius: 8px;
color: white;
text-align: center;
}

.hero-logo{
width:120px;
margin-bottom:20px;
}
