
/* =========================
   INYRI PRODUCT DETAIL PAGE
========================= */

.product-layout {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 5% 65px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(35px, 5vw, 75px);
    align-items: start;
}

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

.gallery {
    min-width: 0;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}

/* Thumbnail list */

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 650px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2d5c1 transparent;
}

.thumbnail {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 3px;
    overflow: hidden;
    border: 1px solid #eee7e1;
    border-radius: 5px;
    background: #faf7f3;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.thumbnail:hover {
    border-color: var(--gold-dark, #a77c2b);
}

.thumbnail.active {
    border: 1.5px solid var(--gold-dark, #a77c2b);
}

/* Main image */

.main-image-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 0.88 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f5f1;
}

.main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

img.main-image {
    transition: opacity 0.2s ease;
}

/* Discount badge */

.image-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 9px 13px;
    border-radius: 3px;
    background: linear-gradient(
        135deg,
        #5b2589,
        #8e44ad
    );
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
}

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

.product-info {
    min-width: 0;
    padding: 7px 0;
}

.eyebrow {
    margin: 0 0 15px;
    color: var(--gold-dark, #a77c2b);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.product-title {
    margin: 0;
    color: var(--text, #211e25);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 3vw, 39px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
}

.product-subtitle {
    margin: 17px 0 0;
    color: #77717a;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* Pricing */

.price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin-top: 25px;
}

.selling-price {
    color: #29212a;
    font-size: clamp(25px, 2.5vw, 31px);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.original-price {
    color: #a49ba2;
    font-size: 16px;
    text-decoration: line-through;
}

.discount-text {
    color: #8a3d67;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.tax-note {
    margin: 9px 0 0;
    color: #969098;
    font-size: 11px;
    line-height: 1.6;
}

/* Divider */

.gold-divider {
    height: 1px;
    margin: 29px 0;
    border: 0;
    background: linear-gradient(
        90deg,
        #d7ad55,
        #eee7df 75%,
        transparent
    );
}

/* =========================
   SHOPPING OPTIONS
========================= */
.shopping-options {
    margin-top: 32px;
    padding: 24px;
    background: #faf8f4;
    border: 1px solid #eee7dc;
    border-radius: 12px;
}

.shopping-eyebrow {
    margin: 0 0 8px;
    color: #9b7845;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.shopping-title {
    margin: 0 0 8px;
    color: #24211d;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
}

.shopping-description {
    margin: 0 0 20px;
    color: #77716a;
    font-size: 13px;
    line-height: 1.7;
}

.shopping-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.shopping-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button-arrow {
    font-size: 16px;
}

.app-button {
    background: #28251f;
    color: #fff;
}

.app-button:hover {
    background: #40392f;
    color: #fff;
    transform: translateY(-1px);
}

.whatsapp-button {
    background: #fff;
    color: #28251f;
    border: 1px solid #ded6ca;
}

.whatsapp-button:hover {
    background: #f1ede6;
    color: #28251f;
    transform: translateY(-1px);
}

.shopping-icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

.shopping-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.shopping-button > span:nth-child(2) {
    flex: 1;
}

.app-button .playstore-icon {
    background: #fff;
    border-radius: 4px;
}

.whatsapp-button .whatsapp-icon {
    color: #25D366;
}


/* MOBILE */
@media (max-width: 480px) {
    .shopping-options {
        margin-top: 24px;
        padding: 18px;
    }

    .shopping-title {
        font-size: 19px;
    }

    .shopping-buttons {
        grid-template-columns: 1fr;
    }

    .shopping-button {
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shopping-button {
        transition: none;
    }
}


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

.related-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 35px 5% 65px;
    border-top: 1px solid #f0edf0;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

.section-title {
    margin: 0;
    color: var(--text, #211e25);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.3;
}

.section-heading-row > a {
    flex-shrink: 0;
    color: var(--gold-dark, #a77c2b);
    font-size: 12px;
    font-weight: 600;
}

.section-heading-row > a:hover {
    text-decoration: underline;
}

/* Horizontal product scroller */

.product-scroller {
    display: flex;
    gap: 20px;
    padding: 3px 2px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #e2cfaa transparent;
}

.product-scroller::-webkit-scrollbar {
    height: 5px;
}

.product-scroller::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #e2cfaa;
}

.product-scroller::-webkit-scrollbar-track {
    background: transparent;
}

.related-card {
    flex: 0 0 clamp(200px, 23vw, 260px);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #f0edf0;
    border-radius: 8px;
    background: #fff;
    scroll-snap-align: start;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(36, 26, 34, 0.08);
}

.related-card > a {
    display: block;
    height: 100%;
    color: inherit;
}

.related-card > a > img {
    display: block;
    width: 100%;
    aspect-ratio: 0.88 / 1;
    object-fit: cover;
    background: #f8f5f1;
    transition: transform 0.35s ease;
}

.related-card:hover > a > img {
    transform: scale(1.025);
}

.related-card-info {
    padding: 15px;
}

.related-card-info h3 {
    display: -webkit-box;
    min-height: 40px;
    margin: 0;
    overflow: hidden;
    color: var(--text, #211e25);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
}

.related-price {
    display: inline-block;
    margin-top: 10px;
    color: #29212a;
    font-size: 16px;
    font-weight: 700;
}

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

@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        gap: 25px;
        padding: 35px 4% 48px;
    }

    .gallery {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 10px;
    }

    .thumbnails {
        gap: 9px;
    }

    .shopping-options {
        padding: 20px;
    }

    .shopping-button {
        padding: 12px;
    }

    .related-section {
        padding: 30px 4% 48px;
    }
}

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

@media (max-width: 650px) {
    .product-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 22px 0 42px;
    }

    .gallery {
        width: 100%;
        display: flex;
        flex-direction: column-reverse;
        gap: 12px;
        padding: 0 4%;
    }

    .main-image-wrap {
        width: 100%;
        aspect-ratio: 0.95 / 1;
        border-radius: 5px;
    }

    .thumbnails {
        width: 100%;
        max-height: none;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 0 5px;
        scrollbar-width: none;
    }

    .thumbnails::-webkit-scrollbar {
        display: none;
    }

    .thumbnail {
        flex: 0 0 62px;
        width: 62px;
        aspect-ratio: 0.85 / 1;
    }

    .image-badge {
        top: 12px;
        left: 12px;
        padding: 7px 10px;
        font-size: 10px;
    }

    .product-info {
        width: 100%;
        padding: 0 5%;
    }

    .eyebrow {
        margin-bottom: 10px;
        font-size: 10px;
        letter-spacing: 2px;
    }

    .product-title {
        font-size: clamp(27px, 7vw, 34px);
        line-height: 1.3;
    }

    .product-subtitle {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.8;
    }

    .price-row {
        gap: 9px;
        margin-top: 20px;
    }

    .selling-price {
        font-size: 27px;
    }

    .original-price {
        font-size: 14px;
    }

    .discount-text {
        font-size: 11px;
    }

    .tax-note {
        font-size: 10px;
    }

    .gold-divider {
        margin: 23px 0;
    }

    .shopping-options {
        padding: 21px 17px;
        border-radius: 6px;
    }

    .shopping-title {
        font-size: 24px;
    }

    .shopping-description {
        margin: 10px 0 20px;
        font-size: 12px;
    }

    .shopping-button {
        min-height: 62px;
        gap: 11px;
        padding: 12px;
    }

    .button-copy small {
        font-size: 8px;
        letter-spacing: 0.7px;
    }

    .button-copy strong {
        font-size: 13px;
    }

    .shopping-note {
        font-size: 10px;
    }

    .related-section {
        padding: 30px 4% 42px;
    }

    .section-heading-row {
        margin-bottom: 18px;
    }

    .section-title {
        font-size: 26px;
    }

    .product-scroller {
        gap: 13px;
        margin-right: -4.5%;
        padding-right: 4.5%;
    }

    .related-card {
        flex-basis: 65%;
        max-width: 245px;
    }

    .related-card-info {
        padding: 12px;
    }

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

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

/* Extra-small phones */

@media (max-width: 360px) {
    .product-info {
        padding-right: 4%;
        padding-left: 4%;
    }

    .shopping-options {
        padding: 17px 12px;
    }

    .shopping-title {
        font-size: 21px;
    }

    .button-copy strong {
        font-size: 12px;
    }

    .related-card {
        flex-basis: 73%;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .thumbnail,
    .main-image,
    .shopping-button,
    .button-arrow,
    .related-card,
    .related-card > a > img {
        transition: none;
    }

    .shopping-button:hover,
    .related-card:hover,
    .related-card:hover > a > img {
        transform: none;
    }
}


/* PRODUCT ACTIONS */

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.product-actions form {
    width: 100%;
}

.product-action-btn {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wishlist-btn {
    background: #fff;
    color: #29251f;
    border: 1px solid #ded6ca;
}

.wishlist-btn:hover {
    background: #faf7f2;
    border-color: var(--gold-dark, #a77c2b);
}

.out-of-stock-btn {
    background: #484848;
    color: #fff;
    border: 1px solid #484848;
}

.cart-btn {
    background: #29251f;
    color: #fff;
    border: 1px solid #29251f;
}

.cart-btn:hover {
    background: #40392f;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .product-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-action-btn {
        min-height: 48px;
    }
}


/* WHATSAPP CUSTOMISATION BUTTON */

.product-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 16px;
    padding: 15px 17px;

    background: #f4fbf5;
    border: 1px solid #cce8d2;
    border-radius: 12px;

    color: #218c4b;
    text-decoration: none;

    transition: all 0.25s ease;
}

.product-whatsapp-btn:hover {
    background: #eaf7ed;
    border-color: #25a55a;
    transform: translateY(-2px);
}

.whatsapp-icon {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
}

.whatsapp-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.whatsapp-content strong {
    font-size: 13px;
    font-weight: 700;
    color: #246b3d;
}

.whatsapp-content small {
    font-size: 11px;
    line-height: 1.5;
    color: #64836d;
}

.whatsapp-arrow {
    font-size: 19px;
    color: #218c4b;
}