* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.cart-nav-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    width: 22px;
    height: 22px;
    padding: 0;
    display: none;
    place-items: center;
    border-radius: 999px;
    background: #ff6b6b;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    box-sizing: border-box;
    transform: translateY(1px);
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.auth-btn {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}

.admin-link {
    background: #ff6b6b;
}

.user-info {
    color: white;
    font-weight: bold;
}

/* SECTIONS */
.section {
    display: none;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HOME SECTION */
.home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-content h1 {
    font-size: 3rem;
    color: #2d5016;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.4);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-box {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: 0 20px 40px rgba(45, 80, 22, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* FEATURES SECTION */
.features-section {
    margin-top: 3rem;
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #2d5016;
    margin-bottom: 0.5rem;
}

/* SECTION HEADER */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* ACCESSORIES SECTION */
.accessories-container {
    margin-bottom: 3rem;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

#searchBox, #categoryFilter {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#searchBox {
    flex: 1;
}

#searchBox:focus, #categoryFilter:focus {
    outline: none;
    border-color: #2d5016;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-category {
    display: inline-block;
    background: #e8f5e9;
    color: #2d5016;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    color: #2d5016;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions button {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-buy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-buy:hover {
    transform: scale(1.05);
}

.btn-delete {
    background: #ff6b6b;
    color: white;
}

.btn-delete:hover {
    background: #ff5252;
}

/* ADD PRODUCT FORM */
.add-product-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.add-product-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input, .form-group select {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #2d5016;
}

textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* SUPPORT SECTION */
.support-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.support-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.info-card h3 {
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.support-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.support-form h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.support-form button {
    width: 100%;
}

/* TICKETS SECTION */
.tickets-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ticket-item {
    border-left: 4px solid #2d5016;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ticket-subject {
    font-weight: bold;
    color: #333;
}

.ticket-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background: #e8f5e9;
    color: #2d5016;
}

.ticket-message {
    color: #666;
    margin: 0.5rem 0;
}

.ticket-date {
    font-size: 0.8rem;
    color: #999;
}

/* ADMIN SECTION */
.admin-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-container h2 {
    margin-bottom: 2rem;
    color: #333;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.admin-tab-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-tab-btn.active {
    color: #2d5016;
    border-bottom-color: #2d5016;
}

.admin-tab-content {
    animation: fadeIn 0.3s ease-in;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.stat-card h4 {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.list-section {
    margin-top: 1rem;
}

.list-item {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #2d5016;
}

.admin-ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.admin-ticket-content {
    flex: 1;
}

.admin-ticket-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    min-width: 150px;
}

.btn-delete-ticket {
    padding: 0.55rem 0.9rem;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}

.btn-delete-ticket:hover {
    background: #ff5252;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.auth-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.auth-form input {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: #2d5016;
}

.auth-form button {
    width: 100%;
}

.auth-form p {
    text-align: center;
    color: #666;
}

.auth-form a {
    color: #2d5016;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* NOTIFICATION */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 2rem;
    background: #2d5016;
    color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    min-width: 250px;
    text-align: center;
    display: none;
    animation: slideIn 0.3s ease-in;
}

.notification.show {
    display: block;
}

.notification.success {
    background: #51cf66;
}

.notification.error {
    background: #ff6b6b;
}

.notification.warning {
    background: #ffd43b;
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* FOOTER */
footer {
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* DELIVERY SECTION */
.delivery-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.delivery-section h2 {
    text-align: center;
    color: #2d5016;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.delivery-card {
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 100%);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.delivery-badge {
    color: #f4d03f;
    font-weight: bold;
    font-size: 1rem;
}

/* TIMINGS SECTION */
.timings-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.timing-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #2d5016;
}

.timing-box h3 {
    color: #2d5016;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timing-box p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* ADMIN MANAGEMENT */
.admin-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.create-admin-form, .existing-admins {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.create-admin-form h4, .existing-admins h4 {
    color: #2d5016;
    margin-bottom: 1.5rem;
}

.create-admin-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.create-admin-form input {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.create-admin-form input:focus {
    outline: none;
    border-color: #2d5016;
}

.admin-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.admin-hint:hover {
    color: #2d5016;
}

/* PRODUCT MODAL STYLES */
.product-modal-content .form-group input, .product-modal-content .form-group select {
    width: 100%; /* Ensure full width within the modal form group */
}

.btn-add-product {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-add-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.4);
}

.btn-edit {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    transform: scale(1.05);
}

/* CONTACT SUPPORT SECTION */
.support-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #2d5016;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #2d5016;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.contact-card p {
    color: #666;
    margin: 0.5rem 0;
}

.contact-card strong {
    color: #333;
    font-size: 1.1rem;
}

.delivery-areas {
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
}

.delivery-areas h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.area-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    border: 2px solid white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.area-badge:hover {
    background: white;
    color: #2d5016;
}

.support-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.support-form-container h3 {
    color: #2d5016;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.support-form-container .form-group {
    display: block;
    margin-bottom: 1.2rem;
}

.support-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.support-form-container input,
.support-form-container select,
.support-form-container textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.support-form-container input:focus,
.support-form-container select:focus,
.support-form-container textarea:focus {
    outline: none;
    border-color: #2d5016;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.support-tickets-list {
    display: grid;
    gap: 1rem;
}

.support-ticket {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.support-ticket:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.support-ticket h4 {
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.support-ticket p {
    color: #666;
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.support-ticket .ticket-status {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: #2d5016;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .support-container {
        grid-template-columns: 1fr;
    }

    .form-group {
        grid-template-columns: 1fr;
    }

    .hero-box {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .admin-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .admin-ticket-row {
        flex-direction: column;
    }

    .admin-ticket-actions {
        width: 100%;
        min-width: 0;
    }
}
