/* ============================================================
   101 Series — Batch 4 Features CSS v4.0
   Format Selector · People Also Bought · 404 · Cookie Banner
   ============================================================ */

/* ══════════════════════════════════════════
   16. FORMAT SELECTOR
══════════════════════════════════════════ */
#s101-format-selector {
    margin: 0 0 24px;
    padding: 20px;
    background: #f8f5ec;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
}
.s101-fmt-label {
    font-size: 11px; font-weight: 800;
    letter-spacing: 2px; color: #888;
    text-transform: uppercase; margin-bottom: 12px;
}
.s101-fmt-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.s101-fmt-option {
    position: relative;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}
.s101-fmt-option:hover {
    border-color: var(--fmt-color, #C9A84C);
    background: rgba(201,168,76,0.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.s101-fmt-option.s101-fmt-active {
    border-color: var(--fmt-color, #C9A84C);
    background: rgba(201,168,76,0.05);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15), 0 8px 24px rgba(0,0,0,0.08);
}
.s101-fmt-badge {
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%);
    background: var(--fmt-color, #C9A84C);
    color: #fff;
    font-size: 9px; font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.s101-fmt-name {
    font-size: 13px; font-weight: 800;
    color: #0D1B2A; margin-bottom: 5px;
    line-height: 1.3;
}
.s101-fmt-desc {
    font-size: 11px; color: #888;
    line-height: 1.5; margin-bottom: 8px;
}
.s101-fmt-price {
    font-size: 15px; font-weight: 900;
    color: var(--fmt-color, #C9A84C);
}
.s101-fmt-hint {
    font-size: 11px; color: #aaa;
    margin-top: 10px; text-align: center;
}
@media (max-width: 480px) {
    .s101-fmt-options { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════
   17. PEOPLE ALSO BOUGHT
══════════════════════════════════════════ */
#s101-also-bought {
    background: #fff;
    padding: 48px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.s101-also-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.s101-also-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.s101-also-title {
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #0D1B2A !important;
    margin: 0 !important;
}
.s101-also-all {
    font-size: 13px;
    font-weight: 700;
    color: #C9A84C;
    text-decoration: none;
    transition: opacity 0.2s;
}
.s101-also-all:hover { opacity: 0.8; }
.s101-also-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.s101-also-track::-webkit-scrollbar { display: none; }
.s101-also-card {
    flex-shrink: 0;
    width: 180px;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}
.s101-also-card:hover { transform: translateY(-4px); }
.s101-also-img-wrap {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 10px;
    overflow: hidden;
    background: #f0ece2;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
.s101-also-card:hover .s101-also-img-wrap {
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.s101-also-no-img {
    display: flex; align-items: center;
    justify-content: center; font-size: 40px;
}
.s101-also-img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.s101-also-card:hover .s101-also-img { transform: scale(1.04); }
.s101-also-cat {
    font-size: 10px; font-weight: 700;
    color: #C9A84C; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 4px;
}
.s101-also-book-title {
    font-size: 12px; font-weight: 700;
    color: #0D1B2A; line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.s101-also-price {
    font-size: 13px; font-weight: 900;
    color: #C9A84C;
}

/* ══════════════════════════════════════════
   18. CUSTOM 404 PAGE
══════════════════════════════════════════ */
#s101-404-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}
.s101-404-inner { max-width: 560px; margin: 0 auto; }
.s101-404-num {
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 900;
    color: rgba(201,168,76,0.15);
    letter-spacing: -6px;
    line-height: 1;
    margin-bottom: -20px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.s101-404-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.s101-404-title {
    font-size: clamp(28px, 5vw, 42px) !important;
    font-weight: 900 !important;
    color: #0D1B2A !important;
    margin: 0 0 12px !important;
}
.s101-404-sub {
    font-size: 16px; color: #888;
    line-height: 1.7; margin: 0 auto 32px;
    max-width: 420px;
}
.s101-404-search {
    display: flex; gap: 0;
    background: #fff;
    border: 2px solid rgba(201,168,76,0.3);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 28px;
    transition: border-color 0.2s ease;
}
.s101-404-search:focus-within { border-color: #C9A84C; }
#s101-404-input {
    flex: 1; border: none; outline: none;
    padding: 14px 18px;
    font-size: 15px; font-family: inherit;
    background: transparent; color: #0D1B2A;
}
#s101-404-btn {
    background: #C9A84C; color: #0D1B2A;
    border: none; padding: 14px 20px;
    font-size: 14px; font-weight: 800;
    cursor: pointer; font-family: inherit;
    transition: background 0.2s ease;
    white-space: nowrap;
}
#s101-404-btn:hover { background: #e0bb5a; }
.s101-404-links {
    display: flex; gap: 8px;
    flex-wrap: wrap; justify-content: center;
}
.s101-404-link {
    background: #f8f5ec;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px; font-weight: 700;
    color: #0D1B2A; text-decoration: none;
    transition: all 0.2s ease;
}
.s101-404-link:hover {
    background: #0D1B2A; color: #C9A84C;
    border-color: #0D1B2A;
}

/* ══════════════════════════════════════════
   19. COOKIE BANNER
══════════════════════════════════════════ */
#s101-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99990;
    max-width: 420px;
    width: calc(100vw - 48px);
    background: rgba(13,27,42,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
#s101-cookie-banner.s101-cookie-show { transform: translateY(0); }
.s101-cookie-inner { display: flex; flex-direction: column; gap: 14px; }
.s101-cookie-text {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 13px; color: rgba(255,255,255,0.7);
    line-height: 1.6;
}
.s101-cookie-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.s101-cookie-text strong { color: #fff; }
.s101-cookie-policy {
    color: #C9A84C !important; font-weight: 700;
    text-decoration: none; display: inline-block;
    margin-top: 2px; font-size: 12px;
}
.s101-cookie-actions { display: flex; gap: 8px; }
.s101-cookie-decline {
    flex: 1; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    padding: 10px; border-radius: 8px;
    font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: all 0.2s ease;
}
.s101-cookie-decline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.s101-cookie-accept {
    flex: 2;
    background: linear-gradient(135deg, #C9A84C, #e0c060);
    color: #0D1B2A; border: none;
    padding: 10px; border-radius: 8px;
    font-size: 13px; font-weight: 900;
    cursor: pointer; font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 0 16px rgba(201,168,76,0.3);
}
.s101-cookie-accept:hover {
    box-shadow: 0 0 28px rgba(201,168,76,0.5);
    transform: translateY(-1px);
}
@media (max-width: 480px) {
    #s101-cookie-banner { bottom: 0; left: 0; width: 100%; max-width: 100%; border-radius: 16px 16px 0 0; }
}
