/* =========================================================
   AJEP APPARELS — PREMIUM PRODUCT DETAIL
========================================================= */
.product-page {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 40px 100px;
    color: #171717;
}


/* =========================================================
   RESET GLOBAL BASE STYLES
========================================================= */

.product-page > section {
    padding: 0;
}


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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 28px 0 35px;
    font-size: 13px;
    color: #777;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #1b5e20;
}

.breadcrumb .current {
    color: #111;
    font-weight: 500;
}


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

.product-details {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: 80px;
    align-items: start;
}


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

.product-gallery {
    width: 100%;
}

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

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 35px;
    display: block;
    transition: transform 0.5s ease;
}

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

.image-badge {
    position: absolute;
    top: 22px;
    left: 22px;

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

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #1b5e20;
    color: #fff;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}


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

.product-information {
    padding-top: 10px;
}

.product-label {
    display: block;
    margin-bottom: 15px;

    color: #1b5e20;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-information h1 {
    margin: 0;

    color: #111;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -1.8px;
}

.product-price {
    margin-top: 22px;
    padding-bottom: 25px;

    border-bottom: 1px solid #e5e5e5;
}

.product-price span {
    font-size: 25px;
    font-weight: 600;
    color: #171717;
}

.description {
    max-width: 580px;
    margin: 25px 0;

    color: #666;

    font-size: 15px;
    line-height: 1.8;
}


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

.product-meta {
    display: flex;
    gap: 45px;

    padding: 20px 0;

    border-top: 1px solid #ededed;
    border-bottom: 1px solid #ededed;
}

.product-meta div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-meta span {
    color: #888;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-meta strong {
    color: #222;

    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   PURCHASE FORM
========================================================= */

.purchase-form {
    margin-top: 30px;
}


/* =========================================================
   SELECTION SECTIONS
========================================================= */

.selection-section {
    margin-bottom: 30px;
}

.selection-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 13px;
}

.selection-heading h3 {
    margin: 0;

    color: #171717;

    font-size: 14px;
    font-weight: 600;
}

.selection-heading > span {
    color: #777;

    font-size: 12px;
}


/* =========================================================
   COLORS
========================================================= */

.variant-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.color-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    min-height: 43px;
    padding: 0 15px;

    border: 1px solid #ddd;
    background: #fff;

    color: #333;

    font-family: inherit;
    font-size: 13px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.color-option:hover {
    border-color: #1b5e20;
    transform: translateY(-1px);
}

.color-option.active {
    border-color: #1b5e20;
    background: #f2f7f2;

    color: #1b5e20;
}

.color-dot {
    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: #ddd;
    border: 1px solid #bbb;
}


/*
   Basic automatic color indication.
   This works with common color names.
*/

.color-option[data-color="BLACK"] .color-dot,
.color-option[data-color="Black"] .color-dot {
    background: #111;
    border-color: #111;
}

.color-option[data-color="WHITE"] .color-dot,
.color-option[data-color="White"] .color-dot {
    background: #fff;
}

.color-option[data-color="GREEN"] .color-dot,
.color-option[data-color="Green"] .color-dot {
    background: #2e7d32;
    border-color: #2e7d32;
}

.color-option[data-color="RED"] .color-dot,
.color-option[data-color="Red"] .color-dot {
    background: #c62828;
    border-color: #c62828;
}

.color-option[data-color="BLUE"] .color-dot,
.color-option[data-color="Blue"] .color-dot {
    background: #1565c0;
    border-color: #1565c0;
}

.color-option[data-color="YELLOW"] .color-dot,
.color-option[data-color="Yellow"] .color-dot {
    background: #f9c400;
    border-color: #f9c400;
}

.color-option[data-color="GREY"] .color-dot,
.color-option[data-color="GRAY"] .color-dot,
.color-option[data-color="Grey"] .color-dot,
.color-option[data-color="Gray"] .color-dot {
    background: #777;
    border-color: #777;
}


/* =========================================================
   SIZES
========================================================= */

.variant-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.size-option {
    min-width: 58px;
    min-height: 46px;

    padding: 0 15px;

    border: 1px solid #d9d9d9;
    background: #fff;

    color: #222;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.size-option:hover:not(:disabled) {
    border-color: #1b5e20;
    transform: translateY(-1px);
}

.size-option.active {
    background: #1b5e20;
    border-color: #1b5e20;
    color: #fff;
}

.size-option:disabled {
    position: relative;

    color: #aaa;
    background: #f7f7f7;
    border-color: #e7e7e7;

    cursor: not-allowed;

    text-decoration: line-through;
}


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

.quantity-section {
    margin-top: 32px;
    margin-bottom: 22px;
}

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

    width: 145px;
    height: 48px;

    border: 1px solid #d9d9d9;
}

.quantity-control button {
    width: 45px;
    height: 100%;

    border: 0;
    background: #fff;

    color: #222;

    font-size: 19px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.quantity-control button:hover {
    background: #f5f5f5;
}

.quantity-control input {
    width: 55px;
    height: 100%;

    padding: 0;

    border: 0;

    text-align: center;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    outline: none;
}

/* Remove browser number arrows */

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

.quantity-control input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}


/* =========================================================
   STOCK
========================================================= */

#stock-message {
    font-size: 12px;
}

.stock-ok {
    color: #2e7d32 !important;
}

.stock-warning {
    color: #c57c00 !important;
}


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

.cart-btn {
    width: 100%;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    border: none;

    background: #1b5e20;
    color: #fff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;

    cursor: pointer;

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

.cart-btn:hover:not(:disabled) {
    background: #124517;

    transform: translateY(-2px);

    box-shadow: 0 12px 25px rgba(27, 94, 32, 0.18);
}

.cart-btn:disabled {
    background: #d2d2d2;
    color: #888;

    cursor: not-allowed;
}

.cart-btn i {
    font-size: 13px;
}


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

.purchase-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 22px;

    padding-top: 20px;

    border-top: 1px solid #e8e8e8;
}

.purchase-trust div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    padding: 0 10px;

    text-align: center;
}

.purchase-trust i {
    color: #1b5e20;
    font-size: 15px;
}

.purchase-trust span {
    color: #777;
    font-size: 10px;
    line-height: 1.4;
}


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

.product-description {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 80px;

    margin-top: 110px;
    padding: 65px 0;

    border-top: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
}

.description-heading span {
    color: #1b5e20;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.description-heading h2 {
    max-width: 400px;
    margin: 15px 0 0;

    color: #171717;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.8px;
}

.description-content {
    display: flex;
    align-items: center;
}

.description-content p {
    max-width: 650px;
    margin: 0;

    color: #666;

    font-size: 15px;
    line-height: 1.9;
}


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

.related-products {
    margin-top: 100px;
}

.related-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 35px;
}

.related-header span {
    color: #1b5e20;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

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

    color: #171717;

    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.8px;
}

.related-header > a {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #222;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    border-bottom: 1px solid #222;
    padding-bottom: 5px;
}

.related-header > a i {
    font-size: 10px;
}


.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.related-card {
    display: block;

    color: inherit;
    text-decoration: none;
}

.related-image {
    position: relative;

    width: 100%;
    height: 330px;

    overflow: hidden;

    background: #f5f5f3;
}

.related-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 20px;

    transition: transform 0.4s ease;
}

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

.related-info {
    padding: 17px 2px;
}

.related-info h3 {
    margin: 0 0 7px;

    color: #222;

    font-size: 14px;
    font-weight: 500;
}

.related-info span {
    color: #555;

    font-size: 13px;
}


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

@media (max-width: 1000px) {

    .product-page {
        padding: 0 25px 70px;
    }

    .product-details {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .main-image {
        height: 540px;
    }

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

    .product-description {
        gap: 40px;
    }

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

}


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

@media (max-width: 760px) {

    .product-page {
        padding: 0 16px 60px;
    }


    /* Breadcrumb */

    .breadcrumb {
        padding: 18px 0 25px;

        font-size: 11px;

        white-space: nowrap;
        overflow: hidden;
    }


    /* Product */

    .product-details {
        display: block;
    }


    .main-image {
        height: 430px;
    }

    .main-image img {
        padding: 20px;
    }


    .product-information {
        padding-top: 35px;
    }

    .product-label {
        font-size: 9px;
    }

    .product-information h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .product-price {
        margin-top: 17px;
    }

    .product-price span {
        font-size: 22px;
    }


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


    .product-meta {
        gap: 30px;
    }


    /* Description */

    .product-description {
        display: block;

        margin-top: 70px;
        padding: 45px 0;
    }

    .description-heading h2 {
        font-size: 27px;
    }

    .description-content {
        margin-top: 25px;
    }


    /* Related */

    .related-products {
        margin-top: 70px;
    }

    .related-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .related-header h2 {
        font-size: 27px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .related-image {
        height: 240px;
    }


    /* Trust */

    .purchase-trust {
        gap: 5px;
    }

    .purchase-trust span {
        font-size: 9px;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 430px) {

    .main-image {
        height: 360px;
    }

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

    .variant-colors {
        gap: 7px;
    }

    .color-option {
        min-height: 40px;
        padding: 0 11px;
    }

    .size-option {
        min-width: 53px;
        min-height: 43px;
    }

    .related-image {
        height: 200px;
    }

}