/* ============================================================
   EAGLE FURNITURE NGARA
   SINGLE PRODUCT PAGE
   ============================================================ */

:root {
    --product-brown: #4a3427;
    --product-brown-dark: #2d2018;
    --product-brown-soft: #6f5848;
    --product-beige: #d6b28a;
    --product-gold: #a77a53;

    --product-bg: #ffffff;
    --product-soft-bg: #f8f5f1;
    --product-image-bg: #f4f0ec;

    --product-text: #30231c;
    --product-muted: #756b63;
    --product-border: #e7dfd7;

    --product-success: #507355;
    --product-warning: #a46b36;
    --product-danger: #9a4e45;

    --product-radius: 12px;
    --product-shadow: 0 18px 45px rgba(45, 32, 24, 0.09);
    --product-transition: all 0.3s ease;
}


/* ============================================================
   PRODUCT PAGE
   ============================================================ */

.product-page {
    width: 100%;
    padding: 0 0 90px;
    background: var(--product-bg);
}


/* ============================================================
   CONTAINER
   ============================================================ */

.product-page > .container {
    max-width: 1200px;
}


/* ============================================================
   BREADCRUMB
   ============================================================ */

.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    padding: 22px 0;

    font-family: "Poppins", sans-serif;
    font-size: 0.76rem;

    color: var(--product-muted);
}

.product-breadcrumb a {
    color: var(--product-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.product-breadcrumb a:hover {
    color: var(--product-gold);
}

.product-breadcrumb i {
    color: #b9aea5;
    font-size: 0.65rem;
}

.product-breadcrumb span {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--product-text);
    font-weight: 500;
}


/* ============================================================
   MAIN PRODUCT LAYOUT
   ============================================================ */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);

    gap: 60px;

    align-items: start;

    padding: 25px 0 80px;
}


/* ============================================================
   PRODUCT GALLERY
   ============================================================ */

.product-gallery {
    width: 100%;
}

.product-main-image {
    position: relative;

    width: 100%;
    min-height: 570px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid var(--product-border);
    border-radius: var(--product-radius);

    background: var(--product-image-bg);

    box-shadow: var(--product-shadow);
}

.product-main-image img {
    display: block;

    width: 100%;
    height: 570px;

    object-fit: contain;

    transition: transform 0.55s ease;
}

.product-main-image:hover img {
    transform: scale(1.035);
}


/* ============================================================
   IMAGE PLACEHOLDER
   ============================================================ */

.product-image-placeholder {
    width: 100%;
    min-height: 570px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    color: #a3968c;

    font-family: "Poppins", sans-serif;
}

.product-image-placeholder i {
    font-size: 3.5rem;
}

.product-image-placeholder span {
    font-size: 0.78rem;
}


/* ============================================================
   PRODUCT INFORMATION
   ============================================================ */

.product-information {
    width: 100%;
    padding-top: 12px;
}

.product-information .product-category {
    display: inline-block;

    margin-bottom: 13px;

    font-family: "Poppins", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--product-gold);
}

.product-information .product-title {
    margin: 0 0 20px;

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.25rem);

    font-weight: 600;
    line-height: 1.12;

    color: var(--product-text);
}

.product-information .product-price {
    display: block;

    margin-bottom: 30px;

    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 700;

    line-height: 1.2;

    color: var(--product-brown-dark);
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.product-information .product-description {
    margin-bottom: 30px;
    padding: 24px 0;

    border-top: 1px solid var(--product-border);
    border-bottom: 1px solid var(--product-border);
}

.product-information .product-description h2 {
    margin: 0 0 12px;

    font-family: "Poppins", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--product-text);
}

.product-information .product-description p {
    margin: 0;

    font-family: "Poppins", sans-serif;
    font-size: 0.88rem;
    line-height: 1.85;

    color: var(--product-muted);
}


/* ============================================================
   PURCHASE AREA
   ============================================================ */

.product-purchase {
    width: 100%;
    margin-top: 25px;
}

.product-cart-form {
    display: flex;
    align-items: flex-end;

    gap: 14px;

    width: 100%;
}


/* ============================================================
   QUANTITY
   ============================================================ */

.quantity-wrapper {
    display: flex;
    flex-direction: column;

    gap: 7px;

    flex-shrink: 0;
}

.quantity-wrapper label {
    font-family: "Poppins", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;

    color: var(--product-text);
}

.quantity-control {
    display: flex;
    align-items: center;

    height: 52px;

    overflow: hidden;

    border: 1px solid var(--product-border);
    border-radius: 7px;

    background: #ffffff;
}

.quantity-button {
    width: 46px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: #ffffff;

    color: var(--product-text);

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.quantity-button:hover {
    background: var(--product-soft-bg);
    color: var(--product-gold);
}

.quantity-control input {
    width: 52px;
    height: 52px;

    border: 0;
    border-left: 1px solid var(--product-border);
    border-right: 1px solid var(--product-border);

    outline: none;

    background: #ffffff;

    text-align: center;

    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;

    color: var(--product-text);
}

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


/* ============================================================
   ADD TO CART
   ============================================================ */

.add-to-cart-button {
    flex: 1;

    min-height: 52px;

    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 1px solid var(--product-brown);
    border-radius: 7px;

    background: var(--product-brown);

    color: #ffffff;

    font-family: "Poppins", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.add-to-cart-button:hover {
    background: var(--product-brown-dark);
    border-color: var(--product-brown-dark);

    transform: translateY(-2px);

    box-shadow: 0 10px 24px rgba(45, 32, 24, 0.15);
}


/* ============================================================
   VIEW CART
   ============================================================ */

.view-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 48px;

    margin-top: 12px;
    padding: 0 20px;

    border: 1px solid var(--product-border);
    border-radius: 7px;

    background: transparent;

    color: var(--product-brown);

    font-family: "Poppins", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.view-cart-button:hover {
    border-color: var(--product-brown);
    background: var(--product-brown);
    color: #ffffff;
}


/* ============================================================
   TRUST INFORMATION
   ============================================================ */

.product-trust {
    display: grid;
    grid-template-columns: 1fr;

    gap: 10px;

    margin-top: 32px;
}

.trust-item {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 15px 16px;

    border: 1px solid var(--product-border);
    border-radius: 9px;

    background: var(--product-soft-bg);
}

.trust-item > i {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    color: var(--product-gold);

    font-size: 1rem;
}

.trust-item strong {
    display: block;

    margin-bottom: 3px;

    font-family: "Poppins", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;

    color: var(--product-text);
}

.trust-item span {
    display: block;

    font-family: "Poppins", sans-serif;
    font-size: 0.7rem;

    color: var(--product-muted);
}


/* ============================================================
   RELATED PRODUCTS
   ============================================================ */

.related-products {
    padding: 75px 0 20px;

    border-top: 1px solid var(--product-border);
}

.related-header {
    margin-bottom: 35px;

    text-align: center;
}

.related-header .section-label {
    display: inline-block;

    margin-bottom: 10px;

    font-family: "Poppins", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: var(--product-gold);
}

.related-header h2 {
    margin: 0 0 10px;

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.7rem);

    font-weight: 600;

    color: var(--product-text);
}

.related-header p {
    margin: 0;

    font-family: "Poppins", sans-serif;
    font-size: 0.84rem;

    color: var(--product-muted);
}


/* ============================================================
   RELATED GRID
   ============================================================ */

.related-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.related-card {
    overflow: hidden;

    border: 1px solid var(--product-border);
    border-radius: 10px;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

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

    border-color: #d9cbbf;

    box-shadow: var(--product-shadow);
}


/* ============================================================
   RELATED IMAGE
   ============================================================ */

.related-image {
    position: relative;

    display: block;

    width: 100%;
    height: 245px;

    overflow: hidden;

    background: var(--product-image-bg);
}

.related-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

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

.related-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #a3968c;

    font-size: 2rem;
}


/* ============================================================
   RELATED CONTENT
   ============================================================ */

.related-content {
    padding: 18px;
}

.related-content h3 {
    margin: 0 0 10px;

    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;

    color: var(--product-text);
}

.related-price {
    display: block;

    margin-bottom: 15px;

    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;

    color: var(--product-brown-dark);
}


/* ============================================================
   RELATED BUTTON
   ============================================================ */

.related-button {
    width: 100%;
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 1px solid var(--product-brown);
    border-radius: 6px;

    background: transparent;

    color: var(--product-brown);

    font-family: "Poppins", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.related-button:hover {
    background: var(--product-brown);
    color: #ffffff;

    transform: translateY(-1px);
}


/* ============================================================
   FOCUS ACCESSIBILITY
   ============================================================ */

.product-page a:focus-visible,
.product-page button:focus-visible,
.product-page input:focus-visible {
    outline: 3px solid rgba(167, 122, 83, 0.30);
    outline-offset: 3px;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991px) {

    .product-detail {
        grid-template-columns: 1fr;

        gap: 40px;

        padding-top: 15px;
    }

    .product-main-image {
        min-height: 500px;
    }

    .product-main-image img {
        height: 500px;
    }

    .product-image-placeholder {
        min-height: 500px;
    }

    .product-information {
        padding-top: 0;
    }

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


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .product-page {
        padding-bottom: 60px;
    }

    .product-breadcrumb {
        padding: 16px 0;

        font-size: 0.68rem;
    }

    .product-detail {
        gap: 30px;

        padding: 10px 0 55px;
    }

    .product-main-image {
        min-height: 390px;

        border-radius: 10px;
    }

    .product-main-image img {
        height: 390px;
    }

    .product-image-placeholder {
        min-height: 390px;
    }

    .product-information .product-title {
        font-size: 2.15rem;
    }

    .product-information .product-price {
        font-size: 1.65rem;
    }

    .product-information .product-description {
        padding: 20px 0;
    }

    .product-cart-form {
        flex-direction: column;

        align-items: stretch;
    }

    .quantity-wrapper {
        width: 100%;
    }

    .quantity-control {
        width: 100%;
    }

    .quantity-button {
        width: 52px;
    }

    .quantity-control input {
        flex: 1;

        width: auto;
    }

    .add-to-cart-button {
        width: 100%;
    }

    .view-cart-button {
        width: 100%;
    }

    .product-trust {
        margin-top: 26px;
    }

    .related-products {
        padding-top: 55px;
    }

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

        gap: 14px;
    }

    .related-image {
        height: 190px;
    }

    .related-content {
        padding: 14px;
    }

    .related-content h3 {
        font-size: 0.92rem;
    }

    .related-price {
        font-size: 0.82rem;
    }

    .related-button {
        min-height: 40px;

        font-size: 0.66rem;
    }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 479px) {

    .product-breadcrumb span {
        max-width: 150px;
    }

    .product-main-image {
        min-height: 300px;
    }

    .product-main-image img {
        height: 300px;
    }

    .product-image-placeholder {
        min-height: 300px;
    }

    .product-information .product-title {
        font-size: 1.85rem;
    }

    .product-information .product-price {
        font-size: 1.5rem;
    }

    .product-information .product-description p {
        font-size: 0.82rem;
    }

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

    .related-image {
        height: 230px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .product-page *,
    .product-page *::before,
    .product-page *::after {
        transition: none !important;
        animation: none !important;
    }
}