/* Ayur Brahma Wellness - Mobile-First CSS */
/* Design: Warm Ayurvedic palette (Emerald #1B6B4A + Gold #D4AF37) */

:root {
    --primary-green: #1B6B4A;
    --primary-gold: #D4AF37;
    --light-green: #E8F3EF;
    --dark-text: #1a1a1a;
    --light-text: #666;
    --border: #e0e0e0;
    --success: #4CAF50;
    --error: #f44336;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f9f9f9;
    color: var(--dark-text);
    line-height: 1.6;
}

/* ============ HEADER ============ */
.header {
    background: var(--primary-green);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

.header-title {
    font-size: 1.25rem;
    flex: 1;
    text-align: center;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.back-btn:hover {
    opacity: 0.8;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: white;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-gold);
    color: var(--primary-green);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2d8659 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* ============ FILTERS ============ */
.filters {
    padding: 1rem;
    background: white;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border);
    background: white;
    color: var(--dark-text);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
}

.filter-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.filter-btn:hover {
    border-color: var(--primary-green);
}

/* ============ PRODUCTS GRID ============ */
.products-section {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

@media (min-width: 600px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .products-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: var(--light-green);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.video-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    flex-grow: 1;
}

.category-tag {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-bottom: 0.6rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.8rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-view {
    flex: 1;
    padding: 0.6rem 0.8rem;
    background: var(--light-green);
    color: var(--primary-green);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

.btn-cart {
    padding: 0.6rem 1rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cart:hover, .btn-view:hover {
    opacity: 0.9;
}

/* ============ PRODUCT DETAIL ============ */
.product-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.image-gallery {
    margin-bottom: 2rem;
}

.main-image {
    width: 100%;
    background: var(--light-green);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-green);
}

.thumbnail:hover {
    opacity: 1;
}

.product-header {
    margin-bottom: 1rem;
}

.product-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-badge {
    display: inline-block;
    background: var(--light-green);
    color: var(--primary-green);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-price-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-green);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.in-stock {
    color: var(--success);
    font-weight: 600;
}

.out-of-stock {
    color: var(--error);
    font-weight: 600;
}

.description-section,
.usage-section,
.video-section {
    margin-bottom: 1.5rem;
}

.description-section h3,
.usage-section h3,
.video-section h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-green);
}

.description-text,
.usage-text {
    line-height: 1.8;
    color: var(--light-text);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============ ADD TO CART SECTION (Sticky) ============ */
.add-to-cart-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    z-index: 50;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

@media (min-width: 600px) {
    .add-to-cart-section {
        position: static;
        margin-top: 1.5rem;
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: white;
}

.qty-btn {
    background: white;
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--light-green);
}

.quantity-selector input {
    border: none;
    text-align: center;
    width: 40px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-add-to-cart {
    flex: 1;
    padding: 0.8rem 1.5rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-to-cart:hover {
    opacity: 0.9;
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-icon-large {
    font-size: 1.3rem;
}

/* ============ RELATED PRODUCTS ============ */
.related-section {
    margin-top: 3rem;
    padding: 2rem 1rem;
    background: var(--light-green);
}

.related-section h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-card {
    background: white;
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
    transition: var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow);
}

.related-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.related-card h4 {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.related-card .price {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.btn-small {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-small:hover {
    opacity: 0.9;
}

/* ============ CART PAGE ============ */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-cart h2 {
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.cart-items {
    margin-bottom: 2rem;
}

.items-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.cart-item.slide-out {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-details h3 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.item-category {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-bottom: 0.4rem;
}

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

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.qty-adjust {
    background: white;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.qty-adjust:hover {
    background: var(--light-green);
}

.qty-value {
    width: 30px;
    text-align: center;
    font-weight: 600;
}

.total-price {
    font-weight: 700;
    color: var(--dark-text);
}

.remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.remove-btn:hover {
    color: var(--error);
}

/* ============ PROMO SECTION ============ */
.promo-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.promo-input {
    flex: 1;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-promo {
    padding: 0.7rem 1.5rem;
    background: var(--light-green);
    color: var(--primary-green);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ============ ORDER SUMMARY ============ */
.order-summary,
.order-summary-checkout {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.order-summary h2,
.order-summary-checkout h2 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.summary-row.total {
    border: none;
    padding: 1rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* ============ CHECKOUT PAGE ============ */
.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .checkout-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

.checkout-form-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.checkout-form-section h2 {
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

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

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

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: var(--light-text);
    font-size: 0.8rem;
}

/* ============ BUTTONS ============ */
.btn-primary,
.btn-checkout,
.btn-pay-razorpay {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover,
.btn-checkout:hover,
.btn-pay-razorpay:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--light-green);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

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

/* ============ ORDER SUCCESS/FAILED ============ */
.success-container,
.failed-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
}

.success-content,
.failed-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

.success-box,
.failed-box {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.failed-icon {
    font-size: 4rem;
    color: var(--error);
    margin-bottom: 1rem;
}

.success-box h1,
.failed-box h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.success-box p,
.failed-box p {
    color: var(--light-text);
}

.order-details,
.delivery-details {
    background: var(--light-green);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.order-details h2,
.delivery-details h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

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

.label {
    font-weight: 600;
}

.value {
    text-align: right;
}

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

.status-failed {
    color: var(--error);
    font-weight: 600;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--primary-green);
    color: white;
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h4 {
    margin-bottom: 0.8rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============ TOAST NOTIFICATION ============ */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
}

/* ============ ADMIN STYLES ============ */
.admin-header {
    background: var(--primary-green);
    color: white;
    padding: 1rem;
}

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

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

.admin-nav {
    background: var(--primary-green);
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-link {
    flex: 0 0 auto;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-link.active {
    border-bottom-color: var(--primary-gold);
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

.nav-link:hover {
    opacity: 1;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.admin-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* ============ STATS GRID ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.stat-info p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* ============ QUICK ACTIONS ============ */
.quick-actions {
    margin-bottom: 2rem;
}

.quick-actions h2 {
    margin-bottom: 1rem;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-btn {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.action-btn span {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.action-btn p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
}

/* ============ ADMIN TABLES ============ */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table thead {
    background: var(--primary-green);
    color: white;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-table tbody tr:hover {
    background: var(--light-green);
}

/* ============ ADMIN FORMS ============ */
.settings-form,
.product-form {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.settings-section {
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.settings-section legend {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    padding: 0 0.5rem;
    margin-bottom: 1rem;
}

/* ============ STATUS BADGES ============ */
.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-placed,
.status-processing {
    background: #e3f2fd;
    color: #1976d2;
}

.status-shipped {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-delivered,
.status-success {
    background: #e8f5e9;
    color: #388e3c;
}

.status-cancelled,
.status-failed {
    background: #ffebee;
    color: #c62828;
}

.status-active {
    background: #e8f5e9;
    color: #388e3c;
}

.status-inactive {
    background: #f5f5f5;
    color: #666;
}

/* ============ LOGIN PAGE ============ */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-green) 0%, #2d8659 100%);
    padding: 1rem;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.login-box h2 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.btn-login {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-login:hover {
    opacity: 0.9;
}

.login-help {
    text-align: center;
    color: var(--light-text);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ============ ALERTS ============ */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background: #e8f5e9;
    color: #388e3c;
    border-left: 4px solid #388e3c;
}

/* ============ RESPONSIVE ADJUSTMENTS ============ */
@media (max-width: 599px) {
    .header-container {
        flex-wrap: wrap;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .product-card {
        min-width: 0;
    }

    .add-to-cart-section {
        padding: 0.8rem;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .checkout-content {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.9rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.7rem;
    }
}

/* ============ UTILITY CLASSES ============ */
.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-actions,
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

@media (min-width: 600px) {
    .form-actions,
    .action-buttons {
        flex-direction: row;
    }
}

.btn-save {
    background: var(--success);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-save:hover {
    opacity: 0.9;
}

.btn-cancel,
.btn-back {
    background: var(--light-green);
    color: var(--primary-green);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-cancel:hover,
.btn-back:hover {
    background: var(--primary-green);
    color: white;
}

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

.btn-danger:hover {
    opacity: 0.9;
}

.form-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--light-text);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.step {
    background: var(--light-green);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.step-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.help-section {
    background: var(--light-green);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.help-section h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.help-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.help-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.help-content a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.help-content a:hover {
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--dark-text);
    transition: var(--transition);
}

.page-link.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.page-link:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.order-items-list {
    background: white;
    border-radius: 4px;
}

.item-line {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.item-line:last-child {
    border: none;
}

.recent-orders {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.recent-orders h2 {
    margin-bottom: 1.5rem;
}

/* Print styles */
@media print {
    .header,
    .admin-nav,
    .btn-primary,
    .btn-checkout,
    .action-buttons {
        display: none !important;
    }
}
