/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* User dropdown styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
}

.user-link span {
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #4a154b;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.login-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.login-link span {
    margin-left: 5px;
}

/* Header styles */
header {
    background-color: #4a154b;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.search-bar {
    flex-grow: 1;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 20px;
    border: none;
    outline: none;
}

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4a154b;
    cursor: pointer;
}

.header-icons {
    display: flex;
    gap: 15px;
}

.header-icons a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 0.8rem;
}

.nav-item.active {
    color: #4a154b;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.order-nav {
    justify-content: center;
}

.deliver-btn {
    width: 90%;
    padding: 12px;
    font-size: 1rem;
}

/* Product cards */
.section-title {
    margin: 20px 0 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.page-title {
    margin: 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-info {
    padding: 10px;
}

.product-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-weight: bold;
    color: #4a154b;
}

.product-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
    margin-left: 5px;
}

.product-discount {
    color: #e94545;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Slider */
.slider {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 200px;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    display: none;
}

.slide.active {
    display: block;
}

/* Buttons */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #4a154b;
    color: white;
}

.btn-primary:hover {
    background-color: #3a0e3b;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* View all button */
/* Add to style.css */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 15px;
}

.view-all-small {
    padding: 6px 12px;
    background-color: #f8f9fa;
    color: #4a154b;
    border: 1px solid #4a154b;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Make entire product card clickable */
.product-card {
    cursor: pointer;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Remove the Buy Now button margin */
.product-info .btn {
    margin-top: 10px;
}
/* Product Detail Page */
.product-detail {
    padding-bottom: 80px;
}

.product-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .product-main {
        flex-direction: row;
    }
    
    .product-image {
        flex: 1;
    }
    
    .product-info {
        flex: 1;
    }
}

.product-share {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.product-share button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.product-pricing {
    margin: 15px 0;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a154b;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
}

.discount {
    color: #e94545;
    font-weight: bold;
    margin-left: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.stars {
    color: #ffc107;
    margin-right: 10px;
}

.product-quantity {
    margin: 15px 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.quantity-selector button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    font-size: 1rem;
    cursor: pointer;
}

.quantity-selector input {
    width: 50px;
    height: 30px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.product-actions .btn {
    flex: 1;
}

.product-details, .product-reviews, .related-products {
    margin: 30px 0;
}

.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.avg-rating {
    text-align: center;
}

.avg-rating span {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.review-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.rating-input {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rating-input .stars {
    margin-left: 10px;
}

.rating-input .stars i {
    cursor: pointer;
}

.review-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
}

.reviews-list {
    margin-top: 20px;
}

.review-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: bold;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
}

/* Order Page */
.order-summary {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
}

@media (min-width: 992px) {
    .order-summary {
        flex-direction: row;
    }
    
    .order-items {
        flex: 1;
    }
    
    .shipping-address {
        flex: 1;
    }
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.order-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.order-item-price {
    color: #4a154b;
    font-weight: bold;
}

.order-total {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.grand-total {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.shipping-address h2 {
    margin-bottom: 15px;
}

.address-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
}

.address-card.selected {
    border-color: #4a154b;
    background-color: rgba(74, 21, 75, 0.05);
}

.address-card h3 {
    margin-bottom: 10px;
}

.address-card p {
    margin-bottom: 5px;
    color: #666;
}

.address-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Payment Page */
.payment-summary {
    margin-bottom: 30px;
}

.order-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-info p {
    margin-bottom: 10px;
}

.payment-option {
    margin-bottom: 15px;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + label {
    border-color: #4a154b;
    background-color: rgba(74, 21, 75, 0.05);
}

.payment-option label i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.payment-details {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    margin-top: -5px;
    border: 1px solid #ddd;
    border-top: none;
}

.simulate-payment {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.simulate-payment .btn {
    flex: 1;
}

.payment-status {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 30px;
}

.status-success i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
}

.status-failed i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 15px;
}

/* Profile Page */
.profile-content {
    margin-bottom: 80px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.profile-image {
    position: relative;
}

.profile-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-image button {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #4a154b;
    color: white;
    cursor: pointer;
}

.profile-info h2 {
    margin-bottom: 5px;
}

.profile-info p {
    color: #666;
    margin-bottom: 3px;
}

.menu-section {
    margin: 30px 0;
}

.menu-section h2 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.menu-items {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item i:first-child {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.menu-item span {
    flex: 1;
}

.menu-item i:last-child {
    color: #999;
}

.logout-btn {
    width: 100%;
    padding: 15px;
    text-align: left;
}

.order-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-id {
    font-weight: bold;
    color: #4a154b;
}

.order-date {
    color: #999;
}

.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-card-items {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.order-item-quantity {
    color: #999;
    font-size: 0.9rem;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.order-total-amount {
    font-weight: bold;
    color: #4a154b;
}

.order-action {
    color: #4a154b;
    text-decoration: none;
    font-weight: 500;
}