/* =====================================================
   PRODUCT DETAIL
===================================================== */

.product-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 42px 70px;
}


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

.product-page .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;

    font-size: 13px;
    color: #6b6b6b;
}

.product-page .breadcrumb a {
    color: #2a2a2a;
}

.product-page .breadcrumb a:hover {
    text-decoration: underline;
}

.product-page .breadcrumb-separator {
    color: #aaa;
}


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

.product-page .product-layout {
    display: grid;
    grid-template-columns:
        minmax(360px, 1fr)
        minmax(400px, 1.25fr)
        330px;

    gap: 48px;
    align-items: start;
}


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

.product-page .gallery-main {
    background: #f4f4f4;
    border: 1px solid #dddddd;
    border-radius: 16px;
    overflow: hidden;

    aspect-ratio: 1 / 1;

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

.product-page .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-page .gallery-placeholder {
    color: #999999;
    font-size: 14px;
}

.product-page .gallery-thumbnails {
    display: flex;
    gap: 10px;

    margin-top: 14px;
    padding-bottom: 5px;

    overflow-x: auto;
}

.product-page .gallery-thumb {
    width: 74px;
    height: 74px;

    flex: 0 0 74px;

    padding: 0;

    border: 1px solid #dddddd;
    border-radius: 9px;

    overflow: hidden;

    background: #f5f5f5;
    cursor: pointer;
}

.product-page .gallery-thumb:hover {
    border-color: #0b0b0b;
}

.product-page .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


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

.product-page .product-info {
    min-width: 0;
}

.product-page .product-category {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;

    text-transform: uppercase;

    color: #6b6b6b;
}

.product-page .product-title {
    margin: 0 0 18px;

    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -1.3px;
}

.product-page .product-price {
    margin-bottom: 24px;

    font-size: 30px;
    font-weight: 800;
}

.product-page .product-description {
    padding-bottom: 26px;

    border-bottom: 1px solid #dddddd;

    font-size: 15px;
    line-height: 1.7;

    color: #555555;
}


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

.product-page .product-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 14px;

    padding: 24px 0;

    border-bottom: 1px solid #dddddd;
}

.product-page .meta-item {
    padding: 14px;

    background: #f6f6f6;

    border-radius: 10px;
}

.product-page .meta-label {
    margin-bottom: 6px;

    font-size: 11px;
    letter-spacing: 0.7px;

    text-transform: uppercase;

    color: #6b6b6b;
}

.product-page .meta-value {
    font-size: 14px;
    font-weight: 700;
}


/* =====================================================
   MATERIAL / OPTIONS
===================================================== */

.product-page .option-section {
    padding: 24px 0;

    border-bottom: 1px solid #dddddd;
}

.product-page .option-title {
    margin-bottom: 13px;

    font-size: 15px;
    font-weight: 700;
}

.product-page .option-list {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}

.product-page .option-chip {
    padding: 10px 15px;

    border: 1px solid #cccccc;
    border-radius: 8px;

    background: #ffffff;

    font-size: 13px;
}

.product-page .option-chip.default {
    border-color: #0b0b0b;

    background: #0b0b0b;

    color: #ffffff;
}


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

.product-page .color-list {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.product-page .color-option {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 8px 12px;

    border: 1px solid #cccccc;
    border-radius: 8px;

    font-size: 13px;
}

.product-page .color-dot {
    width: 18px;
    height: 18px;

    display: inline-block;

    border: 1px solid #bbbbbb;
    border-radius: 50%;
}


/* =====================================================
   VARIANTS
===================================================== */

.product-page .variant-section {
    padding: 24px 0;

    border-bottom: 1px solid #dddddd;
}

.product-page .variant-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.product-page .variant-option {
    width: 100%;

    padding: 13px;

    text-align: left;

    border: 1px solid #cccccc;
    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;

    transition: 0.2s ease;
}

.product-page .variant-option:hover {
    border-color: #0b0b0b;
}

.product-page .variant-option.selected {
    padding: 12px;

    border: 2px solid #0b0b0b;

    background: #fafafa;
}

.product-page .variant-option-title {
    margin-bottom: 7px;

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

.product-page .variant-option-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 5px 10px;

    font-size: 12px;

    color: #6b6b6b;
}

.product-page .variant-option-price {
    margin-top: 9px;

    font-size: 13px;
    font-weight: 700;
}

.product-page .variant-current {
    margin-top: 13px;

    padding: 11px 13px;

    border-radius: 8px;

    background: #f6f6f6;

    font-size: 13px;
}

.product-page .variant-current strong {
    font-weight: 700;
}

.product-page .stock-available {
    color: #246b35;
}

.product-page .stock-empty {
    color: #b42318;
}


/* =====================================================
   ACCESSORIES
===================================================== */

.product-page .accessory-section {
    padding: 24px 0;
}

.product-page .accessory-list {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.product-page .accessory-option {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px 13px;

    border: 1px solid #cccccc;
    border-radius: 9px;

    cursor: pointer;

    transition: 0.2s ease;
}

.product-page .accessory-option:hover {
    border-color: #0b0b0b;
}

.product-page .accessory-option input {
    width: 16px;
    height: 16px;

    accent-color: #0b0b0b;
}

.product-page .accessory-info {
    flex: 1;
    min-width: 0;
}

.product-page .accessory-name {
    font-size: 13px;
    font-weight: 700;
}

.product-page .accessory-description {
    margin-top: 3px;

    font-size: 12px;

    color: #6b6b6b;
}

.product-page .accessory-price {
    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
}


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

.product-page .purchase-card {
    position: sticky;
    top: 96px;

    padding: 22px;

    border: 1px solid #cfcfcf;
    border-radius: 14px;

    background: #ffffff;
}

.product-page .purchase-title {
    margin-bottom: 22px;

    font-size: 19px;
    font-weight: 800;
}

.product-page .purchase-price {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.product-page .purchase-price span {
    font-size: 14px;

    color: #6b6b6b;
}

.product-page .purchase-price strong {
    font-size: 23px;
}


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

.product-page .quantity-label {
    margin-bottom: 9px;

    font-size: 13px;
    font-weight: 700;
}

.product-page .quantity-control {
    height: 48px;

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

    margin-bottom: 18px;

    border: 1px solid #cccccc;
    border-radius: 9px;
}

.product-page .quantity-control button {
    width: 48px;
    height: 100%;

    border: 0;

    background: transparent;

    font-size: 21px;

    cursor: pointer;
}

.product-page .quantity-control button:hover {
    background: #f2f2f2;
}

.product-page .quantity-value {
    font-size: 15px;
    font-weight: 700;
}


/* =====================================================
   BUTTONS
===================================================== */

.product-page .btn {
    width: 100%;
    height: 48px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.product-page .btn-primary {
    border: 1px solid #0b0b0b;

    background: #0b0b0b;

    color: #ffffff;
}

.product-page .btn-primary:hover {
    background: #2a2a2a;
}

.product-page .btn-secondary {
    margin-top: 10px;

    border: 1px solid #0b0b0b;

    background: #ffffff;

    color: #0b0b0b;
}

.product-page .btn-secondary:hover {
    background: #f3f3f3;
}


/* =====================================================
   EXTRA ACTIONS
===================================================== */

.product-page .purchase-actions {
    display: flex;
    justify-content: space-between;

    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid #dddddd;

    font-size: 13px;

    color: #2a2a2a;
}


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

@media (max-width: 1100px) {

    .product-page .product-layout {
        grid-template-columns: 1fr 1fr;
    }

    .product-page .purchase-card {
        grid-column: 1 / -1;

        position: static;
    }
}


@media (max-width: 760px) {

    .product-page {
        padding: 20px 18px 50px;
    }

    .product-page .product-layout {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .product-page .product-title {
        font-size: 30px;
    }

    .product-page .product-price {
        font-size: 26px;
    }

    .product-page .variant-grid {
        grid-template-columns: 1fr;
    }

    .product-page .purchase-card {
        grid-column: auto;
    }
}

/* =========================================
   PRODUCT CONFIGURATION
   ========================================= */

.product-configuration {
    margin-top: 12px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fafafa;
}

/* CARD TITLE */

.product-configuration::before {
    content: "Konfigurasi Produk";
    display: block;
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 700;
    color: #111111;
}

.product-configuration .product-option-group {
    margin-bottom: 18px;
}

.product-configuration .product-option-group:last-child {
    margin-bottom: 0;
}

.product-configuration .option-title {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}


/* MATERIAL + COLOR */

.product-material-color {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.product-material-color .product-option-group {
    margin-bottom: 0;
}

.product-option-select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d5d5d5;
    border-radius: 9px;
    background: #ffffff;
    font-size: 15px;
    color: #111111;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.product-option-select:hover {
    border-color: #999999;
}

.product-option-select:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}


/* PRODUCT OPTIONS CARD */

.product-options {
    width: 100%;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

/* CARD TITLE */

.product-options::before {
    content: "Opsi Tambahan";
    display: block;
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 700;
    color: #111111;
}

.product-options .product-option-group {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eeeeee;
}

.product-options .product-option-group:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}


/* RADIO OPTIONS */

.product-option-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 15px;
}

.product-option-radio input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}


/* TEXT OPTION */

.product-option-input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-sizing: border-box;
}


/* MOBILE */

@media (max-width: 600px) {

    .product-material-color {
        grid-template-columns: 1fr;
        gap: 12px;
    }

}
