html,
body {
}

.h3,
h3 {
    font-size: 1rem;
}

.card-img-top {
    width: 95% !important;
    height: 300px;
    margin: 0px auto;
    border-radius: 20px;
    background: #EFEFEF;
    padding: 0px;
}

.cartbtn {
    width: 100%;
    background: #F4671E;
    border: none;
    height: 54px;
    font-family: 'Poppins';
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    border-radius: 8px;
    color: #ffff;
}

table.pricing-conditions td,
table th {
    text-align: center;
}

table.pricing-conditions td {
    padding: 0px 0px 5px 0px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.316);
}

table.pricing-conditions th p {
    color: white;
    padding: 4px 20px;
    background-color: #F1B000;
}

table.pricing-conditions td:first-child {
    border-left: 1px solid rgba(128, 128, 128, 0.316);
}

table.pricing-conditions td:last-child {
    border-right: 1px solid rgba(128, 128, 128, 0.316);
}

.pricing-conditions-container {
    overflow-x: auto;
}

@media (max-width: 820px) {
    .card-img-top {
        height: 228px;
    }

    .row {
        margin-right: -0.625rem;
        margin-left: 0.375rem;
    }
}

@media (min-width: 768px) {
    .colors-container {
        /* max-height: 1000px; */
    }
}

.nav-btn {
    width: 50px;
    height: 50px;
}

@media (max-width: 768px) {
    .nav-btn {
        width: 30px;
        height: 30px;
    }

    .product-video {
        margin-right: 3REM;
    }

    .card-img-top {
        height: 235px;
    }

    .modal-content {
        background: #FFF2EC;
        border-radius: 13px;
        position: absolute;
        top: 147px;
        right: 0px;
    }

    .leather-color-option-mobile {
        width: 40px;
        height: 40px;
    }

    .shape-option-mobile .card-body {
        padding: 12px;
    }

    .shape-option-mobile img {
        max-height: 160px;
    }

    .shape-option-mobile .card-title {
        font-size: 13px;
        position: static;
        bottom: auto;
    }
}

.c-slide {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.c-slide .c-item {
    width: 100%;
    padding: 5px;
}

.c-slide .c-item img {
    object-fit: contain;
}

table tr td {
    padding-top: 20px;
}

.hidden {
    display: none;
}

/* Card Selection Styles */
.card-container {
    position: relative;
    margin-bottom: 40px;
}

.card-title {
    position: absolute;
    bottom: -35px;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin: 0;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.selectable-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #dee2e6;
    height: 70%;
    border-radius: 10%;
}

button.selectable-card {
    display: block;
    width: 100%;
    padding: 0;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-align: inherit;
}

.selectable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.selectable-card.selected {
    border-color: #f4651e;
    background-color: #f8f9fa;
}

.checkbox-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.round-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selectable-card.selected .round-checkbox {
    background-color: #f4651e;
    border-color: #f4651e;
}

.round-checkbox::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: none;
}

.selectable-card.selected .round-checkbox::after {
    display: block;
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image-circle {
    width: 80%;
    aspect-ratio: 1;
    border-radius: 50%;
}

.card-image-rect {
    width: 80%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .round-checkbox {
        width: 20px;
        height: 20px;
    }

    .round-checkbox::after {
        font-size: 12px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .checkbox-wrapper {
        top: 8px;
        left: 8px;
    }
}

.selectable-card {
    position: relative;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

button.selectable-card {
    display: block;
    width: 100%;
    padding: 0;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    text-align: inherit;
}

.selectable-card:hover {
    border-color: #f4651e;
}

.selectable-card.selected {
    border-color: #f4651e;
    background-color: #fff5ee;
    box-shadow: 0 4px 8px rgba(244, 101, 30, 0.2);
}

/* Pricing condition */
.default-message {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.pricing-section {
    display: none;
}

.pricing-section.active {
    display: block;
}

.pricing-conditions-container {
    overflow-x: auto;
}

.pricing-conditions {
    width: 100%;
    border-collapse: collapse;
}

.pricing-conditions th,
.pricing-conditions td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-align: center;
    white-space: nowrap;
}

.pricing-conditions th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Color Options */
.color-option {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid transparent;
    display: inline-block;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border: 3px solid #7dd3d3;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #7dd3d3;
}

.color-option.selected::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#cardSelectionError,
#cardSelectionErrorMobile {
    border-radius: 8px;
    border: 1px solid #dc3545;
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.selectable-card.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.shape-option {
    border-radius: 8px;
    overflow: hidden;
}

.shape-option:hover {
    border-color: #f4651e;
    transform: translateY(-2px);
}

.shape-option.selected {
    border-color: #f4651e;
    background-color: #fff5ee;
    box-shadow: 0 4px 8px rgba(244, 101, 30, 0.2);
}

/* Pastikan child elements tidak menghalangi click */
.selectable-card * {
    pointer-events: none;
}

.checkbox-wrapper {
    pointer-events: auto;
}

.design-location-section {
    transition: all 0.3s ease-in-out;
}
