body {
    background: #fafafa;
}

.container {
    display: flex;
    gap: 20px;
    margin-top: 30px;

}


.product-detail {
    flex-basis: 75%;

    padding: 20px 0;
    border-radius: 5px;


}

.product-top {
    display: flex;
    gap: 30px;
}

.product-images {
    flex: 1;

}

.main-img {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbs img {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ddd;
        cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.thumbs img:hover {
    opacity: 1;
}

.thumbs img.active {
    border-color: #000;
    opacity: 1;
}
.product-info {
    flex: 1;
}

.product-info h2 {
    margin: 0 0 10px;
    font-family: "Libertinus Sans", sans-serif;
    color: #2b2b2b !important;
    font-size: 31px;
    line-height: 32px;
    text-transform: uppercase;
    font-weight: 400;
}

h2{
    color: #2b2b2b;
}

.product-info p {
    color: #555555;
}

.product-info-table {
    width: 100%;
    border-collapse: collapse;

    font-size: 16px;

}

.product-info-table td {
    padding: 8px 4px;
    vertical-align: top;
    color: #555555;
}

.product-info-table td b {
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
}

.product-info-table td:first-child {
    font-weight: bold;
    width: 30%;
    text-align: left;
    color: #555555;
}

.product-info-table td:last-child {
    text-align: justify;
}

.price {
    font-size: 22px;
    color: #2b2b2b;
    font-weight: 500;
    padding-top: 20px;
}

.old-price {
    text-decoration: line-through;
    color: #555555;
    margin-left: 8px;
    font-size: 16px;
    font-weight: 500;
}

.options {
    margin: 15px 0 25px 0;
    font-family: Arial, sans-serif;
}

.options p {
    letter-spacing: 2px;
}

.color-selection-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 10px;
}

.color-selection-header .line {
    border: none;
    border-top: 1px solid #999;
    width: 20px;
}

.color-selection-header .selected-color-name {
    text-transform: lowercase;
    font-size: 14px;
    color: #555;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #bbb;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    padding: 2px;
    /* This creates the gap */
}


.color-box input[type="radio"] {
    display: none;
}

.color-box {

    background-clip: content-box;

}

.color-box input[type="radio"]:checked + label {
    border: 1.5px solid #2b2b2b;
}

.color-box:has(input[type="radio"]:checked) {
    border: 1.5px solid #2b2b2b;
    transform: scale(1.1);
}


.options {
    margin-top: 15px;
}

.options p {
    font-size: 14px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 10px;
}

/* Size box styling */
.size-options {
    display: flex;
    gap: 10px;

}

.size-box {
    display: block;
    padding: 10px 20px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    font-size: 14px;
    color: #555;
    border-radius: 5px;

}

.size-box input[type="radio"] {
    display: none;
}

.size-box:has(input[type="radio"]:checked) {
    border: 1.5px solid #2b2b2b;
}

/* Quantity control styling */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #ccc;
    width: fit-content;
    border-radius: 5px;
}

.quantity-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    width: 30px;
    height: 38px;
    color: #555;
}

.plus:hover,
.minus:hover {
    background-color: #ccc;
}

.quantity-control input {
    width: 30px;
    text-align: center;
    border: none;
    background-color: transparent;
    font-size: 14px;

    outline: none;
}

/* Add to Cart button and Wishlist button styling */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.add-to-cart {
    flex-grow: 1;
    background-color: #C18F2C;
    color: #fff;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 2px;
    transition: background-color 0.2s ease-in-out;
    border-radius: 5px;
}

.add-to-cart:hover {
    background-color: #C79729;
}

.wishlist-btn {
    background-color: transparent;
    border: 1.5px solid #ccc;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-radius: 5px;
}

.wishlist-btn:hover {
    background-color: #ccc;

}


.delivery {
    flex-basis: 25%;

}


.accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.expandable-section + .expandable-section {
    border-top: 1px solid #ddd;
}

.section-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 16px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    color: #2b2b2b;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header .icon {
    transition: transform 0.2s ease-in-out;
}

.section-header[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    color: #555;
    line-height: 1.6;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.section-header[aria-expanded="true"] + .expandable-content {
    max-height: 500px;
    /* large enough to fit contents */
    padding: 16px;
}

.expandable-content p {
    margin: 0 0 10px;
}



@media screen and (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .product-detail,
    .delivery {
        flex-basis: 100%;
    }

    .product-top {
        flex-direction: column;
    }

    .thumbs img {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 768px) {
    .product-info h2 {
        font-size: 32px;
    }

    .color-box {
        width: 35px;
        height: 35px;
    }

    .size-box {
        padding: 8px 15px;
        font-size: 13px;
    }

    .quantity-btn {
        width: 28px;
        height: 35px;
    }

    .quantity-control input {
        width: 28px;
    }
}

@media screen and (max-width: 480px) {
    .thumbs img {
        width: 50px;
        height: 50px;
    }

    .product-info h2 {
        font-size: 28px;
    }

    .add-to-cart {
        padding: 12px 15px;
        font-size: 13px;
    }

    .wishlist-btn {
        padding: 12px;
    }
}


.similar-products {
    margin-top: 30px;
    padding: 30px 10px 30px 10px;
    background:;
    border-top: 1px solid #ccc;
}

.similar-products h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #2b2b2b;

}

.market-right {
    display: flex;
    flex-wrap: wrap;
    width: 100%
}

.market-right .small-grids .sg-title .sg-head:hover {
    color: #C79729;

}

.market-right .small-grids {
    width: 100%;
    overflow: hidden;
    height: 85px;
    flex: wrap;
    margin: 0 0 20px 0;
}

.market-right .small-grids a {
    font-size: 16px;
    color: #2b2b2b;
    line-height: 18px;
    text-decoration: none;
    border-radius: 8px;
}

.market-right .small-grids a:hover{
    color: #C79729;
}
.small-grids .sg-image {
    width: 30%;
    margin-right: 4%;
    height: auto;
    float: left
}

.small-grids .sg-image img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    border-radius: 8px;
}

.small-grids .sg-title .sg-head {

    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
    color: #2b2b2b;
}

.small-grids .sg-title .time {
    font-weight: 500;
    color: #555;
    margin-top: 5px;
    font-size: 14px;
    
}
.small-grids .sg-title .time span{
    font-weight: 400;
    color: #7a7a7a;
       font-size: 14px;
}



@media only screen and (max-width:1025px) {
    .market-right .small-grids {
        width: 49%;
        margin-right: 1%;
    }
}

@media only screen and (max-width:750px) {
    .market-right .small-grids {
        width: 100%
    }
}
