/* PDP same-shop discovery — marketplace tokens */
.rw-same-shop {
    --rw-ss-radius: 16px;
    --rw-ss-border: #E8EAF0;
    --rw-ss-text: #171A2B;
    --rw-ss-muted: #697386;
    --rw-ss-accent: #5146E5;
    --rw-ss-accent-soft: #f3f1ff;
    --rw-ss-price: #171A2B;
    --rw-ss-danger: #EF4444;
    margin-top: 20px;
    padding-bottom: 8px;
}
.rw-same-shop__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.rw-same-shop__heading-block {
    min-width: 0;
}
.rw-same-shop__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--rw-ss-text);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.35;
}
.rw-same-shop__subtitle {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    color: var(--rw-ss-muted);
    font-weight: 600;
}
.rw-same-shop__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}
.rw-same-shop__pill {
    border: 1px solid var(--rw-ss-border);
    border-radius: 11px;
    padding: 7px 14px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    background: #fff;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.rw-same-shop__pill:hover {
    border-color: #c7c9e8;
    color: var(--rw-ss-accent);
    background: var(--rw-ss-accent-soft);
}
.rw-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
@media (max-width: 767px) {
    .rw-related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
@media (min-width: 768px) and (max-width: 1100px) {
    .rw-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1101px) and (max-width: 1400px) {
    .rw-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.rw-related-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--rw-ss-border);
    border-radius: var(--rw-ss-radius);
    box-shadow: 0 4px 18px rgba(23, 26, 43, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.rw-related-card:hover {
    border-color: #c7c9e8;
    box-shadow: 0 12px 28px rgba(23, 26, 43, 0.1);
    transform: translateY(-2px);
}
.rw-related-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, #fafbff 0%, #E8EAF0 100%);
    overflow: hidden;
    outline: none;
}
.rw-related-card__media:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(81, 70, 229, 0.45);
}
.rw-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.rw-related-card:hover .rw-related-card__media img {
    transform: scale(1.04);
}
.rw-related-card__ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
}
.rw-related-card__ribbon {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 2;
    background: #EF4444;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}
.rw-related-card__stock {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 2;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #16B981;
    border: 1px solid rgba(22, 185, 129, 0.25);
    backdrop-filter: blur(6px);
}
.rw-related-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 12px 14px 14px;
    gap: 8px;
    min-height: 0;
}
.rw-related-card__shop {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--rw-ss-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rw-related-card__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--rw-ss-text);
    line-height: 1.45;
    min-height: 0;
}
.rw-related-card__title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color 0.15s ease;
}
.rw-related-card__title a:hover {
    color: var(--rw-ss-accent);
}
.rw-related-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--rw-ss-muted);
}
.rw-related-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.rw-related-card__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 10px;
    min-height: 0;
}
.rw-related-card__price-old {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
}
.rw-related-card__price-current {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--rw-ss-price);
    letter-spacing: -0.02em;
}
.rw-related-card__price-unit {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rw-ss-muted);
}
.rw-related-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}
.rw-related-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 11px;
    font-size: 0.8125rem;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    white-space: nowrap;
}
.rw-related-btn:active {
    transform: scale(0.98);
}
.rw-related-btn--primary {
    background: linear-gradient(135deg, #5146E5 0%, #7C5CFF 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(81, 70, 229, 0.35);
}
.rw-related-btn--primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(81, 70, 229, 0.45);
    color: #fff;
}
.rw-related-btn--ghost {
    background: #fff;
    color: var(--rw-ss-text);
    border: 1px solid var(--rw-ss-border);
}
.rw-related-btn--ghost:hover {
    border-color: #c7c9e8;
    color: var(--rw-ss-accent);
    background: var(--rw-ss-accent-soft);
}
.rw-related-btn i {
    font-size: 1rem;
    line-height: 0;
}
