:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #ec4899;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --background-light: #f8fafc;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.03), 0 5px 10px rgba(0,0,0,0.04);
    --rounded-sm: 8px;
    --rounded-md: 12px;
    --rounded-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--background-light);
    padding: 0px 20px 20px 20px;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-container {
    position: relative;
    cursor: pointer;
}

.cart-icon-header {
    font-size: 24px;
    color: var(--text-dark);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
}

/* Tab Navigation */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab:hover:not(.active) {
    color: var(--text-dark);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

/* Shops Grid */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

/* Manual Order Page */
.manual-order {
    padding: 20px;
    background: white;
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: var(--rounded-sm);
    font-size: 14px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--rounded-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

/* Media queries for larger screens */
@media (min-width: 640px) {
    .products-grid,
    .shops-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .products-grid,
    .shops-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1280px) {
    .products-grid,
    .shops-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-card,
.shop-card {
    background-color: #fff;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.product-card:hover,
.shop-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image-container,
.shop-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: var(--rounded-md) var(--rounded-md) 0 0;
}

.product-image,
.shop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image,
.shop-card:hover .shop-image {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(5px);
}

.badge-new {
    background-color: rgba(99, 102, 241, 0.9);
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-sale {
    background-color: rgba(236, 72, 153, 0.9);
    color: white;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
    transform: translateY(0);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.product-card:hover .wishlist-btn {
    transform: translateY(0) scale(1.1);
}

.wishlist-icon {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.wishlist-btn:hover .wishlist-icon {
    transform: scale(1.2);
}

.product-info,
.shop-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,1));
}

.product-category,
.shop-category {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-name,
.shop-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.original-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    font-size: 13px;
    display: flex;
}

.review-count {
    font-size: 12px;
    color: var(--text-light);
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: var(--rounded-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: black;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-icon {
    font-size: 14px;
}

/* Shop details */
.shop-details {
    margin-top: 10px;
}

.shop-detail {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.shop-detail-icon {
    margin-right: 8px;
    color: var(--text-light);
}

/* Quick view overlay */
.quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    transform: translateY(100%);
    transition: all 0.3s ease;
    opacity: 0;
}

.product-card:hover .quick-view,
.shop-card:hover .quick-view {
    transform: translateY(0);
    opacity: 1;
}

.visit-shop-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: var(--rounded-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: white;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.visit-shop-btn:hover {
    background: var(--secondary-color);
}
/* Modern Shop Header Styles */
.shop-header {
display: flex;
flex-direction: column;
position: relative;
padding: 1.5rem;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-radius: 16px;
margin-bottom: 2rem;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
overflow: hidden;
}

.shop-header::before {
content: "";
position: absolute;
top: -2px;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #4CAF50, #8BC34A);
z-index: 1;
}

.back-btn {
align-self: flex-start;
background-color: white;
color: #333;
font-weight: 600;
font-size: 0.85rem;
padding: 0.6rem 1.2rem;
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
margin-bottom: 0.5rem;
display: flex;
align-items: center;
}

.back-btn:hover {
background-color: #f5f5f5;
transform: translateY(-2px);
box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.back-btn:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#current-shop-name {
font-size: 1.5rem;
font-weight: 700;
color: #333;
margin: 0.5rem 0;
position: relative;
display: inline-block;
}

#current-shop-name::after {
content: "";
position: absolute;
bottom: -6px;
left: 0;
width: 40px;
height: 3px;
background-color: #4CAF50;
border-radius: 3px;
}

@media (min-width: 768px) {
.shop-header {
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 1.2rem 2rem;
}

.back-btn {
margin-bottom: 0;
margin-right: 1.5rem;
}

#current-shop-name {
margin: 0;
}
}
/* Cart notification styling */
.notification {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border-radius: 4px;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
z-index: 9999;
opacity: 0;
transition: opacity 0.3s ease;
font-weight: 500;
}

.notification.show {
opacity: 1;
}

/* Enhance cart icon visibility */
.cart-container {
position: relative;
cursor: pointer;
padding: 8px;
}

.cart-count {
position: absolute;
top: 0;
right: 0;
background-color: #ff4757;
color: white;
border-radius: 50%;
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: bold;
}

/* Add to cart button hover effect */
.add-to-cart {
transition: background-color 0.3s ease;
}

.add-to-cart:hover {
background-color: #4CAF50;
color: white;
}

/* Add these styles to your existing CSS */
.input-with-icon {
position: relative;
width: 100%;
}

.input-with-icon i {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
color: var(--text-light);
z-index: 1;
}

.input-with-icon input,
.input-with-icon textarea,
.input-with-icon select {
padding-left: 40px !important;
width: 100%;
border: 2px solid #e2e8f0;
border-radius: var(--rounded-sm);
transition: all 0.3s ease;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus,
.input-with-icon select:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-with-icon textarea {
padding-top: 12px !important;
min-height: 100px;
}

.submit-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
padding: 14px;
font-size: 16px;
font-weight: 600;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
border: none;
border-radius: var(--rounded-sm);
color: white;
cursor: pointer;
transition: all 0.3s ease;
}

.submit-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.submit-btn:active {
transform: translateY(0);
}

/* Session info notice */
.session-info-notice {
background: #e3f2fd;
border-left: 4px solid var(--primary-color);
padding: 12px 16px;
margin-bottom: 20px;
border-radius: var(--rounded-sm);
display: flex;
align-items: center;
gap: 10px;
}

.session-info-notice i {
color: var(--primary-color);
}

.session-info-notice p {
margin: 0;
color: var(--text-dark);
font-size: 14px;
}

/* Modern Form Styles */
.manual-order {
max-width: 800px;
margin: 0 auto;
padding: 2rem;
background: white;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.order-header {
text-align: center;
margin-bottom: 2.5rem;
}

.order-header h2 {
color: var(--primary-color);
font-size: 2rem;
margin-bottom: 0.5rem;
font-weight: 700;
}

.order-subtitle {
color: var(--text-light);
font-size: 1rem;
}

.form-section {
background: #f8fafc;
padding: 1.5rem;
border-radius: 15px;
margin-bottom: 1.5rem;
position: relative;
overflow: hidden;
}

.form-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.section-title {
color: var(--text-dark);
font-size: 1.2rem;
margin-bottom: 1.2rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--primary-color);
display: inline-block;
}

.form-group {
margin-bottom: 1.5rem;
}

.form-group label {
display: block;
margin-bottom: 0.5rem;
color: var(--text-dark);
font-weight: 600;
font-size: 0.95rem;
}

.input-with-icon {
position: relative;
width: 100%;
}

.input-with-icon i {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
color: var(--primary-color);
font-size: 1.1rem;
}

.input-with-icon input,
.input-with-icon textarea,
.input-with-icon select {
width: 100%;
padding: 12px 15px 12px 45px;
border: 2px solid #e2e8f0;
border-radius: 10px;
font-size: 1rem;
transition: all 0.3s ease;
background: white;
}

.input-with-icon textarea {
min-height: 120px;
padding-top: 15px;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
outline: none;
}

.input-with-icon input::placeholder,
.input-with-icon textarea::placeholder {
color: #94a3b8;
}

.payment-method-container {
display: flex;
gap: 1rem;
}

.payment-method {
flex: 1;
padding: 1rem;
border: 2px solid #e2e8f0;
border-radius: 10px;
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
transition: all 0.3s ease;
background: white;
}

.payment-method i {
color: var(--primary-color);
font-size: 1.2rem;
}

.payment-method span {
font-weight: 500;
color: var(--text-dark);
}

.payment-method.selected {
border-color: var(--primary-color);
background: rgba(99, 102, 241, 0.05);
}

.submit-btn {
width: 100%;
padding: 15px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
border: none;
border-radius: 10px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
transition: all 0.3s ease;
margin-top: 1.5rem;
position: relative;
overflow: hidden;
}

.submit-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: 0.5s;
}

.submit-btn:hover::before {
left: 100%;
}

.submit-btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.submit-btn:active {
transform: translateY(0);
}

/* Session info notice */
.session-info-notice {
background: linear-gradient(135deg, #e3f2fd, #bbdefb);
border-left: 4px solid var(--primary-color);
padding: 15px 20px;
margin-bottom: 1.5rem;
border-radius: 10px;
display: flex;
align-items: center;
gap: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
animation: slideIn 0.5s ease;
}

@keyframes slideIn {
from {
transform: translateY(-20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}

.session-info-notice i {
color: var(--primary-color);
font-size: 1.2rem;
}

.session-info-notice p {
margin: 0;
color: var(--text-dark);
font-size: 0.95rem;
font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
.manual-order {
padding: 1.5rem;
}

.form-section {
padding: 1.2rem;
}

.order-header h2 {
font-size: 1.5rem;
}
}

/* Modern Order Form Styles */
.modern-order {
max-width: 600px;
margin: 0 auto;
padding: 2rem;
background: white;
border-radius: 20px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.order-header {
text-align: center;
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid #f1f5f9;
}



.order-header h2 {
color: var(--text-dark);
font-size: 1.8rem;
margin-bottom: 0.5rem;
font-weight: 700;
}

.order-header p {
color: var(--text-light);
font-size: 0.8rem;
}

.form-section {
margin-bottom: 2rem;
}

.section-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid #f1f5f9;
}

.section-header i {
color: var(--primary-color);
font-size: 1.2rem;
}

.section-header h3 {
color: var(--text-dark);
font-size: 1rem;
font-weight: 600;
margin: 0;
}

.form-group {
margin-bottom: 1.2rem;
}

.input-field {
position: relative;
width: 100%;
}

.input-field i {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
color: var(--primary-color);
font-size: 1.1rem;
}

.input-field input,
.input-field textarea {
width: 100%;
padding: 12px 15px 12px 45px;
border: 2px solid #f1f5f9;
border-radius: 10px;
font-size: 1rem;
transition: all 0.3s ease;
background: #f8fafc;
}

.input-field textarea {
min-height: 100px;
padding-top: 15px;
resize: vertical;
}

.input-field input:focus,
.input-field textarea:focus {
border-color: var(--primary-color);
background: white;
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
outline: none;
}

.input-field input::placeholder,
.input-field textarea::placeholder {
color: #94a3b8;
}

.payment-section {
margin-top: 1.5rem;
}

.payment-method {
display: flex;
align-items: center;
gap: 12px;
padding: 15px;
background: #f8fafc;
border: 2px solid var(--primary-color);
border-radius: 10px;
color: var(--text-dark);
}

.payment-method i {
color: var(--primary-color);
font-size: 1.2rem;
}

.payment-method span {
font-weight: 500;
}

.submit-btn {
width: 100%;
padding: 15px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
border: none;
border-radius: 10px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
transition: all 0.3s ease;
margin-top: 2rem;
}

.submit-btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.submit-btn:active {
transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
.modern-order {
padding: 1.5rem;
}

.order-icon .img {
width: 50px;
height: 50px;
font-size: 1.2rem;
}

.order-header h2 {
font-size: 1.5rem;
}
}