.detail-image {
    animation: fadeup 0.6s ease 0.15s backwards;
}

.detail-text {
    animation: fadeup 0.6s ease 0.3s backwards;
}

.alsolike-title {
    animation: fadeup 0.6s ease 0.4s backwards;
}

.detail {
    padding: 2.5rem 3%;
    max-width: 70rem;
    margin-inline: auto;
}

.back {
    display: inline-block;
    font-size: 0.85rem;
    color: #000;
    text-decoration: none;
    margin-bottom: 2rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.back:hover {
    opacity: 1;
}

.detail-row {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.detail-image {
    flex: 1 1 50%;
    max-width: 50%;
}

.main-img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.thumb {
    flex: 1;
    min-width: 0;
    height: auto;
    display: block;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.25s;
}

.thumb:hover {
    opacity: 1;
}

.detail-text {
    flex: 1 1 45%;
    padding-top: 0.5rem;
}

.detail-text h1 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.detail-text .productprice {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.taxnote {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 2rem;
}

.sizelabel {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.6rem;
}

.colors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.colorbtn {
    width: 2rem;
    height: 2rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}

.colorbtn.selected,
.colorbtn:hover {
    outline: 1px solid #55443a;
    outline-offset: 2px;
}

.sizes {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.sizebtn {
    min-width: 3rem;
    padding: 0.6rem 0.75rem;
    background: transparent;
    border: 1px solid #55443a;
    color: #55443a;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.sizebtn:hover,
.sizebtn.selected {
    background-color: #55443a;
    color: #ece6df;
}

.quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #55443a;
    margin-bottom: 2rem;
}

.qtybtn {
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    color: #55443a;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.qtybtn:hover {
    background-color: #55443a;
    color: #ece6df;
}

.qtyvalue {
    min-width: 2.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: bold;
    color: #55443a;
}

.addtocart {
    display: block;
    transition: background-color 0.5s ease, transform 0.3s ease;
    width: 100%;
    max-width: 22rem;
    padding: 0.85rem;
    border: none;
    border-radius: 1px;
    background-color: #55443a;
    color: #ece6df;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 2rem;
}

.addtocart:hover {
    background-color: #3e312a;
    transform: translateY(-2px);
}

.perks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.perk {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.95rem;
}

.perk svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.detail-text .body {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 42ch;
    margin-bottom: 2rem;
}

.alsolike {
    margin-top: 2rem;
    max-width: 70rem;
    margin-inline: auto;
    padding-inline: 3%;
}

.alsolike .row {
    padding-inline: 0;
}

.alsolike .col {
    padding-top: 1rem;
}

.alsolike .col img {
    margin-left: 0;
}

.alsolike .teetext {
    margin-left: 0;
}

.alsolike-title {
    font-size: 1.5rem;
    font-weight: 700;
    padding-top: 1.5rem;
    border-top: 0.5px solid black;
}

@media (max-width: 900px) {
    .detail-row {
        flex-direction: column;
        gap: 2rem;
    }

    .detail-image,
    .detail-text {
        max-width: 100%;
        flex: 1 1 100%;
    }
}
