1549 lines
29 KiB
CSS
1549 lines
29 KiB
CSS
/* Global Styles & Variables */
|
|
:root {
|
|
--coral: #FF6B6B;
|
|
--sandy-beige: #F4E8D8;
|
|
--turquoise: #40E0D0;
|
|
--ocean-blue: #1E90FF;
|
|
--white: #FFFFFF;
|
|
--off-white: #f8f9fa;
|
|
--text-color: #333;
|
|
--light-gray: #f2f2f2;
|
|
--medium-gray: #ccc;
|
|
--dark-gray: #555;
|
|
|
|
--font-heading: 'Poppins', sans-serif;
|
|
--font-body: 'Lato', sans-serif;
|
|
|
|
--shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
--border-radius: 16px;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-body);
|
|
color: var(--text-color);
|
|
background-color: var(--off-white);
|
|
margin: 0;
|
|
padding: 0;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: var(--font-heading);
|
|
font-weight: 600;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--coral);
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--turquoise);
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Header styles */
|
|
header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px 30px;
|
|
background-color: var(--white);
|
|
border-bottom: 1px solid var(--light-gray);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.logo {
|
|
font-family: var(--font-heading);
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.address-container {
|
|
cursor: pointer;
|
|
padding: 8px 12px;
|
|
border-radius: 20px;
|
|
background-color: var(--off-white);
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.address-container:hover {
|
|
background-color: var(--light-gray);
|
|
}
|
|
|
|
.address-display {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.user-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.user-actions a {
|
|
margin-left: 20px;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
}
|
|
|
|
/* Modal styles */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
background-color: rgba(0,0,0,0.5);
|
|
backdrop-filter: blur(5px);
|
|
}
|
|
.modal-content {
|
|
background-color: var(--white);
|
|
margin: 15% auto;
|
|
padding: 30px;
|
|
border: none;
|
|
width: 90%;
|
|
max-width: 500px;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
|
text-align: center;
|
|
position: relative;
|
|
}
|
|
.close-button {
|
|
color: var(--medium-gray);
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 20px;
|
|
font-size: 32px;
|
|
font-weight: bold;
|
|
transition: color 0.3s ease;
|
|
}
|
|
.close-button:hover,
|
|
.close-button:focus {
|
|
color: var(--dark-gray);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
#modal-address-input {
|
|
width: calc(100% - 40px);
|
|
padding: 12px;
|
|
margin-top: 10px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid var(--light-gray);
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
}
|
|
#save-address-button {
|
|
background-color: var(--coral);
|
|
color: white;
|
|
padding: 12px 25px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
#save-address-button:hover {
|
|
background-color: #ff4f4f;
|
|
}
|
|
|
|
|
|
/* Animations */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(-10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.fade-in {
|
|
animation: fadeIn 0.5s ease-in-out forwards;
|
|
}
|
|
|
|
/* Restaurant Grid */
|
|
.page-title {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.restaurant-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 2rem;
|
|
}
|
|
|
|
.restaurant-card {
|
|
background-color: var(--white);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-soft);
|
|
overflow: hidden;
|
|
transition: all 0.3s ease-in-out;
|
|
display: flex;
|
|
flex-direction: column;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.restaurant-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
|
|
}
|
|
|
|
.restaurant-card img {
|
|
width: 100%;
|
|
height: 200px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.restaurant-card-content {
|
|
padding: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.restaurant-card-content h3 {
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.restaurant-card-content p {
|
|
color: var(--dark-gray);
|
|
font-size: 0.9rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.restaurant-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.rating-display {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.rating-display .star {
|
|
color: #FFC107;
|
|
margin-right: 0.25rem;
|
|
}
|
|
|
|
.delivery-info {
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: var(--dark-gray);
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
padding: 3rem 0;
|
|
margin-top: 3rem;
|
|
background-color: var(--white);
|
|
border-top: 1px solid var(--light-gray);
|
|
}
|
|
|
|
/* Restaurant Menu Page */
|
|
.restaurant-hero-menu {
|
|
position: relative;
|
|
height: 350px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
padding: 3rem;
|
|
color: var(--white);
|
|
border-radius: 0 0 var(--border-radius) var(--border-radius);
|
|
overflow: hidden;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.restaurant-hero-menu::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 100%);
|
|
}
|
|
|
|
.restaurant-hero-menu-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.restaurant-hero-menu h1 {
|
|
font-size: 3rem;
|
|
font-weight: 700;
|
|
margin: 0 0 0.5rem;
|
|
text-shadow: 0 2px 8px rgba(0,0,0,0.7);
|
|
}
|
|
|
|
.restaurant-hero-menu p {
|
|
font-size: 1.1rem;
|
|
margin: 0.25rem 0;
|
|
text-shadow: 0 1px 5px rgba(0,0,0,0.6);
|
|
}
|
|
|
|
/* Menu Grid */
|
|
.menu-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.menu-item-card {
|
|
background-color: var(--white);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-soft);
|
|
overflow: hidden;
|
|
transition: all 0.3s ease-in-out;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.menu-item-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
|
|
}
|
|
|
|
.menu-item-image {
|
|
width: 120px;
|
|
height: 120px;
|
|
object-fit: cover;
|
|
border-radius: 12px;
|
|
margin-left: 1.5rem;
|
|
}
|
|
|
|
.menu-item-card-content {
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.menu-item-card-content h3 {
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
margin: 0 0 0.5rem;
|
|
}
|
|
|
|
.menu-item-card-content .description {
|
|
font-size: 0.9rem;
|
|
color: var(--dark-gray);
|
|
margin-bottom: 1rem;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.menu-item-card-content .price {
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
/* Reviews Section */
|
|
.reviews-section {
|
|
background-color: var(--white);
|
|
padding: 2rem;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-soft);
|
|
position: sticky;
|
|
top: 120px; /* Adjust based on header height */
|
|
}
|
|
|
|
.review-card {
|
|
border-bottom: 1px solid var(--light-gray);
|
|
padding: 1.5rem 0;
|
|
}
|
|
|
|
.review-card:last-child {
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.review-card:first-child {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.review-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.review-header strong {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.review-text {
|
|
font-style: italic;
|
|
color: var(--dark-gray);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
|
|
/* Rating Section on Menu Page */
|
|
.rating-form-container {
|
|
background-color: var(--white);
|
|
padding: 2rem;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-soft);
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.rating-form-container h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.rate-form .stars {
|
|
font-size: 2rem;
|
|
color: var(--medium-gray);
|
|
cursor: pointer;
|
|
direction: rtl;
|
|
display: inline-block;
|
|
}
|
|
|
|
.rate-form .stars > label {
|
|
color: var(--medium-gray);
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.rate-form .stars > input {
|
|
display: none;
|
|
}
|
|
|
|
.rate-form .stars > input:checked ~ label,
|
|
.rate-form .stars:not(:hover) > input:checked ~ label {
|
|
color: #FFC107 !important;
|
|
}
|
|
|
|
.rate-form .stars > label:hover,
|
|
.rate-form .stars > label:hover ~ label {
|
|
color: #FFC107 !important;
|
|
}
|
|
|
|
.rate-form button {
|
|
background-color: var(--coral);
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin-top: 1rem;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.rate-form button:hover {
|
|
background-color: #ff4f4f;
|
|
}
|
|
|
|
/* Auth Forms */
|
|
.auth-container {
|
|
max-width: 450px;
|
|
margin: 4rem auto;
|
|
padding: 3rem;
|
|
background-color: var(--white);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.auth-container h1 {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 600;
|
|
color: var(--dark-gray);
|
|
}
|
|
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 0.8rem 1rem;
|
|
border: 1px solid var(--medium-gray);
|
|
border-radius: 8px;
|
|
box-sizing: border-box;
|
|
font-size: 1rem;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: var(--coral);
|
|
}
|
|
|
|
.btn-submit {
|
|
width: 100%;
|
|
padding: 0.9rem;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background-color: var(--coral);
|
|
color: white;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.btn-submit:hover {
|
|
background-color: #ff4f4f;
|
|
}
|
|
|
|
.form-footer {
|
|
text-align: center;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.form-footer a {
|
|
color: var(--coral);
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.form-footer a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Add to Cart Form */
|
|
.add-to-cart-form {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.add-to-cart-form .form-row {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.quantity-input {
|
|
width: 60px;
|
|
padding: 0.5rem;
|
|
text-align: center;
|
|
border: 1px solid var(--medium-gray);
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.add-to-cart-btn {
|
|
flex-grow: 1;
|
|
background-color: var(--coral);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.6rem 1rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.add-to-cart-btn:hover {
|
|
background-color: #ff4f4f;
|
|
}
|
|
|
|
/* Cart Icon */
|
|
.cart-icon {
|
|
position: relative;
|
|
display: inline-block;
|
|
margin-right: 20px;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.cart-item-count {
|
|
position: absolute;
|
|
top: -8px;
|
|
right: -8px;
|
|
background-color: var(--coral);
|
|
color: white;
|
|
border-radius: 50%;
|
|
padding: 2px 6px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Cart Page */
|
|
.cart-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 2rem 0;
|
|
box-shadow: var(--shadow-soft);
|
|
border-radius: var(--border-radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cart-table thead {
|
|
background-color: var(--off-white);
|
|
}
|
|
|
|
.cart-table th, .cart-table td {
|
|
padding: 1rem 1.5rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.cart-table th {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
text-transform: uppercase;
|
|
color: var(--dark-gray);
|
|
}
|
|
|
|
.cart-table tbody tr {
|
|
border-bottom: 1px solid var(--light-gray);
|
|
}
|
|
|
|
.cart-table tbody tr:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.cart-table .update-form {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.cart-table .quantity-input {
|
|
width: 50px;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.cart-table .update-btn {
|
|
background-color: var(--turquoise);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.4rem 0.8rem;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.cart-table .update-btn:hover {
|
|
background-color: #38d8c9;
|
|
}
|
|
|
|
.cart-table .remove-link {
|
|
color: var(--coral);
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.cart-total {
|
|
text-align: right;
|
|
margin-top: 1.5rem;
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.cart-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
margin-top: 2rem;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.clear-cart-btn, .checkout-btn {
|
|
padding: 0.8rem 1.5rem;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
font-size: 0.9rem;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.clear-cart-btn {
|
|
background-color: transparent;
|
|
border: 2px solid var(--medium-gray);
|
|
color: var(--dark-gray);
|
|
}
|
|
|
|
.clear-cart-btn:hover {
|
|
background-color: var(--light-gray);
|
|
border-color: var(--dark-gray);
|
|
}
|
|
|
|
.checkout-btn {
|
|
background-color: var(--coral);
|
|
color: white;
|
|
border: 2px solid var(--coral);
|
|
}
|
|
|
|
.checkout-btn:hover {
|
|
background-color: #ff4f4f;
|
|
border-color: #ff4f4f;
|
|
}
|
|
|
|
/* Checkout Page */
|
|
.checkout-summary {
|
|
max-width: 700px;
|
|
margin: 2rem auto;
|
|
padding: 2rem;
|
|
background-color: var(--white);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.checkout-summary h2 {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.checkout-form {
|
|
text-align: center;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
/* Order Confirmation Page */
|
|
.order-confirmation {
|
|
max-width: 600px;
|
|
margin: 4rem auto;
|
|
padding: 3rem;
|
|
text-align: center;
|
|
background-color: var(--white);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.order-confirmation h1 {
|
|
color: var(--ocean-blue);
|
|
font-size: 2.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.order-confirmation p {
|
|
font-size: 1.1rem;
|
|
color: var(--dark-gray);
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.order-confirmation .btn {
|
|
background-color: var(--coral);
|
|
color: white;
|
|
padding: 0.8rem 2rem;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
font-size: 1rem;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.order-confirmation .btn:hover {
|
|
background-color: #ff4f4f;
|
|
}
|
|
|
|
/* Search and Filter */
|
|
.search-form {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.search-bar,
|
|
.cuisine-filter {
|
|
padding: 1rem;
|
|
font-size: 1rem;
|
|
border-radius: 50px;
|
|
border: none;
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.search-bar {
|
|
flex-grow: 1;
|
|
padding-left: 3rem;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23767676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-search'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: 1rem center;
|
|
}
|
|
|
|
.cuisine-filter {
|
|
background-color: var(--white);
|
|
}
|
|
|
|
.search-button {
|
|
background-color: var(--coral);
|
|
color: white;
|
|
border: none;
|
|
padding: 1rem 2rem;
|
|
border-radius: 50px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.search-button:hover {
|
|
background-color: #ff4f4f;
|
|
}
|
|
|
|
/* Filter Bar */
|
|
.filter-bar {
|
|
margin-top: 1.5rem;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.filter-dropdown {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.filter-button {
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
color: var(--white);
|
|
padding: 12px 24px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
border-radius: 50px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.filter-button:hover {
|
|
background-color: rgba(255, 255, 255, 0.3);
|
|
border-color: var(--white);
|
|
}
|
|
|
|
.filter-button-icon {
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.filter-options {
|
|
display: none;
|
|
position: absolute;
|
|
background-color: var(--white);
|
|
min-width: 200px;
|
|
box-shadow: var(--shadow-soft);
|
|
border-radius: var(--border-radius);
|
|
z-index: 1;
|
|
margin-top: 8px;
|
|
padding: 8px 0;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.filter-option {
|
|
color: var(--text-color);
|
|
padding: 12px 20px;
|
|
text-decoration: none;
|
|
display: block;
|
|
font-weight: 500;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.filter-option:hover, .filter-option.active {
|
|
background-color: var(--light-gray);
|
|
color: var(--coral);
|
|
}
|
|
|
|
.filter-dropdown:hover .filter-options {
|
|
display: block;
|
|
}
|
|
|
|
.filter-dropdown:hover .filter-button-icon {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.location-actions {
|
|
margin-top: 15px;
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.location-button {
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
color: white;
|
|
border-radius: 50px;
|
|
padding: 10px 20px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.location-button:hover {
|
|
background-color: rgba(255, 255, 255, 0.3);
|
|
border-color: var(--white);
|
|
}
|
|
|
|
/* Star Rating Styles */
|
|
.rating {
|
|
display: inline-block;
|
|
font-size: 2rem;
|
|
direction: rtl; /* Right-to-left to fill stars from right */
|
|
}
|
|
|
|
.rating input {
|
|
display: none;
|
|
}
|
|
|
|
.rating label {
|
|
color: #ddd; /* Default empty star color */
|
|
cursor: pointer;
|
|
padding: 0 0.1em;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.rating label:hover,
|
|
.rating label:hover ~ label,
|
|
.rating input:checked ~ label {
|
|
color: #FFC107; /* Filled star color */
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin: 0 -15px;
|
|
}
|
|
.col-md-3 {
|
|
width: 25%;
|
|
padding: 0 15px;
|
|
}
|
|
.col-md-9 {
|
|
width: 75%;
|
|
padding: 0 15px;
|
|
}
|
|
.form-check {
|
|
margin-bottom: 10px;
|
|
}
|
|
.btn {
|
|
padding: 8px 15px;
|
|
border-radius: 5px;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
text-align: center;
|
|
}
|
|
.btn-primary {
|
|
background-color: #007bff;
|
|
color: white;
|
|
border: 1px solid #007bff;
|
|
}
|
|
.btn-secondary {
|
|
background-color: #6c757d;
|
|
color: white;
|
|
border: 1px solid #6c757d;
|
|
}
|
|
.mt-3 {
|
|
margin-top: 1rem;
|
|
}
|
|
.search-form {
|
|
display: flex;
|
|
}
|
|
.search-bar {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
/* Cuisine Carousel */
|
|
.cuisine-carousel {
|
|
display: flex;
|
|
overflow-x: auto;
|
|
padding-bottom: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
scrollbar-width: thin; /* For Firefox */
|
|
scrollbar-color: var(--medium-gray) var(--light-gray);
|
|
}
|
|
|
|
.cuisine-carousel::-webkit-scrollbar {
|
|
height: 8px;
|
|
}
|
|
|
|
.cuisine-carousel::-webkit-scrollbar-track {
|
|
background: var(--light-gray);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.cuisine-carousel::-webkit-scrollbar-thumb {
|
|
background-color: var(--medium-gray);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.cuisine-card {
|
|
position: relative;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
.cuisine-card input[type="checkbox"] {
|
|
position: absolute;
|
|
opacity: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cuisine-card label {
|
|
display: block;
|
|
padding: 0.75rem 1.5rem;
|
|
border: 1px solid var(--medium-gray);
|
|
border-radius: 50px;
|
|
background-color: var(--white);
|
|
color: var(--text-color);
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.cuisine-card input[type="checkbox"]:checked + label {
|
|
background-color: var(--coral);
|
|
color: var(--white);
|
|
border-color: var(--coral);
|
|
}
|
|
|
|
.cuisine-card label:hover {
|
|
background-color: var(--light-gray);
|
|
}
|
|
|
|
.cuisine-card input[type="checkbox"]:checked + label:hover {
|
|
background-color: #ff4f4f;
|
|
}
|
|
|
|
/* New Filter Bar */
|
|
.filter-bar-new {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
background-color: var(--white);
|
|
padding: 1rem;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.filter-bar-new .form-group,
|
|
.filter-bar-new .form-check {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.filter-bar-new .form-control {
|
|
border-radius: 50px;
|
|
border: 1px solid var(--medium-gray);
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
|
|
.filter-bar-new .form-check-label {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.filter-bar-new .btn-secondary {
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Remove old column styles */
|
|
.row {
|
|
display: block;
|
|
}
|
|
.col-md-3,
|
|
.col-md-9 {
|
|
width: 100%;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Categories Section */
|
|
.categories-section {
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.category-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.category-card {
|
|
position: relative;
|
|
border-radius: var(--border-radius);
|
|
overflow: hidden;
|
|
height: 150px;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
color: var(--white);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.category-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.category-card img {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
z-index: 1;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.category-card:hover img {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.category-card-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
|
|
z-index: 2;
|
|
}
|
|
|
|
.category-card h3 {
|
|
position: relative;
|
|
z-index: 3;
|
|
margin: 0;
|
|
padding: 1rem;
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
text-align: center;
|
|
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
/* New Checkout Styles */
|
|
.checkout-container {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
background-color: var(--white);
|
|
}
|
|
|
|
.checkout-main {
|
|
flex-grow: 1;
|
|
padding: 2rem 4rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.checkout-header {
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.checkout-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.step-title {
|
|
font-size: 1.75rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
#delivery-form .form-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
#delivery-form .form-control {
|
|
padding: 1rem;
|
|
font-size: 1rem;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--medium-gray);
|
|
}
|
|
|
|
.btn-primary {
|
|
width: 100%;
|
|
padding: 1rem;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
border-radius: 8px;
|
|
background-color: var(--coral);
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #ff4f4f;
|
|
}
|
|
|
|
.payment-methods {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.payment-method-card {
|
|
border: 1px solid var(--medium-gray);
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
transition: border-color 0.3s, box-shadow 0.3s;
|
|
}
|
|
|
|
.payment-method-card:has(input:checked) {
|
|
border-color: var(--coral);
|
|
box-shadow: 0 0 0 2px var(--coral);
|
|
}
|
|
|
|
.payment-method-card label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 1.5rem;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.payment-method-card input[type="radio"] {
|
|
display: none;
|
|
}
|
|
|
|
.payment-method-card svg {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
#paypal-button-container {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.btn-secondary {
|
|
width: 100%;
|
|
padding: 1rem;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
border-radius: 8px;
|
|
background-color: transparent;
|
|
color: var(--dark-gray);
|
|
border: 1px solid var(--medium-gray);
|
|
cursor: pointer;
|
|
margin-top: 1rem;
|
|
transition: background-color 0.3s, border-color 0.3s;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: var(--light-gray);
|
|
border-color: var(--dark-gray);
|
|
}
|
|
|
|
.checkout-summary {
|
|
width: 450px;
|
|
background-color: var(--off-white);
|
|
padding: 2rem;
|
|
border-left: 1px solid var(--light-gray);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.checkout-summary h4 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.summary-items {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.summary-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 1rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.item-name {
|
|
color: var(--dark-gray);
|
|
}
|
|
|
|
.item-price {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.summary-total {
|
|
border-top: 1px solid var(--medium-gray);
|
|
padding-top: 1.5rem;
|
|
}
|
|
|
|
.summary-line {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 0.75rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.summary-line.discount {
|
|
color: #28a745;
|
|
}
|
|
|
|
.summary-line.total {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
/* Order Confirmation Page Refined */
|
|
.card.shadow-sm {
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.card-header.bg-success {
|
|
background-color: var(--coral) !important;
|
|
border-bottom: none;
|
|
border-radius: var(--border-radius) var(--border-radius) 0 0;
|
|
}
|
|
|
|
.card-header h2 {
|
|
font-size: 1.75rem;
|
|
color: var(--white);
|
|
}
|
|
|
|
.card-body .lead {
|
|
font-size: 1.2rem;
|
|
font-weight: 500;
|
|
color: var(--dark-gray);
|
|
}
|
|
|
|
.card-body h5 {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
color: var(--text-color);
|
|
border-bottom: 2px solid var(--light-gray);
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.badge.bg-warning {
|
|
font-size: 0.9rem;
|
|
padding: 0.5em 0.75em;
|
|
background-color: var(--turquoise) !important;
|
|
color: var(--text-color) !important;
|
|
}
|
|
|
|
.list-group-item {
|
|
border-color: var(--light-gray);
|
|
}
|
|
|
|
.list-group-item span {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.list-group-item.fw-bold {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.order-confirmation-actions .btn {
|
|
margin: 0 0.5rem;
|
|
padding: 0.8rem 1.5rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
font-size: 0.9rem;
|
|
border-radius: 50px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.order-confirmation-actions .btn-primary {
|
|
background-color: var(--coral);
|
|
border-color: var(--coral);
|
|
}
|
|
|
|
.order-confirmation-actions .btn-primary:hover {
|
|
background-color: #ff4f4f;
|
|
border-color: #ff4f4f;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.order-confirmation-actions .btn-secondary {
|
|
background-color: var(--off-white);
|
|
border-color: var(--medium-gray);
|
|
color: var(--dark-gray);
|
|
}
|
|
|
|
.order-confirmation-actions .btn-secondary:hover {
|
|
background-color: var(--light-gray);
|
|
border-color: var(--dark-gray);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Order Status Page */
|
|
.order-status-container {
|
|
max-width: 800px;
|
|
margin: 2rem auto;
|
|
padding: 2rem;
|
|
background-color: var(--white);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.order-status-header {
|
|
text-align: center;
|
|
margin-bottom: 2.5rem;
|
|
border-bottom: 1px solid var(--light-gray);
|
|
padding-bottom: 1.5rem;
|
|
}
|
|
|
|
.order-status-header h1 {
|
|
font-size: 2.2rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.order-status-header p {
|
|
font-size: 1.1rem;
|
|
color: var(--dark-gray);
|
|
}
|
|
|
|
#order-status-timeline {
|
|
position: relative;
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.timeline-item {
|
|
display: flex;
|
|
position: relative;
|
|
padding-left: 60px; /* Space for icon and line */
|
|
padding-bottom: 3rem;
|
|
}
|
|
|
|
.timeline-item:last-child {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.timeline-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 24px; /* Center the line */
|
|
top: 50px;
|
|
width: 2px;
|
|
height: calc(100% - 50px);
|
|
background-color: var(--light-gray);
|
|
transition: background-color 0.5s ease;
|
|
}
|
|
|
|
.timeline-item:last-child::before {
|
|
display: none;
|
|
}
|
|
|
|
.timeline-icon {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
background-color: var(--light-gray);
|
|
color: var(--medium-gray);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
z-index: 1;
|
|
border: 4px solid var(--off-white);
|
|
transition: all 0.5s ease;
|
|
}
|
|
|
|
.timeline-content {
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.timeline-content h5 {
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0.25rem;
|
|
transition: color 0.5s ease;
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.timeline-content p {
|
|
font-size: 0.95rem;
|
|
color: var(--dark-gray);
|
|
margin: 0;
|
|
}
|
|
|
|
/* --- Timeline States --- */
|
|
|
|
/* Default (Not yet active) */
|
|
.timeline-item:not(.timeline-complete):not(.timeline-active) .timeline-icon {
|
|
background-color: var(--light-gray);
|
|
color: var(--medium-gray);
|
|
}
|
|
|
|
/* Active State */
|
|
.timeline-active .timeline-icon {
|
|
background-color: var(--turquoise);
|
|
color: var(--white);
|
|
transform: scale(1.1);
|
|
box-shadow: 0 0 15px rgba(64, 224, 208, 0.7);
|
|
}
|
|
|
|
.timeline-active h5 {
|
|
color: var(--turquoise);
|
|
}
|
|
|
|
/* Complete State */
|
|
.timeline-complete::before {
|
|
background-color: var(--coral);
|
|
}
|
|
|
|
.timeline-complete .timeline-icon {
|
|
background-color: var(--coral);
|
|
color: var(--white);
|
|
}
|
|
|
|
/* Cancelled State */
|
|
.timeline-cancelled .timeline-icon {
|
|
background-color: var(--dark-gray);
|
|
color: var(--white);
|
|
}
|
|
|
|
.timeline-cancelled h5 {
|
|
color: var(--dark-gray);
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.order-status-footer {
|
|
text-align: center;
|
|
margin-top: 2.5rem;
|
|
padding-top: 1.5rem;
|
|
border-top: 1px solid var(--light-gray);
|
|
}
|
|
|
|
.order-status-footer p {
|
|
margin-bottom: 1rem;
|
|
}
|