/* =========================================================
   Featured Product Spotlight — fps-style.css
   Editorial, clean layout matching the design reference
   ========================================================= */

.fps-section {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 48px 0 64px;
    background: #faf9f7;
}

/* ── Section title ── */
.fps-section-title {
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 32px 0;
    line-height: 1;
}

/* ── Layout grid ── */
.fps-layout {
    display: grid;
    grid-template-columns: 90px 1fr 1fr;
    grid-template-rows: auto;
    gap: 0 24px;
    align-items: start;
    background: #fff;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

@media (max-width: 900px) {
    .fps-layout {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto;
    }
    .fps-info {
        grid-column: 1 / -1;
        margin-top: 28px;
    }
}

@media (max-width: 580px) {
    .fps-layout {
        grid-template-columns: 60px 1fr;
        padding: 20px 16px;
        gap: 0 12px;
    }
    .fps-section { padding: 32px 0; }
}

/* ── Thumbnail column (wrapper that stays exactly as tall as the main image) ── */
.fps-thumbs-col {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    /* height is synced to the main image via JS */
    height: 100%;
    position: relative;
}

/* Up/down scroll arrows */
.fps-thumb-arrow {
    width: 100%;
    height: 26px;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.15s;
    z-index: 2;
}
.fps-thumb-arrow:hover { background: #f5f5f5; }
.fps-thumb-arrow svg { width: 14px; height: 14px; color: #444; display: block; }
.fps-thumb-arrow:disabled { opacity: 0.25; pointer-events: none; }

/* The scrollable viewport — clips overflow */
.fps-thumbs-viewport {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ── Thumbnail strip ── */
.fps-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}

.fps-thumb {
    display: block;
    padding: 0;
    border: 2px solid transparent;
    background: #f0eeeb;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 3/4;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.fps-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.fps-thumb:hover { border-color: #aaa; }
.fps-thumb.active { border-color: #1a1a1a; }

/* ── Main image ── */
.fps-main-img-wrap {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    overflow: hidden;
    background: #f0eeeb;
    aspect-ratio: 3/4;
}

.fps-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.fps-main-img.fps-fade {
    opacity: 0;
}

/* ── Gallery arrows ── */
.fps-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    padding: 0;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.fps-arrow svg {
    width: 18px;
    height: 18px;
    color: #222;
    display: block;
}

.fps-arrow:hover { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.fps-arrow-prev { left: 12px; }
.fps-arrow-next { right: 12px; }

/* ── Info panel ── */
.fps-info {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-left: 12px;
}

@media (max-width: 900px) {
    .fps-info { grid-column: 1 / -1; padding-left: 0; }
}

.fps-product-name {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 400;
    letter-spacing: -0.3px;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0;
}

/* ── Price row ── */
.fps-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.fps-price {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}

.fps-price del { color: #aaa; margin-right: 4px; }
.fps-price ins { text-decoration: none; }

.fps-tax-note {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.2px;
}

/* ── Field block (label + control) ── */
.fps-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fps-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
}

/* ── Size buttons ── */
.fps-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fps-size-btn {
    padding: 8px 18px;
    border: 1.5px solid #ccc;
    background: #fff;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    color: #1a1a1a;
    line-height: 1;
    font-family: inherit;
}

.fps-size-btn:hover { border-color: #888; }

.fps-size-btn.selected {
    border-color: #1a1a1a;
    background: #fff;
    font-weight: 600;
}

/* ── Quantity ── */
.fps-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    height: 46px;
    gap: 0;
}

.fps-qty-btn {
    width: 46px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
    flex-shrink: 0;
}

.fps-qty-btn svg {
    width: 16px;
    height: 16px;
    color: #333;
    display: block;
}

.fps-qty-btn:hover { background: #f5f5f5; }

.fps-qty-input {
    width: 52px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 15px;
    height: 100%;
    padding: 0;
    background: #fff;
    color: #1a1a1a;
    -moz-appearance: textfield;
    appearance: textfield;
    font-family: inherit;
}

.fps-qty-input::-webkit-outer-spin-button,
.fps-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Action buttons ── */
.fps-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.fps-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
    font-family: inherit;
    line-height: 1;
}

.fps-btn-cart {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.fps-btn-cart:hover { background: #333; border-color: #333; }
.fps-btn-cart:disabled { opacity: 0.6; cursor: not-allowed; }

.fps-btn-secondary {
    background: #fff;
    color: #1a1a1a;
    border-color: #ddd;
}

.fps-btn-secondary:hover { border-color: #aaa; }

/* ── Spinner ── */
.fps-spin {
    width: 18px;
    height: 18px;
    animation: fps-rotate 0.7s linear infinite;
}

@keyframes fps-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Messages ── */
.fps-message {
    font-size: 13px;
    padding: 0;
    min-height: 0;
    transition: all 0.2s;
}

.fps-message.success { color: #2e7d32; }
.fps-message.error   { color: #c62828; }

/* ── Short description ── */
.fps-short-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.fps-short-desc p { margin: 0 0 8px; }
