/* Global Styles */
:root {
    --primary-color: #a44b0f;
    --secondary-color: #d2691e;
    --accent-color: #ff8c00;
    --dark-color: #000000;
    --light-color: #ffffff;
    --brown-dark: #654321;
    --brown-light: #deb887;
    --orange-light: #ffa500;
    --gray-color: #f4f4f4;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

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

/* Move checkout container down by 55px */
.checkout-main .container {
    margin-top: 55px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #8a3f0d;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

/* Product Filter Styles */
.product-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 75, 15, 0.3);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(164, 75, 15, 0.3);
}

.filter-btn.active:hover {
    transform: translateY(-1px);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Header */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    gap: 1rem;
}

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

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 600;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.cart-btn {
    display: flex;
    align-items: center;
}

.cart-btn i {
    margin-right: 5px;
    font-size: 1.2rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

/* Mobile menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/biltong-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-color);
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.product-card {
    background-color: var(--light-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(164, 75, 15, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(164, 75, 15, 0.15);
    border-color: rgba(164, 75, 15, 0.2);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

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

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

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

.product-info p {
    color: #6c757d;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 18px;
    display: block;
    letter-spacing: 0.5px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.product-actions.meat-product {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.amount-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amount-selector label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
    margin-bottom: 4px;
}

.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.amount-btn {
    flex: 1;
    min-width: 70px;
    padding: 10px 14px;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amount-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(164, 75, 15, 0.25);
}

.amount-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

.amount-btn.selected {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(164, 75, 15, 0.3);
    border-color: var(--primary-color);
}

.hidden {
    display: none;
}

.add-to-cart-unified {
    width: 100%;
    margin-top: 16px;
    padding: 14px 20px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 48px;
}

.add-to-cart-unified:hover {
    background-color: #8a3f0d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(164, 75, 15, 0.3);
}

.add-to-cart-unified:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

.error-message {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-weight: 600;
    font-size: 14px;
    max-width: 350px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Success notification (default - for cart additions) */
.notification {
    background-color: #28a745;
}

.notification::before {
    content: '✓';
    margin-right: 8px;
    font-weight: bold;
    font-size: 16px;
}

/* Deletion notification (for cart removals) */
.notification:has-text("removed") {
    background-color: #dc3545;
}

.notification[data-type="delete"] {
    background-color: #dc3545;
}

.notification[data-type="delete"]::before {
    content: '🗑️';
    margin-right: 8px;
    font-weight: bold;
    font-size: 16px;
}

.custom-amount {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

/* Tumbler Product Styles - Force Override */
.product-actions.tumbler-product {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force display for all tumbler elements */
.product-card:has(.tumbler-product),
.product-card [class*="tumbler"],
.tumbler-image-gallery *,
.variant-selector *,
.variant-buttons *,
.add-tumbler-to-cart {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.variant-buttons {
    display: flex !important;
}

.product-actions.tumbler-product {
    display: flex !important;
}

.tumbler-image-gallery {
    margin-bottom: 16px !important;
    display: block !important;
    visibility: visible !important;
}



.tumbler-image-gallery .main-image {
    width: 100% !important;
    height: 200px !important;
    margin-bottom: 12px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f8f9fa !important;
    display: block !important;
}

.tumbler-image-gallery .main-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: var(--transition) !important;
    display: block !important;
}

.thumbnail-images {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.thumbnail-images .thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    object-fit: cover;
}

.thumbnail-images .thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail-images .thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(164, 75, 15, 0.2);
}

.variant-selector {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    visibility: visible !important;
}

.variant-selector label {
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    font-size: 15px !important;
    display: block !important;
}

/* Tumbler Image Gallery */
.tumbler-image-gallery {
    width: 100%;
    margin-bottom: 16px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-arrow-left {
    left: 10px;
}

.nav-arrow-right {
    right: 10px;
}

.nav-arrow svg {
    width: 20px;
    height: 20px;
}

/* Product Card Tumbler Navigation */
.tumbler-image-container {
    position: relative;
}

.tumbler-image-container .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
}

.tumbler-image-container .nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.tumbler-image-container .nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.tumbler-image-container .nav-arrow-left {
    left: 8px;
}

.tumbler-image-container .nav-arrow-right {
    right: 8px;
}

.tumbler-image-container .nav-arrow svg {
    width: 16px;
    height: 16px;
}

.nav-arrow svg {
    color: white;
}

.image-counter {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.variant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.variant-btn {
    flex: 1;
    min-width: 70px;
    padding: 10px 14px;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(164, 75, 15, 0.25);
}

.variant-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

.variant-btn.selected {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(164, 75, 15, 0.3);
    border-color: var(--primary-color);
}



.add-tumbler-to-cart {
    width: 100% !important;
    padding: 14px 20px !important;
    background-color: var(--primary-color) !important;
    color: var(--light-color) !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-height: 48px !important;
    display: block !important;
    visibility: visible !important;
}

.add-tumbler-to-cart:hover:not(:disabled) {
    background-color: #8a3f0d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(164, 75, 15, 0.3);
}

.add-tumbler-to-cart:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.delivery-info {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.delivery-info small {
    font-size: 12px;
}

/* Warning notification styles */
.notification.warning {
    background-color: #ff8c00;
    border-left: 4px solid #ff6b00;
}

.notification.warning::before {
    content: '⚠️';
    margin-right: 8px;
    font-size: 16px;
}

/* Checkout Tumbler Styles */
.tumbler-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.design-choice-section {
    margin-top: 16px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.design-choice-section h5 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.design-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.design-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.design-options label:hover {
    background-color: rgba(164, 75, 15, 0.1);
}

.design-options input[type="radio"] {
    margin: 0;
    accent-color: var(--primary-color);
}

.custom-upload {
    margin-top: 12px;
    padding: 12px;
    background-color: white;
    border: 2px dashed #ddd;
    border-radius: 6px;
    text-align: center;
}

.custom-upload input[type="file"] {
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
}

.custom-upload small {
    color: #6c757d;
    font-size: 12px;
}

.delivery-notice {
    margin-top: 12px;
    padding: 8px 12px;
    background-color: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    text-align: center;
}

.delivery-notice small {
    color: #0c5460;
    font-weight: 500;
}

/* Checkout Page Styles */
.checkout-main {
    min-height: calc(100vh - 160px);
    padding: 40px 0;
    background-color: #f8f9fa;
}

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

.checkout-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2.5rem;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

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

.checkout-form h2 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d2691e;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

/* Payment buttons */
.payment-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.payment-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-btn:hover {
    border-color: #d2691e;
    background: #fff5f2;
}

.payment-btn.active {
    border-color: #d2691e;
    background: #d2691e;
    color: white;
}

.payment-btn i {
    font-size: 1.2rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkbox group styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
    accent-color: #d2691e;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-group:hover label {
    color: #2c3e50;
}

.location-info {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    border-left: 4px solid #d2691e;
}

.location-info .info-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.location-info #location-details {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #495057;
    line-height: 1.5;
    width: 100%;
}

.location-info #location-details i {
    color: #d2691e;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.location-info #location-details > div {
    flex: 1;
}

.location-info #location-details h4 {
    margin: 0 0 8px 0;
    color: #343a40;
    font-size: 16px;
    font-weight: 600;
}

.location-info #location-details p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.location-info #location-details p:last-child {
    margin-bottom: 0;
}

.location-info.delivery-fee {
    border-left-color: #28a745;
}

.location-info.pickup-notice {
    border-left-color: #17a2b8;
}

.location-info .address-fields {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.address-fields {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #d2691e;
}

.pickup-notice,
.delivery-fee-notice {
    margin-top: 20px;
}

.notice-box {
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pickup-notice .notice-box {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    color: #1976d2;
}

.delivery-fee-notice .notice-box {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    color: #f57c00;
}

.notice-box i {
    font-size: 18px;
}

.order-summary {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.order-summary h2 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #2c3e50;
}

.item-details p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.item-total {
    font-weight: 600;
    color: #2c3e50;
}

.summary-totals {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
}

.delivery-fee-row {
    color: #f57c00;
    font-weight: 600;
}

.place-order-btn {
    width: 100%;
    background: linear-gradient(135deg, #d2691e, #cd853f);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.place-order-btn:hover {
    background: linear-gradient(135deg, #cd853f, #d2691e);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(210, 105, 30, 0.3);
}

/* Responsive Design for Checkout */
@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }
    
    .order-summary {
        position: static;
        order: -1;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        background: white;
    }
    
    .checkout-form {
        background: white;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        padding: 30px;
    }
    
    .order-summary {
        padding: 30px;
    }
    
    .checkout-container h1 {
         font-size: 2.2rem;
         text-align: center;
         margin-bottom: 30px;
         font-weight: 700;
     }
     
     .payment-buttons {
        flex-direction: column;
        gap: 16px;
    }
    
    .payment-buttons .btn {
        width: 100%;
        padding: 18px;
        font-size: 1.1rem;
        min-height: 56px;
        border-radius: 12px;
        font-weight: 600;
    }
    
    .place-order-btn {
        padding: 20px 24px;
        font-size: 1.2rem;
        min-height: 60px;
        border-radius: 12px;
        font-weight: 700;
    }
 }

/* Notification styles */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification[data-type="error"] {
    background: #f44336;
}

/* Error message styles */
.error-message {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    margin: 20px 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
    animation: slideDown 0.3s ease-out;
}

.error-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
    position: relative;
}

.error-content i {
    color: #dc3545;
    font-size: 20px;
    flex-shrink: 0;
}

.error-content p {
    margin: 0;
    color: #721c24;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}

.close-error-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.close-error-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #a71e2a;
}

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

@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .error-message {
        margin: 15px 0;
    }
    
    .error-content {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .error-content i {
        font-size: 18px;
    }
}

/* Order Complete Page Styles */
.order-complete-main {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.order-complete-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.success-icon {
    margin-bottom: 2rem;
}

.success-icon i {
    font-size: 5rem;
    color: #4CAF50;
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.order-complete-container h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

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

.btn-secondary {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-secondary:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .order-complete-container {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .order-complete-container h1 {
        font-size: 2rem;
    }
    
    .success-icon i {
        font-size: 4rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

.custom-amount label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.custom-amount-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.amount-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.amount-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(164, 75, 15, 0.1);
}



.custom-amount small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

.amount-selector small {
    color: #666;
    font-size: 12px;
}

.add-to-cart, .add-to-cart-custom {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    flex: 1;
}

.add-to-cart:hover, .add-to-cart-custom:hover {
    background-color: #8a3f0d;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-text {
    text-align: center;
    max-width: 800px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.messaging-disabled {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #6c757d;
}

.messaging-disabled h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.messaging-disabled p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-success-message {
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.contact-success-message .success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-success-message i {
    font-size: 3rem;
    color: #28a745;
}

.contact-success-message p {
    margin: 0;
    font-size: 1.2rem;
    color: #155724;
    font-weight: 500;
    line-height: 1.5;
}

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

.contact-info {
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

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

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

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    margin-right: 10px;
    color: var(--light-color);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Cart Page */
.cart-section {
    padding: 120px 0 80px;
}

.cart-title {
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background-color: var(--gray-color);
    font-weight: 600;
}

.cart-product {
    display: flex;
    align-items: center;
}

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}

.cart-quantity.regular {
    flex-direction: row;
    gap: 0;
}

.fixed-quantity {
    font-weight: bold;
    font-size: 16px;
    color: #2c5530;
}

.cart-quantity small {
    color: #666;
    font-size: 12px;
    text-align: center;
}

.quantity-btn {
    background-color: var(--gray-color);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.quantity-input {
    width: 50px;
    height: 30px;
    text-align: center;
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remove-btn {
    background-color: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-summary {
    background-color: var(--gray-color);
    padding: 30px;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    font-size: 1.1rem;
}

.cart-actions {
    margin-top: 30px;
}

.cart-actions .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.cart-actions .col-md-6 {
    flex: 1;
    min-width: 300px;
}

.cart-actions .col-md-6:first-child {
    display: flex;
    align-items: center;
}

.cart-actions .btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.cart-actions .btn:hover {
    background-color: #8a3f0d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 75, 15, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .contact {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    header .container {
        padding: 12px 20px;
    }
    
    .menu-toggle {
        display: block;
        padding: 12px;
        border-radius: 8px;
        transition: all 0.3s ease;
        background: rgba(164, 75, 15, 0.1);
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu-toggle:hover {
        background-color: rgba(164, 75, 15, 0.2);
        transform: scale(1.05);
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--light-color) 0%, #f8f9fa 100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 80px 30px 30px;
        height: 100%;
        overflow-y: auto;
        gap: 8px;
    }
    
    nav ul li {
        margin: 0;
        border-bottom: none;
    }
    
    nav ul li a {
        display: block;
        padding: 18px 20px;
        font-size: 1.2rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.8);
        margin-bottom: 8px;
        font-weight: 600;
        text-align: center;
        border: 2px solid transparent;
    }
    
    nav ul li a:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(164, 75, 15, 0.3);
        border-color: var(--primary-color);
    }
    
    .hero {
        padding: 100px 0 50px;
        min-height: 60vh;
        margin-top: 70px;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 24px;
        font-weight: 800;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 40px;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 2.4rem;
        margin-bottom: 40px;
        padding: 0 20px;
        text-align: center;
        font-weight: 700;
    }
    
    .product-filter {
        padding: 0 20px;
        gap: 12px;
        margin-bottom: 2.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 16px 24px;
        font-size: 15px;
        min-width: 100px;
        min-height: 48px;
        touch-action: manipulation;
        border-radius: 25px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .filter-btn.active {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(164, 75, 15, 0.3);
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .product-card {
        margin-bottom: 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .product-card img {
        height: 250px;
        object-fit: cover;
    }
    
    .product-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
        font-weight: 700;
    }
    
    .product-card .price {
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--primary-color);
    }
    
    .btn {
        padding: 18px 32px;
        font-size: 1.1rem;
        min-height: 52px;
        touch-action: manipulation;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(164, 75, 15, 0.3);
    }
    
    .add-to-cart, .add-to-cart-custom {
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .contact-form {
        order: 1;
        background: white;
        padding: 30px;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .contact-info {
        order: 2;
        padding: 30px;
        border-radius: 16px;
    }
    
    .form-group {
        margin-bottom: 24px;
    }
    
    .form-group label {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--primary-color);
    }
    
    .form-group input,
    .form-group textarea {
        padding: 18px;
        font-size: 16px;
        min-height: 52px;
        border-radius: 12px;
        border: 2px solid #e9ecef;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 3px rgba(164, 75, 15, 0.1);
        outline: none;
    }
    
    .cart-table {
        border: none;
        box-shadow: none;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody tr {
        display: block;
        margin-bottom: 24px;
        border: none;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        background: white;
        padding: 20px;
        transition: all 0.3s ease;
    }
    
    .cart-table tbody tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
    
    /* About and Contact Mobile Improvements */
    .about {
        padding: 50px 0;
    }
    
    .contact {
        padding: 50px 0;
    }
    
    .about-text {
        padding: 0 20px;
    }
    
    .about-text h2 {
        font-size: 2.2rem;
        margin-bottom: 24px;
        font-weight: 700;
    }
    
    .about-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    /* Footer Mobile */
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 0 20px;
    }
    
    /* Info Items Mobile */
    .info-item {
        justify-content: center;
        text-align: center;
        padding: 16px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .info-item i {
        font-size: 1.8rem;
        margin-right: 12px;
    }
    
    /* Cart Summary Mobile */
    .cart-summary {
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        background: white;
        margin-top: 24px;
    }
    
    .checkout-btn {
        border-radius: 12px;
        font-weight: 600;
        min-height: 52px;
    }
    
    .cart-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px;
        text-align: right;
        border-bottom: 1px solid #f0f0f0;
        min-height: 60px;
        font-size: 1rem;
    }
    
    .cart-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        color: var(--primary-color);
        font-size: 0.9rem;
    }
    
    .cart-product {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .cart-actions .row {
        flex-direction: column;
        gap: 24px;
    }
    
    .cart-actions .btn {
        width: 100%;
        max-width: none;
    }
    
    .cart-actions .col-md-6 {
        min-width: auto;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .competitions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    header .container {
        padding: 10px;
        flex-wrap: nowrap;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 100px 0 50px;
        min-height: 60vh;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .product-filter {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .filter-btn {
        width: 200px;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .btn {
        padding: 16px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .contact-content {
        gap: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .info-item {
        margin-bottom: 20px;
        padding: 15px;
        background-color: #f9f9f9;
        border-radius: 8px;
    }
    
    .info-item i {
        font-size: 1.2rem;
        margin-bottom: 8px;
        color: var(--primary-color);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-logo h3 {
        font-size: 1.5rem;
    }
    
    .social-icons a {
        padding: 12px;
        margin: 0 8px;
        font-size: 1.2rem;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .competitions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    nav {
        width: 90%;
    }
    
    nav ul li a {
        padding: 18px 15px;
        font-size: 1.2rem;
    }
}

/* Admin Dashboard Styles */
.admin-container {
    width: 100%;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--brown-light) 0%, #f5deb3 100%);
    min-height: 100vh;
}

/* Login Form Styles */
.login-form {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a44b0f 0%, #8a3f0d 50%, #6d3209 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.login-container h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 
        0 0 0 3px rgba(164, 75, 15, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.form-group input:hover:not(:focus) {
    border-color: #cbd5e0;
    background: white;
}

.btn-login {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

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

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(164, 75, 15, 0.3),
        0 5px 10px rgba(0, 0, 0, 0.1);
}

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

.btn-login:active {
    transform: translateY(0);
    box-shadow: 
        0 5px 15px rgba(164, 75, 15, 0.2),
        0 2px 5px rgba(0, 0, 0, 0.1);
}

.login-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    text-align: center;
    border: 1px solid #fca5a5;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Admin Dashboard Styles - Modern Minimal */
.admin-dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-color) 0%, #faf0e6 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Mobile touch optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--brown-light) 100%);
    color: var(--dark-color);
    border-bottom: 2px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(164, 75, 15, 0.1);
    position: relative;
    z-index: 1;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brown-dark);
    letter-spacing: -0.025em;
}

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

/* Notification Toggle Styles */
.notification-toggle {
    display: flex;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #fff;
}

.toggle-checkbox {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-checkbox:checked + .toggle-slider {
    background-color: #4CAF50;
}

.toggle-checkbox:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-text {
    font-weight: 500;
}

.btn-refresh {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Touch-friendly improvements */
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn-refresh:hover:not(:disabled) {
    background: #8a3f0d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-refresh:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.btn-logout {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Touch-friendly improvements */
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn-logout:hover {
    background: #dc2626;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.last-refresh {
    font-size: 12px;
    color: #6b7280;
    font-style: normal;
    font-weight: 400;
    margin-left: 16px;
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

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

.admin-main {
    padding: 0;
}

/* Admin Navigation Tabs - Enhanced */
.admin-nav {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid var(--secondary-color);
    margin-bottom: 32px;
    display: flex;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 12px 16px 0;
    gap: 8px;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* Mobile scroll improvements */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin-nav::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    padding: 16px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #dee2e6;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0;
    border-right: none;
    position: relative;
    flex-shrink: 0;
    min-width: 130px;
    white-space: nowrap;
    margin-right: 4px;
    border-radius: 12px 12px 0 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    /* Touch-friendly improvements */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.nav-tab:hover {
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(164, 75, 15, 0.2);
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d2691e 100%);
    color: white;
    border-bottom-color: var(--secondary-color);
    border-color: var(--secondary-color);
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(164, 75, 15, 0.3);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

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

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

.orders-section, .contacts-section, .stats-section {
    background: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(164, 75, 15, 0.1);
    margin: 0 0 24px 0;
    padding: 24px;
    border: 2px solid var(--brown-light);
}

.orders-table {
    width: 100%;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 1rem;
}

.orders-header h2 {
    margin: 0;
    color: var(--brown-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.orders-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--brown-light) 0%, #f5deb3 100%);
    border-radius: 6px;
    font-weight: 600;
    color: var(--brown-dark);
    border: 1px solid var(--secondary-color);
    font-size: 14px;
}







.table-header {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.8fr 1.8fr 1.2fr 1fr 1.2fr 1.2fr 1fr;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--light-color);
    padding: 12px 16px;
    border-bottom: 2px solid var(--accent-color);
    text-transform: none;
    font-size: 12px;
    letter-spacing: 0;
    font-weight: 600;
    gap: 16px;
}

.header-cell {
    font-weight: 700;
    color: var(--light-color);
    text-align: left;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.table-body {
    background: #ffffff;
    border: none;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.8fr 1.8fr 1.2fr 1fr 1.2fr 1.2fr 1fr;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    min-height: 60px;
    padding: 16px;
    gap: 16px;
    align-items: center;
    background: #ffffff;
}

.table-row:hover {
    background: rgba(255, 140, 0, 0.05);
}



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

.cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 13px;
    line-height: 1.4;
}

.date {
    font-weight: 600;
    color: var(--brown-dark);
}

.time {
    color: #666;
    font-size: 0.8rem;
}

.customer-name {
    font-weight: 600;
    color: var(--brown-dark);
}

.customer-contact {
    color: #666;
    font-size: 0.8rem;
}

.location {
    font-weight: 600;
    color: var(--brown-dark);
}

.address {
    color: #666;
    font-size: 0.8rem;
}

.items-count {
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 0.25rem;
}

.view-items-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.view-items-btn:hover {
    background: #8a3f0d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.total-amount {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.delivery-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
    font-weight: 500;
}

.total-breakdown {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.total-breakdown small {
    color: #666;
    font-size: 0.75rem;
    line-height: 1.2;
}

.payment-method {
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
}

.cash-amount {
    color: #666;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
}

.status-select {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
}

.status-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(164, 75, 15, 0.1);
}

.status-select option[value="pending"] {
    background: #fff3cd;
}

.status-select option[value="processing"] {
    background: #d1ecf1;
}

.status-select option[value="completed"] {
    background: #d4edda;
}

.status-select option[value="cancelled"] {
    background: #f8d7da;
}

.items-details {
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.items-container {
    padding: 1rem 2rem;
}

.items-container h4 {
    margin: 0 0 1rem 0;
    color: #333;
}

.items-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.special-instructions {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    border-radius: 4px;
}

.special-instructions h4 {
    margin: 0 0 10px 0;
    color: #17a2b8;
    font-size: 14px;
    font-weight: 600;
}

.special-instructions p {
    margin: 0;
    color: #495057;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.item {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #dee2e6;
}

.item-name {
    font-weight: 600;
    color: #333;
}

.item-quantity {
    color: #666;
    font-size: 0.9rem;
}

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

.no-orders, .no-contacts {
    padding: 3rem;
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}

/* Contact Messages Styles */
.contacts-table {
    width: 100%;
}

.contacts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 1rem;
}

.contacts-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.contacts-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.contacts-stats .stat {
    margin-right: 10px;
    white-space: nowrap;
}

.contacts-table .table-header {
    grid-template-columns: 1.2fr 1.5fr 2fr 3fr 1fr 1.5fr;
}

.contacts-table .table-row {
    grid-template-columns: 1.2fr 1.5fr 2fr 3fr 1fr 1.5fr;
}

.contacts-table .table-row.unread {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.message-preview {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 5px;
}

.view-message-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.view-message-btn:hover {
    background: #8a3f0d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.status-badge.unread {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.status-badge.read {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.message-details {
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.message-container {
    padding: 1rem 2rem;
}

.message-container h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 14px;
}

.message-container p {
    margin: 0;
    color: #495057;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-right: 5px;
}

.btn-primary:hover {
    background: #8a3f0d;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Daily Statistics Styles */
.stats-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stats-controls label {
    font-weight: 600;
    color: #333;
}

.stats-controls input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stats-controls input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(164, 75, 15, 0.1);
}

.stats-controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.stats-controls button:hover {
    background: #8a3f0d;
    transform: translateY(-1px);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.stats-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-selector label {
    font-weight: 500;
    color: #666;
}

.date-selector input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.date-selector .btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.date-selector .btn:hover {
    background: #8a3f0d;
}

.daily-stats-container {
    margin-top: 20px;
}

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

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

.stat-card {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.historical-stats {
    margin-top: 30px;
}

.historical-stats h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.historical-table {
    width: 100%;
}

.historical-table .table-header {
    grid-template-columns: 2fr 1fr 1.5fr;
}

.historical-table .table-row {
    grid-template-columns: 2fr 1fr 1.5fr;
}

.no-data {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Product Form Styles */
.products-container {
    background: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(164, 75, 15, 0.1);
    margin: 0 0 24px 0;
    padding: 24px;
    border: 2px solid var(--brown-light);
}

.add-product-form {
    background: var(--light-color);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    margin-bottom: 30px;
}

.add-product-form h3 {
    margin: 0 0 20px 0;
    color: var(--brown-dark);
    font-size: 1.3rem;
    font-weight: 600;
}

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

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

.add-product-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--brown-dark);
    font-size: 14px;
}

.add-product-form .form-group input,
.add-product-form .form-group select,
.add-product-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--brown-light);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--light-color);
    color: var(--dark-color);
}

.add-product-form .form-group input:focus,
.add-product-form .form-group select:focus,
.add-product-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.add-product-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.add-product-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
}

.add-product-form .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 75, 15, 0.3);
}

.products-table {
    background: var(--light-color);
    border-radius: 8px;
    border: 1px solid var(--brown-light);
    overflow: hidden;
}

.no-products {
    padding: 2rem;
    text-align: center;
    color: var(--brown-dark);
    font-style: italic;
    background: var(--light-color);
    border-radius: 8px;
    border: 1px solid var(--brown-light);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .admin-container {
        padding: 15px;
    }
}

@media (max-width: 1200px) {
    .admin-container {
        padding: 15px;
    }
    
    .admin-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-header h1 {
        font-size: 1.6rem;
    }
    
    .orders-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .admin-container {
        padding: 8px;
        min-height: 100vh;
    }
    
    /* Login Form Mobile Improvements */
    .login-form {
        padding: 1rem;
    }
    
    .login-container {
        width: 100%;
        max-width: 400px;
        padding: 2rem 1.5rem;
    }
    
    .login-container h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .login-container .form-group {
        margin-bottom: 1.5rem;
    }
    
    .login-container input {
        padding: 14px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .btn-login {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
    }
    
    /* Admin Header Mobile */
    .admin-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .admin-header h1 {
        font-size: 1.3rem;
        text-align: center;
        margin: 0;
    }
    
    .admin-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .btn-logout, .btn-refresh {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 80px;
    }
    
    /* Mobile Tab Navigation - Horizontal Scroll */
    .admin-nav {
        padding: 8px 12px 0;
        overflow-x: auto;
        overflow-y: hidden;
        flex-direction: row;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .admin-nav::-webkit-scrollbar {
        display: none;
    }
    
    .nav-tab {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 100px;
        flex-shrink: 0;
        border-radius: 8px 8px 0 0;
        white-space: nowrap;
        border-right: 2px solid #dee2e6;
        margin-right: 0;
    }
    
    .nav-tab:last-child {
        border-right: none;
    }
    
    .nav-tab.active {
        border-bottom: 3px solid var(--primary-color);
    }
    
    /* Tab Content Mobile */
    .tab-content {
        padding: 12px;
    }
    
    .orders-section, .contacts-section, .stats-section, .products-section, .competitions-section, .sales-section {
        padding: 12px;
        margin: 0;
    }
    
    /* Headers and Stats Mobile */
    .orders-header, .contacts-header, .products-header, .competitions-header, .sales-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .orders-header h2, .contacts-header h2, .products-header h2, .competitions-header h2, .sales-header h2 {
        font-size: 1.3rem;
        margin: 0;
    }
    
    .orders-stats, .contacts-stats, .products-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        width: 100%;
    }
    
    .stat {
        padding: 8px 12px;
        font-size: 12px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
/* Mobile Styles */
@media (max-width: 768px) {
    /* Mobile Table Styles - Card Layout */
    .orders-table, .products-table, .contacts-table, .competitions-table, .sales-table {
        border-radius: 8px;
        overflow: hidden;
    }
    
    .table-header {
        display: none;
    }
    
    .table-row {
        display: block;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 16px;
        background: white;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .contacts-table .table-row,
    .historical-table .table-row,
    .orders-table .table-row,
    .products-table .table-row,
    .competitions-table .table-row,
    .sales-table .table-row {
        display: block;
    }
    
    .cell {
        display: block;
        margin-bottom: 8px;
        padding-bottom: 6px;
        border-bottom: 1px solid #f0f0f0;
        word-wrap: break-word;
    }
    
    .cell:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Mobile Stats Cards */
    .daily-stats, .sales-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
        text-align: center;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .stat-card h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .stat-value {
        font-size: 1.5rem;
        font-weight: 700;
    }
    
    /* Mobile Controls */
    .stats-controls, .date-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .stats-controls input[type="date"],
    .stats-controls button,
    .date-selector input[type="date"],
    .date-selector button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border-radius: 6px;
    }
    
    /* Mobile Form Styles */
    .add-product-form, .add-competition-form {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    
    .add-product-form h3, .add-competition-form h3 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
        border-radius: 6px;
        border: 1px solid #ddd;
    }
    
    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .btn-primary {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 6px;
    }
    
    /* Mobile Button Improvements */
    .btn-small, .btn-danger {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 60px;
        margin: 2px;
    }
    
    /* Mobile Container Improvements */
    .items-container, .message-container, .products-container, .competitions-container, .daily-sales-container {
        padding: 12px;
        margin: 0;
    }
    
    .items-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Mobile No Data Messages */
    .no-orders, .no-products, .no-contacts, .no-competitions, .no-sales {
        padding: 2rem 1rem;
        text-align: center;
        font-size: 14px;
    }
    
    /* Mobile Daily Sales Table */
    .daily-sales-table {
        margin-top: 16px;
    }

    .daily-sales-table h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
}

/* Sales History Styles - High Specificity */
.sales-section .sales-history {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin-top: 32px !important;
    box-shadow: 0 8px 32px rgba(164, 75, 15, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(164, 75, 15, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
}

.sales-history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #a44b0f 0%, #ff8c00 50%, #d2691e 100%);
    box-shadow: 0 2px 8px rgba(164, 75, 15, 0.3);
}

.sales-history h4 {
    color: #2d1810;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sales-history h4::before {
    content: '📊';
    font-size: 1.4rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

#salesSection .sales-section .sales-history .sales-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    margin-top: 8px !important;
}

.sales-section .sales-history .sales-table thead {
    background: linear-gradient(135deg, #a44b0f 0%, #ff8c00 100%) !important;
    position: relative !important;
}

.sales-section .sales-history .sales-table thead::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.3) 100%) !important;
}

.sales-section .sales-history .sales-table thead th {
    color: white !important;
    font-weight: 700 !important;
    padding: 20px 24px !important;
    text-align: left !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    position: relative !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.sales-section .sales-history .sales-table thead th:first-child {
    border-top-left-radius: 12px !important;
}

.sales-section .sales-history .sales-table thead th:last-child {
    border-top-right-radius: 12px !important;
}

.sales-section .sales-history .sales-table thead th:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 20% !important;
    height: 60% !important;
    width: 1px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.1) !important;
}

.sales-section .sales-history .sales-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-bottom: 1px solid #f1f5f9 !important;
    position: relative !important;
}

.sales-section .sales-history .sales-table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%) !important;
}

.sales-section .sales-history .sales-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(164, 75, 15, 0.04) 0%, rgba(255, 140, 0, 0.06) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(164, 75, 15, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    z-index: 1 !important;
}

.sales-section .sales-history .sales-table tbody tr:last-child {
    border-bottom: none !important;
}

.sales-section .sales-history .sales-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px !important;
}

.sales-section .sales-history .sales-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px !important;
}

.sales-section .sales-history .sales-table tbody td {
    padding: 18px 24px !important;
    font-size: 15px !important;
    color: #334155 !important;
    vertical-align: middle !important;
    border: none !important;
    position: relative !important;
    font-weight: 500 !important;
}

.sales-section .sales-history .sales-table tbody td:first-child {
    font-weight: 700 !important;
    color: #1e293b !important;
    font-size: 16px !important;
    position: relative !important;
}

.sales-section .sales-history .sales-table tbody td:first-child::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 4px !important;
    background: linear-gradient(135deg, #a44b0f 0%, #ff8c00 100%) !important;
    border-radius: 0 2px 2px 0 !important;
}

.sales-section .sales-history .sales-table tbody td:nth-child(2) {
    font-weight: 700 !important;
    color: #a44b0f !important;
    font-size: 16px !important;
}

.sales-section .sales-history .sales-table tbody td:nth-child(3) {
    font-weight: 800 !important;
    color: #059669 !important;
    font-size: 17px !important;
    position: relative !important;
}

.sales-section .sales-history .sales-table tbody td:nth-child(3)::before {
    content: 'R' !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    margin-right: 2px !important;
}

.sales-section .sales-history .sales-table tbody td:nth-child(4) {
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

#noSalesHistory {
    text-align: center;
    color: #64748b;
    font-style: normal;
    padding: 60px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    margin: 16px;
    position: relative;
    overflow: hidden;
}

#noSalesHistory::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(164, 75, 15, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

#noSalesHistory td {
    border: none !important;
    font-size: 18px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

#noSalesHistory td::before {
    content: '📊';
    display: block;
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.6;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#noSalesHistory td::after {
    content: 'Load sales data to see your daily performance metrics';
    display: block;
    font-size: 14px;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 400;
}

/* Responsive Sales Table */
@media (max-width: 768px) {
    .sales-history {
        padding: 16px;
        margin-top: 16px;
    }
    
    .sales-history h4 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .sales-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .sales-table thead,
    .sales-table tbody,
    .sales-table th,
    .sales-table td,
    .sales-table tr {
        display: block;
    }
    
    .sales-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .sales-table tr {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 16px;
        background: white;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        white-space: normal;
    }
    
    .sales-table td {
        border: none;
        padding: 8px 0;
        position: relative;
        padding-left: 50% !important;
        text-align: right;
    }
    
    .sales-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--brown-dark);
        text-align: left;
    }
    
    #noSalesHistory {
        padding: 24px 16px;
    }
    
    #noSalesHistory td {
        padding-left: 0 !important;
        text-align: center;
    }
    
    #noSalesHistory td::before {
        display: none;
    }
}

/* Messages/Contacts Section Styles */
.contacts-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(164, 75, 15, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(164, 75, 15, 0.15) !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

.contacts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #d4a574);
}

.contacts-section .section-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8a3f0d 100%);
    color: white;
    padding: 24px 32px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.contacts-section .section-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.contacts-header {
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid rgba(164, 75, 15, 0.1);
}

.contacts-header h2 {
    margin: 0 0 16px 0;
    color: #2d1810;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contacts-header h2::before {
    content: '💬';
    font-size: 1.5rem;
}

.contacts-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.contacts-stats .stat {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    color: #2d1810;
    border: 1px solid rgba(164, 75, 15, 0.2);
    box-shadow: 0 2px 8px rgba(164, 75, 15, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contacts-stats .stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(164, 75, 15, 0.15);
}

.contacts-stats .stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.contacts-table {
    width: 100%;
    background: white;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

#messagesSection .message-controls {
    padding: 20px 24px !important;
    background: #fafbfc !important;
    border-bottom: 1px solid #e1e5e9 !important;
    display: flex !important;
    gap: 20px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    border-radius: 12px 12px 0 0 !important;
    margin-bottom: 0 !important;
}

#messagesSection .search-container {
    position: relative !important;
    flex: 1 !important;
    min-width: 280px !important;
    max-width: 400px !important;
}

#messagesSection .search-input {
    width: 100% !important;
    padding: 12px 16px 12px 42px !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    color: #2d3748 !important;
    font-weight: 500 !important;
}

#messagesSection .search-input:focus {
    outline: none !important;
    border-color: #a44b0f !important;
    box-shadow: 0 0 0 3px rgba(164, 75, 15, 0.08) !important;
    background: #ffffff !important;
}

#messagesSection .search-input::placeholder {
    color: #9ca3af !important;
}

#messagesSection .search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #718096 !important;
    font-size: 15px !important;
    transition: color 0.3s ease !important;
}

#messagesSection .filter-container {
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

#messagesSection .filter-select {
    padding: 10px 14px !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #2d3748 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 120px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

#messagesSection .filter-select:focus {
    outline: none !important;
    border-color: #a44b0f !important;
    box-shadow: 0 0 0 3px rgba(164, 75, 15, 0.08) !important;
}

#messagesSection .bulk-actions {
    display: flex !important;
    gap: 12px !important;
    margin-left: auto !important;
}

.bulk-actions button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.3px;
}

.bulk-actions .btn-primary {
    background: linear-gradient(135deg, #a44b0f 0%, #8a3f0d 100%) !important;
    color: white !important;
    border: 1px solid #a44b0f !important;
}

.bulk-actions .btn-primary:hover {
    background: linear-gradient(135deg, #8a3f0d 0%, #6d3209 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(164, 75, 15, 0.25) !important;
}

.bulk-actions .btn-secondary {
    background: #ffffff !important;
    color: #4a5568 !important;
    border: 1px solid #e1e5e9 !important;
}

.bulk-actions .btn-secondary:hover {
    background: #f7fafc !important;
    color: #2d3748 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-color: #cbd5e0 !important;
}

/* Quick Action Buttons */
.quick-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.quick-actions .action-btn {
    padding: 6px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.quick-actions .btn-view {
    background: #3b82f6;
    color: white;
}

.quick-actions .btn-view:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.quick-actions .btn-read {
    background: #10b981;
    color: white;
}

.quick-actions .btn-read:hover {
    background: #059669;
    transform: scale(1.05);
}

.quick-actions .btn-reply {
    background: #8b5cf6;
    color: white;
}

.quick-actions .btn-reply:hover {
    background: #7c3aed;
    transform: scale(1.05);
}

.quick-actions .btn-delete {
    background: #ef4444;
    color: white;
}

.quick-actions .btn-delete:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.contacts-table .table-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 160px 200px 250px 120px 1fr 100px 200px;
    gap: 16px;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contacts-table .table-row {
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
    display: grid;
    grid-template-columns: 160px 200px 250px 120px 1fr 100px 200px;
    gap: 16px;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
}

.contacts-table .table-row:hover {
    background: #f9fafb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contacts-table .table-row.unread {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    position: relative;
}

.contacts-table .table-row.unread::before {
    content: '●';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: #f59e0b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.contacts-table .cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contacts-table .date {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.contacts-table .time {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.contacts-table .customer-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.contacts-table .customer-contact {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.contacts-table .message-subject {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    margin-bottom: 4px;
}

.contacts-table .message-category {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    width: fit-content;
}

.category-general { background: #dbeafe; color: #1d4ed8; }
.category-support { background: #e0e7ff; color: #6366f1; }
.category-complaint { background: #fee2e2; color: #dc2626; }
.category-suggestion { background: #d1fae5; color: #059669; }
.category-order { background: #fed7aa; color: #ea580c; }

.priority-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 12px;
}

.priority-high {
    color: #dc2626;
}

.priority-medium {
    color: #d97706;
}

.priority-low {
    color: #059669;
}

.priority-high::before {
    content: '🔴';
    font-size: 0.8rem;
}

.priority-medium {
    color: #f57c00;
}

.priority-medium::before {
    content: '🟡';
    font-size: 0.8rem;
}

.priority-low {
    color: #388e3c;
}

.priority-low::before {
    content: '🟢';
    font-size: 0.8rem;
}

.message-preview {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.quick-actions .btn-small {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
    min-width: auto;
}

.no-contacts {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-content-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.7;
}

.no-contacts h3 {
    margin: 0 0 8px 0;
    color: #2d1810;
    font-size: 1.2rem;
    font-weight: 600;
}

.no-contacts p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.contacts-table .message-subject {
    font-weight: 600;
    color: #2d1810;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contacts-table .message-preview {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #dee2e6;
    font-style: italic;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-read {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b8dabd;
}

.status-read::before {
    content: '✓';
    font-weight: bold;
}

.status-unread {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
    animation: glow 2s infinite alternate;
}

.status-unread::before {
    content: '●';
    color: #ffc107;
    animation: blink 1.5s infinite;
}

@keyframes glow {
    from { box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3); }
    to { box-shadow: 0 4px 16px rgba(255, 193, 7, 0.5); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 6px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.view-message-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8a3f0d 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(164, 75, 15, 0.3);
}

.view-message-btn:hover {
    background: linear-gradient(135deg, #8a3f0d 0%, #6d3209 100%);
    box-shadow: 0 4px 16px rgba(164, 75, 15, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
}

.no-contacts {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
    background: #ffffff;
    border-radius: 8px;
    margin: 24px;
    border: 1px dashed #d1d5db;
}

.no-contacts p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.no-contacts p::before {
    content: '📭';
    font-size: 24px;
}

/* Message Modal Styles */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 24, 16, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.message-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(164, 75, 15, 0.3), 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(164, 75, 15, 0.2);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.message-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #d4a574, #ffc107);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8a3f0d 100%);
    color: white;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.message-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(100%);
    animation: shimmer 3s infinite;
}

.message-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-header h3::before {
    content: '📧';
    font-size: 1.3rem;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.message-details {
    padding: 32px;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.message-details::-webkit-scrollbar {
    width: 8px;
}

.message-details::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.message-details::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), #d4a574);
    border-radius: 4px;
}

.message-details::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8a3f0d, var(--primary-color));
}

.message-details p {
    margin: 16px 0;
    line-height: 1.6;
    color: #2d1810;
    font-size: 1rem;
    font-weight: 500;
}

.message-details .detail-row {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid rgba(164, 75, 15, 0.1);
    box-shadow: 0 2px 8px rgba(164, 75, 15, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.message-details .detail-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #d4a574);
}

.message-details .detail-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(164, 75, 15, 0.12);
    border-color: rgba(164, 75, 15, 0.2);
}

.message-details .detail-label {
    font-weight: 700;
    color: #2d1810;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-details .detail-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(164, 75, 15, 0.3), transparent);
}

.message-details .detail-value {
    color: #2d1810;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 500;
}

.message-content {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: inset 0 2px 8px rgba(164, 75, 15, 0.08);
    position: relative;
}

.message-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3rem;
    color: rgba(164, 75, 15, 0.3);
    font-family: serif;
    line-height: 1;
}

.message-text {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-top: 0;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-style: italic;
    font-size: 1.05rem;
    color: #2d1810;
    position: relative;
    z-index: 1;
}

/* Enhanced Message Modal Styles */
.detail-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h4 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    justify-content: center;
}

.message-actions button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-width: 100px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-actions .btn-primary {
    background: #3b82f6;
    color: white;
}

.message-actions .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.message-actions .btn-secondary {
    background: #6b7280;
    color: white;
}

.message-actions .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.message-actions .btn-danger {
    background: #ef4444;
    color: white;
}

.message-actions .btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.message-actions button i {
    font-size: 14px;
}

/* Competition Form Styles */
.add-competition-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    border: 1px solid #e9ecef;
}

.add-competition-form h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.competitions-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

/* Products Section Specific Styles */
.products-section .products-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 2rem;
    justify-content: flex-end;
}

.products-header {
    margin-bottom: 20px;
}

.products-header h2 {
    margin: 0;
    color: var(--brown-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Responsive Design for Messages */
@media (max-width: 768px) {
    #messagesSection .message-controls {
        padding: 16px 20px !important;
        flex-direction: column !important;
        gap: 16px !important;
        align-items: stretch !important;
    }
    
    #messagesSection .search-container {
        min-width: auto !important;
        max-width: none !important;
        order: 1 !important;
    }
    
    #messagesSection .filter-container {
        order: 2 !important;
        justify-content: space-between !important;
    }
    
    #messagesSection .filter-select {
        flex: 1 !important;
        min-width: auto !important;
    }
    
    #messagesSection .bulk-actions {
        order: 3 !important;
        margin-left: 0 !important;
        justify-content: center !important;
    }
    
    .contacts-table .table-header,
    .contacts-table .table-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contacts-table .cell {
        padding: 5px 0;
    }
    
    .contacts-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .products-stats {
        flex-direction: column;
        gap: 10px;
        justify-content: flex-end;
        align-items: flex-end;
    }
    
    .message-container {
        width: 95%;
        margin: 20px;
    }
    
    .message-details {
        padding: 15px;
    }
}

/* HEADER COMPETITION NOTICE - ENHANCED */
.header-competition-notice {
    background: linear-gradient(135deg, #ff6b35, #ff8c42, #ffb347);
    background-size: 200% 200%;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    margin-right: 1rem;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.3);
    animation: slideIn 0.6s ease-out, pulse 2s infinite, gradientShift 3s ease-in-out infinite;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: translateZ(0);
}

.header-competition-notice i {
    color: #fff;
    font-size: 1.1rem;
    animation: bounce 1.5s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header-competition-notice span {
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.header-competition-notice a {
    color: white;
    text-decoration: none;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    padding: 0.4rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.header-competition-notice a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.header-competition-notice a:hover::before {
    left: 100%;
}

.header-competition-notice a:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    transform: scale(1.08) translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.4);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* COMPETITIONS SECTION - CLEAN MODERN DESIGN - CACHE BUST 2025 */

/* TEST RULE - SHOULD MAKE COMPETITION CARDS RED */
.competitions-grid .competition-card {
    background: red !important;
    border: 5px solid yellow !important;
}
.competitions {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.competitions h2,
.competitions .section-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.competition-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.competition-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

.competition-image {
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.competition-image img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.competition-card:hover .competition-image img {
    transform: scale(1.1);
}

.competition-content {
    padding: 2rem;
}

.competition-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
}

.competition-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
    text-align: center;
}

.competition-prize {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.8rem !important;
    margin-bottom: 1.5rem !important;
    padding: 1rem 1.5rem !important;
    background: linear-gradient(135deg, #d2691e, #ff8c42) !important;
    border-radius: 15px !important;
    font-weight: 600 !important;
    color: white !important;
    font-size: 1.1rem !important;
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.3) !important;
}

.competition-prize i {
    color: #fff;
    font-size: 1.2rem;
}

.competition-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    color: #48dbfb;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(72, 219, 251, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(72, 219, 251, 0.3);
}

.competition-timer i {
    color: #48dbfb;
    font-size: 1.1rem;
}

.competition-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #d2691e, #ff8c42) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 1.5rem !important;
    border-radius: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.3) !important;
}

.competition-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(210, 105, 30, 0.4);
    background: linear-gradient(135deg, #ff8c42, #d2691e);
}

.competition-btn span {
    position: relative;
}

.no-competitions {
    text-align: center;
    padding: 5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

/* COMPETITION MODAL */
.competition-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.competition-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.competition-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.competition-modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #e9ecef;
    color: #495057;
}

.competition-modal-body {
    padding: 2rem;
}

.competition-modal-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}

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

.competition-info {
    margin-bottom: 2rem;
}

.competition-info h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #d2691e;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.competition-info p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.prize-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: white !important;
    background: linear-gradient(135deg, #d2691e, #ff8c42);
    padding: 0.8rem;
    border-radius: 8px;
    display: inline-block;
}

.rules-text {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #d2691e;
    line-height: 1.6;
    color: #495057;
}

.competition-actions {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn-primary {
    background: linear-gradient(135deg, #d2691e, #ff8c42);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b8571a, #d2691e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.3);
}

/* Edit Product Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal .modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal .modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.modal .close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal .close:hover {
    background: #e9ecef;
    color: #495057;
}

.modal .modal-body {
    padding: 2rem;
}

.modal .modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.modal .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Competition Responsive Design */
@media (max-width: 768px) {
    .modal .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }

    .modal .modal-body {
        padding: 1rem;
    }

    .modal .modal-header {
        padding: 1rem;
    }

    .modal .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal .btn-secondary,
    .modal .btn-primary {
        width: 100%;
    }
}

/* Admin Mobile Responsive Design for Small Screens */
@media (max-width: 576px) {
    .admin-container {
        padding: 4px;
    }
    
    /* Login Form Small Mobile */
    .login-container {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }
    
    .login-container h1 {
        font-size: 1.6rem;
    }
    
    /* Admin Header Small Mobile */
    .admin-header {
        padding: 8px 12px;
    }
    
    .admin-header h1 {
        font-size: 1.2rem;
    }
    
    .btn-logout, .btn-refresh {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 70px;
    }
    
    /* Navigation Tabs Small Mobile */
    .admin-nav {
        padding: 6px 8px 0;
    }
    
    .nav-tab {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 90px;
    }
    
    /* Content Areas Small Mobile */
    .tab-content {
        padding: 8px;
    }
    
    .orders-section, .contacts-section, .stats-section, .products-section, .competitions-section, .sales-section {
        padding: 8px;
    }
    
    /* Headers Small Mobile */
    .orders-header h2, .contacts-header h2, .products-header h2, .competitions-header h2, .sales-header h2 {
        font-size: 1.2rem;
    }
    
    /* Stats Small Mobile */
    .stat {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 70px;
    }
    
    /* Table Rows Small Mobile */
    .table-row {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .cell {
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
    
    .cell::before {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    /* Forms Small Mobile */
    .add-product-form, .add-competition-form {
        padding: 12px;
    }
    
    .add-product-form h3, .add-competition-form h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 15px;
    }
    
    /* Buttons Small Mobile */
    .btn-primary {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .btn-small, .btn-danger {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 50px;
    }
    
    /* Stats Cards Small Mobile */
    .stat-card {
        padding: 12px;
    }
    
    .stat-card h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    /* Controls Small Mobile */
    .stats-controls input[type="date"],
    .stats-controls button,
    .date-selector input[type="date"],
    .date-selector button {
        padding: 10px;
        font-size: 15px;
    }
    
    /* Modal Small Mobile */
    .modal .modal-content {
        margin: 0.5rem;
        max-height: 98vh;
    }
    
    .modal .modal-body {
        padding: 0.75rem;
    }
    
    .modal .modal-header {
        padding: 0.75rem;
    }
    
    .modal .modal-header h2 {
        font-size: 1.2rem;
    }
    
    /* Container Improvements Small Mobile */
    .items-container, .message-container, .products-container, .competitions-container, .daily-sales-container {
        padding: 8px;
    }
    
    /* No Data Messages Small Mobile */
    .no-orders, .no-products, .no-contacts, .no-competitions, .no-sales {
        padding: 1.5rem 0.75rem;
        font-size: 13px;
    }
}

/* Competition Responsive Design */
@media (max-width: 768px) {
    .competitions-grid {
        grid-template-columns: 1fr;
    }

    .competition-modal-content {
        margin: 1rem;
        max-height: 95vh;
    }

    .competition-modal-body {
        padding: 1rem;
    }

    .competition-modal-header {
        padding: 1rem;
    }

    .competition-modal-header h2 {
        font-size: 1.4rem;
    }

    .header-competition-notice {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-right: 0;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .header-competition-notice span {
        font-size: 0.75rem;
    }

    .header-competition-notice a {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Coupon Styles */
.coupon-group {
    margin-bottom: 1.5rem;
}

.coupon-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.coupon-input-container input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.apply-coupon-btn {
    padding: 12px 24px !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    border: 2px solid transparent !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.25px !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    min-width: 80px !important;
    outline: none !important;
}

.apply-coupon-btn:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(164, 75, 15, 0.15) !important;
}

.apply-coupon-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 4px rgba(164, 75, 15, 0.2) !important;
}

.apply-coupon-btn:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1) !important;
}

.apply-coupon-btn:disabled {
    background-color: #e0e0e0;
    color: #9e9e9e;
    border-color: transparent;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.coupon-message {
    margin-top: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    backdrop-filter: blur(10px);
}

.coupon-message.success {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 100%);
    color: #2d5a2d;
    border-left: 4px solid #4caf50;
    padding-left: 48px;
}

.coupon-message.success::before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 16px;
    color: #4caf50;
    margin-right: 8px;
}

.coupon-message.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #7f1d1d;
    border-left: 4px solid #ef4444;
    padding-left: 48px;
}

.coupon-message.error::before {
    content: "⚠";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 16px;
    color: #ef4444;
    margin-right: 8px;
}

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

.coupon-discount-row {
    color: #28a745 !important;
    font-weight: 600;
}

@media (max-width: 768px) {
    .coupon-input-container {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Image Upload Styles */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-separator {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.image-preview {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border: 2px solid #ddd;
    border-radius: 8px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-image:hover {
    background: #cc0000;
}

/* Coming Soon Status Styles */
.status-coming-soon {
    background-color: #ffc107;
    color: #856404;
}

.product-card.coming-soon {
    position: relative;
    opacity: 0.8;
}

.product-card.coming-soon::before {
    content: 'COMING SOON';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-card.coming-soon .product-actions {
    opacity: 0.5;
    pointer-events: none;
}

.product-card.coming-soon .add-to-cart,
.product-card.coming-soon .amount-btn {
    background-color: #ccc;
    cursor: not-allowed;
}

.coming-soon-btn {
    background-color: #ffc107;
    color: #856404;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    width: 100%;
    margin-bottom: 8px;
}

.coming-soon-text {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin: 0;
    font-style: italic;
}

.coming-soon-actions {
    text-align: center;
}
}