﻿.main-image-container {
    overflow: hidden;
}

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

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
}


.variant-option {
    cursor: pointer;
    transition: all 0.2s;
}

    .variant-option.active {
        border-color: var(--pantai-blue) !important;
        background-color: #cfe2ff !important;
        color: var(--pantai-blue) !important;
    }

.variant-disabled {
    background-color: #f0f0f0;
    border: 1px solid #999;
    color: #999;
    text-decoration: line-through;
    pointer-events: none; 
    cursor: not-allowed;
}

    .variant-disabled:hover {
        cursor: default;
    }

.quantity-controls {
    border: 2px solid #dee2e6;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 18px;
}

.disable-hover {
}

    .disable-hover:hover {
        cursor: not-allowed;
    }

.quantity-display {
    width: 60px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 2px solid #dee2e6;
    border-right: 2px solid #dee2e6;
    font-weight: 600;
}

.btn-buy-now {
    background-color: var(--pantai-blue) !important;
    transition: all 0.2s;
}

    .btn-buy-now:hover {
        //transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    }

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

    .tab-btn:hover {
        color: #212529;
    }

    .tab-btn.active {
        color: var(--pantai-blue);
        border-bottom-color: var(--pantai-blue);
    }

.tab-content-custom {
    display: none;
}

    .tab-content-custom.active {
        display: block;
        animation: fadeIn 0.3s;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-detail-card {
    transition: all 0.2s;
    cursor: pointer;
}

    .product-detail-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    .product-detail-card img {
        width: 100%;
        object-fit: cover;
    }


.right-buy-section {
    //position:sticky;
    height: fit-content;
}

@media (max-width: 768px) {
    .image-section {
        position: static;
    }
}

.pantai-green {
    color: var(--pantai-green);
}

.pantai-blue {
    color: var(--pantai-blue);
}

.custom-scroll {
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

.product-title-responsive {
    font-size: 1.25rem; /* Equivalent to fs-5 (larger) */
}

/* Medium screens (768px) and up: Shrink it for the grid */
@media (min-width: 768px) {
    .product-title-responsive {
        font-size: 1rem; /* Equivalent to fs-6 (smaller) */
    }
}


.loader-card {
    background: white;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.loader-area {
    min-height: 150px;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.dots-loader span {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background: var(--pantai-blue);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

    .dots-loader span:nth-child(1) {
        animation-delay: -0.32s;
    }

    .dots-loader span:nth-child(2) {
        animation-delay: -0.16s;
    }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}


/* accordian section for add ons */

/* Accordion Styles */
.accordion-button {
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 500;
}

    .accordion-button:not(.collapsed) {
        background-color: #f8f9fa;
        color: #333;
    }

.accordion-body {
    /*    padding: 12px 18px 18px 18px;*/
}

/* Combined Card + Action Button Style */
.addon-item-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
}

    .addon-item-card:hover {
        border-color: #0d6efd;
        box-shadow: 0 2px 8px rgba(13,110,253,0.1);
        background-color: #f8f9fa;
    }

    .addon-item-card.selected {
        border-color: #0d6efd;
        background-color: #f0f7ff;
    }

    .addon-item-card:last-child {
        margin-bottom: 0;
    }

    .addon-item-card .image-wrapper {
        width: 65px;
        height: 65px;
        border-radius: 6px;
        overflow: hidden;
        flex-shrink: 0;
        position: relative;
    }

        .addon-item-card .image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .addon-item-card .image-wrapper .overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(13,110,253,0.15);
            display: none;
            align-items: center;
            justify-content: center;
        }

    .addon-item-card.selected .image-wrapper .overlay {
        display: flex;
    }

    .addon-item-card .content {
        flex: 1;
    }

    .addon-item-card .name {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 4px;
        color: #333;
    }

    .addon-item-card .description {
        font-size: 0.8rem;
        color: #6c757d;
        margin-bottom: 0;
    }

    .addon-item-card .price-action {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .addon-item-card .price {
        font-size: 1rem;
        font-weight: 700;
        color: #28a745;
        white-space: nowrap;
    }

    .addon-item-card .add-btn {
        background: #0d6efd;
        color: white;
        border: none;
        padding: 6px 18px;
        border-radius: 6px;
        font-size: 0.8rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }

        .addon-item-card .add-btn:hover {
            background: #0b5ed7;
            transform: translateY(-1px);
        }

    .addon-item-card.selected .add-btn {
        background: #28a745;
    }

    .addon-item-card.selected .content .name {
        color: var(--pantai-blue);
    }

    .addon-item-card:hover {
        transform: translateY(-1px);
    }

/* Mobile Responsive */
@media (max-width: 576px) {
    .addon-item-card {
        flex-direction: column;
        align-items: flex-start;
    }

        .addon-item-card .price-action {
            width: 100%;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }
}

.bg-pantai-green {
    background-color: var(--pantai-green);
}
