/* Kurallar + Mağaza sayfaları (landing.css'teki rp- bileşenlerini kullanır) */
.rp-page { padding-top: 30px; }
.rp-page .rp-intro .rp-tag { display: block; margin-bottom: 10px; }
.rp-page .rp-section:first-of-type { margin-top: 0; }

.rp-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rp-jump .rp-pill i { color: var(--rp-orange); }

/* ---------- Kurallar ---------- */
.rp-rules { scroll-margin-top: 30px; }
.rp-rules__head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}
.rp-rules__head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.rp-rules__head p { margin: 4px 0 0; }
.rp-icon--solid { margin: 0; background: linear-gradient(135deg, var(--rp-red), var(--rp-orange)); color: #fff; }

.rp-rules__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rp-rules__grid--two { grid-template-columns: repeat(2, 1fr); }
.rp-rule {
    background: #fff;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 10px 40px rgba(160, 80, 20, .07);
    border-top: 4px solid var(--rp-cream);
    transition: transform .2s, box-shadow .2s;
}
.rp-rule:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(160, 80, 20, .12); }
.rp-rule .rp-icon { margin: 0 0 16px; width: 48px; height: 48px; font-size: 20px; border-radius: 14px; }
.rp-rule h3 { font-size: 18px; margin-bottom: 8px !important; }
.rp-rule p { margin: 0; line-height: 1.65; }
.rp-rule strong { color: var(--rp-red); }
.rp-rule ul { margin: 0; padding-left: 18px; line-height: 1.65; }
.rp-rule li + li { margin-top: 8px; }
.rp-rule li::marker { color: var(--rp-orange); }
.rp-rule--danger { border-top-color: var(--rp-red); }
.rp-rule--danger .rp-icon { background: #fde4dd; color: var(--rp-red); }

.rp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 34px 38px;
    border-radius: 26px;
    background: linear-gradient(120deg, var(--rp-red), var(--rp-orange) 60%, var(--rp-yellow));
    color: #fff;
    box-shadow: 0 16px 40px rgba(231, 63, 30, .25);
}
.rp-cta h2 { color: #fff !important; font-size: 26px; font-weight: 800; }
.rp-cta p { margin: 6px 0 0; color: #fff3dc; }
.rp-cta .rp-pill--primary { background: #fff; color: var(--rp-red); }

/* ---------- Mağaza ---------- */
.rp-shop { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.rp-side {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 10px 40px rgba(160, 80, 20, .07);
}
.rp-side h3 { font-size: 13px !important; letter-spacing: .16em; text-transform: uppercase; color: var(--rp-orange) !important; margin: 4px 8px 12px !important; }
.rp-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rp-cats button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    font: 700 15px 'Karla', sans-serif;
    color: var(--rp-ink);
    cursor: pointer;
    text-align: left;
    transition: background .15s, color .15s;
}
.rp-cats button i { width: 20px; text-align: center; color: var(--rp-orange); }
.rp-cats button small { margin-left: auto; font-weight: 700; color: #b8a594; }
.rp-cats button:hover { background: #fff6ea; }
.rp-cats button.is-active { background: linear-gradient(90deg, var(--rp-red), var(--rp-orange)); color: #fff; }
.rp-cats button.is-active i, .rp-cats button.is-active small { color: #fff; }

.rp-main { min-width: 0; }
.rp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.rp-toolbar h2 { font-size: 26px; font-weight: 800; margin-right: auto !important; }
.rp-input {
    height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 100px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(160, 80, 20, .08);
    font: 600 14px 'Karla', sans-serif;
    color: var(--rp-ink);
    outline: none;
}
.rp-input:focus { box-shadow: 0 0 0 2px var(--rp-orange); }
.rp-input[type="search"] { box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.rp-product__media { cursor: pointer; }
.rp-basket-btn { position: relative; }
.rp-basket-btn .rp-badge {
    min-width: 22px; height: 22px; padding: 0 6px;
    display: inline-grid; place-items: center;
    border-radius: 100px; background: #fff; color: var(--rp-red);
    font-size: 12px; font-weight: 800;
}

.rp-notice {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: #fff4dc;
    color: #8a5a10;
    font-weight: 600;
    font-size: 14px;
}
.rp-notice i { color: var(--rp-yellow); font-size: 18px; }

.rp-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.rp-product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(160, 80, 20, .07);
    transition: transform .2s, box-shadow .2s;
}
.rp-product:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(160, 80, 20, .14); }
.rp-product__media {
    position: relative;
    height: 150px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fff1dc, #ffe2b8);
    color: var(--rp-orange);
    font-size: 54px;
}
.rp-product__media img { max-width: 70%; max-height: 120px; object-fit: contain; }
.rp-product__sale {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 10px; border-radius: 100px;
    background: var(--rp-red); color: #fff; font-size: 12px; font-weight: 800;
}
.rp-product__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.rp-product__body h3 { font-size: 18px; }
.rp-product__desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--rp-text); flex: 1; }
.rp-price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 12px; }
.rp-price strong { font-size: 22px; color: var(--rp-red); font-weight: 800; }
.rp-price s { color: #b8a594; font-size: 14px; }
.rp-product__actions { display: flex; gap: 8px; }
.rp-product__actions .rp-pill { flex: 1; justify-content: center; padding: 11px 14px; font-size: 14px; }
.rp-product__actions .rp-pill--ghost { flex: 0 0 auto; background: #fff6ea; color: var(--rp-orange); box-shadow: none; }

.rp-empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; background: #fff; border-radius: 22px; }
.rp-empty i { font-size: 34px; color: var(--rp-orange); }

/* Sepet çekmecesi + ürün detayı */
.rp-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(43, 26, 18, .45);
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.rp-overlay.is-open { opacity: 1; pointer-events: auto; }
.rp-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001;
    width: min(420px, 100%);
    display: flex; flex-direction: column;
    background: var(--rp-bg);
    box-shadow: -20px 0 60px rgba(43, 26, 18, .2);
    transform: translateX(100%); transition: transform .25s;
    font-family: 'Karla', sans-serif; color: var(--rp-text);
}
.rp-drawer.is-open { transform: none; }
.rp-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; background: #fff; }
.rp-drawer__head h3 { margin: 0; font-size: 22px; font-weight: 800; color: var(--rp-ink); }
.rp-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff6ea; color: var(--rp-orange); font-size: 18px; cursor: pointer; }
.rp-drawer__body { flex: 1; overflow-y: auto; padding: 18px 24px; display: grid; gap: 12px; align-content: start; }
.rp-line { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border-radius: 16px; }
.rp-line__info { flex: 1; min-width: 0; }
.rp-line__info strong { display: block; color: var(--rp-ink); }
.rp-line__info span { font-size: 13px; }
.rp-qty { display: flex; align-items: center; gap: 6px; }
.rp-qty button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: #fff1dc; color: var(--rp-orange); font-weight: 800; cursor: pointer; }
.rp-drawer__foot { padding: 20px 24px; background: #fff; display: grid; gap: 12px; }
.rp-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; color: var(--rp-ink); }
.rp-total span:last-child { color: var(--rp-red); }
.rp-drawer__foot .rp-input { width: 100%; box-shadow: inset 0 0 0 1.5px #f1e3d0; }
.rp-drawer__foot .rp-pill { justify-content: center; }
.rp-drawer__foot .rp-pill[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.rp-small { font-size: 12px; text-align: center; margin: 0; }

.rp-modal {
    position: fixed; z-index: 1002; left: 50%; top: 50%;
    width: min(560px, calc(100% - 32px)); max-height: 85vh; overflow-y: auto;
    transform: translate(-50%, -46%); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
    background: #fff; border-radius: 26px; padding: 28px;
    font-family: 'Karla', sans-serif; color: var(--rp-text);
}
.rp-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.rp-modal h3 { font-size: 24px; font-weight: 800; color: var(--rp-ink); margin: 0 40px 6px 0; }
.rp-modal .rp-x { position: absolute; top: 20px; right: 20px; }
.rp-modal__desc { line-height: 1.7; margin: 14px 0 20px; }
.rp-modal__desc ul { padding-left: 20px; }

.rp-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 1003;
    transform: translate(-50%, 20px); opacity: 0; transition: all .25s;
    padding: 12px 20px; border-radius: 100px;
    background: var(--rp-ink); color: #fff; font: 700 14px 'Karla', sans-serif;
}
.rp-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.rp-side, .rp-main { min-width: 0; }

/* Kullanıcı adı: üst çubuktaki rozet ve isim modalı */
.rp-user[hidden] { display: none; }
.rp-user span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-name .rp-name__form { display: flex; gap: 10px; }
.rp-name .rp-name__form .rp-input { flex: 1; min-width: 0; box-shadow: inset 0 0 0 1.5px #f1e3d0; }
.rp-name .rp-name__form .rp-pill { flex: 0 0 auto; }
.rp-name__error { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--rp-red); }
.rp-name__error[hidden] { display: none; }

@media (max-width: 960px) {
    .rp-rules__grid { grid-template-columns: repeat(2, 1fr); }
    .rp-shop { grid-template-columns: minmax(0, 1fr); gap: 16px; }

    /* Kategoriler: yatay kaydırılabilen çipler */
    .rp-side { position: static; padding: 0; background: none; box-shadow: none; }
    .rp-side h3 { display: none; }
    .rp-cats {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 2px 10px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .rp-cats::-webkit-scrollbar { display: none; }
    .rp-cats li { flex: none; scroll-snap-align: start; }
    .rp-cats button {
        padding: 10px 16px;
        border-radius: 100px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(160, 80, 20, .08);
        white-space: nowrap;
    }
    .rp-cats button small { margin-left: 4px; }
}

@media (max-width: 640px) {
    .rp-rules__grid, .rp-rules__grid--two { grid-template-columns: 1fr; }
    .rp-rules__head { align-items: flex-start; }
    .rp-cta { padding: 26px 22px; text-align: center; justify-content: center; }

    .rp-page { padding-top: 10px; }
    .rp-page .rp-lead { font-size: 15px; margin-bottom: 0; }
    .rp-page .rp-section { margin-top: 36px; }

    /* Araç çubuğu: başlık üstte, arama tam genişlik, sıralama altında */
    .rp-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .rp-toolbar h2 { font-size: 22px; margin: 0 !important; }
    .rp-toolbar .rp-input { width: 100%; }

    /* Sepet: ekranın altında sabit yüzen buton */
    .rp-basket-btn {
        position: fixed;
        right: 16px;
        bottom: 16px;
        z-index: 900;
        padding: 14px 20px;
        box-shadow: 0 12px 30px rgba(231, 63, 30, .4);
    }

    .rp-notice { font-size: 13px; padding: 12px 14px; align-items: flex-start; }

    /* Ürünler: 2 sütunlu kompakt kartlar */
    .rp-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 70px; }
    .rp-product { border-radius: 18px; }
    .rp-product:hover { transform: none; }
    .rp-product__media { height: 96px; font-size: 38px; }
    .rp-product__media img { max-height: 80px; }
    .rp-product__sale { top: 8px; left: 8px; padding: 3px 8px; font-size: 11px; }
    .rp-product__body { padding: 12px; gap: 2px; }
    .rp-product__body h3 { font-size: 15px; line-height: 1.25; }
    .rp-product__desc { display: none; }
    .rp-price { flex-wrap: wrap; gap: 4px 6px; margin: 6px 0 10px; }
    .rp-price strong { font-size: 17px; }
    .rp-price s { font-size: 12px; }
    .rp-product__actions { gap: 6px; }
    .rp-product__actions .rp-pill { padding: 10px 8px; font-size: 13px; gap: 6px; }
    .rp-product__actions .rp-pill--ghost { display: none; }
    .rp-product__actions .rp-pill--primary { white-space: nowrap; }
    .rp-product__actions .rp-pill--primary i { display: none; }

    .rp-drawer__head, .rp-drawer__body, .rp-drawer__foot { padding-left: 18px; padding-right: 18px; }
    .rp-modal { padding: 22px; }
}

@media (max-width: 360px) {
    .rp-products { grid-template-columns: minmax(0, 1fr); }
}
