: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: 3px;
    font-weight: 900;
    font-size: 1.1em;
    padding: 15px 15px 5px 15px;
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 8px;
    font-size: 0.75em;
    letter-spacing: 1px;
    padding: 10px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    color: #000 !important;
    text-decoration: none;
    font-weight: 800;
    padding: 4px 2px;
    line-height: 1;
    display: inline-block;
}

@media (min-width: 768px) {
    .master-nav {
        flex-direction: row;
        justify-content: space-between;
        height: 85px;
        padding: 0 25px;
        align-items: center;
    }
    .nav-logo {
        font-size: 1.2em;
        padding: 0;
    }
    .nav-links {
        gap: 10px;
        font-size: 0.8em;
        padding: 0;
        width: auto;
        justify-content: flex-end;
    }
}

@media (min-width: 1024px) {
    .master-nav {
        padding: 0 35px;
    }
    .nav-logo {
        font-size: 1.35em;
        letter-spacing: 3px;
    }
    .nav-links {
        gap: 14px;
        font-size: 0.82em;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

@media (min-width: 1300px) {
    .nav-logo {
        font-size: 1.45em;
        letter-spacing: 4px;
    }
    .nav-links {
        gap: 18px;
        font-size: 0.85em;
    }
}

/* ==========================================
   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: 40px 25px 25px 25px;
    max-width: 1050px;
    margin: 0 auto;
}

.saat-header {
    font-size: 1.25em;
    color: #222;
    margin: 0;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

/* ==========================================
   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));
    gap: 15px;
    padding: 15px;
    background: #fff;
    width: 100%;
}

@media (min-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        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-page {
    width: 100% !important;
    padding: 20px 25px 40px 25px !important;
    box-sizing: border-box !important;
}

#filter-page select {
    width: 100%;
    height: 45px;
    border: 1px solid #ddd;
    padding: 0 15px;
    font-size: 0.95em;
    background: #fff;
    border-radius: 0;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.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%; }

/* ==========================================
   SALE RIBBON COMPONENT (TRANSLUCENT VIBRANT)
   ========================================== */
.sale-ribbon-container {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 30px;
    border-bottom: 2px solid #111;
}

.sale-ribbon-overlay {
    background: rgba(0, 0, 0, 0.28);
    padding: 35px 15px 30px 15px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .sale-ribbon-overlay {
        padding: 45px 35px 40px 35px;
    }
}

.sale-ribbon-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sale-ribbon-tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sale-ribbon-headline {
    color: #ffffff;
    font-size: 1.35em;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 14px 0;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

@media (min-width: 768px) {
    .sale-ribbon-headline {
        font-size: 1.85em;
    }
}

.sale-ribbon-coupon-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px dashed rgba(255, 255, 255, 0.6);
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sale-ribbon-coupon-label {
    color: #eaeaea;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sale-ribbon-coupon-code {
    color: #f1c40f;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    font-family: monospace;
}

.sale-ribbon-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    width: 100%;
    padding: 10px 5px 20px 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    justify-content: flex-start;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .sale-ribbon-strip {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 20px;
    }
}

.sale-ribbon-strip::-webkit-scrollbar {
    height: 6px;
}

.sale-ribbon-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.sale-ribbon-card {
    flex: 0 0 145px;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: #111 !important;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .sale-ribbon-card {
        flex: 0 0 175px;
    }
}

.sale-ribbon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.sale-ribbon-img {
    width: 100%;
    height: 125px;
    object-fit: contain;
    background: #f9f9f9;
    display: block;
    padding: 4px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .sale-ribbon-img {
        height: 145px;
        padding: 6px;
    }
}

.sale-ribbon-card-body {
    padding: 12px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
    background: #ffffff;
}

.sale-ribbon-title {
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    color: #111;
}

.sale-ribbon-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

.sale-ribbon-old-price {
    font-size: 11px;
    color: #888;
    text-decoration: line-through;
    font-weight: 500;
}

.sale-ribbon-new-price {
    font-size: 15px;
    font-weight: 900;
    color: #27ae60;
}

.sale-ribbon-buy-btn {
    width: 100%;
    background: #111;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 3px;
    margin-top: auto;
    transition: background 0.2s ease;
}

.sale-ribbon-card:hover .sale-ribbon-buy-btn {
    background: #1e8449;
}

/* ==========================================
   INLINE EDITORIAL MEDIA (BIOGRAPHY & TEXT PAGES)
   ========================================== */
.static-inline-img, .static-inline-video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eaeaea;
}

/* WCAG CONTRAST OVERRIDES */
body, .intro-container, .description-box { color: #111 !important; }
.card-specs, .card-size, .card-meta div { color: #444 !important; }
a.text-link { color: #000 !important; }
.nav-disabled { color: #ccc !important; opacity: 0.5 !important; cursor: not-allowed !important; pointer-events: none; }
