:root {
    --color-brand: #d4a034;
    --color-brand-hover: #e0b24a;
    --color-bg: #151515;
    --color-surface: #242424;
    --color-surface-hover: #2d2d2d;
    --color-text: #f5f5f5;
    --color-text-soft: #d8d8d8;
    --color-border: #3a3a3a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg,#111 0%,#1a1a1a 100%);
    color: var(--color-text);
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

.dealer-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.dealer-card,
.dealer-content {
    width: 100%;
    max-width: 700px;
    background: rgba(36,36,36,0.95);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 40px 30px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.35);
}

.dealer-card h1,
.dealer-content h1 {
    color: var(--color-brand);
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

.dealer-card p,
.dealer-content p {
    color: var(--color-text-soft);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.password-form input {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: #1c1c1c;
    color: var(--color-text);
    font-size: 1rem;
}

.password-form input:focus {
    border-color: var(--color-brand);
}

.password-form button,
.logout-btn {
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: var(--color-brand);
    color: #111;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.password-form button:hover,
.logout-btn:hover {
    background: var(--color-brand-hover);
}

.error-message {
    color: #ff7b7b;
    text-align: center;
    min-height: 20px;
}



.dealer-content {
    max-width: 1100px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 20px;
}

.product-card {
    background: #1d1d1d;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    transition: 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    background: var(--color-surface-hover);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-info {
    padding: 18px;
}

.product-info h3 {
    color: var(--color-brand);
    margin-bottom: 10px;
}

.product-info p {
    text-align: left;
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (max-width:768px){

    .dealer-card,
    .dealer-content{
        padding:30px 20px;
    }

    .dealer-card h1,
    .dealer-content h1{
        font-size:1.6rem;
    }

    .top-bar{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .logout-btn{
        width:100%;
    }
}
.hidden{
display:none;
}
/* =========================
   ASTRAGALS DEALER SECTION
========================= */

.astragal-hero{
display:flex;
align-items:center;
justify-content:center;
gap:30px;
padding:90px 6%;
background:linear-gradient(135deg,#111,#1a1a1a 60%,#222);
overflow:hidden;
width:100%;
margin:0;
max-width:none;
}
.astragal-text{
max-width:620px;
}

.astragal-text h1{
color:#d4a034;
font-size:3rem;
margin-bottom:20px;
}

.astragal-text p{
color:#f0f0f0;
line-height:1.8;
margin-bottom:18px;
}

.eyebrow{
color:#d4a034;
letter-spacing:2px;
text-transform:uppercase;
font-size:14px;
margin-bottom:12px;
font-weight:700;
}

.astragal-image{
max-width:520px;
height:520px;
overflow:hidden;
border-radius:22px;
border:1px solid rgba(212,160,52,0.3);
box-shadow:0 20px 50px rgba(0,0,0,0.35);
background:#181818;
}

.astragal-image img{
width:100%;
height:115%;
object-fit:cover;
animation:slowScrollImage 14s ease-in-out infinite alternate;
}

/* slow floating image motion */

@keyframes slowScrollImage{

from{
transform:translateY(0) scale(1.03);
}

to{
transform:translateY(-35px) scale(1.08);
}

}

/* Dealer logout button position */

#dealercontent {
    position: relative;
}

.logout-btn{
position:absolute;
top:20px;
right:20px;
padding:10px 16px;
border:none;
border-radius:8px;
background:var(--color-brand);
color:#111;
font-weight:bold;
cursor:pointer;
transition:0.2s ease;
z-index:10;
}

.logout-btn:hover{
background:var(--color-brand-hover);
}



.call-button {
    position: fixed;
    bottom: 50px;
    left: 25px;
    z-index: 9999;
    padding: 16px 22px;
    border-radius: 50px;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 600;
    background: var(--color-brand);
    color: var(--color-text-dark);
    box-shadow: var(--shadow-dark);
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.call-button:hover {
    background: var(--color-brand-hover);
    box-shadow: var(--shadow-brand);
    transform: translateY(-2px);
}

/* MOBILE */

@media(max-width:900px){

.astragal-hero{
flex-direction:column;
text-align:center;
padding:70px 20px;
}

.astragal-image{
width:100%;
height:420px;
}

.astragal-text h1{
font-size:2.4rem;
}

}