/* ============================================================
   PRODUCT DETAIL
   Jumbo Bag
   ============================================================ */


/* ============================================================
   VARIABLES
   ============================================================ */

.product-detail-page {

    --pd-primary: #59ab6e;
    --pd-primary-dark: #438a56;
    --pd-primary-soft: #eef8f1;

    --pd-dark: #172334;
    --pd-text: #344054;
    --pd-muted: #7b8494;

    --pd-bg: #f6f8fa;
    --pd-card: #ffffff;

    --pd-border: #e8ecf0;
    --pd-border-hover: #d5e6da;

    --pd-danger: #dc3545;
    --pd-danger-soft: #fff2f3;

    --pd-warning: #b58105;
    --pd-warning-soft: #fff9e8;

    --pd-success-soft: #eef9f1;

    --pd-radius-sm: 12px;
    --pd-radius: 18px;
    --pd-radius-lg: 24px;

    --pd-shadow-sm:
        0 4px 18px rgba(18, 38, 63, 0.05);

    --pd-shadow:
        0 10px 32px rgba(18, 38, 63, 0.08);

    --pd-shadow-hover:
        0 18px 42px rgba(18, 38, 63, 0.12);

    background: var(--pd-bg);

    padding: 48px 0 64px;

    color: var(--pd-text);
}


/* ============================================================
   GENERAL
   ============================================================ */

.product-detail-page *,
.product-detail-page *::before,
.product-detail-page *::after {

    box-sizing: border-box;
}


.product-detail-page a {

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.product-detail-page .card {

    background: var(--pd-card);

    border: 1px solid var(--pd-border);

    border-radius: var(--pd-radius-lg);

    box-shadow: var(--pd-shadow-sm);

    overflow: hidden;
}


.product-main-row {

    align-items: flex-start;
}


/* ============================================================
   MAIN CARDS
   ============================================================ */

.product-gallery-card,
.product-info-card {

    border: 1px solid var(--pd-border) !important;

    border-radius: var(--pd-radius-lg) !important;

    box-shadow: var(--pd-shadow) !important;
}


.product-gallery-card .card-body {

    padding: 20px !important;
}


.product-info-card .card-body {

    padding: 30px !important;
}


/* ============================================================
   PRODUCT GALLERY
   ============================================================ */

.product-gallery-main {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    aspect-ratio: 1 / 1;

    min-height: 420px;

    border: 1px solid var(--pd-border);

    border-radius: 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            #ffffff 0%,
            #fafbfc 55%,
            #f4f6f8 100%
        );
}


.product-gallery-main::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}


.product-gallery-main img {

    display: block;

    width: 100%;

    height: 100%;

    max-width: 100%;

    max-height: 520px;

    object-fit: contain;

    padding: 16px;

    transition:
        transform 0.35s ease,
        opacity 0.25s ease;
}


.product-gallery-main:hover img {

    transform: scale(1.025);
}


/* ============================================================
   GALLERY THUMBNAILS
   ============================================================ */

.product-gallery-thumbs {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 16px;

    padding: 2px;

    overflow-x: auto;

    scrollbar-width: thin;

    scrollbar-color:
        #cdd5df
        transparent;
}


.product-gallery-thumbs::-webkit-scrollbar {

    height: 5px;
}


.product-gallery-thumbs::-webkit-scrollbar-thumb {

    background: #cdd5df;

    border-radius: 20px;
}


.product-gallery-thumb {

    position: relative;

    flex: 0 0 74px;

    width: 74px;

    height: 74px;

    padding: 4px;

    border: 2px solid var(--pd-border);

    border-radius: 14px;

    overflow: hidden;

    cursor: pointer;

    background: #fff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.product-gallery-thumb:hover {

    border-color: var(--pd-primary);

    transform: translateY(-2px);
}


.product-gallery-thumb.active {

    border-color: var(--pd-primary);

    box-shadow:
        0 0 0 3px rgba(89, 171, 110, 0.14);
}


.product-gallery-thumb img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 9px;
}


/* ============================================================
   PRODUCT INFORMATION
   ============================================================ */

.product-info-card h1 {

    margin: 0 0 10px;

    color: var(--pd-dark);

    font-size: clamp(1.55rem, 2.5vw, 2rem);

    font-weight: 800;

    line-height: 1.65;
}


.product-info-card .text-muted {

    color: var(--pd-muted) !important;
}


.product-info-card hr {

    margin: 22px 0;

    border: 0;

    border-top: 1px solid var(--pd-border);

    opacity: 1;
}


.product-info-card .fa-folder-open {

    margin-left: 6px;
}


.product-info-card a.text-success {

    color: var(--pd-primary-dark) !important;
}


.product-info-card a.text-success:hover {

    color: var(--pd-primary) !important;
}


/* ============================================================
   PRODUCT PRICE
   ============================================================ */

.product-info-card .h3.text-success {

    color: var(--pd-primary-dark) !important;

    font-size: clamp(1.65rem, 3vw, 2.15rem);

    letter-spacing: -0.4px;
}


.product-info-card .h5.text-warning {

    display: flex;

    align-items: center;

    gap: 8px;

    width: fit-content;

    margin-top: 10px !important;

    padding: 11px 14px;

    border-radius: var(--pd-radius-sm);

    background: var(--pd-warning-soft);

    color: var(--pd-warning) !important;

    font-size: 1rem;
}


/* ============================================================
   STOCK STATUS
   ============================================================ */

.product-info-card .alert {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 14px !important;

    margin-bottom: 0;

    padding: 11px 14px !important;

    border-radius: var(--pd-radius-sm);

    font-size: 0.92rem;

    line-height: 1.7;
}


.product-info-card .alert-success {

    color: #28733c;

    background: var(--pd-success-soft);

    border: 1px solid #cfe9d5;
}


.product-info-card .alert-danger {

    color: #a92e3a;

    background: var(--pd-danger-soft);

    border: 1px solid #f1ccd0;
}


/* ============================================================
   QUANTITY
   ============================================================ */

.qty-wrapper {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 5px;

    background: #f8fafb;

    border: 1px solid var(--pd-border);

    border-radius: 15px;
}


.qty-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 42px;

    width: 42px;

    height: 42px;

    padding: 0;

    border: 1px solid var(--pd-border);

    border-radius: 11px;

    background: #fff;

    color: var(--pd-dark);

    font-size: 1.4rem;

    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    user-select: none;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}


.qty-btn:hover {

    border-color: var(--pd-primary);

    background: var(--pd-primary-soft);

    color: var(--pd-primary-dark);
}


.qty-btn:active {

    transform: scale(0.95);
}


.qty-btn:focus-visible {

    outline: none;

    box-shadow:
        0 0 0 4px rgba(89, 171, 110, 0.14);
}


.qty-input {

    width: 68px;

    height: 42px;

    padding: 0 6px;

    border: 0;

    outline: none;

    background: transparent;

    color: var(--pd-dark);

    text-align: center;

    font-size: 1.05rem;

    font-weight: 800;

    -moz-appearance: textfield;
}


.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {

    margin: 0;

    -webkit-appearance: none;
}


.qty-input:focus {

    background: #fff;

    border-radius: 9px;

    box-shadow:
        0 0 0 3px rgba(89, 171, 110, 0.12);
}


.product-info-card .form-label {

    margin-bottom: 9px;

    color: var(--pd-dark);

    font-size: 0.92rem;
}


.product-info-card .form-text {

    margin-top: 8px;

    color: var(--pd-muted);

    font-size: 0.78rem;

    line-height: 1.7;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.product-detail-page .btn {

    border-radius: 13px;

    font-weight: 700;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}


.product-detail-page .btn-success {

    border-color: var(--pd-primary);

    background: var(--pd-primary);

    color: #fff;
}


.product-detail-page .btn-success:hover {

    border-color: var(--pd-primary-dark);

    background: var(--pd-primary-dark);

    color: #fff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 22px rgba(67, 138, 86, 0.22);
}


.product-detail-page .btn-outline-success {

    border-color: #bad8c1;

    background: #fff;

    color: var(--pd-primary-dark);
}


.product-detail-page .btn-outline-success:hover {

    border-color: var(--pd-primary);

    background: var(--pd-primary-soft);

    color: var(--pd-primary-dark);
}


.product-detail-page .btn-lg {

    min-height: 52px;

    padding: 12px 18px;

    border-radius: 15px;

    font-size: 1rem;
}


.product-detail-page .btn-secondary:disabled {

    border-color: #e3e7eb;

    background: #e9ecef;

    color: #777f89;

    opacity: 1;
}


/* ============================================================
   PRE ORDER NOTICE
   ============================================================ */

.pre-order-notice {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 18px;

    padding: 14px 18px;

    border: 1px solid #f1dda8;

    border-radius: 15px;

    background: var(--pd-warning-soft);

    color: #725514;

    text-align: center;

    font-size: 0.91rem;

    font-weight: 700;

    line-height: 1.8;
}


.pre-order-notice i {

    margin-left: 2px;

    color: #d49000;

    font-size: 1.05rem;
}


.pre-order-notice .phone-number {

    display: inline-block;

    direction: ltr;

    color: #bd3542;

    font-size: 1rem;

    font-weight: 800;

    unicode-bidi: isolate;
}


/* ============================================================
   CONTENT CARDS
   ============================================================ */

.product-content-card {

    border: 1px solid var(--pd-border) !important;

    border-radius: var(--pd-radius-lg) !important;

    box-shadow: var(--pd-shadow-sm) !important;
}


.product-content-card .card-body {

    padding: 28px !important;
}


.product-content-card h2 {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 22px !important;

    color: var(--pd-dark);

    font-size: 1.25rem;

    font-weight: 800;
}


.product-content-card h2 i {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 36px;

    height: 36px;

    flex: 0 0 36px;

    border-radius: 10px;

    background: var(--pd-primary-soft);

    color: var(--pd-primary-dark) !important;

    font-size: 0.95rem;
}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.product-description-content {

    color: #525d6b;

    font-size: 0.97rem;

    line-height: 2.05;
}


.product-description-content p {

    margin-bottom: 15px;
}


.product-description-content p:last-child {

    margin-bottom: 0;
}


.product-description-content img {

    max-width: 100%;

    height: auto;

    border-radius: 14px;
}


.product-description-content a {

    color: var(--pd-primary-dark);

    font-weight: 600;
}


/* ============================================================
   PRODUCT SPECIFICATIONS
   ============================================================ */

.product-specs-card .table-responsive {

    border: 1px solid var(--pd-border);

    border-radius: 16px;

    overflow: hidden;
}


.product-specs-table {

    width: 100%;

    margin: 0;

    border: 0 !important;

    background: #fff;

    color: var(--pd-text);
}


.product-specs-table > :not(caption) > * > * {

    padding: 15px 18px;

    border: 0;

    border-bottom: 1px solid var(--pd-border);

    vertical-align: middle;
}


.product-specs-table tr:last-child > * {

    border-bottom: 0;
}


.product-specs-table th {

    width: 38%;

    background: #f8fafb;

    color: #475467;

    font-size: 0.9rem;

    font-weight: 700;
}


.product-specs-table td {

    background: #fff;

    color: var(--pd-dark);

    font-size: 0.92rem;

    font-weight: 600;
}


.product-specs-table tbody tr {

    transition: background-color 0.18s ease;
}


.product-specs-table tbody tr:hover th {

    background: #f2f8f4;
}


.product-specs-table tbody tr:hover td {

    background: #fbfdfb;
}


/* ============================================================
   RELATED PRODUCTS
   ============================================================ */

.related-products-section {

    margin-top: 42px !important;
}


.related-products-shell {

    border: 1px solid var(--pd-border) !important;

    border-radius: var(--pd-radius-lg) !important;

    box-shadow: var(--pd-shadow-sm) !important;
}


.related-products-shell > .card-body {

    padding: 28px !important;
}


.related-products-section .section-title {

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin: 0;

    padding-bottom: 12px;

    color: var(--pd-dark);

    font-size: 1.3rem;

    font-weight: 800;
}


.related-products-section .section-title::after {

    content: "";

    position: absolute;

    right: 0;

    bottom: 0;

    width: 54px;

    height: 3px;

    border-radius: 20px;

    background: var(--pd-primary);
}


.related-product-card {

    position: relative;

    height: 100%;

    border: 1px solid var(--pd-border) !important;

    border-radius: 16px !important;

    background: #fff;

    box-shadow: none !important;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.related-product-card:hover {

    border-color: var(--pd-border-hover) !important;

    transform: translateY(-5px);

    box-shadow: var(--pd-shadow-hover) !important;
}


.related-product-card > a {

    display: block;

    overflow: hidden;

    background: #f8fafb;
}


.related-product-card .card-img-top {

    display: block;

    width: 100%;

    height: 190px;

    object-fit: cover;

    background: #f8fafb;

    transition: transform 0.35s ease;
}


.related-product-card:hover .card-img-top {

    transform: scale(1.035);
}


.related-product-placeholder {

    display: flex !important;

    align-items: center;

    justify-content: center;

    height: 190px !important;

    background: #f8fafb !important;
}


.related-product-placeholder i {

    color: #b8c0ca !important;
}


.related-product-card .card-body {

    padding: 16px !important;
}


.related-product-card .card-title {

    display: -webkit-box;

    min-height: 44px;

    margin-bottom: 13px;

    overflow: hidden;

    color: var(--pd-dark);

    font-size: 0.9rem;

    font-weight: 700;

    line-height: 1.75;

    text-decoration: none;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;
}


.related-product-card .card-title:hover {

    color: var(--pd-primary-dark);
}


.related-product-card .price {

    margin-bottom: 10px;

    color: var(--pd-primary-dark);

    font-size: 0.95rem;

    font-weight: 800;
}


.related-product-card .btn {

    min-height: 38px;

    border-radius: 10px;

    font-size: 0.8rem;
}


/* ============================================================
   DESKTOP
   ============================================================ */

@media (min-width: 992px) {

    .product-info-card {

        position: sticky;

        top: 20px;
    }

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991.98px) {

    .product-detail-page {

        padding: 34px 0 50px;
    }


    .product-gallery-main {

        min-height: 390px;
    }


    .product-info-card {

        position: static;
    }


    .product-info-card .card-body {

        padding: 24px !important;
    }


    .product-content-card .card-body,
    .related-products-shell > .card-body {

        padding: 24px !important;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .product-detail-page {

        padding: 22px 0 38px;
    }


    .product-detail-page .container {

        padding-right: 14px;

        padding-left: 14px;
    }


    .product-gallery-card,
    .product-info-card,
    .product-content-card,
    .related-products-shell {

        border-radius: 18px !important;
    }


    .product-gallery-card .card-body {

        padding: 12px !important;
    }


    .product-gallery-main {

        min-height: 300px;

        border-radius: 15px;
    }


    .product-gallery-main img {

        max-height: 360px;

        padding: 10px;
    }


    .product-gallery-thumbs {

        gap: 8px;

        margin-top: 11px;
    }


    .product-gallery-thumb {

        flex-basis: 60px;

        width: 60px;

        height: 60px;

        border-radius: 12px;
    }


    .product-info-card .card-body {

        padding: 20px !important;
    }


    .product-info-card h1 {

        font-size: 1.4rem;

        line-height: 1.7;
    }


    .product-info-card hr {

        margin: 18px 0;
    }


    .qty-wrapper {

        width: 100%;

        justify-content: space-between;
    }


    .qty-input {

        flex: 1;

        width: auto;
    }


    .pre-order-notice {

        padding: 12px 14px;

        font-size: 0.84rem;
    }


    .product-content-card .card-body,
    .related-products-shell > .card-body {

        padding: 19px !important;
    }


    .product-content-card h2 {

        margin-bottom: 17px !important;

        font-size: 1.08rem;
    }


    .product-description-content {

        font-size: 0.91rem;

        line-height: 1.95;
    }


    .product-specs-card .table-responsive {

        border-radius: 13px;
    }


    .product-specs-table > :not(caption) > * > * {

        padding: 12px 13px;
    }


    .product-specs-table th {

        width: 42%;

        font-size: 0.81rem;
    }


    .product-specs-table td {

        font-size: 0.83rem;
    }


    .related-products-section {

        margin-top: 28px !important;
    }


    .related-products-section .section-title {

        font-size: 1.1rem;
    }


    .related-product-card .card-img-top,
    .related-product-placeholder {

        height: 155px !important;
    }


    .related-product-card .card-body {

        padding: 12px !important;
    }


    .related-product-card .card-title {

        min-height: 40px;

        font-size: 0.8rem;

        line-height: 1.7;
    }


    .related-product-card .price {

        font-size: 0.84rem;
    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 575.98px) {

    .product-gallery-main {

        min-height: 260px;
    }


    .product-gallery-thumb {

        flex-basis: 56px;

        width: 56px;

        height: 56px;
    }


    .product-info-card .card-body {

        padding: 17px !important;
    }


    .product-info-card h1 {

        font-size: 1.25rem;
    }


    .product-info-card .h3.text-success {

        font-size: 1.55rem;
    }


    .qty-btn {

        flex-basis: 40px;

        width: 40px;

        height: 40px;
    }


    .qty-input {

        height: 40px;

        font-size: 1rem;
    }


    .product-detail-page .btn-lg {

        min-height: 48px;

        font-size: 0.91rem;
    }


    .pre-order-notice {

        display: block;

        line-height: 2;
    }


    .pre-order-notice i {

        margin-left: 5px;
    }


    .pre-order-notice .phone-number {

        margin: 0 3px;
    }


    .product-content-card .card-body,
    .related-products-shell > .card-body {

        padding: 16px !important;
    }


    .product-specs-table th {

        width: 45%;
    }


    .related-products-section .row {

        --bs-gutter-x: 12px;

        --bs-gutter-y: 12px;
    }


    .related-product-card .card-img-top,
    .related-product-placeholder {

        height: 135px !important;
    }


    .related-product-card .btn {

        padding-right: 6px;

        padding-left: 6px;

        font-size: 0.72rem;
    }

}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 420px) {

    .product-detail-page .container {

        padding-right: 10px;

        padding-left: 10px;
    }


    .product-gallery-main {

        min-height: 225px;
    }


    .product-gallery-thumb {

        flex-basis: 52px;

        width: 52px;

        height: 52px;
    }


    .product-info-card h1 {

        font-size: 1.16rem;
    }


    .product-specs-table > :not(caption) > * > * {

        padding: 10px;
    }


    .product-specs-table th {

        width: 47%;

        font-size: 0.76rem;
    }


    .product-specs-table td {

        font-size: 0.78rem;
    }


    .related-product-card .card-img-top,
    .related-product-placeholder {

        height: 120px !important;
    }

}