:root {
    --bg: #ffffff;
    --text: #000000;
    --dim: #767676;
    --border: #eeeeee;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.master-nav {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.nav-logo {
    color: #000 !important;
    text-decoration: none;
    letter-spacing: 4px;
    font-weight: 900;
    font-size: 1.1em;
    padding: 15px 15px 5px 15px; /* MOBILE FIX: Added horizontal padding so it doesn't snap */
    text-align: center;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 10px;
    font-size: 0.75em;
    letter-spacing: 1px;
    padding: 10px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

.nav-links a {
    color: #000 !important;
    text-decoration: none;
    font-weight: 800;
    padding: 5px;
}

@media (min-width: 768px) {
    .master-nav {
        flex-direction: row;
        justify-content: space-between;
        height: 85px;
        padding: 0 40px;
    }
    .nav-logo {
        font-size: 1.5em;
        padding: 0;
    }
    .nav-links {
        gap: 25px;
        font-size: 0.85em;
        padding: 0;
        width: auto;
        justify-content: flex-end;
    }
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    overflow-x: hidden;
}

@media (min-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1fr 420px;
        gap: 60px;
        padding: 40px;
    }
}

.static-container {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 25px;
    box-sizing: border-box;
    text-align: left;
}

.intro-container {
    text-align: center;
    padding: 0px 25px 20px 25px; /* HOME FIX: Reduced top padding to 5px to close the gap */
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================
   STAGE & MAGNIFYING GLASS
   ========================================== */
.stage-container {
    background: #f9f9f9;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #eee;
    overflow: hidden;
    width: 100%;
}

.hero-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    transition: opacity 0.3s;
}

#zoom-lens {
    position: absolute;
    border: 1px solid #ccc;
    width: 180px;
    height: 180px;
    visibility: hidden;
    background-repeat: no-repeat;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    box-shadow: 0 0 25px rgba(0,0,0,0.2);
    pointer-events: none !important;
    background-color: #fff;
}

/* ==========================================
   THUMBNAILS
   ========================================== */
.thumb-strip {
    display: flex; gap: 12px; padding: 15px 2px; overflow-x: auto;
    justify-content: flex-start; width: 100%; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

.thumb {
    width: 70px; height: 70px; object-fit: cover; cursor: pointer;
    border: 1px solid transparent; opacity: 0.6; flex-shrink: 0;
}

.thumb.active { border: 1px solid #000; opacity: 1; }

/* ==========================================
   VIEW PANELS
   ========================================== */
.view-panel { display: none; width: 100%; }
.view-panel.active { display: block; }

/* ==========================================
   TYPOGRAPHY & BUTTONS
   ========================================== */
.price-box { font-size: 2.2em; font-weight: 900; margin: 20px 0; line-height: 1; }
.saat-scaling-line { font-size:0.85em; color: var(--dim); margin-top:-15px; margin-bottom:25px; font-weight:700; text-transform:uppercase; letter-spacing:1px; }

.btn-stack { margin-bottom: 30px; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.black-btn { width: 100%; height: 60px; background: #000; color: #fff; border: none; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; font-size: 1em; }
.white-btn { width: 100%; height: 60px; background: #fff; color: #000; border: 1px solid #000; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; font-size: 1em; }
.text-link { text-decoration: underline !important; cursor: pointer; font-weight: 700; color: #000; font-size: 0.85em; text-transform: uppercase; letter-spacing: 1px; }

.calc-input { width: 100%; height: 50px; border: 1px solid #ccc; padding: 0 15px; font-size: 1em; font-weight: 600; outline: none; border-radius: 0; background: #fff; }
.saat-art-title { font-size: 1.6em; font-weight: 900; margin: 25px 0 10px 0; text-transform: uppercase; letter-spacing: 1px; word-wrap: break-word; }

.meta-block { border-top: 1px solid #eee; padding-top: 25px; margin-top: 20px; }
.spec-row-full { font-size: 0.95em; color: #000; margin-bottom: 8px; font-weight: 500; line-height: 1.4; }

/* ==========================================
   RESULTS GRID (THE MOBILE 2-COL TWEAK)
   ========================================== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* Force 2 columns mobile */
    gap: 15px;
    padding: 15px;
    background: #fff;
    width: 100%;
}

@media (min-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; /* Many desktop */
        gap: 40px;
        padding: 40px;
    }
}

.art-card { text-decoration: none; color: #000 !important; display: block; width: 100%; margin-bottom: 20px; }
.art-card .img-box { width: 100%; aspect-ratio: 1/1; background: #f9f9f9; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #f3f3f3; }
.art-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

.card-meta { padding: 10px 0; display: flex; flex-direction: column; gap: 1px; }
.card-price { font-size: 16px; font-weight: 700; color: #000; }
.card-title { font-size: 14px; font-weight: 400; color: #000; font-style: italic; }
.card-specs, .card-size { font-size: 13px; color: #767676; font-weight: 400; }

/* ==========================================
   ADVANCED FILTERS
   ========================================== */
.filter-section { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.filter-section h3 { font-size: 0.9em; font-weight: 900; margin-bottom: 12px; letter-spacing: 1px; }
.custom-range-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.custom-input { width: 100%; height: 35px; border: 1px solid #ddd; padding: 5px; font-size: 0.85em; }

.color-swatch-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #ddd; cursor: pointer; transition: transform 0.2s; position: relative; }
.swatch:hover { transform: scale(1.2); }
.swatch.active { border: 3px solid #000; transform: scale(1.25); box-shadow: 0 0 8px rgba(0,0,0,0.3); }
.swatch-all { width: auto; padding: 0 10px; border-radius: 12px; font-size: 0.7em; font-weight: 900; line-height: 24px; text-align: center; background: #eee; }

/* ==========================================
   MODALS & FOOTER
   ========================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 10000; display: none; align-items: center; justify-content: center; }
.modal-content { background: #fff; width: 90%; max-width: 500px; padding: 40px; position: relative; max-height: 90vh; overflow-y: auto; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2em; cursor: pointer; }

.master-footer { margin-top: 80px; padding: 60px 20px; border-top: 1px solid #eee; text-align: center; color: #999; font-size: 0.75em; font-weight: 700; letter-spacing: 1px; width: 100%; }