﻿.price-section {
    background: var(--grey-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-200);
    position: relative; 
}

.price-index {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 1;
}

@media (max-width: 768px) {
    .price-index {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .price-index {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }
}

@media (max-width: 360px) {
    .price-index {
        top: 0.375rem;
        right: 0.375rem;
        font-size: 0.6rem;
        padding: 0.125rem 0.3rem;
    }
}


@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

.oem-index-section {
    background-color: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center
}

.index-info,.oem-info {
    display: flex;
    align-items: baseline;
    gap: .5rem
}

.info-label-header {
    font-size: .8rem;
    font-weight: 500;
    color: #333333;
    margin: 0
}

.info-value-header {
    font-size: .95rem;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

.separator {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,.2)
}

@media (max-width:768px) {
    .oem-index-section {
        gap: 1rem;
        padding: .6rem .8rem
    }

    .separator {
        height: 16px
    }

    .info-value-header {
        font-size: .9rem
    }
}

@media (max-width:480px) {
    .oem-index-section {
        flex-direction: column;
        gap: .5rem;
        text-align: center
    }

    .separator {
        display: none
    }
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.btn-cepik, .btn-cepik-small {
    display: inline-flex;
    align-items: center;
    background: #1e3c72;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all .2s ease;
    border: 0;
    cursor: pointer
}

.btn-cepik {
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    justify-content: center
}

.btn-cepik:hover {
    background: #2a5298;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30,60,114,.3)
}

.btn-cepik.btn-large.btn-gallery{
    background: var(--link-blue);
}

.btn-cepik.btn-large {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.9rem;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    background: var(--primary-green);
}

.btn-cepik i {
    font-size: 1em
}

.btn-cepik-small {
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: .8rem
}

.btn-cepik-small:hover {
    background: #2a5298;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(30,60,114,.3)
}

.btn-cepik-small i {
    font-size: .85em
}

.btn-action {
    position: relative;
    overflow: hidden
}

.btn-action::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent);
    transition: left .5s ease
}

.btn-action:hover::before {
    left: 100%
}

.btn-cepik.loading {
    pointer-events: none;
    opacity: .7
}

.btn-cepik.loading i {
    animation: spin 1s linear infinite
}

.details-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem
}

.details-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden
}

.details-header {
    background: linear-gradient(135deg,var(--primary-green-darker) 0%,var(--primary-green) 100%);
    color: #fff;
    padding: 2rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start
}

.details-title-section h1 {
    color: #fff!important;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: .5rem;
    line-height: 1.3
}

.category-breadcrumb {
    color: var(--primary-green-light);
    font-weight: 500
}

.part-number,.thumbnail-section h4 {
    font-size: 1.125rem;
    color: var(--primary-green-light);
    font-weight: 600;
    margin-bottom: 1rem
}

.details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem
}

.details-meta .meta-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    opacity: .9
}

.details-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem
}

.image-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

.main-image-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .3s
}

.main-image:hover {
    transform: scale(1.02)
}

.image-controls,.image-nav {
    position: absolute;
    display: flex;
    align-items: center
}

.image-nav {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.5);
    color: #fff;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    justify-content: center;
    font-size: 16px;
    transition: all .3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden
}

.main-image-container:hover .image-nav {
    opacity: 1;
    visibility: visible
}

.image-nav:hover {
    background: rgba(0,0,0,.7);
    transform: translateY(-50%) scale(1.1)
}

.image-nav.prev {
    left: 15px
}

.image-nav.next {
    right: 15px
}

.image-controls {
    top: 15px;
    right: 15px;
    gap: 10px;
    z-index: 5
}

.image-counter {
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500
}

.autoplay-indicator,.image-expand {
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    transition: all .3s ease;
    cursor: pointer
}

.image-expand {
    background: rgba(0,0,0,.7);
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    justify-content: center
}

.image-expand:hover {
    background: rgba(0,0,0,.9);
    transform: scale(1.1)
}

.autoplay-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(92,207,112,.9);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 500;
    gap: 5px;
    z-index: 5;
    user-select: none
}

.autoplay-indicator:hover {
    background: #5ccf70;
    transform: scale(1.05)
}

.autoplay-indicator.paused {
    background: rgba(255,193,7,.9)
}

.autoplay-indicator.paused:hover {
    background: #ffc107
}

.autoplay-indicator i {
    font-size: 10px
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.95);
    z-index: 9999;
    align-items: center;
    justify-content: center
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    background-color: inherit!important;
    background-clip: inherit!important;
    border-radius: 0!important;
    border: 0!important
}

.modal-header:after,.modal-header:before {
    display: none!important
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: #fff;
    border-bottom: none!important
}

.modal-counter {
    background: rgba(255,255,255,.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500
}

.modal-close,.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center
}

.modal-close {
    background: rgba(255,255,255,.2);
    color: #fff;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all .3s ease
}

.modal-close:hover {
    background: rgba(255,255,255,.3);
    transform: scale(1.1)
}

.modal-image-container {
    flex: 1;
    position: relative;
    overflow: hidden
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.2);
    color: #fff;
    border: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all .3s ease;
    backdrop-filter: blur(10px)
}

.modal-nav:hover {
    background: rgba(255,255,255,.3);
    transform: translateY(-50%) scale(1.1)
}

.modal-nav.prev {
    left: 30px
}

.modal-nav.next {
    right: 30px
}

.thumbnail-section h4 {
    color: var(--bde-headings-color)
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: .5rem
}

.thumbnail-img,.thumbnail-item {
    transition: all .2s;
    border-radius: var(--radius-md)
}

.thumbnail-item {
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1/1;
    position: relative
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md)
}

.thumbnail-item[data-image-index]:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 0 0;
    transition: background .2s ease;
    z-index: 1;
    border-radius: var(--radius-md)
}

.thumbnail-item[data-image-index]:hover:before {
    background: rgba(92,207,112,.1)
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 2px solid transparent
}

.thumbnail-img.active {
    border-color: var(--primary-green)
}

.thumbnail-img:hover {
    border-color: var(--primary-green-light)
}

.product-details-section {
    display: flex;
    flex-direction: column;
    gap: 2rem
}

.price-section {
    background: var(--grey-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-200)
}

.price-section .product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green-darker);
    text-align: center;
    border-radius: var(--radius-lg);
    margin-top: 3rem
}

.shipping-info {
    font-size: .875rem;
    color: var(--grey-600);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem
}

.contact-item i,.shipping-info i {
    color: var(--primary-green)
}

.contact-form-card h3,.contact-info-card h3,.description-section h3,.technical-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bde-headings-color)
}

.info-grid,.info-item {
    display: grid;
    gap: .75rem
}

.info-item {
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: .75rem;
    padding-left: 0;
    border-bottom: 1px solid var(--grey-200)
}

.contact-item strong,.info-label {
    font-weight: 600;
    color: var(--grey-700);
    font-size: .875rem
}

.info-value {
    color: var(--bde-body-text-color);
    font-size: .875rem;
    word-wrap: break-word
}

.description-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--grey-700)
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem
}

.contact-form-card,.contact-info-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem
}

.contact-form-card h3,.contact-info-card h3 {
    margin-bottom: 1.5rem
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem
}

.contact-item i {
    margin-top: .125rem;
    flex-shrink: 0
}

.contact-item strong {
    display: block;
    margin-bottom: .25rem
}

.contact-item a,.contact-item span {
    font-size: .875rem;
    text-decoration: none
}

.contact-item a:hover {
    color: var(--primary-green-darker);
    text-decoration: underline
}

.contact-details>.contact-item a {
    color: var(--bde-body-text-color)
}

.quick-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.quick-contact-form .form-group {
    margin-bottom: 0
}

.quick-contact-form .form-control {
    width: 100%!important;
    padding: .75rem;
    border: 1px solid var(--grey-300);
    border-radius: var(--radius-md);
    font-size: .875rem;
    transition: border-color .2s
}

.quick-contact-form .form-control:focus {
    outline: 0;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(92,207,112,.1)
}

.quick-contact-form .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .5rem
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: .75rem
}

.alert-danger {
    background: var(--red-50);
    color: var(--red-700);
    border: 1px solid var(--red-500)
}

.alert-success {
    background: var(--emerald-100);
    color: var(--emerald-700);
    border: 1px solid var(--primary-green-light)
}

@media (max-width:1024px) {
    .details-content {
        gap: 2rem
    }

    .contact-section,.details-content {
        grid-template-columns: 1fr
    }

    .thumbnail-grid {
        grid-template-columns: repeat(4,1fr)
    }
}

@media (max-width:768px) {
    .details-layout {
        padding: 1rem;
        gap: 1.5rem
    }

    .details-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem
    }

    .details-title-section h1 {
        font-size: 1.5rem;
        line-height: 1.2
    }

    .part-number {
        font-size: 1rem;
        margin-bottom: .75rem
    }

    .details-meta {
        flex-direction: column;
        gap: .75rem
    }

    .details-meta .meta-item {
        font-size: .875rem
    }

    .details-content {
        padding: 1rem;
        gap: 1.5rem
    }

    .image-nav {
        width: 35px;
        height: 35px;
        font-size: 14px
    }

    .image-nav.prev {
        left: 10px
    }

    .image-nav.next {
        right: 10px
    }

    .image-controls {
        top: 10px;
        right: 10px;
        gap: 8px
    }

    .image-counter {
        font-size: 11px;
        padding: 4px 8px
    }

    .image-expand {
        width: 28px;
        height: 28px;
        font-size: 11px
    }

    .autoplay-indicator {
        top: 10px;
        left: 10px;
        font-size: 11px;
        padding: 4px 8px
    }

    .autoplay-indicator i {
        font-size: 9px
    }

    .modal-content {
        width: 95%;
        height: 95%
    }

    .modal-header {
        padding: 15px
    }

    .modal-counter {
        padding: 6px 12px;
        font-size: 14px
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 16px
    }

    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 20px
    }

    .modal-nav.prev {
        left: 20px
    }

    .modal-nav.next {
        right: 20px
    }

    .thumbnail-grid {
        grid-template-columns: repeat(3,1fr)
    }

    .info-item {
        grid-template-columns: 1fr;
        gap: .25rem;
        padding: .5rem
    }

    .info-label {
        font-weight: 700;
        color: var(--grey-800)
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .price-section {
        padding: 1rem
    }

    .price-section .product-price {
        font-size: 1.5rem;
        padding: .75rem
    }

    .contact-form-card,.contact-info-card {
        padding: 1.5rem
    }

    .description-section h3,.technical-info h3 {
        font-size: 1.125rem
    }
}

@media (max-width:480px) {
    .details-layout {
        padding: .75rem;
        gap: 1rem
    }

    .details-header {
        padding: 1rem
    }

    .details-title-section h1 {
        font-size: 1.25rem
    }

    .part-number {
        font-size: .9rem
    }

    .details-meta .meta-item {
        font-size: .8rem
    }

    .details-content {
        padding: .75rem;
        gap: 1rem
    }

    .image-nav {
        width: 30px;
        height: 30px;
        font-size: 12px
    }

    .image-nav.prev {
        left: 8px
    }

    .image-nav.next {
        right: 8px
    }

    .image-controls {
        top: 8px;
        right: 8px;
        gap: 6px
    }

    .image-counter {
        font-size: 10px;
        padding: 3px 6px
    }

    .image-expand {
        width: 24px;
        height: 24px;
        font-size: 10px
    }

    .autoplay-indicator {
        top: 8px;
        left: 8px;
        font-size: 10px;
        padding: 3px 6px
    }

    .autoplay-indicator i {
        font-size: 8px
    }

    .modal-header {
        padding: 10px
    }

    .modal-counter {
        padding: 4px 8px;
        font-size: 12px
    }

    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 14px
    }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 16px
    }

    .modal-nav.prev {
        left: 15px
    }

    .modal-nav.next {
        right: 15px
    }

    .thumbnail-grid {
        grid-template-columns: repeat(2,1fr);
        gap: .375rem
    }

    .description-section h3,.technical-info h3,.thumbnail-section h4 {
        font-size: 1rem
    }

    .price-section .product-price {
        font-size: 1.25rem;
        padding: .5rem
    }

    .shipping-info {
        font-size: .8rem
    }

    .info-item {
        padding: .375rem
    }

    .info-label,.info-value {
        font-size: .8rem
    }

    .contact-form-card,.contact-info-card {
        padding: 1rem
    }

    .contact-item {
        font-size: .8rem
    }

    .quick-contact-form .form-control {
        padding: .625rem;
        font-size: .8rem
    }

    .description-section p {
        font-size: .875rem
    }
}

@media (max-width:360px) {
    .details-layout {
        padding: .5rem
    }

    .details-header {
        padding: .75rem
    }

    .details-title-section h1 {
        font-size: 1.125rem
    }

    .details-content {
        padding: .5rem
    }

    .thumbnail-grid {
        grid-template-columns: 1fr 1fr
    }

    .contact-form-card,.contact-info-card,.price-section {
        padding: .75rem
    }

    .price-section .product-price {
        font-size: 1.125rem;
        padding: .375rem
    }
}

@media (hover:none) and (pointer:coarse) {
    .image-nav {
        opacity: .7;
        visibility: visible
    }

    .main-image-container:hover .image-nav {
        opacity: .7
    }

    .image-nav:active {
        transform: translateY(-50%) scale(.95)
    }
}