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

body {
    background-color: white;
}

/* Header */
header {
    background-color: #2d3748;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 28px;
}

.banner {
    text-decoration: none;
    color: white;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #4a90e2;
}

/* Product Details Page */
.product-details-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.product-details {
    display: flex;
    gap: 40px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.product-image {
    flex: 1;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h2 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 24px;
    color: #e53e3e;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-info .description {
    font-size: 16px;
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

/* Reviews Section */
.reviews-section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reviews-section h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 20px;
}

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

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

.review-form .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.review-form .form-group textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

.reviews-list h4 {
    font-size: 20px;
    color: #2d3748;
    margin: 20px 0;
}

.review {
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}

.review p {
    margin: 5px 0;
    color: #718096;
}

.review p strong {
    color: #2d3748;
}

.review p span {
    font-size: 14px;
    color: #a0aec0;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: #4a90e2;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #357abd;
}

.btn-secondary {
    background-color: #718096;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #5a6b82;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    background-color: #2d3748;
    color: #ffffff;
}

.btn-back:hover {
    background-color: #1a202c;
}

.btn-danger {
    background-color: #e53e3e;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #c53030;
}

/* Contact Page */
.contact-page {
    padding: 20px;
}

.contact-grid {
    display: flex;
    gap: 20px;
}

.contact-form, .contact-info {
    flex: 1;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #357abd;
}

.social-links a {
    margin-right: 10px;
    color: #4a90e2;
    text-decoration: none;
}

.social-links a:hover {
    color: #357abd;
}

.map iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

.sample-product {
    margin-top: 20px;
}

/* Flash Message */
.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    background-color: #e6fffa;
    color: #2d3748;
    border: 1px solid #b2f5ea;
}

/* Login and Register Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    background: linear-gradient(135deg, #f4f7fa 0%, #e2e8f0 100%);
    padding: 20px;
}

.auth-box {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    transition: transform 0.3s ease;
}

.auth-box:hover {
    transform: translateY(-5px);
}

.auth-box h2 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

.auth-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.auth-form .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form .form-group input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.auth-form .btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

.error-message {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-link {
    margin-top: 20px;
    font-size: 14px;
    color: #718096;
}

.auth-link a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    color: #357abd;
    text-decoration: underline;
}

/* Category Page */
.category-page {
    padding: 20px;
    text-align: center;
}

.category-page h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 20px;
}

.category {
    color: #3498db;
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0;
}

/* Footer Styles */
.admin-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #34495e;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ecf0f1;
}

.copyright {
    font-size: 14px;
    color: #bdc3c7;
}



/* Content Container Styles */
.content {
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 20px;
    min-height: calc(100vh - 180px);
}

/* Content Typography */
.content h1, 
.content h2, 
.content h3, 
.content h4 {
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
}

.content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.content h2 {
    font-size: 1.75rem;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.content h3 {
    font-size: 1.5rem;
    color: #3498db;
}

.content p {
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 1.2em;
    font-size: 1rem;
}

/* Lists styling */
.content ul, 
.content ol {
    margin: 1em 0;
    padding-left: 2em;
    line-height: 1.6;
}

.content li {
    margin-bottom: 0.5em;
}

/* Info Cards */
.info-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Methods Grid */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.contact-method {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.contact-method i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content {
        padding: 15px;
        margin: 10px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* Animation for better UX */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content > * {
    animation: fadeIn 0.5s ease forwards;
}

/* Section spacing */
.content-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Code blocks or special text */
.code-block {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    overflow-x: auto;
}

/* Tables styling */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.content table th {
    background-color: #3498db;
    color: white;
    padding: 12px;
    text-align: left;
}

.content table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.content table tr:hover {
    background-color: #e8f4fc;
}

/* Contact Page Styles */
.contact-page {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-top: 20px;
}

.contact-page h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.contact-page h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #3498db;
}

.intro {
    color: #7f8c8d;
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

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

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

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

.submit-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

h2 {
    margin-left: 15px;
    margin-top: 15px;

}

.contact-info p {
    margin-bottom: 15px;
    color: #34495e;
    line-height: 1.6;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 25px 0 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-links a {
    display: inline-block;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.map {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-page {
        padding: 20px;
    }
    
    .contact-form,
    .contact-info {
        padding: 20px;
    }
}

/* Form validation styles */
input:invalid, textarea:invalid {
    border-color: #e74c3c;
}

input:valid, textarea:valid {
    border-color: #2ecc71;
}

/* Login prompt style */
.contact-form > p {
    text-align: center;
    color: #7f8c8d;
}

.contact-form > p a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.contact-form > p a:hover {
    text-decoration: underline;
}

.section {
    position: relative;
   
}

.product-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.product-grid::-webkit-scrollbar {
    display: none;
}

.product {
    min-width: 250px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.product img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.product {
    width: 250px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin: 10px;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.product h3 {
    display: flex;
    font-size: 18px;
    margin: 10px 0 5px;
    padding: 0 15px;
    color: #333;
    font-weight: 600;
}

.product p {
    padding: 0 15px;
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.product .price {
    color: #2c3e50;
    font-weight: bold;
    font-size: 16px;
    margin: 10px 0;
}

.product a {
    display: block;
    text-align: center;
    /* padding: 8px;
    margin: 10px 15px; */
    /* color: white; */
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.productName {
    color: black;

}

.product a:hover {
   
}


/* product new style */
/* Improved Product Styles */
.product {
    width: 250px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin: 10px;
    position: relative;
    cursor: pointer;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 15px;
    position: relative;
}

.product h3 {
    font-size: 16px;
    margin: 0 0 5px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product .category {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.product .price {
    color: #2c3e50;
    font-weight: bold;
    font-size: 16px;
    margin: 10px 0;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.add-to-cart {
    padding: 6px 12px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background 0.3s ease;
}

.add-to-cart:hover {
    background: #3498db;
}

.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: #ccc;
    transition: color 0.3s ease;
}

.favorite-btn:hover, .favorite-btn.active {
    color: #e74c3c;
}

.product-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


.product-actions a, 
.product-actions button {
    position: relative;
    z-index: 2;
}

.product-actions a {
    pointer-events: auto;
}

.favorite-btn.active {
    color: #e74c3c;
}

.search-results-header p {
    margin-left: 15px;

}

