
/* =========================================
   GENERAL
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Georgia, serif;
    background: #fffaf5;
    color: #39332e;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}


/* =========================================
   PRODUCT MAIN LAYOUT - DESKTOP
========================================= */

.product-container {
    display: grid;
    grid-template-columns: 60px minmax(0, 0.80fr) minmax(250px, 0.85fr);
    align-items: start;
    column-gap: 8px;
    row-gap: 16px;
    width: 94%;
    max-width: 1150px;
    margin: 25px auto 50px;
}


/* =========================================
   THUMBNAIL GALLERY
========================================= */

.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 65px;
}

.thumbnail {
    display: block;
    width: 65px;
    height: 85px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #e7ddd2;
    background: #fff;
    transition: border-color 0.2s ease;
}

    .thumbnail:hover {
        border-color: #76503a;
    }

.video-thumbnail-wrapper {
    position: relative;
    width: 65px;
    min-height: 85px;
    flex: 0 0 85px;
    cursor: pointer;
    border: 1px solid #e7ddd2;
    background: #fff;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    min-height: 85px;
    object-fit: cover;
}

.youtube-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 6px;
    background: #e62117;
    color: #fff;
    font-size: 13px;
}


/* =========================================
   MAIN PRODUCT IMAGE
========================================= */

.main-image-section {
    width: 100%;
    min-width: 0;
    max-width: 430px;
    margin: 0 auto;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #fffaf5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.product-video {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.no-video-message {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f5eee7;
    color: #76503a;
}

.no-video-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #76503a;
    color: #fff;
    font-size: 22px;
}

.no-video-message h3 {
    margin: 5px 0;
    font-size: 16px;
    letter-spacing: 1px;
}

.no-video-message p {
    margin: 5px 10px;
    font-size: 13px;
}


/* =========================================
   IMAGE NAVIGATION
========================================= */

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #76503a;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

    .gallery-arrow:hover {
        background: #76503a;
        color: #fff;
    }

.prev-arrow {
    left: 12px;
}

.next-arrow {
    right: 12px;
}

.image-counter {
    margin-top: 10px;
    text-align: center;
    color: #8b796b;
    font-size: 12px;
    letter-spacing: 1px;
}

.new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 6px 12px;
    background: #0BC926;
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
}


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

.product-information {
    min-width: 0;
    padding: 10px 5px 10px 15px;
}

.product-category {
    margin-bottom: 12px;
    color: #987b62;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-information h1 {
    margin: 0 0 12px;
    color: #39332e;
    font-size: 30px;
    font-weight: normal;
    line-height: 1.3;
}

.product-code {
    margin-bottom: 18px;
    color: #000;
    font-size: 13px;
}
.product-shortdesc {
    margin-bottom: 33px;
    color: #8b796b;
    font-size: 14px;
}
.product-price {
    margin-bottom: 15px;
    color: #76503a;
    font-size: 23px;
    font-weight: bold;
}

.availability {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #536d43;
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #718e59;
}

.short-description {
    margin: 15px 0;
    color: #62574e;
    font-size: 14px;
    line-height: 1.8;
}

.product-divider {
    width: 100%;
    height: 1px;
    margin: 20px 0;
    background: #e8ddd2;
}


/* =========================================
   DISCOUNT INFORMATION
========================================= */

.discount-info {
    margin: 12px 0 18px;
    padding: 14px;
    border: 1px solid #eadfd4;
    background: #fffaf5;
}

.discount-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 9px;
    background: #E21818;
    color: #fff;
    font-size: 16px;
}

.discount-current-price {
    color: #76503a;
    font-size: 22px;
    font-weight: bold;
}

.discount-original-price {
    margin-left: 8px;
    color: #999;
    font-size: 18px;
    text-decoration: line-through;
}

.discount-saving {
    margin-top: 7px;
    color: #60764e;
    font-size: 13px;
}

.saving-amount {
    font-weight: bold;
}

.saving-subtitle {
    display: block;
    margin-top: 3px;
    color: #8b796b;
    font-size: 11px;
}


/* =========================================
   WHATSAPP ENQUIRY
========================================= */

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 20px 0;
    padding: 15px 18px;
    background: #76503a;
    color: #fff;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s ease;
}

    .whatsapp-button:hover {
        background: #5f3e2c;
        color: #fff;
    }

    .whatsapp-button span {
        font-size: 19px;
    }

.handmade-note {
    margin: 12px 0;
    color: #77685b;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================
   PRODUCT DETAILS SECTION
========================================= */

.details-section {
    width: 90%;
    max-width: 1200px;
    margin: 0px auto 0px;
    padding-top: 0px;
    border-top: 1px solid #e8ddd2;
}

.details-heading {
    margin-bottom: 25px;
    color: #76503a;
    font-size: 22px;
    font-weight: normal;
}

.details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 65px;
}

.detail-block {
    min-width: 0;
}

    .detail-block h3 {
        margin: 0 0 15px;
        color: #76503a;
        font-size: 17px;
        font-weight: normal;
        text-decoration:underline;
    }

    .detail-block p,
    .detail-block li {
        color: #62574e;
        font-size: 14px;
        line-height: 1.8;
    }

    .detail-block ul {
        padding-left: 20px;
    }

.product-description {
    line-height: 1.9;
    font-size: 14px;
}

.specification-table {
    width: 100%;
    border-collapse: collapse;
}

    .specification-table td {
        padding: 11px 8px;
        border-bottom: 1px solid #eee5dc;
        color: #62574e;
        font-size: 13px;
        vertical-align: top;
    }

        .specification-table td:first-child {
            width: 40%;
            color: #76503a;
            font-weight: bold;
        }


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

.related-products-section {
    padding: 10px 5%;
    background: #faf8f5;
}

    .related-products-section h2 {
        margin: 0 0 25px;
        color: #76503a;
        font-size: 23px;
        font-weight: normal;
        text-align: center;
    }

.related-carousel {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.related-track-wrapper {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
}

    .related-track-wrapper::-webkit-scrollbar {
        display: none;
    }

.related-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 22px;
    width: max-content;
}

.related-product-card {
    flex: 0 0 220px;
    width: 220px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee7df;
    transition: box-shadow 0.2s ease;
}

    .related-product-card:hover {
        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    }

.related-product-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #fffaf5;
}

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

.related-product-card:hover .related-product-image {
    transform: scale(1.04);
}

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

    .related-product-info h3 {
        margin: 0 0 8px;
        color: #39332e;
        font-size: 15px;
        font-weight: normal;
    }

    .related-product-info p {
        margin: 0;
        color: #76503a;
        font-size: 14px;
    }

.related-arrow {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid #d9cabc;
    border-radius: 50%;
    background: #fff;
    color: #76503a;
    font-size: 17px;
    cursor: pointer;
}

    .related-arrow:hover {
        background: #76503a;
        color: #fff;
    }
.related-track-wrapper {
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
}

.related-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}


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

@media screen and (max-width: 900px) {

    .product-container {
        grid-template-columns: 55px minmax(0, 1.1fr) minmax(220px, 0.9fr);
        gap: 12px;
        width: 96%;
    }

    .thumbnail-gallery {
        width: 55px;
    }

    .thumbnail,
    .video-thumbnail-wrapper {
        width: 55px;
        height: 75px;
    }

    .video-thumbnail {
        min-height: 75px;
    }

    .main-image-section {
        max-width: 100%;
    }

    .main-image-wrapper {
        height: 420px;
    }

    .product-information {
        padding-left: 8px;
    }

        .product-information h1 {
            font-size: 25px;
        }

    .details-content {
        gap: 30px;
    }

    .related-product-card {
        flex-basis: 190px;
        width: 190px;
    }

    .related-product-image-wrapper {
        height: 190px;
    }
}


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

@media screen and (max-width: 600px) {

    .product-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "thumbs"
            "info";
        gap: 12px;
        width: 94%;
        max-width: 480px;
        margin: 5px auto 35px;
    }

    /* Main image appears first */

    .main-image-section {
        grid-area: main;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .main-image-wrapper {
        width: 100%;
        height: 360px;
        min-height: 0;
    }
    .main-image-wrapper {
        width: 100%;
        height: 480px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: #fff;
    }

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

    .gallery-arrow {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .prev-arrow {
        left: 8px;
    }

    .next-arrow {
        right: 8px;
    }

    .image-counter {
        margin-top: 7px;
    }

    /* Thumbnails appear below main image */

    .thumbnail-gallery {
        grid-area: thumbs;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 9px;
        width: 100%;
        padding: 3px 0 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .thumbnail-gallery::-webkit-scrollbar {
            display: none;
        }

    .thumbnail {
        flex: 0 0 62px;
        width: 62px;
        height: 75px;
    }

    .video-thumbnail-wrapper {
        flex: 0 0 62px;
        width: 62px;
        min-height: 75px;
        height: 75px;
    }

    .video-thumbnail {
        width: 100%;
        height: 100%;
        min-height: 75px;
    }

    /* Product information appears third */

    .product-information {
        grid-area: info;
        width: 100%;
        padding: 10px 2px;
    }

    .product-category {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .product-information h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .product-code {
        margin-bottom: 13px;
    }

    .product-price {
        font-size: 21px;
    }

    .short-description {
        font-size: 12px;
        line-height: 1.7;
    }

    .whatsapp-button {
        padding: 14px;
    }

    .details-section {
        width: 92%;
        margin: 25px auto 0px;
        padding-top:0px;
    }

    .details-heading {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .details-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .detail-block h3 {
        font-size: 16px;
    }

    .detail-block p,
    .detail-block li {
        font-size: 13px;
    }

    .specification-table td {
        font-size: 12px;
        padding: 9px 6px;
    }

    /* Related products carousel */

    .related-products-section {
        padding: 25px 10px;
    }

        .related-products-section h2 {
            font-size: 20px;
            margin-bottom: 18px;
        }

    .related-carousel {
        gap: 7px;
    }

    .related-arrow {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .related-track {
        gap: 10px;
    }

    .related-product-card {
        flex: 0 0 calc((100vw - 100px) / 2);
        width: calc((100vw - 100px) / 2);
    }

    .related-product-image-wrapper {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .related-product-info {
        padding: 10px 6px;
    }

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

        .related-product-info p {
            font-size: 12px;
        }
}


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

@media screen and (max-width: 360px) {

    .main-image-wrapper {
        height: 310px;
    }

    .product-information h1 {
        font-size: 21px;
    }

    .thumbnail {
        flex-basis: 55px;
        width: 55px;
        height: 68px;
    }

    .video-thumbnail-wrapper {
        flex-basis: 55px;
        width: 55px;
        height: 68px;
        min-height: 68px;
    }

    .video-thumbnail {
        min-height: 68px;
    }
}

/* Details section typography */

.details-heading {
    font-size: 21px;
    letter-spacing: 1px;
}

.detail-block h3 {
    font-size: 17px;
    letter-spacing: 0.3px;
}

@media screen and (max-width: 600px) {
    .details-heading {
        font-size: 19px;
    }

    .detail-block h3 {
        font-size: 16px;
    }
}
/* =====================================
   EXPLORE MORE HEADING
===================================== */

.related-heading {
    text-align: center;
    margin: 25px 0 25px;
    padding: 10px 15px 0;
    position: relative;
    overflow: visible;
}

    .related-heading span {
        display: block;
        font-family: Arial, sans-serif;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 3px;
        color: #a47755;
        margin-bottom: 8px;
    }

    .related-heading h2 {
        font-family: Georgia, serif;
        font-size: 28px;
        font-weight: normal;
        color: #39332e;
        margin: 0 0 8px;
        line-height: 1.3;
    }

    .related-heading p {
        font-family: Georgia, serif;
        font-size: 14px;
        color: #898078;
        margin: 0;
        line-height: 1.5;
    }

/* MOBILE */
@media (max-width: 600px) {
    .related-heading {
        margin: 0px 0 20px;
        padding: 0px 10px 0;
    }

        .related-heading h2 {
            font-size: 23px;
        }

        .related-heading p {
            font-size: 12px;
        }
}


/* =================================
   VRITHANTHAM SHARE BUTTON
================================= */

.product-share {
    margin: 12px 0 18px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 17px;
    background: #fff;
    color: #806044;
    border: 1px solid #c9ad8c;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

    .share-button:hover {
        background: #806044;
        color: #fff;
    }

/* =================================
   SHARE POPUP OVERLAY
================================= */

.share-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

    .share-overlay.show {
        display: flex;
    }

/* =================================
   SHARE POPUP BOX
================================= */

.share-popup {
    position: relative;
    width: 100%;
    max-width: 320px;
    background: #fffaf3;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    animation: sharePopupIn 0.25s ease;
}

@keyframes sharePopupIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-popup h3 {
    color: #76543a;
    font-family: Georgia, serif;
    font-size: 19px;
    margin: 5px 0 7px;
}

.share-popup p {
    color: #8b7967;
    font-size: 12px;
    margin: 0 0 20px;
}

/* CLOSE BUTTON */

.share-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: transparent;
    color: #806044;
    font-size: 25px;
    cursor: pointer;
}

/* =================================
   SHARE OPTIONS
================================= */

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 75px;
    border: 1px solid #eadcc9;
    border-radius: 12px;
    background: #fff;
    color: #76543a;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

    .share-option i {
        font-size: 23px;
    }

    .share-option:hover {
        background: #f2e7d8;
        transform: translateY(-2px);
    }

.whatsapp-share i {
    color: #25D366;
}

.facebook-share i {
    color: #1877F2;
}

.pinterest-share i {
    color: #BD081C;
}

.copy-share i {
    color: #806044;
}

.copy-share {
    font-family: inherit;
}

/* COPY MESSAGE */

.copy-message {
    display: none;
    color: #52734d;
    font-size: 12px;
    margin-top: 15px;
}

    .copy-message.show {
        display: block;
    }

/* MOBILE */

@media screen and (max-width: 480px) {

    .share-popup {
        max-width: 290px;
        padding: 23px 16px;
    }

        .share-popup h3 {
            font-size: 18px;
        }

    .share-option {
        min-height: 68px;
    }
}
.instagram-share i {
    color: #E1306C;
}

