/* =========================================================
   VİTRİN
   - Ana sayfa: "Öne çıkanlar"ın üstündeki kombin fotoğrafları
   - /vitrin/{id}: fotoğraf + karedeki ürünler
   - Ürün sayfası: "Bu ürünün yer aldığı vitrin"
   - Admin: /admin/vitrin
========================================================= */


/* ---------- Ana sayfa ---------- */

.looks {
    position: relative;
    margin-top: clamp(48px, 7vw, 92px);
    padding-inline: var(--gutter, 5vw);
}

.looks[hidden] {
    display: none;
}

.looks-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: 22px;
}

.looks-head h2 {
    font-weight: 600;
    font-size: 26px;
    letter-spacing: -0.02em;
    color: var(--cream, #f4ede2);
}

.looks-head p {
    color: rgba(244, 237, 226, 0.6);
    font-size: 14px;
}

.looks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
}

/* 3 ve daha fazla vitrinde ilki büyük durur */
.looks-grid.is-editorial {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.looks-grid.is-editorial .look-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.look-card {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    border-radius: 16px;
    background: #2a3a30;
    color: #fff;
    isolation: isolate;
}

.looks-grid:not(.is-editorial) .look-card,
.looks-grid.is-editorial .look-card:not(:first-child) {
    aspect-ratio: 4 / 3;
}

.look-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.look-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 22, 18, 0.82) 100%);
}

.look-card:hover img {
    transform: scale(1.035);
}

.look-card:focus-visible {
    outline: 2px solid var(--lamp, #e7b878);
    outline-offset: 4px;
}

.look-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: clamp(16px, 2vw, 26px);
}

.look-title {
    display: block;
    font-weight: 700;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.look-count {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 500;
}

.look-cta {
    flex-shrink: 0;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--lamp, #e7b878);
    color: #18241d;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

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

.look-thumbs span {
    width: 34px;
    height: 34px;
    margin-right: -8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: #ddd;
}

.look-thumbs img {
    position: static;
    z-index: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important;
}

@media (max-width: 900px) {

    .looks-grid.is-editorial {
        grid-template-columns: 1fr 1fr;
    }

    .looks-grid.is-editorial .look-card:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 650px) {

    .looks-grid,
    .looks-grid.is-editorial {
        grid-template-columns: 1fr;
    }

    .look-cta {
        display: none;
    }
}


/* ---------- Vitrin sayfası ---------- */

.look-page {
    padding-top: 34px;
    padding-bottom: 40px;
}

.look-back {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--text-soft, #5b605c);
    font-size: 14px;
    font-weight: 600;
}

.look-back:hover {
    color: var(--primary, #1f2e25);
}

.look-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.look-media {
    position: sticky;
    top: 20px;
}

.look-photo {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface-soft, #efe9df);
    box-shadow: 0 18px 50px rgba(31, 46, 37, 0.12);
}

.look-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.look-kicker {
    margin-bottom: 8px;
    color: var(--accent, #b67c45);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.look-side h1 {
    margin-bottom: 12px;
    color: var(--primary, #1f2e25);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.look-description {
    margin-bottom: 22px;
    color: var(--text-soft, #5b605c);
    line-height: 1.7;
    white-space: pre-line;
}

.look-products-title {
    margin-bottom: 12px;
    color: var(--primary, #1f2e25);
    font-size: 16px;
    font-weight: 700;
}

.look-products {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.look-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--border, #e4ddd2);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.look-product:hover {
    border-color: var(--accent, #b67c45);
    transform: translateX(3px);
    box-shadow: 0 8px 20px rgba(31, 46, 37, 0.08);
}

.look-product-media {
    position: relative;
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface-soft, #efe9df);
}

.look-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.look-product-text {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.look-product-name {
    overflow: hidden;
    color: var(--primary, #1f2e25);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.look-product-meta {
    color: var(--text-soft, #5b605c);
    font-size: 13px;
}

.look-product-state {
    color: #9a6a3c;
    font-size: 12px;
    font-weight: 700;
}

.look-product.is-unavailable .look-product-media img {
    opacity: 0.5;
    filter: grayscale(0.4);
}

.look-product-arrow {
    flex-shrink: 0;
    color: var(--accent, #b67c45);
    font-size: 20px;
}

.look-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.look-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--primary, #1f2e25);
    border-radius: 10px;
    color: var(--primary, #1f2e25);
    font-weight: 600;
}

.look-contact a.is-primary {
    background: var(--primary, #1f2e25);
    color: #fff;
}

@media (max-width: 900px) {

    .look-layout {
        grid-template-columns: 1fr;
    }

    .look-media {
        position: static;
    }
}


/* ---------- Ürün sayfası: yer aldığı vitrin ---------- */

.product-looks-grid .similar-media {
    aspect-ratio: 4 / 3;
}

.product-looks-grid .similar-count {
    color: var(--text-soft, #5b605c);
    font-size: 13px;
}


/* ---------- Admin ---------- */

.showcase-admin-page {
    padding-top: 30px;
    padding-bottom: 60px;
}

.showcase-new {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.showcase-new .is-wide {
    grid-column: 1 / -1;
}

.showcase-list {
    display: grid;
    gap: 22px;
    margin-top: 26px;
}

.showcase-empty {
    padding: 30px;
    border: 1px dashed #ccc;
    border-radius: 10px;
    color: #666;
    text-align: center;
}

.showcase-item {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
}

.showcase-item.is-hidden {
    opacity: 0.72;
}

.showcase-item-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    background: #eee;
}

.showcase-item-photo .admin-control-button {
    width: 100%;
    margin-top: 10px;
}

.showcase-item-body {
    display: grid;
    gap: 14px;
    align-content: start;
}

.showcase-item-body label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.showcase-item-body input[type="text"],
.showcase-item-body input[type="search"],
.showcase-item-body textarea,
.showcase-new input[type="text"],
.showcase-new textarea,
.showcase-new input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font: inherit;
    font-weight: 400;
}

.showcase-item-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.showcase-item-row .is-push {
    margin-left: auto;
}

.showcase-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: #e6efe8;
    color: #2f6b45;
    font-size: 12px;
    font-weight: 700;
}

.showcase-badge.is-off {
    background: #f1ece4;
    color: #8a531f;
}

.showcase-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.showcase-products li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 5px;
    border: 1px solid #e6e1d8;
    border-radius: 999px;
    background: #fbfaf7;
    font-size: 13px;
}

.showcase-products li.is-inactive {
    opacity: 0.6;
}

.showcase-products img,
.showcase-products .noimg {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: #ece6dc;
}

.showcase-products button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #999;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.showcase-products button:hover {
    background: #f6e3e1;
    color: #b8382f;
}

.showcase-results {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.showcase-results li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
}

.showcase-results li:hover {
    background: #f6f3ee;
}

.showcase-results img,
.showcase-results .noimg {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    background: #ece6dc;
}

.showcase-results span {
    flex: 1;
    font-size: 14px;
}

.showcase-results button {
    padding: 6px 12px;
    border: 0;
    border-radius: 6px;
    background: #1f2e25;
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.showcase-msg {
    min-height: 1.2em;
    font-size: 14px;
}

.showcase-msg.is-error {
    color: #b8382f;
}

.showcase-msg.is-ok {
    color: #2f6b45;
}

@media (max-width: 850px) {

    .showcase-item,
    .showcase-new {
        grid-template-columns: 1fr;
    }
}

.showcase-intro {
    margin: -10px 0 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.showcase-item-row button:disabled {
    opacity: 0.35;
    cursor: default;
}


/* Renk seçenekleri (admin) */

.showcase-item.is-version {
    margin-top: -12px;
    margin-left: clamp(16px, 4vw, 56px);
    border-left: 4px solid #b67c45;
}

.showcase-badge.is-color {
    background: #fbf3ea;
    color: #8a531f;
}

.showcase-item-body select {
    width: 100%;
    max-width: 320px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font: inherit;
    font-weight: 400;
}

.showcase-color-add {
    padding: 12px;
    border: 1px dashed #d8c3a8;
    border-radius: 10px;
    background: #fdfaf6;
}

.showcase-color-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.showcase-color-form[hidden] {
    display: none;
}

.showcase-color-form select {
    max-width: 200px;
}


/* Vitrin sayfası: renk seçenekleri */

.look-layout.is-switching .look-photo img,
.look-layout.is-switching .look-products {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.look-photo img {
    animation: look-fade 0.35s ease;
}

@keyframes look-fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.look-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    color: #1f2e25;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.15s ease, background 0.15s ease;
}

.look-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.look-arrow:focus-visible {
    outline: 2px solid #b67c45;
    outline-offset: 3px;
}

.look-arrow.is-prev { left: 14px; }
.look-arrow.is-next { right: 14px; }

.look-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.look-photo-color {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2e25;
    font-size: 13px;
    font-weight: 700;
}

.look-photo-dot,
.look-option-swatch,
.look-card-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    background: var(--swatch, #ccc);
}

.look-photo-dot.is-multi,
.look-option-swatch.is-multi,
.look-card-dot.is-multi {
    background: conic-gradient(#b8382f, #cfa13a, #5a7d5a, #5b84b8, #6f5288, #b8382f);
}

.look-options {
    margin-top: 16px;
}

.look-options-label {
    margin-bottom: 10px;
    color: var(--text-soft, #5b605c);
    font-size: 14px;
}

.look-options-label strong {
    color: var(--primary, #1f2e25);
}

.look-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.look-option {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    width: 96px;
    padding: 6px 6px 8px;
    border: 1.5px solid var(--border, #e4ddd2);
    border-radius: 12px;
    background: #fff;
    color: #3a3f3c;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.look-option:hover {
    border-color: #b67c45;
    transform: translateY(-2px);
}

.look-option.is-current {
    border-color: var(--primary, #1f2e25);
    box-shadow: 0 0 0 2px var(--primary, #1f2e25) inset;
    transform: none;
}

.look-option-thumb {
    position: relative;
    width: 82px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.look-option-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: none;
}

.look-option-swatch {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
}

/* Ana sayfa kartında renk noktaları */

.look-colors {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    vertical-align: middle;
}

.look-card-dot {
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

@media (max-width: 650px) {

    .look-arrow {
        width: 40px;
        height: 40px;
    }

    .look-arrow.is-prev { left: 8px; }
    .look-arrow.is-next { right: 8px; }
}
