/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.product-card {
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid transparent;
    padding-bottom: 10px;
}

.product-card:hover {
    border-color: #000;
}

.img-placeholder img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 15px;
    background: #f5f5f5;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.product-info .price {
    font-size: 14px;
    color: #555;
}

/* Search Bar */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-container h1 {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: -1px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    outline: none;
    width: 250px;
}

.search-box button {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Floating Add Button */
.btn-add-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #000;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-add-float:hover {
    background: #333;
    transform: scale(1.05);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    overflow-y: auto;
    padding-bottom: 50px;
}

.modal-content {
    background-color: transparent;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 900px;
    position: relative;
    box-shadow: none;
}

.close {
    position: absolute;
    right: 0;
    top: -40px;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
}

.modal-body { 
    display: flex; 
    gap: 50px; 
    align-items: flex-start;
}
.modal-body img { 
    width: 50%; 
    object-fit: cover; 
    aspect-ratio: 1/1;
    background: #f5f5f5;
}

.modal-text {
    width: 50%;
}

.modal-text h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.modal-price {
    font-size: 20px;
    color: #555;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.modal-text p#modalDesc {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
}

.btn-add-cart {
    background: #000;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    width: 100%;
    transition: 0.2s;
}

.btn-add-cart:hover {
    background: #333;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }
    .modal-body img {
        width: 100%;
    }
    .modal-text {
        width: 100%;
    }
    .search-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}