/* Yokaba Inception popup + cart badge — AD-SPOT 2026-05-25 */

.yk-inc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 999998;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.yk-inc-overlay.is-open { display: flex; }
.yk-inc-modal {
    background: #fff;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    position: relative;
    animation: ykIncIn .35s ease-out;
}
@keyframes ykIncIn {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.yk-inc-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0,0,0,.05);
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #1D1C1A;
    z-index: 2;
}
.yk-inc-close:hover { background: rgba(0,0,0,.1); }

.yk-inc-head {
    padding: 28px 28px 16px;
    text-align: center;
    border-bottom: 1px solid #F0EDE8;
}
.yk-inc-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1D1C1A;
    letter-spacing: -0.01em;
}
.yk-inc-subtitle {
    font-size: 14px;
    color: #6F6C68;
    margin: 0 0 18px;
    line-height: 1.5;
}
.yk-inc-progress {
    display: flex;
    gap: 6px;
    margin: 0 auto 8px;
    max-width: 280px;
}
.yk-inc-progress-seg {
    flex: 1;
    height: 6px;
    background: #E8E1D9;
    border-radius: 3px;
    transition: background .3s;
}
.yk-inc-progress-seg.filled { background: #A88466; }
.yk-inc-progress-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #A88466;
    margin-top: 6px;
}

.yk-inc-grid {
    padding: 20px 22px 8px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 22px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #D8C9B9 transparent;
}
.yk-inc-grid::-webkit-scrollbar {
    height: 6px;
}
.yk-inc-grid::-webkit-scrollbar-track {
    background: transparent;
}
.yk-inc-grid::-webkit-scrollbar-thumb {
    background: #D8C9B9;
    border-radius: 3px;
}
.yk-inc-grid::-webkit-scrollbar-thumb:hover {
    background: #A88466;
}
.yk-inc-grid .yk-inc-card {
    flex: 0 0 calc(50% - 6px);
    scroll-snap-align: start;
    min-width: 0;
}
@media (min-width: 600px) {
    .yk-inc-grid .yk-inc-card { flex: 0 0 calc(25% - 9px); }
}
/* Slider hint shadows on right edge to indicate scrollability */
.yk-inc-grid-wrap {
    position: relative;
}
.yk-inc-grid-wrap::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    bottom: 8px;
    width: 24px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.85));
    pointer-events: none;
    border-radius: 0 12px 12px 0;
}

.yk-inc-card {
    border: 1px solid #F0EDE8;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    background: #FAFAF8;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .15s;
}
.yk-inc-card:hover { border-color: #A88466; transform: translateY(-2px); }
.yk-inc-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 8px;
}
.yk-inc-card-name {
    font-size: 12px;
    font-weight: 600;
    color: #1D1C1A;
    line-height: 1.3;
    min-height: 32px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.yk-inc-card-price {
    margin-bottom: 8px;
}
.yk-inc-card-price-regular {
    font-size: 11px;
    color: #B5453E;
    text-decoration: line-through;
    margin-right: 4px;
}
.yk-inc-card-price-tier {
    font-size: 14px;
    font-weight: 700;
    color: #3D6B36;
}
.yk-inc-card-btn {
    background: #A88466;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
    transition: background .15s;
    font-family: inherit;
}
.yk-inc-card-btn:hover { background: #8A6A53; }
.yk-inc-card-btn:disabled { background: #ccc; cursor: not-allowed; }
.yk-inc-card-btn.is-added {
    background: #3D6B36;
}

.yk-inc-footer {
    padding: 16px 28px 24px;
    text-align: center;
}
.yk-inc-cta {
    background: #1D1C1A;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: background .15s;
}
.yk-inc-cta:hover { background: #000; }
.yk-inc-skip {
    display: block;
    margin: 12px auto 0;
    background: none;
    border: none;
    color: #6F6C68;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    font-family: inherit;
}

/* Cart badge in side-cart and cart page */
.yk-inc-badge {
    background: linear-gradient(135deg, #FFF6E8 0%, #FFE9C5 100%);
    border: 1px solid #E0B97A;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
}
.yk-inc-badge-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.yk-inc-badge-text { flex: 1; color: #1D1C1A; }
.yk-inc-badge-text strong { color: #A88466; }
.yk-inc-badge-link {
    background: #A88466;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background .15s;
}
.yk-inc-badge-link:hover { background: #8A6A53; }
.yk-inc-badge.is-success {
    background: linear-gradient(135deg, #E8F5E5 0%, #C9E5BF 100%);
    border-color: #3D6B36;
}
.yk-inc-badge.is-success .yk-inc-badge-text strong { color: #3D6B36; }

/* INCEPTION_COPY_v2 — tier ladder in popup subtitle */
.yk-inc-tier-ladder {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 14px;
}
.yk-inc-tier {
    display: inline-block;
    padding: 6px 12px;
    background: #FAFAF8;
    border: 1px solid #E8E1D9;
    border-radius: 6px;
    font-size: 12px;
    color: #6F6C68;
    white-space: nowrap;
}
.yk-inc-tier strong {
    color: #A88466;
}

/* INCEPTION_PERCENT_ICON — % badge replaces gift emoji */
.yk-inc-badge .yk-inc-badge-icon {
    width: 34px;
    height: 34px;
    background: #A88466;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    line-height: 1;
}
.yk-inc-badge.is-success .yk-inc-badge-icon.yk-inc-badge-icon-ok {
    background: #3D6B36;
    font-size: 18px;
}

/* INCEPTION_SLIDER_ARROWS_2026_05_25 */
.yk-inc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #1D1C1A;
    border: 1px solid #E8E1D9;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 0;
    transition: background .15s, border-color .15s, opacity .2s;
    font-family: inherit;
}
@media (min-width: 600px) {
    .yk-inc-arrow { display: flex; }
}
.yk-inc-arrow:hover:not(:disabled) {
    background: #A88466;
    color: #fff;
    border-color: #A88466;
}
.yk-inc-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}
.yk-inc-arrow-prev { left: 6px; }
.yk-inc-arrow-next { right: 6px; }
/* Adjust fade-edges to not collide with arrows */
.yk-inc-grid-wrap::after {
    right: 0;
    width: 30px;
}
