/* =====================================================
   AGRO MAKMUR SENTOSA
   PRODUCT DETAIL
   CLEAN RESET
===================================================== */


/* =====================================================
   RESET
===================================================== */

.product-detail-page *,
.product-detail-page *::before,
.product-detail-page *::after,
.product-footer *,
.product-footer *::before,
.product-footer *::after {
    box-sizing: border-box;
}

.product-detail-page h1,
.product-detail-page h2,
.product-detail-page h3,
.product-detail-page p {
    margin: 0;
}

.product-detail-page img {
    display: block;
    max-width: 100%;
}

.product-detail-page button {
    font-family: inherit;
}

.product-detail-page a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   ROOT
===================================================== */

.product-detail-page {
    width: 100%;
    background: #fcfaf6;
    color: #183b2a;
}


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

.product-container {
    width: min(1220px, calc(100% - 80px));
    margin: 0 auto;
}


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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 23px 0;

    color: #8a948c;
    font-size: 11px;
}

.breadcrumb a {
    color: #183b2a;
    font-weight: 600;
}

.breadcrumb a:hover {
    opacity: .65;
}


/* =====================================================
   PRODUCT HERO
===================================================== */

.product-hero {
    background: #fcfaf6;
    border-top: 1px solid #e8ece7;
    border-bottom: 1px solid #e3e8e2;
}


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

.product-layout {
    display: grid;

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

    gap: 70px;

    align-items: start;

    padding: 48px 0 65px;
}


/* =====================================================
   LEFT VISUAL
===================================================== */

.product-visual {
    position: sticky;
    top: 30px;
}


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

.product-gallery {
    display: grid;

    grid-template-columns:
        58px
        minmax(0, 1fr);

    gap: 15px;

    align-items: center;
}


/* =====================================================
   THUMBNAILS
===================================================== */

.product-thumbnails {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 9px;
}

.product-thumbnail {
    width: 52px;
    height: 52px;

    padding: 5px;

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

    border: 1px solid #dfe5df;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color .2s ease,
        transform .2s ease;
}

.product-thumbnail:hover {
    border-color: #91a096;
    transform: translateY(-1px);
}

.product-thumbnail.active {
    border-color: #183b2a;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =====================================================
   IMAGE AREA
===================================================== */

.product-image-area {
    position: relative;
    width: 100%;
}

.product-image-wrapper {
    width: 100%;
    height: 535px;

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

    padding: 35px;

    background: #fcfaf6;

    overflow: hidden;
}

.product-main-image {
    width: auto;

    max-width: 88%;
    max-height: 465px;

    object-fit: contain;

    transition:
        opacity .18s ease,
        transform .25s ease;
}


/* =====================================================
   GALLERY ARROWS
===================================================== */

.gallery-arrow {
    position: absolute;

    top: 50%;
    z-index: 3;

    width: 38px;
    height: 38px;

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

    border: 0;

    background: rgba(255, 255, 255, .92);

    color: #183b2a;

    font-size: 26px;

    cursor: pointer;

    transform: translateY(-50%);

    opacity: 0;

    transition:
        opacity .2s ease,
        background .2s ease;
}

.product-image-area:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: #ffffff;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}


/* =====================================================
   PACKAGING
===================================================== */

.visual-packaging {
    margin-top: 20px;
}

.section-label {
    display: block;

    margin-bottom: 12px;

    color: #89948c;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}

.packaging-options {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

.packaging-option {
    min-width: 78px;

    padding: 12px 19px;

    border: 1px solid #d9e0d9;

    background: #ffffff;

    color: #536057;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.packaging-option:hover {
    border-color: #183b2a;
}

.packaging-option.active {
    background: #183b2a;

    border-color: #183b2a;

    color: #ffffff;
}


/* =====================================================
   RIGHT CONTENT
===================================================== */

.product-content {
    min-width: 0;
    padding-top: 3px;
}


/* =====================================================
   PRODUCT HEADER
===================================================== */

.product-category {
    display: inline-block;

    color: #728278;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.product-brand {
    margin-top: 15px;

    color: #7b887f;

    font-size: 16px;

    font-weight: 600;
}

.product-name {
    margin-top: 4px !important;

    color: #183b2a;

    font-size: clamp(56px, 6vw, 78px);

    line-height: .95;

    font-weight: 700;

    letter-spacing: -2.8px;
}

.product-description {
    max-width: 650px;

    margin-top: 15px !important;

    color: #68746b;

    font-size: 20px;

    line-height: 1.65;
}


/* =====================================================
   SPECIES
===================================================== */

.species-block {
    margin-top: 28px;
}

.species-icons {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;
}

.species-item {
    width: 50px;
    height: 50px;

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

    padding: 8px;

    border: 1px solid #dce4dc;

    border-radius: 50%;

    background: #f8faf7;
}

.species-item img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =====================================================
   META
===================================================== */

.product-meta {
    display: grid;

    grid-template-columns:
        minmax(120px, .7fr)
        minmax(180px, 1.3fr);

    gap: 25px;

    margin-top: 30px;

    padding: 20px 0;

    border-top: 1px solid #e4e9e4;

    border-bottom: 1px solid #e4e9e4;
}

.meta-item {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.meta-item span {
    color: #89948c;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.meta-item strong {
    color: #183b2a;

    font-size: 14px;

    line-height: 1.5;
}


/* =====================================================
   DETAILS
===================================================== */

.product-details {
    margin-top: 30px;
}

.detail-section {
    padding: 25px 0;

    border-bottom: 1px solid #e4e9e4;
}

.detail-heading {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 20px;
}

.detail-heading > span {
    color: #9aa69d;

    font-size: 11px;

    font-weight: 700;
}

.detail-heading h2 {
    color: #183b2a;

    font-size: 20px;

    font-weight: 600;
}


/* =====================================================
   INDICATION
===================================================== */

.indication-list {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.indication-item {
    display: block;
    width: 100%;
}

.indication-row {
    display: flex;
    align-items: flex-start;

    gap: 14px;
}

.indication-text {
    width: 100%;
    max-width: 100%;
}

.indication-text p {
    width: 100%;
    margin: 0;

    color: #69756d;
    font-size: 16px;
    line-height: 1.6;
}

.indication-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;

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

    padding: 7px;

    border-radius: 50%;

    background: #f2f7f1;
}

.indication-icon img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.indication-text h3 {
    margin-bottom: 6px;

    color: #183b2a;

    font-size: 15px;

    font-weight: 700;
}


/* =====================================================
   COMPOSITION
===================================================== */

.detail-intro {
    margin-bottom: 12px !important;

    color: #7a867e;

    font-size: 15px;
}

.composition-list {
    border-top: 1px solid #e5eae5;
}

.composition-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 13px 0;

    border-bottom: 1px solid #e5eae5;
}

.composition-row span {
    color: #536057;

    font-size: 16px;
}

.composition-row strong {
    color: #183b2a;

    font-size: 16px;

    white-space: nowrap;
}


/* =====================================================
   DOSAGE
===================================================== */

.dosage-list {
    display: flex;
    flex-direction: column;

    gap: 15px;
}

.dosage-item {
    display: block;
    width: 100%;
}

.dosage-text {
    width: 100%;
    max-width: 100%;
}

.dosage-item p {
    width: 100%;
    margin: 0;

    color: #69756d;
    font-size: 16px;
    line-height: 1.6;
}

.dosage-title img {
    width: 34px;
    height: 34px;

    padding: 5px;

    border-radius: 50%;

    background: #f2f7f1;

    object-fit: contain;
}

.dosage-title h3 {
    color: #183b2a;

    font-size: 15px;

    font-weight: 700;
}


/* =====================================================
   ATTENTION
===================================================== */

.attention-section {
    margin-top: 25px;

    padding: 22px;

    background: #f0f5ef;

    border-left: 3px solid #183b2a;
}

.attention-top {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 13px;
}

.attention-icon {
    width: 30px;
    height: 30px;

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

    border-radius: 50%;

    background: #183b2a;

    color: #ffffff;

    font-size: 23px;

    font-weight: 700;
}

.attention-top span {
    color: #183b2a;

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.attention-content {
    color: #637067;

    font-size: 14px;

    line-height: 1.8;
}


/* =====================================================
   REGISTRATION
===================================================== */

.registration-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 22px 0 0;
}

.registration-row > div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.registration-row span {
    color: #89948c;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.registration-row strong {
    color: #183b2a;

    font-size: 13px;

    line-height: 1.5;

    text-align: right;
}


/* =====================================================
   WARNING
===================================================== */

.product-warning {
    background: #183b2a;
    color: #ffffff;
}

.warning-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 26px 0;
}

.warning-inner strong {
    font-size: 13px;

    letter-spacing: .8px;
}

.warning-inner p {
    margin: 0;

    color: rgba(255, 255, 255, .72);

    font-size: 12px;
}


/* =====================================================
   BACK TO PRODUCTS
===================================================== */

.back-products-section {
    padding: 30px 0;

    background: #fcfaf6;
}

.back-products {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: #183b2a;

    font-size: 13px;

    font-weight: 700;

    transition: gap .2s ease;
}

.back-products:hover {
    gap: 14px;
}

.back-products span {
    font-size: 16px;
}


/* =====================================================
   FOOTER
===================================================== */

.product-footer {
    background: #fcfaf6;

    border-top: 1px solid #e5eae5;

    color: #183b2a;
}

.product-footer .footer-content {
    width: min(1180px, calc(100% - 80px));

    margin: 0 auto;

    padding: 50px 0;

    display: grid;

    grid-template-columns:
        1.5fr
        .8fr
        1fr
        1fr;

    gap: 45px;
}

.footer-company {
    max-width: 310px;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 15px;
}

.footer-brand img {
    width: 34px;
    height: 34px;

    object-fit: contain;
}

.footer-brand span {
    font-size: 13px;

    font-weight: 700;

    letter-spacing: .8px;
}

.footer-company p {
    color: #778178;

    font-size: 13px;

    line-height: 1.8;
}

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.footer-column h4 {
    margin: 0 0 15px;

    color: #183b2a;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.footer-column a,
.footer-column p {
    margin: 0 0 8px;

    color: #778178;

    font-size: 13px;

    line-height: 1.6;
}

.footer-column a:hover {
    color: #183b2a;
}

.social-line {
    display: flex;

    flex-direction: column;

    gap: 2px;

    margin-bottom: 10px;
}

.social-line strong {
    color: #183b2a;

    font-size: 13px;
}

.social-line span {
    color: #778178;

    font-size: 12px;
}


/* =====================================================
   FOOTER BOTTOM
===================================================== */

.footer-bottom {
    padding: 18px;

    border-top: 1px solid #e5eae5;

    text-align: center;
}

.footer-bottom p {
    margin: 0;

    color: #89918a;

    font-size: 11px;
}


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

@media (max-width: 1050px) {

    .product-layout {
        grid-template-columns:
            minmax(0, .9fr)
            minmax(0, 1.1fr);

        gap: 40px;
    }

    .product-image-wrapper {
        height: 460px;
    }

    .product-main-image {
        max-height: 400px;
    }

    .product-name {
        font-size: 62px;
    }

    .product-description {
        font-size: 16px;
    }

    .detail-heading h2 {
        font-size: 18px;
    }

    .indication-text p,
    .dosage-item p,
    .attention-content {
        font-size: 13.5px;
    }
}


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

@media (max-width: 800px) {

    .product-container {
        width: calc(100% - 40px);
    }

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

        gap: 45px;

        padding: 35px 0 50px;
    }

    .product-visual {
        position: static;
    }

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

    .product-image-wrapper {
        height: 380px;
    }

    .product-main-image {
        max-height: 340px;
    }

    .product-brand {
        font-size: 14px;
    }

    .product-name {
        font-size: 42px;

        letter-spacing: -2px;
    }

    .product-description {
        font-size: 16px;

        line-height: 1.7;
    }

    .detail-heading h2 {
        font-size: 16px;
    }

    .indication-text h3 {
        font-size: 13px;
    }

    .indication-text p {
        font-size: 14px;
    }

    .composition-row span,
    .composition-row strong {
        font-size: 13px;
    }

    .dosage-title h3 {
        font-size: 13px;
    }

    .dosage-item p {
        font-size: 14px;
    }

    .attention-content {
        font-size: 13px;
    }

    .section-label {
        font-size: 10px;

        letter-spacing: 1.4px;
    }

    .meta-item span {
        font-size: 9px;
    }

    .meta-item strong {
        font-size: 12px;
    }

    .species-item {
        width: 42px;
        height: 42px;
    }

    .product-footer .footer-content {
        width: calc(100% - 40px);

        grid-template-columns: 1fr 1fr;
    }
}


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

@media (max-width: 550px) {

    .product-container {
        width: calc(100% - 30px);
    }

    .breadcrumb {
        padding: 18px 0;

        font-size: 10px;
    }

    .product-layout {
        gap: 30px;

        padding: 20px 0 35px;
    }

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

        gap: 10px;
    }

    .product-thumbnails {
        order: 2;

        flex-direction: row;

        justify-content: center;

        flex-wrap: wrap;
    }

    .product-image-area {
        order: 1;
    }

    .product-thumbnail {
        width: 40px;
        height: 40px;
    }

    .product-image-wrapper {
        height: 300px;

        padding: 20px;
    }

    .product-main-image {
        max-height: 260px;
    }

    .gallery-arrow {
        opacity: 1;
    }

    .product-name {
        font-size: 34px;

        letter-spacing: -1.5px;
    }

    .product-brand {
        font-size: 13px;
    }

    .product-description {
        font-size: 14px;

        line-height: 1.6;
    }

    .species-item {
        width: 38px;
        height: 38px;
    }

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

        gap: 12px;
    }

    .detail-heading h2 {
        font-size: 15px;
    }

    .indication-text h3 {
        font-size: 12px;
    }

    .indication-text p {
        font-size: 13px;
    }

    .composition-row span,
    .composition-row strong {
        font-size: 12px;
    }

    .dosage-title h3 {
        font-size: 12px;
    }

    .dosage-item p {
        font-size: 13px;
    }

    .attention-content {
        font-size: 12px;
    }

    .registration-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

    .registration-row strong {
        text-align: left;
    }

    .warning-inner {
        flex-direction: column;

        align-items: flex-start;

        gap: 7px;
    }

    .warning-inner strong {
        font-size: 11px;
    }

    .warning-inner p {
        font-size: 10px;
    }

    .back-products {
        font-size: 12px;
    }

    .product-footer .footer-content {
        width: calc(100% - 30px);

        grid-template-columns: 1fr;

        gap: 25px;

        padding: 35px 0;
    }

    .footer-company {
        max-width: 100%;
    }
}