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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

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

/* Background Gradients */
.hero {
    background: linear-gradient(-45deg, #ff6b35, #f7931e, #ffb74d, #ff8a65);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Navigation */
nav, #navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo::before {
    content: "🐄";
    font-size: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    background: none;
    border: none;
    position: relative;
}

        .hamburger span {
            width: 25px;
            height: 3px;
            background: #333;
            margin: 3px 0;
            transition: all 0.3s ease;
            border-radius: 3px;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        /* Mobile Overlay */
        .mobile-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 999;
        }

        .mobile-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Background Gradients */
        .hero {
            background: linear-gradient(-45deg, #ff6b35, #f7931e, #ffb74d, #ff8a65);
            background-size: 400% 400%;
            animation: gradientShift 8s ease infinite;
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

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

/* Hero Section */
.hero-content {
            color: white;
            max-width: 600px;
            z-index: 2;
            position: relative;
            padding: 0 2rem;
        }

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    animation: slideInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background: #e55a2d;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.4rem;
    color: #333;
    margin-bottom: 60px;
    position: relative;
    margin: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ff6b35;
    border-radius: 2px;
}

/* Products Section */
.products {
    padding: 50px 0;
    background: #f8f9fa;
}

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

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 30px;
    text-align: center;
}

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}

.product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6b35;
}

/* Blog Section */
.blog {
    padding: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.blog-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    background: #ff6b35;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.nav-btn:hover:not(:disabled) {
    background: #e55a2d;
    transform: scale(1.1);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.blog-counter {
    color: #666;
    font-weight: bold;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
    transition: transform 0.3s ease;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    margin-left: 10px;
    margin-right: 10px;
}

.blog-image::before {
    content: '📝';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    opacity: 0.7;
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    z-index: 2;
}

.blog-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content {
    padding: 25px;
    margin-left: 10px;
    margin-right: 10px;
}

.blog-category {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #888;
}

.author {
    font-weight: 500;
}

.read-time {
    color: #ff6b35;
    font-weight: 500;
}

.read-more {
    display: inline-block;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

.blog-cta {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.view-all-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.manage-blog-btn {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: 20px;
}

.manage-blog-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.empty-blog-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 50px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.about-image {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

/* Contact Section */
.contact {
    padding: 50px 0;
    background: #f8f9fa;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.contact-info a {
    color: #ff6b35;
    text-decoration: none;
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

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

.submit-btn {
    background: #ff6b35;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Gallery/Admin Page Styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.header h1 {
    font-size: 3rem;
    color: black;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.2rem;
    color: rgba(28, 26, 26, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.login-btn, .logout-btn {
    background-color: #007bff; /* A prominent blue, consistent with other actions */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px; /* Matching the login form buttons for consistency */
    cursor: pointer;
    font-size: 1em;
    font-weight: 500; /* Make text a bit bolder */
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap; /* Prevent text from wrapping on the button */
}

.login-btn:hover, .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.logout-btn {
    background: linear-gradient(45deg, #f44336, #da190b);
}

.upload-section {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.upload-area {
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.upload-area:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.upload-area.dragover {
    border-color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.upload-text {
    font-size: 1.2rem;
    color: black;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.upload-subtext {
    color: rgba(52, 43, 43, 0.7);
    font-size: 0.9rem;
}

#fileInput {
    display: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.photo-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.photo-info {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.photo-date {
    color: #666;
    font-size: 0.9rem;
}

.delete-btn {
    background: linear-gradient(45deg, #f44336, #da190b);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.empty-gallery {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    grid-column: 1 / -1;
}

.empty-gallery h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-gallery p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Modals */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.login-modal.active {
    display: flex;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.login-form h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
}

.login-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
}

.login-form button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.login-form .cancel-btn {
    background: #ccc;
    color: #666;
}

.login-form .cancel-btn:hover {
    background: #bbb;
}

.error-message {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Utility Classes */
.hidden {
    display: none;
}

.nav-links.active {
    display: flex !important;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px;
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex; /* Add this line to make the hamburger visible on mobile */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    .about {
        padding: 60px 0;
    }

    .about-image {
        height: 250px; /* Adjust height of the cow emoji box */
        font-size: 5rem; /* Adjust emoji size */
        border-radius: 15px; /* Slightly reduce border-radius for consistency */
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-header {
        flex-direction: column;
        gap: 20px;
    }

    .manage-blog-btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .header h1 {
        font-size: 2rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .admin-badge {
        right: 80px;
    }

    .contact {
        padding: 60px 0; /* Adjust vertical padding */
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr; /* Stack columns vertically */
        gap: 40px; /* Increase gap between stacked elements */
        padding: 0 1rem; /* Add horizontal padding to prevent content touching edges */
    }
    .contact-info p {
        font-size: 0.95rem; /* Adjust text size */
        margin-bottom: 10px; /* Reduce spacing between info lines */
    }
    .about-text p {
        font-size: 1rem; /* Slightly reduce font size for readability */
        line-height: 1.7; /* Adjust line height */
    }
    .contact-form {
        padding: 25px; /* Adjust padding for the form */
        border-radius: 12px; /* Adjust border-radius */
    }
    .form-group label {
        font-size: 0.95rem; /* Adjust label font size */
    }
    .form-group input,
    .form-group textarea {
        padding: 10px 12px; /* Adjust input padding */
        font-size: 0.95rem; /* Adjust input font size */
        border-radius: 6px; /* Adjust border-radius */
    }
    .submit-btn {
        padding: 10px 25px; /* Adjust button padding */
        font-size: 0.95rem; /* Adjust button font size */
        border-radius: 20px; /* Adjust border-radius */
    }
    .photo-card img {
        height: 180px; /* Slightly smaller image height on mobile */
    }



    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}


















/* Order Section */
.order {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.order-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.order-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.order-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 1rem;
}

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

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

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

.product-rate {
    color: #ff6b35;
    font-weight: bold;
}

.order-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.order-form h3 {
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
    text-align: center;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f9f9f9;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 50px;
    appearance: none;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-group textarea[name="address"] {
    height: 120px;
}

.order-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

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


/* Additional CSS for Total Amount Field */
.total-amount-group {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.total-amount-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.total-amount-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}

.currency-symbol {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

.total-amount {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    min-width: 80px;
    text-align: left;
}

.total-note {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* Animation for total amount changes */
.total-amount {
    transition: all 0.3s ease;
}

.total-amount.updated {
    color: #ff6b35;
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .total-amount {
        font-size: 28px;
    }
    
    .currency-symbol {
        font-size: 20px;
    }
}














@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex; /* Add this line to make the hamburger visible on mobile */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    .about {
        padding: 60px 0;
    }

    .about-image {
        height: 250px; /* Adjust height of the cow emoji box */
        font-size: 5rem; /* Adjust emoji size */
        border-radius: 15px; /* Slightly reduce border-radius for consistency */
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-header {
        flex-direction: column;
        gap: 20px;
    }

    .manage-blog-btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .header h1 {
        font-size: 2rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .admin-badge {
        right: 80px;
    }

    .contact {
        padding: 60px 0; /* Adjust vertical padding */
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr; /* Stack columns vertically */
        gap: 40px; /* Increase gap between stacked elements */
        padding: 0 1rem; /* Add horizontal padding to prevent content touching edges */
    }
    .contact-info p {
        font-size: 0.95rem; /* Adjust text size */
        margin-bottom: 10px; /* Reduce spacing between info lines */
    }
    .about-text p {
        font-size: 1rem; /* Slightly reduce font size for readability */
        line-height: 1.7; /* Adjust line height */
    }
    .contact-form {
        padding: 25px; /* Adjust padding for the form */
        border-radius: 12px; /* Adjust border-radius */
    }
    .form-group label {
        font-size: 0.95rem; /* Adjust label font size */
    }
    .form-group input,
    .form-group textarea {
        padding: 10px 12px; /* Adjust input padding */
        font-size: 0.95rem; /* Adjust input font size */
        border-radius: 6px; /* Adjust border-radius */
    }
    .submit-btn {
        padding: 10px 25px; /* Adjust button padding */
        font-size: 0.95rem; /* Adjust button font size */
        border-radius: 20px; /* Adjust border-radius */
    }
    .photo-card img {
        height: 180px; /* Slightly smaller image height on mobile */
    }

    /* Order Section Mobile Styles */
    .order {
        padding: 60px 0;
    }

    .order-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 1rem;
    }

    .order-info h3 {
        font-size: 1.3rem;
    }

    .order-info p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .product-list {
        margin-top: 15px;
    }

    .product-item {
        padding: 12px;
        margin-bottom: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-rate {
        font-size: 0.85rem;
    }

    .order-form {
        padding: 25px;
        border-radius: 15px;
    }

    .order-form h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

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

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

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

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

    .form-group textarea[name="address"] {
        height: 100px;
    }

    .total-amount-group {
        padding: 15px;
        margin: 15px 0;
    }

    .total-amount-group label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .total-amount {
        font-size: 24px;
    }

    .currency-symbol {
        font-size: 18px;
    }

    .total-note {
        font-size: 11px;
    }

    .order-btn {
        padding: 15px;
        font-size: 1rem;
        border-radius: 25px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* =================================== */
/* NEW STYLES FOR PRODUCTS PAGE & CART */
/* =================================== */

/* Products Page Main Layout */
.products-page {
    padding: 120px 2rem 60px; /* Top padding to account for fixed navbar */
    background: #f8f9fa;
    min-height: 100vh;
}

.page-title {
    text-align: center;
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
}

/* Products Grid */
.products-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card-shop {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-shop:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.product-card-shop .product-image-shop {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    background: linear-gradient(135deg, #ff8a65, #ffb74d);
    color: white;
}

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

.product-info-shop .product-title-shop {
    font-size: 1.4rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-info-shop .product-desc-shop {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-info-shop .product-price-shop {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 20px;
}

.product-card-shop .btn-view-product {
    display: block;
    width: 100%;
    padding: 12px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
}

.product-card-shop .btn-view-product:hover {
    background: #e55a2d;
}

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

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

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-product-details {
    display: flex;
    gap: 30px;
}

.modal-product-image {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ff8a65, #ffb74d);
    color: white;
    font-size: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.modal-product-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}
.modal-product-info .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 15px;
}
.modal-product-info .description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}
.quantity-control label {
    font-weight: 600;
}
.quantity-control input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
}
.btn-add-to-cart {
    width: 100%;
    padding: 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.btn-add-to-cart:hover {
    background: #218838;
}

/* Cart Icon in Navbar */
.nav-cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.8rem;
    margin-left: 20px;
}
#cartCounter {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

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

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

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h2 {
    font-size: 1.5rem;
}
.cart-close-btn {
    background: none; border: none; font-size: 2rem; cursor: pointer; color: #888;
}

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

.cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}
.cart-item-img {
    width: 70px; height: 70px; font-size: 2.5rem;
    background: linear-gradient(135deg, #ff8a65, #ffb74d);
    color: white; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cart-item-info { flex-grow: 1; }
.cart-item-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.cart-item-info .price { font-size: 0.9rem; color: #666; }
.cart-item-qty { font-size: 1rem; font-weight: 500;}
.cart-item-remove { background: none; border: none; color: #ff6b6b; cursor: pointer; font-size: 1.2rem; font-weight: bold;}
.cart-empty-msg { text-align: center; color: #888; margin-top: 40px; }

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
#cartTotal {
    color: #ff6b35;
    font-weight: bold;
}
.btn-buy {
    width: 100%; padding: 15px; font-size: 1.1rem;
    background: #ff6b35; color: white; border: none;
    border-radius: 8px; cursor: pointer; font-weight: bold;
    transition: background-color 0.3s ease;
}
.btn-buy:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.btn-buy:not(:disabled):hover {
    background-color: #e55a2d;
}

/* Checkout Modal & Form */
.checkout-modal-content {
    max-width: 500px;
}
.checkout-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}
.checkout-form .form-group label {
    font-weight: 600;
}
.checkout-form .form-group input,
.checkout-form .form-group textarea {
    background-color: #f9f9f9;
}
.btn-place-order {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Responsive Styles for New Components */
@media (max-width: 768px) {
    .products-page {
        padding: 100px 1rem 40px;
    }
    .page-title {
        font-size: 2.2rem;
    }
    .page-subtitle {
        font-size: 1rem;
    }
    .products-grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .modal-product-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .modal-product-image {
        width: 150px;
        height: 150px;
        font-size: 5rem;
    }
    .quantity-control {
        justify-content: center;
    }
    .nav-cart-icon {
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .products-grid-container {
        grid-template-columns: 1fr;
    }
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    .modal-product-info h2 {
        font-size: 1.6rem;
    }
    .cart-sidebar {
        max-width: 100%;
    }
    .nav-content {
        padding: 0 1rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .logo::before {
        font-size: 28px;
    }
}