/* Product Detail Page Styles - Mobile First */

/* Breadcrumb */
.breadcrumb-container {
    background: #FFFFFF;
    padding: 16px 0;
    border-bottom: 1px solid #F0F1F2;
}

.breadcrumb-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-wrapper .back-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 8px;
}

.breadcrumb-wrapper .back-button img {
    width: 20px;
    height: 20px;
}

.breadcrumb-link {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #808080;
    text-decoration: none;
    transition: color 0.3s;
    display: none;
}

.breadcrumb-link:hover {
    color: #C62828;
}

.breadcrumb-separator {
    color: #CCCCCC;
    font-size: 16px;
    display: none;
}

.breadcrumb-current {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #222222;
    font-weight: 500;
}

.breadcrumb-product-name {
    display: none;
}

/* Product Detail Container */
.product-detail-container {
    background: #FFFFFF;
    padding: 0;
}

.product-detail-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* Product Images Section */
.product-images-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #000000;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #000000;
    padding: 16px;
    overflow: hidden;
}

.thumbnail-arrow {
    position: absolute;
    width: auto;
    height: auto;
    background: rgba(0, 0, 0, 0);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.thumbnail-arrow:hover {
    /* background: #FFFFFF; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.thumbnail-arrow.disabled {
    opacity: 0;
    pointer-events: none;
}

.thumbnail-arrow img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.thumbnail-arrow:hover img {
    opacity: 1;
}

#thumbnailPrev {
    left: 8px;
}

#thumbnailNext {
    right: 8px;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    background: #1A1A1A;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #333333;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: #C62828;
}

.thumbnail:hover {
    border-color: #C62828;
    opacity: 0.8;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
    object-fit: cover;
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
    padding-bottom: 100px;
}

.product-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #222222;
    margin: 0;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item {
    display: flex;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 22px;
}

.spec-label {
    color: #4D4D4D;
    min-width: 120px;
}

.spec-value {
    color: #222222;
    font-weight: 500;
}

.product-description {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: #4D4D4D;
}

.product-description strong {
    color: #222222;
    font-weight: 600;
}

.product-specifications {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-specifications h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #222222;
    margin: 0;
}

.spec-row {
    display: flex;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 20px;
}

.spec-label-sm {
    color: #4D4D4D;
    min-width: 110px;
}

.spec-value-sm {
    color: #222222;
}

/* Order Form Card */
.order-form-card {
    background: #FFFFFF;
    border: none;
    border-radius: 0;
    padding: 0 16px 24px 16px;
    box-shadow: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px;
    background: #FFFFFF;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.order-form-card h3 {
    display: none;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.order-form-card .form-group {
    display: none;
}

.order-form-card .form-group label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #222222;
}

.order-form-card .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #222222;
    transition: all 0.3s;
}

.order-form-card .form-group input:focus {
    outline: none;
    border-color: #C62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.btn-submit-order {
    width: 100%;
    padding: 14px 24px;
    background: #C62828;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-order:hover {
    background: #A02020;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.btn-desktop-submit {
    display: none;
}

/* Mobile Order Modal/Tray */
.order-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.order-modal-overlay.active {
    display: block;
    opacity: 1;
}

.order-modal-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 1001;
}

.order-modal-tray.active {
    transform: translateY(0);
}

.order-modal-handle {
    width: 40px;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    margin: 12px auto 8px;
}

.order-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F1F2;
}

.order-modal-header h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    color: #222222;
    margin: 0;
}

.order-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.order-modal-close img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.order-modal-body {
    padding: 24px 20px;
}

.order-modal-body .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.order-modal-body .form-group label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #222222;
}

.order-modal-body .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #222222;
    transition: all 0.3s;
}

.order-modal-body .form-group input:focus {
    outline: none;
    border-color: #C62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.form-help {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #808080;
    margin-top: -4px;
}

.btn-modal-submit {
    width: 100%;
    padding: 16px 24px;
    background: #C62828;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-modal-submit:hover {
    background: #A02020;
}

/* Related Products Section */
.related-products-section {
    background: #F8F9FA;
    padding: 48px 0;
}

.related-products-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

.related-products-wrapper h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #222222;
    margin: 0 0 24px;
}

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

.related-product-item {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.related-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.related-product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #000000;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-info {
    padding: 12px;
}

.related-product-info h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #222222;
    margin: 0 0 4px;
}

.related-product-info p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #808080;
    margin: 0;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .breadcrumb-container {
        padding: 40px 0 0 0;
        border-bottom: none;
    }

    .breadcrumb-wrapper {
        padding: 0 24px;
    }

    .breadcrumb-wrapper .back-button {
        display: none;
    }

    .breadcrumb-current:not(.breadcrumb-product-name) {
        display: none;
    }

    .breadcrumb-link,
    .breadcrumb-separator,
    .breadcrumb-product-name {
        display: inline;
    }

    .product-detail-container {
        padding: 24px 0;
    }

    .product-detail-wrapper {
        padding: 0 24px;
        gap: 24px;
        grid-template-columns: 1fr 1fr;
    }

    .product-images-section {
        background: transparent;
        grid-column: 1;
        grid-row: 1;
    }

    .product-main-image {
        border-radius: 16px;
        max-width: 100%;
    }

    .thumbnails-container {
        background: transparent;
        padding: 0;
        margin-top: 16px;
    }

    .product-info-section {
        padding: 0;
        padding-bottom: 0;
        grid-column: 2;
        grid-row: 1;
    }

    .order-modal-overlay {
        display: none !important;
    }

    .order-form-card {
        position: static;
        border: 1px solid #F0F1F2;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .order-form-card h3 {
        display: block;
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        font-size: 18px;
        line-height: 26px;
        color: #222222;
        margin: 0 0 24px;
    }

    .order-form {
        gap: 20px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .order-form .form-group {
        grid-column: span 1;
    }

    .order-form .btn-desktop-submit {
        grid-column: 1 / -1;
    }

    .order-form-card .form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .btn-submit-order {
        border-radius: 8px;
    }

    .btn-submit-order:hover {
        transform: translateY(-2px);
    }

    #btnPesanProduk {
        display: none;
    }

    .btn-desktop-submit {
        display: block;
    }

    .product-title {
        font-size: 24px;
        line-height: 32px;
    }

    .related-products-wrapper {
        padding: 0 24px;
    }

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

    .product-thumbnails {
        max-width: 500px;
    }
}

/* Desktop Small */
@media (min-width: 1024px) {
    .breadcrumb-wrapper {
        padding: 0 40px;
    }

    .product-detail-container {
        padding: 40px 0;
    }

    .product-detail-wrapper {
        padding: 0 40px;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }

    .product-images-section {
        grid-column: 1;
        grid-row: 1;
    }

    .product-info-section {
        grid-column: 2;
        grid-row: 1;
    }

    .order-form-card {
        grid-column: 3;
        grid-row: 1;
        padding: 24px;
        max-height: fit-content;
    }

    .order-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .order-form .form-group {
        grid-column: auto;
    }

    .order-form .btn-desktop-submit {
        grid-column: auto;
    }

    .product-title {
        font-size: 28px;
        line-height: 36px;
    }

    .product-thumbnails {
        max-width: 600px;
        gap: 16px;
    }

    .related-products-wrapper {
        padding: 0 40px;
    }

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

/* Desktop Medium */
@media (min-width: 1200px) {
    .breadcrumb-wrapper {
        padding: 0 60px;
    }

    .product-detail-wrapper {
        padding: 0 60px;
        gap: 60px;
    }

    .product-title {
        font-size: 32px;
        line-height: 40px;
    }

    .related-products-wrapper {
        padding: 0 60px;
    }
}

/* Desktop Large */
@media (min-width: 1440px) {
    .breadcrumb-wrapper {
        padding: 0 80px;
    }

    .product-detail-wrapper {
        padding: 0 80px;
    }

    .related-products-wrapper {
        padding: 0 80px;
    }
}

/* Desktop Extra Large */
@media (min-width: 1600px) {
    .breadcrumb-wrapper {
        padding: 0 160px;
    }

    .product-detail-wrapper {
        padding: 0 160px;
    }

    .related-products-wrapper {
        padding: 0 160px;
    }
}
