/* =========================================================
   IKXEL PRODUCT DETAILS PAGE
   Page-specific stylesheet
   Color scheme: Royal Blue + Navy + Teal
========================================================= */

:root {
    --product-primary: #2563eb;
    --product-primary-dark: #1d4ed8;
    --product-teal: #14b8a6;
    --product-navy: #0b1220;
    --product-heading: #0f172a;
    --product-text: #64748b;
    --product-border: #e2e8f0;
    --product-soft: #f6f8fc;
    --product-white: #ffffff;
    --product-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
    --product-shadow-md: 0 20px 50px rgba(15, 23, 42, 0.12);
    --product-shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.16);
}

.ikxel-product-details-page {
    overflow-x: hidden;
    color: var(--product-heading);
    background: var(--product-white);
}

.pb-lg-6 {
    padding-bottom: 5.5rem !important;
}

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

.product-breadcrumb-section {
    background: #ffffff;
    border-bottom: 1px solid var(--product-border);
}

.product-breadcrumb {
    --bs-breadcrumb-divider: "›";
    flex-wrap: nowrap;
    overflow: hidden;
    font-size: 0.76rem;
}

.product-breadcrumb .breadcrumb-item {
    min-width: 0;
}

.product-breadcrumb a {
    color: var(--product-text);
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: var(--product-primary);
}

.product-breadcrumb .active {
    max-width: 300px;
    color: var(--product-heading);
}

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

.product-main-section {
    position: relative;
    background:
        radial-gradient(
            circle at 8% 5%,
            rgba(37, 99, 235, 0.09),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 42%
        );
}

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

.product-gallery-shell {
    padding: 0.85rem;
    background: #ffffff;
    border: 1px solid var(--product-border);
    border-radius: 1.25rem;
    box-shadow: var(--product-shadow-md);
}

.product-gallery-carousel {
    overflow: hidden;
    border-radius: 1rem;
}

.product-gallery-main {
    position: relative;
    width: 100%;
    height: 520px;
    display: block;
    overflow: hidden;
    padding: 0;
    background: #e2e8f0;
    border: 0;
    border-radius: 1rem;
}

.product-gallery-main > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-gallery-main:hover > img {
    transform: scale(1.025);
}

.product-gallery-zoom {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.85rem;
    color: var(--product-heading);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 0.75rem;
    box-shadow: var(--product-shadow-sm);
    font-size: 0.7rem;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.product-gallery-control {
    top: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--product-heading);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--product-border);
    border-radius: 0.8rem;
    box-shadow: var(--product-shadow-sm);
    opacity: 1;
    transform: translateY(-50%);
}

.product-gallery-control:hover {
    color: #ffffff;
    background: var(--product-primary);
    border-color: var(--product-primary);
}

.product-gallery-carousel .carousel-control-prev {
    left: 1rem;
}

.product-gallery-carousel .carousel-control-next {
    right: 1rem;
}

.product-thumbnail-strip {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.8rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.product-thumbnail {
    width: 88px;
    height: 68px;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0.2rem;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    opacity: 0.68;
    transition: 0.2s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--product-primary);
    opacity: 1;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0.5rem;
}

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

.product-information-card {
    padding: 1.75rem;
    background: #ffffff;
    border: 1px solid var(--product-border);
    border-radius: 1.15rem;
    box-shadow: var(--product-shadow-sm);
}

.product-section-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--product-border);
}

.product-section-heading > span {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--product-primary);
    background: #eff6ff;
    border-radius: 0.85rem;
}

.product-section-heading small {
    display: block;
    color: var(--product-primary);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-section-heading h2 {
    margin: 0.15rem 0 0;
    color: var(--product-heading);
    font-size: 1.15rem;
    font-weight: 800;
}

.product-description {
    padding-top: 1.3rem;
    color: var(--product-text);
    font-size: 0.88rem;
    line-height: 1.85;
}

.product-description p:last-child {
    margin-bottom: 0;
}

.product-tags-section {
    margin-top: 1.4rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--product-border);
}

.product-tags-section h3 {
    margin: 0 0 0.8rem;
    color: var(--product-heading);
    font-size: 0.85rem;
    font-weight: 800;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.product-tags span {
    padding: 0.48rem 0.72rem;
    color: #475569;
    background: var(--product-soft);
    border: 1px solid var(--product-border);
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 650;
}

/* =========================================================
   PURCHASE CARD
========================================================= */

.product-purchase-card {
    position: sticky;
    top: 174px;
    padding: 1.75rem;
    background: #ffffff;
    border: 1px solid var(--product-border);
    border-radius: 1.25rem;
    box-shadow: var(--product-shadow-lg);
}

.product-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    color: var(--product-primary);
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 750;
}

.product-title {
    margin: 0;
    color: var(--product-heading);
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.product-short-description {
    margin: 1rem 0 0;
    color: var(--product-text);
    font-size: 0.83rem;
    line-height: 1.75;
}

.product-price-block {
    margin-top: 1.4rem;
    padding: 1.1rem;
    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f0fdfa
        );
    border: 1px solid #dbeafe;
    border-radius: 0.95rem;
}

.product-price-block small,
.product-price-block strong,
.product-price-block span {
    display: block;
}

.product-price-block small {
    color: var(--product-text);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-price-block strong {
    margin-top: 0.15rem;
    color: var(--product-heading);
    font-size: 2rem;
    line-height: 1.2;
}

.product-price-block span {
    margin-top: 0.2rem;
    color: var(--product-teal);
    font-size: 0.67rem;
    font-weight: 700;
}

.product-quantity-block {
    margin-top: 1.35rem;
}

.product-quantity-block label {
    color: var(--product-heading);
    font-size: 0.75rem;
    font-weight: 750;
}

.product-quantity-block > div:first-child > span {
    color: var(--product-text);
    font-size: 0.66rem;
}

.product-quantity-control {
    height: 48px;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    overflow: hidden;
    background: var(--product-soft);
    border: 1px solid var(--product-border);
    border-radius: 0.85rem;
}

.product-quantity-control button {
    color: var(--product-primary);
    background: transparent;
    border: 0;
    transition: 0.2s ease;
}

.product-quantity-control button:hover {
    color: #ffffff;
    background: var(--product-primary);
}

.product-quantity-control input {
    width: 100%;
    color: var(--product-heading);
    background: #ffffff;
    border: 0;
    border-right: 1px solid var(--product-border);
    border-left: 1px solid var(--product-border);
    outline: 0;
    text-align: center;
    font-weight: 800;
    appearance: textfield;
}

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

.product-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--product-border);
    border-bottom: 1px solid var(--product-border);
}

.product-total-row > span {
    color: var(--product-text);
    font-size: 0.8rem;
    font-weight: 700;
}

.product-total-row > strong {
    color: var(--product-heading);
    font-size: 1.35rem;
}

.product-buy-button {
    min-height: 52px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.product-purchase-features {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.product-purchase-features > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem;
    background: var(--product-soft);
    border-radius: 0.8rem;
}

.product-purchase-features > div > span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--product-teal);
    background: #ccfbf1;
    border-radius: 0.7rem;
}

.product-purchase-features strong,
.product-purchase-features small {
    display: block;
}

.product-purchase-features strong {
    color: var(--product-heading);
    font-size: 0.72rem;
}

.product-purchase-features small {
    color: var(--product-text);
    font-size: 0.62rem;
}

.product-support-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    color: var(--product-text);
    border-top: 1px solid var(--product-border);
    font-size: 0.67rem;
    line-height: 1.6;
}

.product-support-note > i {
    margin-top: 0.15rem;
    color: var(--product-primary);
}

.product-support-note a {
    color: var(--product-primary);
    font-weight: 750;
    text-decoration: none;
}

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

.related-products-section {
    background: var(--product-soft);
}

.related-section-label {
    display: inline-flex;
    color: var(--product-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.related-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--product-border);
    border-radius: 1rem;
    box-shadow: var(--product-shadow-sm);
    transition: 0.24s ease;
}

.related-product-card:hover {
    transform: translateY(-6px);
    border-color: #bfdbfe;
    box-shadow: var(--product-shadow-md);
}

.related-product-image {
    position: relative;
    height: 185px;
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

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

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

.related-product-image span {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    max-width: calc(100% - 1.5rem);
    overflow: hidden;
    padding: 0.36rem 0.6rem;
    color: #ffffff;
    background: rgba(11, 18, 32, 0.86);
    border-radius: 999px;
    font-size: 0.56rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.related-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.related-product-content > a {
    text-decoration: none;
}

.related-product-content h3 {
    display: -webkit-box;
    min-height: 2.7rem;
    overflow: hidden;
    margin: 0;
    color: var(--product-heading);
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-product-content p {
    display: -webkit-box;
    min-height: 2.4rem;
    overflow: hidden;
    margin: 0.55rem 0;
    color: var(--product-text);
    font-size: 0.7rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-product-content > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid var(--product-border);
}

.related-product-content > div strong {
    font-size: 1rem;
}

.related-product-content > div a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--product-primary);
    font-size: 0.66rem;
    font-weight: 750;
    text-decoration: none;
}

/* =========================================================
   CUSTOM CTA
========================================================= */

.product-custom-section {
    padding-top: 5rem;
    background: #ffffff;
}

.product-custom-card {
    overflow: hidden;
    padding: 3.25rem;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(20, 184, 166, 0.28),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--product-primary),
            #4f46e5
        );
    border-radius: 1.4rem;
    box-shadow: 0 28px 65px rgba(37, 99, 235, 0.24);
}

.product-custom-card > .row > div:first-child > span {
    color: #a5f3fc;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-custom-card h2 {
    max-width: 800px;
    margin: 0.85rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.product-custom-card p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

/* =========================================================
   IMAGE MODAL
========================================================= */

.product-gallery-modal .modal-dialog {
    max-width: min(1200px, 94vw);
}

.product-gallery-modal .modal-content {
    overflow: hidden;
    background: #ffffff;
    border: 0;
    border-radius: 1.2rem;
    box-shadow: var(--product-shadow-lg);
}

.product-gallery-modal .modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--product-border);
}

.product-gallery-modal .modal-header small {
    display: block;
    color: var(--product-primary);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-gallery-modal .modal-title {
    margin-top: 0.1rem;
    color: var(--product-heading);
    font-size: 1rem;
    font-weight: 800;
}

.product-gallery-modal .modal-body {
    padding: 0.75rem;
    background: var(--product-soft);
}

.product-modal-image {
    height: min(72vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 0.9rem;
}

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

.product-modal-control {
    top: 50%;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--product-heading);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--product-border);
    border-radius: 0.8rem;
    opacity: 1;
    transform: translateY(-50%);
}

.product-modal-control:hover {
    color: #ffffff;
    background: var(--product-primary);
}

.product-gallery-modal .carousel-control-prev {
    left: 1rem;
}

.product-gallery-modal .carousel-control-next {
    right: 1rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
    .product-gallery-main {
        height: 470px;
    }

    .product-purchase-card {
        top: 163px;
    }
}

@media (max-width: 991.98px) {
    .product-gallery-main {
        height: 480px;
    }

    .product-purchase-card {
        position: relative;
        top: auto;
    }

    .product-custom-card {
        padding: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .product-gallery-main {
        height: 390px;
    }

    .product-information-card,
    .product-purchase-card {
        padding: 1.35rem;
    }

    .product-custom-card {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .pb-lg-6 {
        padding-bottom: 4rem !important;
    }

    .product-breadcrumb .active {
        max-width: 145px;
    }

    .product-main-section .container {
        padding-top: 2.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .product-gallery-shell {
        padding: 0.55rem;
        border-radius: 1rem;
    }

    .product-gallery-main {
        height: 285px;
        border-radius: 0.8rem;
    }

    .product-gallery-zoom {
        right: 0.65rem;
        bottom: 0.65rem;
        min-height: 36px;
        padding: 0 0.65rem;
        font-size: 0.62rem;
    }

    .product-gallery-control {
        width: 38px;
        height: 38px;
    }

    .product-gallery-carousel .carousel-control-prev {
        left: 0.65rem;
    }

    .product-gallery-carousel .carousel-control-next {
        right: 0.65rem;
    }

    .product-thumbnail {
        width: 72px;
        height: 56px;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .product-price-block strong {
        font-size: 1.7rem;
    }

    .related-product-image {
        height: 220px;
    }

    .product-custom-section {
        padding-top: 3.5rem;
    }

    .product-custom-card {
        padding: 1.75rem 1.25rem;
        border-radius: 1.1rem;
    }

    .product-custom-card h2 {
        font-size: 2rem;
    }

    .product-modal-image {
        height: 62vh;
    }
}