:root {
    --bg: #ffffff;
    --text: #111111;
    --gray: #757575;
    --brand-gradient: linear-gradient(135deg, #34B0E0 0%, #216BBF 100%);
    --gap: 20px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
header {
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
    height: 60px;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-controls {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    max-width: 500px;
    margin: 0 40px;
}
.header-controls input, .header-controls select {
    background: #f8f8f8;
    border: 1px solid transparent;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}
.header-controls input:focus { background: white; border-color: #34B0E0; }

nav a {
    text-decoration: none;
    color: var(--text);
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Hero (Updated Tagline Size) --- */
.hero {
    padding: 80px 5%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tagline {
    /* REDUCED SIZE as requested */
    font-size: 1.5rem; 
    font-weight: 500;
    line-height: 1.5;
    color: #333;
    
    /* Keep animation */
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.8s ease-out forwards;
}

@keyframes textReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: var(--gap);
    padding: 0 5% 100px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

/* Random sizes */
.card.wide { grid-column: span 2; }
.card.tall { grid-row: span 2; }
.card.big  { grid-column: span 2; grid-row: span 2; }

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.card:hover .card-img { transform: scale(1.05); }

.card-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    box-sizing: border-box;
}
.card:hover .card-overlay { opacity: 1; }
.card-title { font-weight: 600; font-size: 1.1rem; margin: 0; }
.card-price { font-size: 0.9rem; opacity: 0.9; }

/* --- Modal --- */
#product-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 200;
    overflow-y: auto;
}
.modal-content {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

/* --- NEW: Image Carousel Styles --- */
.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f4f4;
}

.modal-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3; /* Keeps images consistent */
    object-fit: contain; /* Shows full image */
}

/* Carousel Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.nav-arrow:hover { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav-arrow.prev { left: 15px; }
.nav-arrow.next { right: 15px; }

/* Hide arrows if only 1 image (handled by JS, but useful class) */
.hidden { display: none !important; }

/* --- Modal Info --- */
.modal-info { position: sticky; top: 100px; }
#m-title { font-size: 2.5rem; margin: 0 0 10px 0; line-height: 1.1; letter-spacing: -1px; }
#m-cat { color: #34B0E0; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* Description List Formatting */
#m-desc-list {
    padding-left: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #555;
}
#m-desc-list li { margin-bottom: 8px; }

/* --- Forms & Buttons --- */
#inquiry-form-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 300;
    align-items: center;
    justify-content: center;
}
.form-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.85rem; color: #444; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    box-sizing: border-box;
}
.form-group textarea { height: 100px; resize: none; }

.cta-btn {
    width: 100%;
    background: var(--brand-gradient);
    color: white;
    padding: 14px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

footer {
    border-top: 1px solid #eee;
    padding: 40px 5%;
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 80px;
}

@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .card.wide, .card.tall, .card.big { grid-column: auto; grid-row: auto; }
    .hero { padding: 80px 5%; }
    .tagline { font-size: 1.2rem; }
    .modal-content { grid-template-columns: 1fr; }
    .card-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); }
}
