.product--details
 {
    display: flex;
    flex-direction: column;
    width: 65%;
}

.product--details h4 {
    font-size: 32px;
    color:#444
}

.product--details p{
    font-size: 14px;
    margin-top: 6px;
    color: #5a5a5a;
}

.product-item-btn-cart {
    display: flex;
    align-items: center;
}

.add-to-cart-btn:disabled,
#btn-buy-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 24px auto;
    padding: 24px 0px;
    gap: 10px;
}

.product-desc {

    padding: 12px 0px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}
.product--details-wrapper{
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 0 2rem;
    align-items: center;
}

.product--details .btn{
    width: auto;
    display: flex;
    margin: 6px 0px;

    justify-content: center;
    align-items: center;
    border: 1px solid #ffffff;
    width: 100%;
}

.add-to-cart-btn{
    background-color: #ffebdd66;
    border: 1px solid #4e2100d9;

    color: #4e2100d9;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    width: 100%;
    margin: 6px 0px;
}

.add-to-cart-btn:hover{
    background-color: #ffc194d9;
    color: #4e2100d9;
    opacity: 0.9;
    transform: translateY(-1px);
}

.product-detail-container {
    margin: 0 auto;
    padding: 16px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background-color: #f9f9f9;
}
.product-attr{
    font-size: 12px;
}
.img-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 35%;
    align-self: flex-start;
    flex-direction: column;
    align-items: center;
}

#product-image {
    width: 520px;
    height: 520px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
#product-image:hover{
    cursor: zoom-in;
}
.thumbnail:active{
    border: 2px solid black;

}

.thumbnail-container {
    overflow-x: auto;
    flex-wrap: nowrap;
}

.color-option {
    position: relative;
    display: inline-block;
    margin: 5px;
    cursor: pointer;
}

.color-swatch {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.color-option input:checked + .color-swatch {
    border: 2px solid #000000;
    transform: scale(1.1);
}

.color-option input,
.size-option input {
    display: none;
}

.size-selection{
    margin-bottom: 18px;
}

.size-option {
    display: inline-block;

    text-align: center;
    border: 2px solid #e6e6e6;
    margin: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: #e1e1e1;
    transition: all 0.2s ease-in-out;
}

.size-option input:checked + label {
    border-color: rgb(0, 0, 0);
    background-color: #d63384;
    color: #fff;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
}

.selected {

    transform: scale(1.1);

    background-color: #000000;
    color: #fff;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
}

.cod-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    border: 1px solid #eee;

    margin-top: 14px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    transition: 0.2s ease;
}

.cod-card:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,0.12);
}

.cod-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.cod-input-group
 {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    width: 100%;
}

.cod-input-group input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.cod-input-group input:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.cod-input-group button {
    background: #fff0bfde;
    color: #775400;
    border: 1px solid #775400;
    font-size: 12px;
    padding: 8px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.cod-input-group button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cod-result {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
}

.cod-success {
    color: #1a7f37;
    background: #e9f8ef;
    padding: 6px 10px;
    border-radius: 8px;
}

.cod-error {
    color: #c62828;
    background: #fdeaea;
    padding: 6px 10px;
    border-radius: 8px;
}

.cod-loading {
    color: #555;
}

.cod-btn{
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.cod-btn:disabled{
    opacity: 0.7;
    cursor: not-allowed;
}

.thumbnail-wrapper {
    display: flex;
    overflow-x: auto;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin: auto;
    padding: 0 0.5rem;
}
.thumbnail-viewport {
    -webkit-overflow-scrolling: touch;
}

.thumbnail-container {
    display: flex;
}

.thumbnail {
    width: 70px;
    height: 70px;
    margin-right: 5px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 12px;
    border: none;
}

.thumb-arrow:hover {
    background: #f5f5f5;
}

#cart-message{
    display: flex;
    align-self: center;
    display: block;
}
@media (max-width: 768px) {

    .product-detail{
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0px;
        padding: 0px;
    }
    .product-desc {
        max-width: 100%;
        grid-column: 1 / -1;
        width: 100%;
        padding: 12px 0px;
        font-size: 12px;
    }

    .product-detail img{
        width: 100%;
        display: flex;
        align-self: center;
        height: auto;

    }
    .product--details .btn {
        width: auto;
        display: flex    ;

        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .product-detail-container {
        flex-direction: column;

        margin: 0;
        padding: 2px 0px;
    }
    .img-container{
        align-self: center;
        width: 100%;
    }
    .product--details-wrapper{
        width: 100%;

    }
    .product--details{
        width: 100%;
    }
}

@media(max-width:520px){
    .product-detail-container {
        flex-direction: column;
        margin: 0;
        padding: 8px 0px;
    }
    .img-container {
        width: 100%;
    }
    .size-selection{
        margin-bottom: 14px;
    }

    #product-image {
        height: 470px;
        touch-action: manipulation;
    }
    .cod-input-group input {
    font-size: 12px;
    width: 50%;
    }
    .product--details h4 {
        font-size: 24px;
    }
    .product--details-wrapper{
        width: 100%;
        padding: 0px 1.4rem;
    }
}
