
/* Homepage Styles */


.homepage-wrapper {
    width: 90%;
    margin: auto;
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #2d6a4f;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.price {
    font-size: 20px;
    color: #1b4332;
    font-weight: bold;
}

.btn-view {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #2d6a4f;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-view:hover {
    background: #1b4332;
}
/* Product Detail Page Styles */

.product-detail-wrapper {
    width: 90%;
    margin: auto;
    padding: 40px 0;
}

.product-detail-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-image img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-info {
    max-width: 500px;
}

.product-info h2 {
    font-size: 32px;
    color: #2d6a4f;
}

.price {
    font-size: 26px;
    color: #1b4332;
    font-weight: bold;
    margin: 10px 0;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-add {
    display: inline-block;
    padding: 12px 20px;
    background: #2d6a4f;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 18px;
}

.btn-add:hover {
    background: #1b4332;
}
/* Shopping List Styles */
.shoppinglist-wrapper {
    width: 90%;
    margin: auto;
    padding: 40px 0;
}

.shopping-item {
    display: flex;
    gap: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.shopping-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.shopping-item .info h3 {
    margin: 0;
    color: #2d6a4f;
}

.btn-remove {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #d00000;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.btn-remove:hover {
    background: #9b0000;
}

/* Login Page Styles */
.form-wrapper {
    width: 400px;
    margin: 50px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-wrapper h2 {
    text-align: center;
    color: #2d6a4f;
}

.form-wrapper input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #2d6a4f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-submit:hover {
    background: #1b4332;
}

.error {
    color: red;
    text-align: center;
}

/*update_quantity*/
.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #28a745;
    color: white;
    text-align: center;
    line-height: 30px;
    border-radius: 5px;
    font-size: 20px;
    text-decoration: none;
    font-weight: bold;
}

.qty-btn:hover {
    background: #218838;
}

.qty-number {
    font-size: 18px;
    font-weight: bold;
}
/* style search */
.search-wrapper {
    width: 90%;
    margin: 40px auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-view {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #28a745;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.btn-view:hover {
    background: #218838;
}
