:root {
    --pink: #ff7bac;
    --pink-deep: #f0558a;
    --pink-light: #ffe4ef;
    --pink-pale: #fff5f9;
    --mint: #06d6a0;
    --mint-light: #dffbf4;
    --purple: #9b72cf;
    --purple-light: #f0e8ff;
    --yellow-light: #fff7df;
    --dark: #2d1b2e;
    --mid: #6b4c6e;
    --muted: #a08aa3;
    --bg: #fff8fb;
    --white: #ffffff;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --pill: 999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Sora', sans-serif;
}

body {
    background: var(--bg);
    color: var(--dark);
    font-size: 14px;
    line-height: 1.5;
}

.detail-page {
    width: 100%;
    padding: 32px 34px 60px;
}

.detail-alert {
    max-width: 1180px;
    margin: 0 auto 18px;
    border-radius: 14px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ffd1e2 0%, #ffe8f1 45%, #f0e8ff 100%);
    box-shadow: 0 14px 36px rgba(255, 123, 172, 0.20);
    padding: 32px 40px;
    margin: 0 auto 24px;
    max-width: 1180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.detail-hero::before {
    content: "🐾";
    position: absolute;
    font-size: 110px;
    color: rgba(255, 123, 172, 0.16);
    left: 28%;
    top: 0;
    transform: rotate(-18deg);
}

.detail-hero h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 8px;
}

.detail-hero p {
    color: var(--mid);
    font-weight: 700;
    line-height: 1.7;
    margin: 0;
}

.hero-back-btn {
    position: absolute;
    right: 40px;
    top: 42px;
    text-decoration: none;
    background: white;
    color: var(--dark);
    border-radius: var(--pill);
    padding: 13px 24px;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(45, 27, 46, 0.10);
    transition: 0.2s;
}

.hero-back-btn:hover {
    transform: translateY(-2px);
    color: var(--dark);
}

.hero-icon-left,
.hero-icon-right {
    position: absolute;
    font-size: 58px;
    z-index: 2;
}

.hero-icon-left {
    left: 34px;
    bottom: 28px;
}

.hero-icon-right {
    right: 44px;
    bottom: 8px;
    opacity: 0.55;
    z-index: 1;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) 360px;
    gap: 24px;
    align-items: start;
    justify-content: center;
    max-width: 1180px;
    margin: 0 auto;
}

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

.image-card,
.content-card,
.summary-card,
.info-card,
.tip-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 24px rgba(45, 27, 46, 0.07);
    border: 1px solid rgba(255, 123, 172, 0.08);
}

.image-card {
    padding: 22px;
    margin-bottom: 20px;
}

.main-image-wrap {
    background: linear-gradient(135deg, var(--pink-pale), var(--purple-light));
    border-radius: 22px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 22px;
    cursor: pointer;
    transition: 0.2s;
}

.main-image:hover {
    opacity: 0.96;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail-list img {
    width: 82px;
    height: 82px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}

.thumbnail-list img:hover {
    transform: translateY(-2px);
}

.thumbnail-list img.active-thumb {
    border-color: var(--pink);
    box-shadow: 0 5px 14px rgba(255, 123, 172, 0.22);
}

.no-detail-image {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border: 1px dashed rgba(255, 123, 172, 0.28);
}

.no-detail-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.no-detail-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--mid);
    margin-bottom: 4px;
}

.no-detail-desc {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.detail-side {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-card,
.info-card,
.tip-card {
    padding: 24px;
}

.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.category-badge,
.status-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: var(--pill);
    font-size: 12px;
    font-weight: 900;
}

.category-badge {
    background: var(--pink-light);
    color: var(--pink-deep);
}

.status-badge {
    background: var(--mint-light);
    color: #059669;
}

.post-title {
    font-size: 25px;
    font-weight: 900;
    color: var(--dark);
    margin: 0 0 10px;
    word-break: break-word;
}

.price-text {
    color: var(--pink-deep);
    font-weight: 900;
    font-size: 28px;
    margin-bottom: 14px;
}

.summary-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--mid);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 14px;
}

.seller-score {
    display: inline-flex;
    padding: 9px 14px;
    background: var(--yellow-light);
    border: 1px solid rgba(255, 209, 102, 0.36);
    border-radius: var(--pill);
    font-weight: 900;
    color: #9a6b12;
    margin-bottom: 18px;
}

.action-area {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.action-area form,
.action-area div {
    width: 100%;
}

.detail-btn {
    width: 100%;
    border: none;
    text-decoration: none;
    border-radius: var(--pill);
    padding: 12px 18px;
    font-weight: 900;
    font-size: 14px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.detail-btn:hover {
    transform: translateY(-2px);
}

.primary-btn {
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    box-shadow: 0 8px 24px rgba(240, 85, 138, 0.24);
}

.primary-btn:hover {
    color: white;
}

.mint-btn {
    color: #057a60;
    background: var(--mint-light);
    border: 1px solid rgba(6, 214, 160, 0.28);
}

.mint-btn:hover {
    color: #057a60;
}

.wish-btn {
    color: var(--pink-deep);
    background: white;
    border: 1px solid #f0d8e3;
}

.outline-btn {
    color: var(--mid);
    background: white;
    border: 1px solid #ead6e3;
}

.outline-danger-btn {
    color: #dc2626;
    background: white;
    border: 1px solid #fecaca;
}

.disabled-btn {
    color: #94a3b8;
    background: #f1f5f9;
    cursor: not-allowed;
}

.wish-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wish-form .wish-btn {
    flex: 1;
}

.wish-count {
    color: var(--muted);
    font-weight: 900;
    white-space: nowrap;
}

.section-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 14px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.info-item {
    background: var(--pink-pale);
    border: 1px solid rgba(255, 123, 172, 0.13);
    border-radius: 16px;
    padding: 13px 14px;
}

.info-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 5px;
    font-weight: 800;
}

.info-value {
    font-weight: 900;
    color: var(--dark);
}

.offer-yes {
    color: #059669;
}

.offer-no {
    color: #dc2626;
}

.content-card {
    padding: 24px;
}

.content-box {
    padding: 20px;
    background: var(--pink-pale);
    border: 1px solid rgba(255, 123, 172, 0.12);
    border-radius: 18px;
    white-space: pre-line;
    line-height: 1.8;
    min-height: 180px;
    color: var(--mid);
    font-weight: 700;
}

.tip-card {
    background: linear-gradient(135deg, #fffaf0, #ffffff);
    border-color: rgba(255, 209, 102, 0.25);
}

.tip-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--mid);
    font-weight: 700;
    line-height: 1.75;
    font-size: 13px;
}

.modal-content {
    border-radius: 20px;
    border: none;
}

.report-reason {
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #f0d8e3;
    width: 100%;
    resize: none;
}

.wish-btn.wish-active {
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    border-color: transparent;
}

@media (max-width: 1100px) {
    .detail-layout {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .detail-side {
        position: static;
    }

    .hero-back-btn {
        position: absolute;
        right: 40px;
        top: 42px;
        text-decoration: none;
        background: white;
        color: var(--dark);
        border-radius: var(--pill);
        padding: 13px 24px;
        font-weight: 900;
        box-shadow: 0 8px 24px rgba(45, 27, 46, 0.10);
        transition: 0.2s;
        z-index: 3;
    }

    .detail-hero {
        flex-direction: column;
    }

    .hero-icon-left,
    .hero-icon-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .detail-page {
        padding: 20px 14px 40px;
    }

    .detail-hero {
        padding: 28px 18px;
    }

    .detail-hero h2 {
        font-size: 30px;
    }

    .main-image-wrap,
    .no-detail-image {
        min-height: 300px;
    }

    .main-image {
        max-height: 360px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}