
.app-footer {
    margin-top: 0;
}

.seed-detail-section {
    margin-top: 72px;
    margin-bottom: 80px;
}

.seed-detail__top {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}

.seed-detail__gallery,
.seed-detail__info {
    flex: 1 1 480px;
}

.seed-detail__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 8px 30px #0000000F;
    border: 1px solid #FFFFFF;
    border-radius: 30px;
    padding: 30px 50px;
}

.seed-detail__main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 25px 60px rgba(32, 84, 69, 0.14);
    margin-bottom: 24px;
}

.seed-detail__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seed-detail__thumbs {
    display: flex;
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    padding-top: 6px;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.seed-detail__thumbs::-webkit-scrollbar {
    height: 6px;
}

.seed-detail__thumbs::-webkit-scrollbar-thumb {
    background: rgba(34, 153, 108, 0.4);
    border-radius: 999px;
}

.seed-detail__thumb {
    width: 130px;
    height: 130px;
    border-radius: 16px;
    border: 2px solid transparent;
    overflow: hidden;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
    flex: 0 0 auto;
}

.seed-detail__thumb.is-active,
.seed-detail__thumb:focus {
    border-color: #22996c;
}

.seed-detail__thumb:hover {
    transform: translateY(-2px);
}

.seed-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seed-detail__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-slate);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 400;
}

.seed-detail__name {
    font-size: 36px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2d29;
}

.seed-detail__description {
    color: #4c5c56;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.seed-detail__price {
    font-size: 32px;
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 16px;
}

.seed-detail__meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.seed-detail__meta-item {
    display: flex;
    align-items: baseline;
    column-gap: 24px;
    background: #fff;
    font-size: 13px;
    color: #47514f;
}

.seed-detail__meta-value-level {
    background-color: var(--bg-green-light);
    color: var(--main-green);
    padding: 4px 12px;
    border-radius: 20px;
}

.seed-detail__meta-item strong {
    flex: 0 0 90px;
    font-size: 14px;
    color: var(--text-slate);
    font-weight: 700;
}

.seed-detail__meta-value {
    flex: 1;
    line-height: 1.5;
}


.seed-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.seed-quantity {
    display: inline-flex;
    align-items: stretch;
    border-radius: 14px;
    padding: 0;
    border: 1px solid #AAB5C4;
    overflow: hidden;
}

.seed-quantity button {
    width: 44px;
    height: 44px;
    border: none;
    background: #fff;
    color: var(--text-slate);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.seed-quantity input {
    width: 72px;
    height: 44px;
    border-left: 1px solid #AAB5C4;
    border-right: 1px solid #AAB5C4;
    border-top: none;
    border-bottom: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    line-height: 44px;
    padding: 0;
    appearance: textfield;
    -moz-appearance: textfield;
}

.seed-quantity input::-webkit-outer-spin-button,
.seed-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.seed-detail__cta {
    display: flex;
    gap: 12px;
}

.final-total-price {
    font-size: 36px;
    font-weight: 700;
    text-align: right;
    color: #1f2d29;
    margin: 12px 0 24px;
}

.btn-outline-green,
.btn-primary-green {
    width: 100%;
    padding: 14px 26px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-outline-green {
    background: #fff;
    color: #22996c;
    border-color: rgba(34, 153, 108, 0.4);
}

.btn-primary-green {
    color: #fff;
    background: transparent linear-gradient(108deg, var(--main-green) 0%, var(--main-green-dark) 100%) 0% 0% no-repeat padding-box;
    box-shadow: 0px 8px 20px
}

.btn-outline-green:hover,
.btn-primary-green:hover {
    transform: translateY(-1px);
}

.seed-detail__tag-group {
    margin-bottom: 18px;
}

.seed-detail__tag-label {
    font-size: 14px;
    font-weight: 600;
    color: #5c6a64;
    margin-bottom: 8px;
    display: inline-block;
}

.seed-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seed-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--main-green);
    background-color: var(--bg-green-light);
}

.seed-pill.is-highlight {
    background: rgba(34, 153, 108, 0.12);
    color: #22996c;
}

.seed-detail__bottom {
    margin-top: 64px;
    padding: 40px;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(27, 39, 30, 0.1);
    min-height: 240px;
}

.seed-detail__tabs {
    display: flex;
    border-bottom: 1px solid #6b7c932e;
    gap: 24px;
    margin-bottom: 32px;
}

.seed-detail__tab {
    flex: 1;
    padding: 14px 4px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-slate);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.seed-detail__tab.is-active {
    color: var(--main-green);
    border-color: var(--main-green);
}

.seed-detail__tab:focus-visible {
    outline: 2px solid var(--main-green);
    outline-offset: 2px;
}

.seed-detail__panels {
    font-size: 15px;
    color: #4c5c56;
    line-height: 1.8;
}

.seed-detail__panel {
    display: none;
    animation: fadeInUp 0.2s ease;
}

.seed-detail__panel.is-active {
    display: block;
}

.seed-detail__panel ul {
    padding-left: 18px;
    margin: 12px 0 0;
    list-style: disc;
}

.seed-detail__panel li + li {
    margin-top: 6px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seed-detail__panel-grid-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.seed-detail__panel-grid-box {
    background: var(--bg-slate-light) 0% 0% no-repeat padding-box;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seed-detail__panel-grid-title {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.seed-detail__panel-grid-desc {
    font-size: 16px;
    color: var(--text-slate);
    margin: 0;
    line-height: 1.5;
}

.third-panel {
    margin-top: 32px;
}

.seed-detail__panel-highlight {
    background: var(--bg-green-light);
    border-radius: 18px;
    padding: 28px;
    margin-left: 3px;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.seed-detail__panel-highlight-desc {
    display: flex;
    justify-content: space-between;
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .seed-detail__top {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .seed-detail__name {
        font-size: 28px;
    }

    .seed-detail__thumb {
        width: 96px;
        height: 96px;
    }


    .seed-detail__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .seed-detail__cta {
        width: 100%;
    }

    .btn-outline-green,
    .btn-primary-green {
        flex: 1 1 auto;
        text-align: center;
    }
}

.seed-detail__review {
    display: flex;
    gap: 20px;
}


.review-score {
    font-weight: 700;
}

.review-count {
    color: var(--text-slate);
}

.seed-detail__price-box {
    padding: 20px;
    background-color: var(--bg-slate-light);
    color: var(--text-slate);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seed-detail__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.seed-detail__price-row + .seed-detail__price-row {
    border-top: 1px solid var(--text-slate)2E;
    padding-top: 12px;
    margin-top: 8px;
}

.seed-detail__price-row--sale {
    align-items: flex-end;
}

.seed-detail__price-label {
    font-weight: 600;
}

.seed-detail__price-value {
    font-weight: 700;
}

.seed-detail__price-value.is-original {
    font-size: 18px;
}

.seed-detail__price-value.is-sale {
    font-size: 26px;
    color: var(--accent-coral);
}

.seed-detail__price-discount {
    font-size: 17px;
    font-weight: 600;
    color: var(--accent-coral);
}

.bottom-border {
    border-bottom: 1px solid var(--bg-slate-light);
}

.seed-detail-card-image {
    width: 60px;
    height: 60px;
    border-radius: 9999px;

}

.partner-move-button {
    font-weight: 700;
    color: var(--text-dark);
    padding: 10px 20px;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border-radius: 14px;
}




.panel-title {
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 20px;
    color: var(--text-dark);

}


.seed-detail__bottom .seed-detail__panel.is-active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.third-panel{
    background: var(--main-green) 0% 0% no-repeat padding-box;
    border-radius: 20px;
}


.panel-highlight-desc__left span,
.panel-highlight-desc__right span {
    color: var(--text-dark);
    font-weight: 700;
    display: inline-flex;
    min-width: 78px;
    flex-shrink: 0;
}

.panel-highlight-desc__right p,
.panel-highlight-desc__left p {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 8px;
}

.panel-highlight-desc__right p:last-child,
.panel-highlight-desc__left p:last-child {
    margin-bottom: 0;
}

/* Review Card Styles */
.new-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.new-review-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 28px;
    border-radius: 24px;
    border: 1px solid #e9ecef;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(18, 43, 76, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.new-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(18, 43, 76, 0.12);
}

.review-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-profile img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f3f5;
}

.review-profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-profile-name {
    font-weight: 700;
    font-size: 16px;
    color: #212529;
}

.review-profile-date {
    font-size: 13px;
    color: #868e96;
}

.review-content {
    font-size: 15px;
    line-height: 1.7;
    color: #495057;
}

.review-meta {
    display: flex;
}

.partner-info,
.product-info {
    display: flex;
    color: var(--text-slate);
}

.partner-name-badge,
.product-name-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.partner-name,
.product-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-slate);
}

@media (max-width: 1024px) {
    .review-meta {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .new-review-grid {
        grid-template-columns: 1fr;
    }

    .review-profile {
        align-items: flex-start;
    }

    .partner-info,
    .product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ============================================= */
/* 거래내역 표 스타일 */
/* ============================================= */

.trade-history {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    box-shadow: 0 8px 24px rgba(18, 43, 76, 0.06);
}

.trade-history__row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
    align-items: center;
    padding: 18px 24px;
    gap: 16px;
    transition: background-color 0.2s ease;
}

.trade-history__row--head {
    background: linear-gradient(102deg, var(--main-green) 0%, var(--main-green-dark) 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    padding: 20px 24px;
    letter-spacing: 0.02em;
}

.trade-history__row:not(.trade-history__row--head) {
    border-bottom: 1px solid var(--bg-slate-light);
    font-size: 14px;
    color: var(--text-dark);
}

.trade-history__row:not(.trade-history__row--head):last-child {
    border-bottom: none;
}

.trade-history__row:not(.trade-history__row--head):hover {
    background-color: #F6FBF9;
}

.trade-history__row span {
    padding: 0 4px;
}

.trade-history__row:not(.trade-history__row--head) span:first-child {
    font-weight: 600;
    color: var(--main-green-dark);
}

.trade-history__row:not(.trade-history__row--head) span:nth-child(2) {
    color: var(--text-slate);
}

.trade-history__row:not(.trade-history__row--head) span:nth-child(3) {
    font-weight: 600;
    color: var(--text-dark);
}

.trade-history__row:not(.trade-history__row--head) span:nth-child(4) {
    color: #868E96;
    font-size: 13px;
}

/* 태블릿 반응형 (768px 이하) */
@media (max-width: 768px) {
    .trade-history__row {
        grid-template-columns: 1fr 1fr;
        gap: 12px 16px;
        padding: 16px 20px;
    }

    .trade-history__row--head {
        padding: 18px 20px;
    }

    .trade-history__row span:nth-child(1),
    .trade-history__row span:nth-child(2) {
        display: block;
    }

    .trade-history__row span:nth-child(3),
    .trade-history__row span:nth-child(4) {
        display: block;
    }
}

/* 모바일 반응형 (480px 이하) */
@media (max-width: 480px) {
    .trade-history__row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }

    .trade-history__row--head {
        display: none;
    }

    .trade-history__row:not(.trade-history__row--head) span {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }

    .trade-history__row:not(.trade-history__row--head) span::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-slate);
        font-size: 13px;
        margin-right: 12px;
    }

    .trade-history__row:not(.trade-history__row--head) span:nth-child(1)::before {
        content: "판매처";
    }

    .trade-history__row:not(.trade-history__row--head) span:nth-child(2)::before {
        content: "구매자";
    }

    .trade-history__row:not(.trade-history__row--head) span:nth-child(3)::before {
        content: "수량";
    }

    .trade-history__row:not(.trade-history__row--head) span:nth-child(4)::before {
        content: "거래일";
    }
}
