.detail-hero {
    background: linear-gradient(135deg, #2b1608, #8d5a2d);
    padding: 55px 6%;
    color: #fff;
}

.detail-hero span {
    color: #ffd9a0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
}

.detail-hero h1 {
    font-size: 42px;
    margin: 10px 0 0;
    font-weight: 800;
}

.detail-wrap {
    background: #fffaf4;
    padding: 45px 6%;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
    align-items: start;
}

.gallery-main {
    height: 500px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(50, 28, 10, 0.20);
    cursor: zoom-in;
    background: #eee;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.thumb {
    height: 95px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    background: #eee;
    transition: .3s;
}

.thumb:hover,
.thumb.active {
    border-color: #b87333;
    transform: translateY(-3px);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    background: #fff;
    padding: 32px;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(50, 28, 10, 0.12);
}

.product-info small {
    color: #b87333;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.product-info h2 {
    font-size: 31px;
    color: #2b1608;
    margin: 10px 0 10px;
}

.current-price {
    display: inline-block;
    margin-bottom: 18px;
    padding: 9px 18px;
    border-radius: 50px;
    background: #fff4e4;
    color: #8b572a;
    font-size: 22px;
    font-weight: 900;
    border: 1px solid #efd6b6;
}

.product-description {
    color: #6d5a4c;
    font-size: 15.5px;
    line-height: 1.75;
}

.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.product-description table td,
.product-description table th {
    border: 1px solid #ecd3b5;
    padding: 9px;
}

.info-box {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    background: #fff7eb;
    border: 1px solid #f1dcc3;
}

.info-box div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px dashed #dfc3a4;
}

.info-box div:last-child {
    border-bottom: none;
}

.info-box strong {
    color: #2b1608;
}

.info-box span {
    color: #80552f;
    text-align: right;
}

.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.quote-btn,
.back-btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
}

.quote-btn {
    background: linear-gradient(135deg, #b87333, #7b441c);
    color: #fff;
    box-shadow: 0 12px 30px rgba(123, 68, 28, 0.32);
}

.back-btn {
    background: #fff7eb;
    color: #2b1608;
    border: 1px solid #ecd3b5;
}

.related-section {
    margin-top: 55px;
}

.related-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}

.related-head span {
    color: #b87333;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 800;
}

.related-head h2 {
    color: #2b1608;
    font-size: 32px;
    margin: 6px 0 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.related-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 18px 45px rgba(43, 22, 8, 0.12);
    transition: .3s;
}

.related-card:hover {
    transform: translateY(-7px);
}

.related-img {
    height: 220px;
    overflow: hidden;
    background: #eee;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .45s;
}

.related-card:hover img {
    transform: scale(1.08);
}

.related-info {
    padding: 16px;
    text-align: center;
}

.related-info h3 {
    color: #2b1608;
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 8px;
}

.related-price {
    color: #b87333;
    font-weight: 900;
    font-size: 16px;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0,0,0,0.88);
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 92%;
    max-height: 88vh;
    border-radius: 18px;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 42px;
    color: #fff;
    cursor: pointer;
}

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

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 768px) {
    .gallery-main {
        height: 360px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 520px) {
    .detail-hero h1 {
        font-size: 30px;
    }

    .detail-wrap {
        padding: 30px 5%;
    }

    .gallery-main {
        height: 300px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .thumb {
        height: 85px;
    }

    .product-info {
        padding: 22px;
    }

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

.product-share {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #ecd3b5;
}

.share-label {
    display: block;
    margin-bottom: 12px;
    color: #2b1608;
    font-size: 14px;
    font-weight: 800;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-btn:hover {
    transform: translateY(-4px);
    opacity: 0.92;
}

.share-btn:focus-visible {
    outline: 3px solid rgba(184, 115, 51, 0.35);
    outline-offset: 3px;
}

.share-facebook {
    background: #1877f2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.25);
}

.share-twitter {
    background: #111;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.share-instagram {
    background: linear-gradient(
        135deg,
        #feda75,
        #fa7e1e,
        #d62976,
        #962fbf,
        #4f5bd5
    );
    box-shadow: 0 8px 20px rgba(214, 41, 118, 0.25);
}

.share-copy {
    background: #8b572a;
    box-shadow: 0 8px 20px rgba(139, 87, 42, 0.25);
}

.share-message {
    min-height: 20px;
    margin-top: 10px;
    color: #2e7d32;
    font-size: 13px;
    font-weight: 700;
}



/*
|--------------------------------------------------------------------------
| Related products section
|--------------------------------------------------------------------------
*/
.related-section {
    margin-top: 72px;
    padding-top: 36px;
    border-top: 1px solid #eadbc9;
}

.related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.related-title-area {
    min-width: 0;
}

.related-head span {
    display: block;
    margin-bottom: 5px;
    color: #b87333;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.related-head h2 {
    margin: 0;
    color: #2b1608;
    font-size: clamp(24px, 3vw, 33px);
    font-weight: 800;
    line-height: 1.25;
}

.related-head-meta {
    display: flex;
    align-items: center;
    gap: 9px;
}

.related-count {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #ead5bd;
    border-radius: 30px;
    background: #ffffff;
    color: #795c46;
    font-size: 12px;
    font-weight: 700;
    align-items: center;
}

.back-btn {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid #2b1608;
    border-radius: 30px;
    background: #2b1608;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    align-items: center;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.back-btn:hover {
    background: #ffffff;
    color: #2b1608;
}

/*
|--------------------------------------------------------------------------
| Five related products in one row
|--------------------------------------------------------------------------
*/
.related-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.related-card {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #eadbc9;
    border-radius: 15px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    flex-direction: column;
    box-shadow: 0 7px 20px rgba(55, 32, 12, 0.07);
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.related-card:hover {
    border-color: #d1a879;
    transform: translateY(-5px);
    box-shadow: 0 15px 32px rgba(55, 32, 12, 0.13);
}

.related-card:focus-visible {
    outline: 3px solid #b87333;
    outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Smaller related product image
|--------------------------------------------------------------------------
*/
.related-img {
    position: relative;
    width: 100%;
    height: 165px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5eee6, #eee1d4);
}

.related-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-img img {
    transform: scale(1.06);
}

.related-view {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #2b1608;
    font-size: 14px;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.13);
    opacity: 0;
    transform: translateY(-3px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.related-card:hover .related-view {
    opacity: 1;
    transform: translateY(0);
}

.related-info {
    display: flex;
    flex: 1;
    min-height: 98px;
    padding: 12px 12px 13px;
    flex-direction: column;
}

.related-info h3 {
    display: -webkit-box;
    min-height: 38px;
    margin: 0 0 11px;
    overflow: hidden;
    color: #2b1608;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-top: auto;
}

.related-price {
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 31px);
    min-height: 26px;
    padding: 5px 8px;
    overflow: hidden;
    border-radius: 20px;
    background: #f7eee4;
    color: #8b572a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-arrow {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #2b1608;
    color: #ffffff;
    font-size: 13px;
    place-items: center;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.related-card:hover .related-arrow {
    background: #8b572a;
    transform: translateX(2px);
}

/*
|--------------------------------------------------------------------------
| Responsive layout
|--------------------------------------------------------------------------
*/
.gallery-featured-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    color: #bd7b24;
    font-size: 11px;
    place-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}
@media (max-width: 1250px) {
	
    .detail-wrap {
        width: min(1200px, 94%);
    }

    .related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .related-img {
        height: 170px;
    }
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gallery-main {
        height: 480px;
    }

    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .detail-wrap {
        width: 92%;
        padding-top: 32px;
        padding-bottom: 52px;
    }

    .gallery-main {
        height: 390px;
        border-radius: 17px;
    }

    .gallery-thumbs .thumb {
        flex-basis: 70px;
        width: 70px;
        height: 62px;
    }

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

    .related-section {
        margin-top: 52px;
        padding-top: 28px;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .related-img {
        height: 155px;
    }
}

@media (max-width: 520px) {
    .gallery-main {
        height: 310px;
    }

    .product-info h2 {
        font-size: 27px;
    }

    .current-price {
        min-height: 39px;
        padding: 8px 12px;
        font-size: 17px;
    }

    .related-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .related-head-meta {
        width: 100%;
        justify-content: space-between;
    }

    .related-grid {
        gap: 9px;
    }

    .related-card {
        border-radius: 12px;
    }

    .related-img {
        height: 125px;
    }

    .related-info {
        min-height: 92px;
        padding: 9px;
    }

    .related-info h3 {
        min-height: 34px;
        margin-bottom: 8px;
        font-size: 12px;
    }

    .related-card-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .related-price {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        font-size: 9px;
    }

    .related-arrow,
    .related-view {
        display: none;
    }
}

@media (max-width: 350px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-img {
        height: 210px;
    }

    .related-info h3 {
        font-size: 14px;
    }

    .related-price {
        font-size: 11px;
    }
}