/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    -webkit-tap-highlight-color: transparent;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

a {
    text-decoration: none;
    color: var(--primary);
    touch-action: manipulation;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    touch-action: manipulation;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

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

.btn-secondary:hover {
    background: #475569;
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
    color: white;
}

.btn-google {
    background: white;
    color: #757575;
    border: 1px solid #dadce0;
}

.btn-google:hover {
    background: #f8f9fa;
    color: #5f6368;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10002;
    width: 100%;
    padding: 10px 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary);
}

.logo-img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .logo-img {
        max-height: 100px;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px 0 0 6px;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
}

.search-btn {
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-btn {
    position: relative;
    font-size: 20px;
    color: var(--dark);
}

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

.user-menu {
    position: relative;
}

.user-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 150px;
    padding: 5px 0;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 8px 15px;
    color: var(--dark);
}

.user-dropdown a:hover {
    background: var(--light);
    color: var(--primary);
}

/* Navigation */
.main-nav {
    border-top: 1px solid var(--border);
}

.main-nav ul {
    display: flex;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav li a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    font-weight: 500;
}

.main-nav li a:hover {
    color: var(--primary);
    background: var(--light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero .btn-primary {
    background: white;
    color: var(--primary);
    padding: 12px 30px;
    font-size: 16px;
}

.hero .btn-primary:hover {
    background: var(--light);
}

/* Sections */
.section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--dark);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card a {
    display: block;
    color: var(--dark);
}

.category-image {
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.category-card h3 {
    padding: 15px;
    text-align: center;
}

.category-card p {
    padding: 0 15px 15px;
    text-align: center;
    color: var(--gray);
    font-size: 14px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.compare-price {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
}

.product-card .btn {
    width: 100%;
}

/* Special Badge */
.special-card {
    position: relative;
}

.special-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.package-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid var(--primary);
}

.package-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.package-info {
    padding: 20px;
}

.package-info h3 {
    margin-bottom: 10px;
}

.package-description {
    color: var(--gray);
    margin-bottom: 15px;
}

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

.package-savings {
    color: var(--success);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Page Header */
.page-header {
    background: var(--dark);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 10px;
}

.breadcrumb {
    opacity: 0.8;
    font-size: 14px;
}

/* Cart Section */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-items {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details h3 {
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--gray);
}

.cart-item-quantity input {
    width: 60px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
}

.cart-item-total {
    font-weight: 600;
    font-size: 16px;
}

.cart-item-remove button {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
}

.cart-summary h3 {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    border-bottom: none;
    padding-top: 15px;
}

.free-shipping {
    color: var(--success);
    font-weight: 600;
}

.shipping-note {
    font-size: 12px;
    color: var(--gray);
    margin: 10px 0;
}

.cash-rounding-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 10px 0;
    padding: 8px 12px;
    background: #f0f9ff;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.cash-rounding-note i {
    margin-right: 6px;
    color: #3b82f6;
}

.cart-summary .btn {
    margin-top: 15px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 20px;
}

/* Checkout */
.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.checkout-form-section,
.checkout-summary {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.checkout-form-section h2 {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.payment-option input:checked + .payment-card {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.payment-card i {
    font-size: 24px;
    color: var(--primary);
}

.checkout-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-item-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.checkout-item-details {
    flex: 1;
}

.checkout-item-details h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.checkout-item-details p {
    font-size: 12px;
    color: var(--gray);
}

.checkout-item-price {
    font-weight: 600;
}

.checkout-totals .summary-row {
    padding: 8px 0;
}

/* Auth Section */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 40px 20px;
}

.auth-box {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 25px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

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

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--gray);
    grid-column: 1 / -1;
}

.text-center {
    text-align: center;
    margin-top: 30px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 15px;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
}

.footer-col ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-links a i {
    color: white;
    font-size: 18px;
}

.contact-info li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-info i {
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Legal Section */
.legal-section {
    background: var(--light);
    padding: 60px 20px;
}

.legal-section .section-title {
    margin-bottom: 30px;
}

.legal-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.legal-card:last-child {
    margin-bottom: 0;
}

.legal-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.legal-content {
    color: var(--dark);
    line-height: 1.8;
    font-size: 14px;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

/* About Section */
.about-section {
    background: white;
    padding: 60px 20px;
}

.about-section .section-title {
    margin-bottom: 30px;
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--dark);
    line-height: 1.8;
    font-size: 15px;
}

.about-content p {
    margin-bottom: 15px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-page-section {
    background: white;
    padding: 60px 20px;
}

.about-page-section .about-content {
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--dark);
    line-height: 1.8;
    font-size: 15px;
}

.about-page-section .about-content p {
    margin-bottom: 15px;
}

.about-page-section .about-content p:last-child {
    margin-bottom: 0;
}

.about-store-info {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.about-store-info h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 22px;
}

.about-store-info p {
    margin-bottom: 10px;
    color: var(--dark);
}

.about-store-info p:last-child {
    margin-bottom: 0;
}

/* Legal Pages */
.legal-page-section {
    background: white;
    padding: 60px 20px;
}

.legal-page-section .legal-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--dark);
    line-height: 1.8;
    font-size: 15px;
}

.legal-page-section .legal-content p {
    margin-bottom: 15px;
}

.legal-page-section .legal-content p:last-child {
    margin-bottom: 0;
}

/* Returns Page */
.returns-page-section {
    background: white;
    padding: 60px 20px;
}

.returns-page-section .returns-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--dark);
    line-height: 1.8;
    font-size: 15px;
}

.returns-page-section .returns-content p {
    margin-bottom: 15px;
}

.returns-page-section .returns-content p:last-child {
    margin-bottom: 0;
}

/* Shipping Page */
.shipping-page-section {
    background: white;
    padding: 60px 20px;
}

.shipping-page-section .shipping-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--dark);
    line-height: 1.8;
    font-size: 15px;
}

.shipping-page-section .shipping-content p {
    margin-bottom: 15px;
}

.shipping-page-section .shipping-content p:last-child {
    margin-bottom: 0;
}

/* FAQ Page */
.faq-page-section {
    background: white;
    padding: 60px 20px;
}

.faq-page-section .faq-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--dark);
    line-height: 1.8;
    font-size: 15px;
}

.faq-page-section .faq-content p {
    margin-bottom: 15px;
}

.faq-page-section .faq-content p:last-child {
    margin-bottom: 0;
}

/* Business Hours Page */
.business-hours-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.business-hours-table {
    width: 100%;
    border-collapse: collapse;
}

.business-hours-table th {
    background: var(--primary);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.business-hours-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.business-hours-table tbody tr:last-child td {
    border-bottom: none;
}

.business-hours-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.business-hours-table tbody tr:hover {
    background: #f1f5f9;
}

/* Delivery Times Page */
.delivery-times-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.delivery-option {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.delivery-option:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.delivery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.delivery-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.delivery-fee {
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.delivery-estimated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.delivery-description {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 14px;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 10px;
        position: relative;
        width: 100%;
        box-sizing: border-box;
        max-width: none;
        padding: 10px 10px 10px 10px;
        padding-top: 5px;
    }
    
    .header-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        flex: none;
        gap: 10px;
    }
    
    .header-buttons {
        order: -1;
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 12px;
        padding: 8px 0;
    }
    
    .header-buttons .btn,
    .header-buttons .cart-btn,
    .header-buttons .user-btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
        text-align: center;
    }
    
    .search-form {
        width: 100%;
        max-width: none;
        order: 0;
    }
    
    .mobile-nav-toggle {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 10004;
    }
    
    .main-nav {
        position: relative;
        width: 100%;
    }
    
    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .main-nav ul.active {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 10003;
        background: white;
        padding-top: 80px;
        overflow-y: auto;
    }
    
    .main-nav li a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border);
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero {
        padding: 30px 20px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cart-content,
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        padding: 15px 0;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .cart-item-image img {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-details {
        flex: 1;
        min-width: 150px;
    }
    
    .cart-item-quantity {
        width: auto;
    }
    
    .cart-item-quantity input {
        width: 60px;
    }
    
    .cart-item-total {
        width: 100%;
        text-align: center;
        padding: 8px 0 0;
        border-top: 1px solid var(--border);
        margin-top: 5px;
    }
    
    .cart-item-remove {
        margin-left: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .mobile-category-filter {
        display: block;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .confirmation-box {
        padding: 25px;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .order-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .checkout-item {
        flex-wrap: wrap;
    }
    
    .checkout-item-details {
        flex-basis: calc(100% - 65px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 25px 15px;
    }
    
    .hero-content h1 {
        font-size: 26px;
    }
    
    .section {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid,
    .packages-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 70px 1fr;
    }
    
    .cart-item-image img {
        width: 70px;
        height: 70px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .auth-box {
        padding: 25px 20px;
    }
    
    .auth-box h2 {
        font-size: 20px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 30px 15px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .header-buttons {
        gap: 8px;
    }
    
    .header-buttons .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
}

/* Products Page */
.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    display: block;
    padding: 8px 12px;
    color: var(--dark);
    border-radius: 4px;
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary);
    color: white;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-count {
    color: var(--gray);
}

.barcode-search {
    display: flex;
    gap: 8px;
}

.barcode-search input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    width: 200px;
}

.barcode-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.barcode-search .btn {
    padding: 8px 16px;
}

@media (max-width: 768px) {
    .products-toolbar {
        flex-wrap: wrap;
    }
    
    .barcode-search {
        width: 100%;
        margin-top: 10px;
    }
    
    .barcode-search input {
        flex: 1;
    }
}

.mobile-category-filter {
    display: none;
    margin-bottom: 20px;
}

.mobile-category-filter label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.mobile-category-filter select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-header {
    padding: 20px;
    background: var(--primary);
    color: white;
}

.service-header h3 {
    margin-bottom: 5px;
}

.service-duration {
    font-size: 14px;
    opacity: 0.9;
}

.service-body {
    padding: 20px;
}

.service-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 15px 0;
}

.service-footer {
    padding: 0 20px 20px;
}

/* Order Confirmation */
.confirmation-section {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.confirmation-box {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.confirmation-icon {
    font-size: 64px;
    color: var(--success);
    margin-bottom: 20px;
}

.confirmation-box h2 {
    margin-bottom: 10px;
}

.order-number {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.order-status {
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.order-details {
    text-align: left;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.order-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.order-totals .summary-row {
    padding: 5px 0;
}

.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.order-details-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-details-card .card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.order-details-card .card-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--dark);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--gray);
    font-size: 14px;
}

.detail-value {
    color: var(--dark);
    font-size: 14px;
    text-align: right;
}

.detail-row-total {
    border-top: 2px solid var(--border);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
}

.detail-row-total .detail-label {
    font-size: 16px;
    color: var(--dark);
}

.detail-row-total .detail-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.order-actions-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.order-items-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-items-card .card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.order-items-card .card-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--dark);
}

@media (max-width: 768px) {
    .order-details-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .order-details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Orders Page */
.orders-list {
    max-width: 800px;
    margin: 0 auto;
}

.no-orders {
    text-align: center;
    padding: 60px 20px;
}

.order-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.order-date {
    color: var(--gray);
    font-size: 14px;
}

.order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info p {
    margin-bottom: 5px;
}

.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .order-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-actions {
        width: 100%;
    }
    
    .order-actions .btn {
        flex: 1;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

/* Alert */
.alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Account Page */
.account-section {
    background: var(--light);
    padding: 60px 20px;
}

.account-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.account-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.account-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid var(--light);
}

.account-menu-item:last-child {
    border-bottom: none;
}

.account-menu-item:hover {
    background: var(--light);
    color: var(--primary);
}

.account-menu-item.active {
    background: var(--primary);
    color: white;
}

.account-menu-item i {
    width: 20px;
    text-align: center;
}

.account-content {
    min-height: 500px;
}

.account-section-content {
    display: none;
}

.account-section-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.account-section-content h2 {
    margin-bottom: 25px;
    color: var(--dark);
    font-size: 24px;
}

.account-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light);
}

.order-date {
    color: var(--gray);
    font-size: 14px;
    margin: 5px 0 0 0;
}

.order-body {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.order-body p {
    margin: 0;
    color: var(--dark);
}

.order-footer {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        position: static;
    }
    
    .order-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-body {
        flex-direction: column;
        gap: 10px;
    }
}

/* OSM Nominatim Autocomplete */
.osm-autocomplete-dropdown {
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    z-index: 9999 !important;
    font-family: inherit;
}

.osm-autocomplete-dropdown div {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--light);
    font-size: 14px;
    color: var(--dark);
    transition: background-color 0.2s;
}

.osm-autocomplete-dropdown div:hover {
    background-color: var(--light);
}

.osm-autocomplete-dropdown div:last-child {
    border-bottom: none;
}

