* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #b91c1c;
    --primary-dark: #991b1b;
    --primary-light: #dc2626;
    --secondary: #1e293b;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --light: #fff1f2;
    --dark: #1e293b;
    --gray: #64748b;
    --border: #fecdd3;
    --shadow: 0 4px 6px -1px rgba(185, 28, 28, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(185, 28, 28, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--secondary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

button, .btn {
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .btn-primary {
    padding: 8px 20px;
    border-radius: var(--radius);
}

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

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    color: var(--secondary);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: #334155;
}

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

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

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

.btn-success:hover {
    background: #059669;
}

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

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

.btn-danger:hover {
    background: #dc2626;
}

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

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 14px 30px;
    font-size: 16px;
}

.hero-buttons .btn-outline {
    border-color: white;
    color: white;
}

.hero-buttons .btn-outline:hover {
    background: white;
    color: var(--primary);
}

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray);
    font-size: 16px;
}

/* Featured Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

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

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

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

.product-delivery {
    font-size: 13px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
}

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

.category-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
}

.category-card h3 {
    font-size: 16px;
    color: var(--secondary);
}

/* How It Works */
.how-it-works {
    background: white;
}

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

.step-card {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.step-card p {
    color: var(--gray);
    font-size: 14px;
}

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

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

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-section p,
.footer-section li {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128c7e;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

/* Customer Dashboard */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid var(--border);
    padding: 20px;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-menu {
    margin-top: 20px;
}

.sidebar-toggle {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius);
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.sidebar-menu svg {
    width: 20px;
    height: 20px;
}

.main-content {
    flex: 1;
    padding: 30px;
}

/* Search and Filter */
.search-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.search-box svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray);
}

.filter-select {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    min-width: 150px;
    cursor: pointer;
    background: white;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

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

.cart-header h3 {
    font-size: 18px;
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove {
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
    align-self: flex-start;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.cart-total span:last-child {
    color: var(--primary);
    font-size: 22px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.cart-empty svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Product Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
    transform: scale(1);
}

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

.modal-header h2 {
    font-size: 22px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-product-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light);
}

.modal-product-image img {
    width: 100%;
    height: auto;
}

.modal-product-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-product-category {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

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

.modal-product-price .current-price {
    font-size: 28px;
}

.modal-product-price .original-price {
    font-size: 18px;
}

.modal-product-description {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.modal-product-meta {
    background: var(--light);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.modal-product-meta p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-product-meta p:last-child {
    margin-bottom: 0;
}

.modal-product-meta strong {
    color: var(--secondary);
}

.modal-product-actions {
    display: flex;
    gap: 15px;
}

.modal-product-actions .btn {
    flex: 1;
    padding: 14px;
}

/* Checkout */
.checkout-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.checkout-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 25px;
}

.checkout-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

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

.checkout-summary {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.checkout-summary-item.total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    margin-top: 15px;
}

.checkout-summary-item.total span:last-child {
    color: var(--primary);
}

/* Order Success */
.order-success {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.order-success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 40px;
}

.order-success h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.order-success p {
    color: var(--gray);
    margin-bottom: 30px;
}

.order-details {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 25px;
    text-align: left;
    margin-bottom: 30px;
}

.order-details h3 {
    margin-bottom: 15px;
}

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

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

/* Order History */
.orders-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.orders-table th,
.orders-table td {
    padding: 15px 20px;
    text-align: left;
}

.orders-table th {
    background: var(--light);
    font-weight: 600;
    font-size: 14px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table tr {
    border-bottom: 1px solid var(--border);
}

.orders-table tr:last-child {
    border-bottom: none;
}

.order-id {
    font-weight: 600;
    color: var(--primary);
}

.order-products {
    font-size: 13px;
    color: var(--gray);
}

.order-total {
    font-weight: 600;
}

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

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

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

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

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

/* Admin Dashboard */
.admin-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 30px;
}

.admin-tab {
    padding: 15px 25px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-tab:hover {
    color: var(--primary);
}

.admin-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-content {
    padding: 30px;
    background: var(--light);
    min-height: calc(100vh - 130px);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.orders {
    background: #dbeafe;
    color: #1e40af;
}

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

.stat-icon.products {
    background: #d1fae5;
    color: #065f46;
}

.stat-icon.customers {
    background: #fce7f3;
    color: #9d174d;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.stat-info p {
    color: var(--gray);
    font-size: 14px;
}

/* Admin Table */
.admin-table-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.admin-table-header h3 {
    font-size: 18px;
}

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

.admin-table th,
.admin-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--light);
    font-weight: 600;
    font-size: 13px;
    color: var(--gray);
    text-transform: uppercase;
}

.admin-table tr:hover {
    background: #f8fafc;
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .action-btn {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.admin-table .edit-btn {
    background: #dbeafe;
    color: #1e40af;
}

.admin-table .edit-btn:hover {
    background: #bfdbfe;
}

.admin-table .delete-btn {
    background: #fee2e2;
    color: #dc2626;
}

.admin-table .delete-btn:hover {
    background: #fecaca;
}

.admin-table .whatsapp-btn {
    background: #dcfce7;
    color: #16a34a;
}

.admin-table .whatsapp-btn:hover {
    background: #bbf7d0;
}

/* Form Modal */
.form-modal {
    max-width: 600px;
}

.form-modal .modal-body {
    padding: 30px;
}

/* Status Select */
.status-select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-size: 12px;
    cursor: pointer;
}

.status-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

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

.login-logo p {
    color: var(--gray);
    font-size: 14px;
    margin-top: 5px;
}

.login-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Hamburger Menu */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        padding: 15px;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .sidebar {
        position: fixed;
        left: -250px;
        z-index: 999;
        transition: left 0.3s ease;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .dashboard-layout {
        flex-direction: column;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .search-filter-bar {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .modal-product {
        grid-template-columns: 1fr;
    }
    
    .modal-product-image img {
        height: 200px;
        object-fit: cover;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-page {
        padding: 15px;
    }
    
    .order-success {
        padding: 30px 15px;
    }
    
    .order-success h1 {
        font-size: 22px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Admin responsive */
    .admin-header {
        padding: 10px 15px;
    }
    
    .admin-tabs {
        overflow-x: auto;
        padding: 0 15px;
    }
    
    .admin-tab {
        padding: 12px 15px;
        white-space: nowrap;
        font-size: 14px;
    }
    
    .admin-content {
        padding: 15px;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-card {
        padding: 15px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
    
    .orders-table {
        display: block;
        overflow-x: auto;
    }
    
    .orders-table table {
        min-width: 500px;
    }
    
    .login-card {
        padding: 25px;
    }
    
    .modal {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 15px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .section {
        padding: 40px 15px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo i {
        font-size: 20px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
