/* Custom Styles */
.section-title {
    position: relative;
    display: inline-block;
}

.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-img img {
    transition: transform 0.5s ease;
    border-radius: 0;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-title {
    transition: color 0.3s ease;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.product-card:hover .product-title {
    color: #0679F6;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    /* Hanya animasi untuk pembukaan */
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    /* Hanya animasi untuk pembukaan */
    transition: all 0.3s ease;
    pointer-events: none;
}

.modal.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.modal.show {
    opacity: 1;
    transform: scale(1);
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Full screen modal for lg and below */
@media (max-width: 1024px) {
    .modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
}

.modal-product-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1A2238;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.modal-category {
    font-size: 1rem;
    font-weight: 500;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #4B5563;
    margin-bottom: 2rem;
}

.thumbnail {
    transition: all 0.2s ease;
    opacity: 0.7;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    transform: scale(1.05);
    border-color: #0679F6;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0679F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.specs-container {
    max-height: 400px;
    overflow-y: auto;
}

.specs-container::-webkit-scrollbar {
    width: 6px;
}

.specs-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.specs-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.specs-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.spec-item {
    transition: background-color 0.2s ease;
}

.spec-item:hover {
    background-color: #f8fafc;
}

.spec-divider {
    height: 1px;
    background: #e5e7eb;
}

.whatsapp-btn {
    background: #25D366;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 158, 39, 0.4);
    background: #12aa45;
}

.whatsapp-btn:active {
    transform: translateY(0);
}

/* Image navigation buttons */
.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.image-container:hover .image-nav-btn {
    opacity: 1;
}

.image-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.image-nav-btn.prev {
    left: 12px;
}

.image-nav-btn.next {
    right: 12px;
}

.image-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-nav-btn:disabled:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1);
}

.image-container {
    position: relative;
}