 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
       font-family: "Libre Franklin", sans-serif;
/*font-family: "Inter", sans-serif;*/
/*     font-family: "Mulish", sans-serif;*/
     font-optical-sizing: auto;

 }
body {
    background: #fafafa;
}

.container {
    display: flex;
    gap: 20px;
    margin-top: 10px;

}


.image-gallery {
    margin-top: 20px !important;
}

.image-grid {
    display: grid;
    gap: 10px;

}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
}

.image-container {
    position: relative;
    display: inline-block;
}


@media (min-width: 768px) {

    .image-grid {
        grid-template-columns: 3fr 1fr;
        grid-template-rows: repeat(3, 1fr);
        gap: 10px;
        height: 500px;
    }

    .image-grid .image-container {
        background-color: #dddddd;
        border-radius: 8px;
        overflow: hidden;
    }

    .image-grid .image-container:nth-child(1) {
        grid-row: 1 / 4;
        grid-column: 1;
        height: 500px;

    }

    .image-grid .image-container:nth-child(2),
    .image-grid .image-container:nth-child(3),
    .image-grid .image-container:nth-child(4) {
        grid-column: 2;
        height: calc((500px - 20px) / 3);
    }

    .image-grid .image-container:nth-child(4) {
        position: relative;
    }

    .image-grid .image-container:nth-child(4)::after {
        content: "View all images";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border-radius: 10px;
        z-index: 1;
        cursor: pointer;
        pointer-events: none;
        font-weight: 600;


    }

    .image-grid .image-container:nth-child(4) img {
        position: relative;
        z-index: 0;

        border-radius: 10px;
    }

    .image-grid .image-container img {
        transition: transform 0.5s ease;
    }

    .image-grid .image-container:hover img {
        transform: scale(1.05);
    }

    .image-grid .image-container:nth-child(n+5) {
        display: none;
    }

    .featured-container {
        display: flex;
        gap: 10px;
        position: absolute;
        top: 15px;
        left: 10px;
    }

    .quickinfo-priority,
    .quickinfo-sale,
    .quickinfo-category {
        padding: .18rem .56rem;
        color: #fff;
        font-size: .70rem;
        letter-spacing: .5px;
        font-weight: 600;
        text-decoration: none;
        text-transform: uppercase;
        border-radius: 20px;
    }

    .quickinfo-sale {
        background-color: rgba(216, 35, 42, 1);
    }

    .quickinfo-category {
        background-color: rgba(16, 165, 92, 1);
    }

    .quickinfo-priority {
        background: rgba(6, 0, 0, 0.9);
    }
    
    .wishlist-btn {
    background-color: white;
    border: 1.5px solid #ccc;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wishlist-btn:hover {
    background-color: #f0f0f0;
}

.wishlist-btn svg {
    width: 20px;
    height: 20px;
}

.wishlist-btn.active svg {
    fill: red;
    stroke: red;
}
}

@media (max-width: 767px) {
    .image-gallery {
        margin-top: 20px !important;
    }

    .image-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        position: relative;

    }

    .image-container {
        position: relative;
    }

    .image-grid .image-container:nth-child(1) {
        width: 100%;
        height: 300px;
    }


    .image-grid .image-container:nth-child(n+2) {
        width: calc(33.33% - 6.67px);
        height: 100px;
        float: left;
    }

    .image-grid .image-container:nth-child(n+5) {
        display: none;
    }

    .image-grid .image-container:nth-child(4) {
        position: relative;
    }

    .image-grid .image-container:nth-child(4)::after {
        content: "View all images";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border-radius: 10px;
        z-index: 1;
        cursor: pointer;
        pointer-events: none;
        font-weight: 600;
        font-size: 14px;
        text-align: center;
    }

    .image-grid .image-container:nth-child(4) img {
        position: relative;
        z-index: 0;
        /* Ensure the image is below the text overlay */
        border-radius: 10px;
    }

    .featured-container {
        display: flex;
        gap: 10px;
        position: absolute;
        bottom: 15px;
        left: 10px;
    }

    .wishlist-btn {
 
        
        background-color: white;
    border: 1.5px solid #ccc;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .wishlist-btn svg {
        width: 22px;
        height: 22px;
    }
    .quickinfo-priority,
    .quickinfo-sale,
    .quickinfo-category {
        padding: .18rem .56rem;
        color: #fff;
        font-size: .70rem;
        letter-spacing: .5px;
        font-weight: 600;
        text-decoration: none;
        text-transform: uppercase;
        border-radius: 20px;
    }

    .quickinfo-sale {
        background-color: rgba(216, 35, 42, 1);
    }

    .quickinfo-category {
        background-color: rgba(16, 165, 92, 1);
    }

    .quickinfo-priority {
        background: rgba(6, 0, 0, 0.9);
    }
}

svg {
    margin-bottom: -2px !important;
}

hr,
.devider {
    border: 0;
    height: 0;
    border-top: solid 1px rgba(0, 0, 0, 0.1);
    border-bottom: solid 1px rgba(255, 255, 255, 0.3);
    clear: both;
}

.devider {
    margin: 40px 0;
}

/*.ad-title2{
    display: block !important;
}
.ad-title2 h1 {
    margin: 25px 0 15px 0;
    font-weight: 600;
    font-size: 26px;
    color: #222;
}*/


.ad-title2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.ad-title2 h1 {
    margin: 25px 0 15px 0;
    font-weight: 600;
    font-size: 26px;
    color: #222;
    flex: 1;
}


h2 {
    margin: 10px 20px 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}




.quickinfo-container {
    display: block;
    margin: 25px 0;

}

.quickinfo-container p {
    float: left;
    font-size: 15px;
    color: #676767;
    margin: 10px 0;

}

.quickinfo-container p span {

    margin: 0 20px 0 5px;
    font-weight: 400;
}

.quickinfo-container .quickinfo-left {
    width: 55%;
    float: left;

}

.quickinfo-container .quickinfo-right {
    width: 45%;
    float: right;


}

@media (max-width: 660px) {
    .quickinfo-container .quickinfo-left {
        width: 100%;
        float: left;

    }

    .quickinfo-container .quickinfo-right {
        width: 100%;
        float: left;


    }

    .quickinfo-container .quickinfo-right p {
        float: left !important;
        margin: 10px 10px 10px 0 !important;
    }
}



.product-detail {
    flex-basis: 75%;
    border-radius: 5px;


}

.product-top {
    display: flex;
    gap: 30px;
}



.product-info {
    flex: 1;
}


h2{
    color: #2b2b2b;
}

.product-info p {
    color: #555555;
    float: right;
}

.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;
    margin:5px 0;
}

.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;
}





.details-container table {
    width: 100%;
    border-collapse: collapse;
}

.details-container td {
    padding: 10px 10px 10px 0;
    vertical-align: top;
}

.details-container i {}

.details-container p {
    margin: 5px 0;
}

.details-container table table {
    width: 100%;
}
.details-container table table td span{
    font-weight: 600;
    
}
.details-container table table td:first-child {
    width: 30px;
    /* Adjust the width as necessary for the icons */
}




.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.delivery {
    flex-basis: 25%;

}



.about p {
    font-size: 16px;
    line-height: 24px;
    color: #222222 !important;
    margin: 0 0 30px 0 !important;
    text-align: left;
    float: left;

}
    .card2 {
    display: flex;
    align-items: center;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    padding: 10px 15px;
    max-width: 400px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}

 .card2 .profile-pic {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin-right: 15px;
}

 .card2 .info {
    flex: 1;
}

 .card2 .info h3 {
    margin: 0;
    font-size: 1em;
    color: #222;
}

 .card2 .info p {
    margin: 5px 0;
    color: #222;
    font-size: 14px;
    font-weight: 400;
    float: left;
     width: 100%;
}

 .card2 .info p span {
    font-weight: 400;
}

 .card2 .contact-info {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}

 .card2 .contact-info:hover {
    text-decoration: underline;
}
       

@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: 20px;
    }

}




.seller-box {
    border: 1px solid #ddd;
    padding:10px 20px 20px 20px;
    background: #fafafa;
    position: sticky;
    top: 20px;
    border-radius: 5px;
}

.seller-box .modal-header {
    display: flex;
}
    .modal-close{
        display: none;
    }


.user-image {
    height: 60px;
    margin-top: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

.user-image .user-left {
    width: auto;
    float: left;
    height: 50px;
    margin-right: 15px;
}

.user-image .user-left img {
    height: 50px;
    width: 50px;
    border-radius: 100%;
    object-fit: cover;
    margin-top: 10px;
}

.user-image .user-right {
    float: left;
}

.user-image .user-right p {
    line-height: 25px;
    font-size: 16px;
    color: #222;
    font-weight: 700;
    margin: 0;
}

.user-image .user-right p a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    background: #0056b3;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

.seller-box input,
.seller-box textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.seller-box textarea {
    height: 90px;
    resize: none;
    border-radius: 5px;
}

.seller-box button[type="submit"] {
    width: 100%;
    background: #0056b3;
    color: #fff;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.seller-box button[type="submit"]:hover {
    background: #333;
}

.form-status {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}


.mobile-action-buttons {
    display: none;
}


@media screen and (max-width: 768px) {

    .seller-box {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 90vh;
        background: #fff;
        z-index: 1000;
        padding: 0;
        border: none;
        border-radius: 0;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
        top: auto;
    }


    .seller-box.modal-active {
        transform: translateY(0);
    }


    .seller-box .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border-bottom: 1px solid #eee;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .seller-box .modal-header h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
    }

    .modal-close {
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #999;
        padding: 0;
        line-height: 1;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-close:hover {
        color: #000;
    }


    .seller-box > form {
        padding:10px 20px 20px 20px;
    }


    .seller-box .user-image {
        margin-top: 0;
        margin-bottom: 25px;
    }


    .seller-box input,
    .seller-box textarea {
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 5px;
        font-size: 16px;
    }

    .seller-box textarea {
        height: 120px;
    }

    .seller-box button[type="submit"] {
        padding: 14px;
        font-size: 16px;
        border-radius: 5px;
    }


    .mobile-action-buttons {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #ddd;
        padding: 10px 12px 15px 12px;
        z-index: 999;
        gap: 8px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        align-items: center;
    }

    .action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 12px;
        background: #f5f5f5;
        border-radius: 5px;
        font-size: 14px;
        color: #333;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.3s;
        border: none;
        font-weight: 500;
        white-space: nowrap;
    }

    .action-btn svg {
        width: 18px;
        height: 18px;
    }

    .action-btn:active {
        opacity: 0.8;
    }

    .call-btn {
        background: #fafafa;
        color: #333;
        border: 1px solid #ccc;
        flex: 1;
    }

    .call-btn svg {
        fill: #333;
    }

    .message-btn {
        background: #0056b3;
        border: 1px solid #0056b3;
        color: white;
        flex: 1;
    }

    .message-btn svg {
        fill: white;
    }

    .top-btn {
        background: #ef8f67;
        color: white;
        padding: 10px 16px;
        min-width: auto;
        flex: 0 0 auto;
        margin-left: auto;
        border: 1px solid #ef8f67;
    }

    .top-btn svg {
        fill: white;
    }


    body {
        padding-bottom: 70px;
    }

    /* Adjust for very small screens */
    @media screen and (max-width: 480px) {
        .action-btn {
            font-size: 13px;
            padding: 8px 10px;
        }
        
        .action-btn svg {
            width: 16px;
            height: 16px;
        }
        
        .top-btn {
            padding: 8px 14px;
        }
    }
}


.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%
    }
}
