/* UASEX Sex shop — aligned with gallery / site frame */

.shop-page {
    --shop-text: #fff;
    --shop-muted: rgba(189, 166, 213, 0.9);
    --shop-line: rgba(188, 19, 254, 0.22);
    --shop-accent: #bc13fe;
    --shop-accent-2: #7c4dff;
    --shop-surface: rgba(26, 11, 46, 0.92);
    --shop-surface-2: rgba(22, 10, 37, 0.98);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 14px 48px;
    color: var(--shop-text);
    box-sizing: border-box;
    animation: shop-in 0.35s ease;
}

@keyframes shop-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.shop-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
    padding: 16px 16px 14px;
    border-radius: 18px;
    border: 1px solid var(--shop-line);
    background:
        linear-gradient(135deg, rgba(188, 19, 254, 0.16), transparent 55%),
        var(--shop-surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.shop-head h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.shop-head p {
    margin: 6px 0 0;
    color: var(--shop-muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.shop-head__meta {
    flex-shrink: 0;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(188, 19, 254, 0.35);
    background: rgba(188, 19, 254, 0.12);
}

.shop-filters {
    margin: 0 0 18px;
}

.shop-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.shop-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    color: var(--shop-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.shop-chip:hover,
.shop-chip.is-on {
    color: #fff;
    border-color: rgba(188, 19, 254, 0.55);
    background: rgba(188, 19, 254, 0.18);
}

.shop-filters__row {
    display: flex;
    justify-content: flex-end;
}

.shop-sort {
    display: grid;
    gap: 5px;
    min-width: 180px;
}

.shop-sort span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--shop-muted);
}

.shop-sort select {
    width: 100%;
    appearance: none;
    border-radius: 12px;
    border: 1px solid rgba(188, 19, 254, 0.28);
    background: var(--shop-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23bda6d5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: #fff;
    padding: 10px 34px 10px 12px;
    font-weight: 700;
}

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

@media (min-width: 720px) {
    .shop-page {
        padding: 12px 18px 56px;
    }

    .shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 980px) {
    .shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

.shop-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--shop-line);
    background: var(--shop-surface);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-card:hover {
    transform: translateY(-2px);
    border-color: rgba(188, 19, 254, 0.5);
    box-shadow: 0 18px 40px rgba(80, 0, 120, 0.35);
}

.shop-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.shop-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #12061c;
    overflow: hidden;
}

.shop-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.shop-card:hover .shop-card__media img {
    transform: scale(1.03);
}

.shop-ph {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background:
        linear-gradient(145deg, rgba(188, 19, 254, 0.22), rgba(124, 77, 255, 0.12)),
        #160a24;
}

.shop-ph--lg {
    min-height: 320px;
    border-radius: 18px;
}

.shop-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 8px;
    flex: 1;
}

.shop-card__cat {
    font-size: 11px;
    font-weight: 800;
    color: rgba(210, 170, 255, 0.9);
    letter-spacing: 0.02em;
}

.shop-card__body h2 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.3;
    font-weight: 850;
}

.shop-card__body p {
    margin: 0;
    color: var(--shop-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px 12px;
}

.shop-card__price {
    font-weight: 900;
    font-size: 1rem;
    color: #e8c6ff;
}

.shop-card__buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(120deg, #bc13fe, #7c4dff);
    border: 0;
    white-space: nowrap;
}

.shop-card__buy--soft {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.shop-empty {
    text-align: center;
    padding: 48px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(188, 19, 254, 0.35);
    color: var(--shop-muted);
    background: rgba(26, 11, 46, 0.45);
}

.shop-empty strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

/* Product page */
.shop-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--shop-muted);
}

.shop-crumb a {
    color: #d7b4ff;
    text-decoration: none;
    font-weight: 700;
}

.shop-product {
    display: grid;
    gap: 16px;
    align-items: start;
}

@media (min-width: 760px) {
    .shop-product {
        grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
        gap: 22px;
    }
}

.shop-product__media {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--shop-line);
    background: #12061c;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.shop-product__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.shop-product__panel {
    padding: 4px 2px 8px;
}

.shop-product__panel > .shop-chip {
    margin-bottom: 12px;
}

.shop-product__title {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.shop-product__price {
    margin: 12px 0 0;
    font-size: 1.5rem;
    font-weight: 900;
    color: #e8c6ff;
}

.shop-product__desc {
    margin-top: 16px;
    color: var(--shop-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.shop-product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.95rem;
}

.shop-btn--primary {
    color: #fff;
    background: linear-gradient(120deg, #bc13fe, #7c4dff);
    box-shadow: 0 10px 24px rgba(124, 77, 255, 0.35);
}

.shop-btn--ghost {
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

/* BBCode */
.shop-bb strong { color: #fff; font-weight: 850; }
.shop-bb em { font-style: italic; }
.shop-bb .shop-bb-u { text-decoration: underline; }
.shop-bb .shop-bb-center { text-align: center; }
.shop-bb .shop-bb-quote {
    margin: 12px 0;
    padding: 10px 12px;
    border-left: 3px solid rgba(188, 19, 254, 0.7);
    border-radius: 0 12px 12px 0;
    background: rgba(188, 19, 254, 0.1);
    color: rgba(255, 255, 255, 0.88);
}
.shop-bb .shop-bb-code {
    display: block;
    margin: 12px 0;
    padding: 12px;
    overflow-x: auto;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.86rem;
    white-space: pre-wrap;
}
.shop-bb .shop-bb-link {
    color: #d7b4ff;
    font-weight: 700;
}
.shop-bb .shop-bb-img {
    display: block;
    max-width: 100%;
    margin: 12px 0;
    border-radius: 12px;
}
.shop-bb .shop-bb-list {
    margin: 10px 0 10px 1.1rem;
    padding: 0;
}
.shop-bb .shop-bb-list li {
    margin: 4px 0;
}
