/* Overlay Background */
.overlay {
    width: 100%;
    background: rgba(255,255,255,0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0rem;
}

/* Modal Box */
.lens-modal {
    width: 500px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Header */
.lens-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.lens-header h2 {
    font-size: 16px;
    font-weight: 400;
}

.close-btn {
    font-size: 18px;
    color: #333;
    text-decoration: none;
}

/* Upload Box */
.upload-box {
    border: 2px dashed #d6d6d6;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
}

.upload-content {
    margin-bottom: 15px;
}

.upload-icon {
    font-size: 45px;
    color: #9aa0a6;
    margin-bottom: 15px;
}

.upload-content p {
    font-size: 15px;
    color: #5f6368;
}

.upload-link {
    color: #1a73e8;
    cursor: pointer;
    font-weight: 500;
}

.upload-link:hover {
    text-decoration: underline;
    color: var(--yellow);
}

/* Divider */
.divider {
    position: relative;
    margin: 20px 0;
}

.divider::before {
    content: "";
    height: 1px;
    width: 100%;
    background: #e0e0e0;
    position: absolute;
    top: 50%;
    left: 0;
}

.divider span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    font-size: 13px;
    color: #888;
}

/* Paste Section */
.paste-section {
    display: flex;
    justify-content: center;
}

.paste-section input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
}

.paste-section input:focus {
    border-color: #1a73e8;
}

.search-btn {
    padding: 10px 22px;
    border-radius: 30px;
    border: none;
    color: var(--black);
    background: var(--yellow);
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover {
    background: var(--black);
    color: var(--white);
}

/* Responsive */
@media (max-width: 650px) {
    .lens-modal {
        width: 90%;
    }

    .paste-section {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }
}




/* ================= Product Preview Section ================= */
/* RESULT HEADER */

.result-header{
    width:100%;
    background:#fff;
    padding:10px 20px;
    border-radius:12px;
    box-shadow:0 4px 15px rgba(0,0,0,0.06);
    display:flex;
    align-items:center;
    gap:15px;
    max-width:900px;
    margin:20px auto;
}

/* LEFT IMAGE */

.result-left img{
    width:80px;
    height:80px;
    object-fit:contain;
}

/* MIDDLE TEXT */

.result-middle{
    flex:1;
}

.result-middle h3{
    font-size:18px;
    margin-bottom:5px;
}

.result-middle p{
    font-size:14px;
    color:#000;
}

/* RIGHT SEARCH AGAIN */

.search-other{
    text-align:center;
}

.search-other span{
    display:block;
    font-size:13px;
    color:#777;
    margin-bottom:8px;
}

.search-other button{
    padding:8px 18px;
    border-radius:20px;
    border:none;
    background:var(--yellow);
    cursor:pointer;
    font-size:14px;
}

.search-other button:hover{
    background:var(--black);
    color:#fff;
}
.result-right .upload-content img {
	width: 30px;
}
.result-right .upload-content {
	text-align: center;
}
.result-right .upload-content p {
	font-size: 13px;
}
.result-right .border-btn {
    padding: 8px 20px;
    font-size: 13px !important;
    text-decoration: none;
    transition: all ease .5s;
    line-height: normal;
    text-transform: capitalize;
    display: inline-block;
    border: 1px solid grey;
    background: #efefef;
    box-shadow: unset;
	border-radius: 20px;
}
.result-right .border-btn:hover {
	background: #e1e1e1;
    color: #000;
}
.left-res {
	display: flex;
	align-items: center;
	gap: 10px;
}

@media (max-width: 576px) {
	.head-res {
		display: block !important;
	}
    .result-right {
        text-align: center;
        margin-top: 10px;
    }
	.left-res {
		display: block;
    	text-align: center;
	}
}



/* ================= Product Section ================= */

.product-section {
    display: block;
    padding: 40px;
    background: #f5f5f5;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    height: 300px;
    min-width: 250px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.product-card h3 {
    font-size: 16px;
    margin: 12px 0 5px;
	overflow-y: hidden;
    overflow-x: hidden;
    height: 20px;
    width: 97%;
    text-overflow: ellipsis;
    white-space-collapse: collapse;
    text-wrap: nowrap;
}

.product-card p {
    font-size: 14px;
    color: #777;
	margin-bottom: 0px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.prod-box {
	overflow-y: hidden;
    overflow-x: hidden;
    height: 120px;
    text-overflow: ellipsis;
}

.upload-content img {
	width: 50px;
}
#searchResultHeader,
#productSection{
    display:none;
}
/* Dragging Effect */
.dragging {
    background: #f0f7ff;
    border-color: #1a73e8;
}

/* Responsive */
@media(max-width:1200px){
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:768px){
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:480px){
    .product-grid {
        grid-template-columns: 1fr;
    }
}