/* item.css - Single Item Page Styles */

.single-item-section {
    padding: 10rem 0;
    background-color: var(--base-beige);
}

.single-item-section .inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4rem;
}

.item-detail-wrap {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
    margin-bottom: 8rem;
}

.item-detail-wrap .image {
    flex: 1;
    position: relative;
}

.item-detail-wrap .image figure {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 0.8rem;
    box-shadow: 0 2rem 4rem rgba(65, 39, 20, 0.1);
}

.item-detail-wrap .image figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.item-detail-wrap .image:hover figure img {
    transform: scale(1.05);
}

/* Decorative frame behind image */
.item-detail-wrap .image::before {
    content: "";
    position: absolute;
    top: -2rem;
    left: -2rem;
    width: 100%;
    height: 100%;
    border: 1px solid var(--base-gold);
    z-index: 1;
}

.item-detail-wrap .text {
    flex: 1;
}

.item-detail-wrap .text h1 {
    font-size: 4rem;
    color: var(--base-brown);
    margin-bottom: 2rem;
    line-height: 1.4;
    font-weight: 800;
}

.item-detail-wrap .price {
    font-size: 3.2rem;
    color: var(--base-gold);
    font-weight: 800;
    margin-bottom: 3.2rem;
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
}

.item-detail-wrap .price small {
    font-size: 1.6rem;
    color: var(--base-brown);
    font-weight: 400;
}

.item-body {
    font-size: 1.8rem;
    line-height: 2;
    color: var(--base-brown);
    margin-bottom: 4rem;
}

.item-body p {
    margin-bottom: 2rem;
}

.back-to-archive {
    text-align: center;
    margin-top: 10rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 6rem;
    background-color: var(--base-brown);
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-back::before {
    content: "<";
    margin-right: 1.2rem;
    font-weight: normal;
    transition: transform 0.3s ease;
}

.btn-back:hover {
    background-color: var(--base-gold);
    transform: translateY(-0.3rem);
}

.btn-back:hover::before {
    transform: translateX(-0.5rem);
}

/* Responsive */
@media (max-width: 1000px) {
    .item-detail-wrap {
        flex-direction: column;
        gap: 4rem;
    }
    
    .item-detail-wrap .image {
        width: 100%;
        max-width: 60rem;
        margin: 0 auto;
    }
    
    .item-detail-wrap .image::before {
        display: none;
    }

    .item-detail-wrap .text h1 {
        font-size: 3.2rem;
    }
    
    .item-detail-wrap .price {
        font-size: 2.8rem;
    }
}

@media (max-width: 760px) {
    .single-item-section {
        padding: 6rem 0;
    }
    
    .item-detail-wrap .text h1 {
        font-size: 2.8rem;
    }
    
    .item-body {
        font-size: 1.6rem;
    }
    
    .btn-back {
        width: 100%;
        padding: 1.6rem 2rem;
    }
}
