/* Global Styles */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #388E3C;
    --accent-color: #8BC34A;
    --dark-color: #2E7D32;
    --light-color: #C8E6C9;
    --text-color: #333;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none !important;
    box-shadow: none !important;
}

.btn-processing {
    background: var(--secondary-color) !important;
    pointer-events: none;
    position: relative;
    padding-left: 40px !important;
}

.btn-processing i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto;
    border-radius: 2px;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    /* reduced to fit single row */
    flex-wrap: nowrap;
    /* keep single row */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--dark-color);
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    /* do not wrap to next line */
    align-items: center;
    gap: 12px;
    /* tighter spacing between items */
    white-space: nowrap;
    /* keep labels on one line */
}

.nav-links li {
    margin-left: 12px;
    /* reduced from 30px */
}

.nav-links a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
    /* slightly smaller to fit */
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

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

/* Professional Dropdowns */
.nav-links .dropdown {
    position: relative !important;
    display: inline-block !important;
}

.nav-links .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px 0;
    gap: 5px;
}

.nav-links .dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-links .dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-links .dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 220px !important;
    background-color: var(--white) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-radius: 10px !important;
    padding: 10px 0 !important;
    z-index: 9999 !important;
    list-style: none !important;
    margin: 0 !important;
    border: 1px solid #f0f0f0 !important;
    text-align: left !important;
}

.nav-links .dropdown:hover .dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    transition: background 0.2s ease, padding-left 0.2s ease;
    position: relative;
}

.dropdown-menu a::after {
    display: none;
    /* remove underline for dropdown items */
}

.dropdown-menu a:hover {
    background-color: #f1f8f1;
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-menu a i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
}

/* User Profile Specific styles */
.profile-dropdown .dropdown-toggle {
    background-color: #f5f5f5;
    padding: 6px 15px;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.profile-dropdown .dropdown-toggle:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
}

.profile-dropdown .dropdown-toggle i.fa-user-circle {
    font-size: 1.3rem;
    margin-right: 8px;
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Translator (Navbar) */
.translator {
    position: relative;
    margin-left: 5px;
}

.translator-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #d8e8d8;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.translator-toggle i {
    font-size: 1rem;
}

.translator-toggle:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.translator .badge-leaf {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.translator .badge-leaf i {
    color: #fff;
    font-size: 0.6rem;
    line-height: 1;
}

.translator-dropdown {
    position: fixed;
    /* anchor to viewport to avoid clipping */
    right: 20px;
    top: 70px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 220px;
    max-width: 90vw;
    color: #111;
    /* readable text */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: var(--transition);
    z-index: 5000;
    /* above everything */
    pointer-events: none;
    /* prevent accidental clicks when closed */
}

.translator-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Tweak Google widget inside dropdown */
.translator-dropdown .goog-te-gadget-simple {
    border: none !important;
    background: transparent !important;
}

.translator-dropdown .goog-te-gadget img {
    display: none;
}

/* Hide Google logo/link and text, keep the language select visible */
.translator-dropdown .goog-logo-link {
    display: none !important;
}

.translator-dropdown .goog-te-gadget>span {
    display: none !important;
}

.translator-dropdown .goog-te-gadget {
    font-size: 0 !important;
}

.translator-dropdown .goog-te-gadget .goog-te-combo {
    font-size: 13px !important;
    height: 32px;
    line-height: 32px;
    width: 100%;
    min-width: 200px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111;
    display: inline-block;
    appearance: auto;
}

@media (max-width: 600px) {
    .translator-dropdown {
        right: 10px;
        top: 68px;
        min-width: 200px;
    }
}

/* Hide Google Translate top banner/toolbar and tooltips */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
.goog-te-banner,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

/* Ensure the Google language menu overlays everything */
.goog-te-menu-frame.skiptranslate {
    z-index: 999999 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
}

.goog-te-menu2 {
    max-height: 70vh !important;
    overflow-y: auto !important;
}

/* Ensure the banner iframe occupies no space (some browsers reserve height) */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    height: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    visibility: hidden !important;
}

/* Prevent body from being pushed down when banner would appear */
html,
body,
body>.skiptranslate {
    top: 0 !important;
    position: static !important;
}

/* Hide the injected container that holds the banner */
body>.skiptranslate {
    display: none !important;
}

/* Hide Google tooltip and text highlight artifacts */
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
    display: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.5s ease-in-out;
}

body.page-home {
    position: relative;
    z-index: 0;
}

body.page-shop,
body.page-disease,
body.page-soil,
body.page-about,
body.page-contact,
body.page-rating,
body.page-login {
    position: relative;
    z-index: 0;
}

body.page-shop {
    background-image: url('https://images.unsplash.com/photo-1600396543861-554c2f0b15f1?auto=format&fit=crop&w=1600&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

body.page-cart {
    background-image: url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?auto=format&fit=crop&w=1600&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

body.page-disease::before,
body.page-soil::before,
body.page-about::before,
body.page-contact::before,
body.page-rating::before,
body.page-login::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

body.page-disease::before {
    background-image: url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?auto=format&fit=crop&w=1600&q=80');
}

body.page-soil::before {
    background-image: url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?auto=format&fit=crop&w=1600&q=80');
}

body.page-about::before {
    background-image: url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=1600&q=80');
}

body.page-contact::before {
    background-image: url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6?auto=format&fit=crop&w=1600&q=80');
}

body.page-rating::before {
    background-image: url('https://images.unsplash.com/photo-1472141521881-95d0e87e2e39?auto=format&fit=crop&w=1600&q=80');
}

body.page-login::before {
    background-image: url('https://images.unsplash.com/photo-1461354464878-ad92f492a5a0?auto=format&fit=crop&w=1600&q=80');
}

body.page-disease main,
body.page-soil main,
body.page-about main,
body.page-contact main,
body.page-rating main {
    background: rgba(249, 249, 249, 0.92);
    backdrop-filter: blur(1px);
}

body.page-shop main {
    background: transparent;
    backdrop-filter: none;
}

body.page-disease main,
body.page-soil main {
    background: transparent;
    backdrop-filter: none;
}

body.page-login main {
    background: transparent;
    backdrop-filter: none;
}

body.page-disease .disease-detection {
    background: transparent;
}

body.page-soil .soil-analysis {
    background: rgba(0, 0, 0, 0.35);
}

body.page-soil .soil-analysis .section-title,
body.page-soil .soil-analysis p,
body.page-soil .soil-analysis h3,
body.page-soil .soil-analysis h4 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

body.page-soil .analysis-form,
body.page-soil .analysis-results {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-color);
}

body.page-shop .shop-header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
    padding: 100px 0 50px;
}

body.page-shop .shop-header h1 {
    font-size: 2rem;
}

body.page-shop .shop-header p {
    font-size: 1rem;
    padding: 0 20px;
}

body.page-shop .shop-content {
    background: transparent;
}

body.page-shop .shop-tools {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--shadow);
}

body.page-shop .product-card {
    background: rgba(255, 255, 255, 0.60);

    backdrop-filter: none;
}

body.page-about .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
}

body.page-contact .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
}

body.page-rating .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('https://images.unsplash.com/photo-1472141521881-95d0e87e2e39?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
}

body.page-login .auth-container {
    background: linear-gradient(rgba(76, 175, 80, 0.45), rgba(56, 142, 60, 0.45)), url('https://images.unsplash.com/photo-1461354464878-ad92f492a5a0?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
}

body.page-home .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

body.page-home .hero-bg-img {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.02);
    animation: heroBgFade 18s infinite;
    will-change: opacity;
}

body.page-home .hero-bg-img-1 {
    background-image: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1600&q=80');
    animation-delay: 0s;
}

body.page-home .hero-bg-img-2 {
    background-image: url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=1600&q=80');
    animation-delay: 3s;
}

body.page-home .hero-bg-img-3 {
    background-image: url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6?auto=format&fit=crop&w=1600&q=80');
    animation-delay: 6s;
}

body.page-home .hero-bg-img-4 {
    background-image: url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?auto=format&fit=crop&w=1600&q=80');
    animation-delay: 9s;
}

body.page-home .hero-bg-img-5 {
    background-image: url('https://images.unsplash.com/photo-1472141521881-95d0e87e2e39?auto=format&fit=crop&w=1600&q=80');
    animation-delay: 12s;
}

body.page-home .hero-bg-img-6 {
    background-image: url('https://images.unsplash.com/photo-1461354464878-ad92f492a5a0?auto=format&fit=crop&w=1600&q=80');
    animation-delay: 15s;
}

body.page-home .hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}

body.page-home .hero .container {
    position: relative;
    z-index: 2;
}

@keyframes heroBgFade {
    0% {
        opacity: 0;
    }

    4% {
        opacity: 1;
    }

    15% {
        opacity: 1;
    }

    19% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: slideDown 1s ease;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: slideUp 1s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-btns .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--accent-color);
}

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

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

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

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.product-img {
    height: 200px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 20px;
}

.product-category {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.product-rating {
    color: #FFC107;
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--dark-color);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

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

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
}

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

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Contact Page: Social Icons */
.contact .social-links a {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.contact .social-links a i {
    font-size: 18px;
    line-height: 1;
    color: inherit;
    display: inline-block;
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

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

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

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

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

.footer-column ul li a {
    color: var(--light-color);
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

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

.legal-links {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0 20px;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.4px;
    opacity: 0.85;
}

.legal-links a:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -4px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.legal-links a:hover {
    color: var(--white);
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Legal Page Enhancements */
.legal-section {
    padding: 80px 0;
    background: #fdfdfd;
}

.legal-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
    transition: var(--transition);
}

.legal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.legal-card h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark-color);
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.legal-card h2 i {
    color: var(--primary-color);
    background: #eafaea;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
}

.legal-card p,
.legal-card li {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
}

.legal-header p {
    color: #777;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding: 45px 0 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15); /* subtle contrast strip */
    margin-top: 40px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-bottom .trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-bottom .trust-badges:hover {
    opacity: 0.95;
}

.footer-bottom .trust-badges i {
    font-size: 1.6rem;
    color: var(--white);
    cursor: help;
}

.footer-bottom .made-with {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
    display: block;
    font-style: italic;
}

.footer-bottom .made-with i {
    color: #ff5e5e;
    margin: 0 5px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

/* Auth Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 80px 20px;
    background: linear-gradient(rgba(76, 175, 80, 0.8), rgba(56, 142, 60, 0.8)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
}

.auth-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.5s ease;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    font-size: 1rem;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Shop Page */
.shop-header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    padding: 140px 0 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(56, 142, 60, 0.3) 100%);
    z-index: 1;
}

.shop-header::after {
    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: pulse 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.shop-header .container {
    position: relative;
    z-index: 2;
}

.shop-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: slideDown 0.5s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
}

.shop-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.5s ease;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.shop-stats {
    animation: fadeIn 1s ease 0.3s both;
}

.shop-stats>div {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.shop-stats>div:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.shop-content {
    padding: 60px 0;
}

.shop-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    width: 300px;

}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.filter-btns {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 15px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

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

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Rating Page */
.rating-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.rating-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.rating-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.rating-stars {
    display: flex;
    /* Reverse DOM order visually so checked/hover sibling rules fill left-to-right */
    flex-direction: row-reverse;
    justify-content: center;
    margin-bottom: 30px;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 5px;
}

/* JS-driven fill state */
.rating-stars label.filled {
    color: #FFC107 !important;
}

/* Keep hover feedback as well */
.rating-stars input:checked~label,
.rating-stars label:hover,
.rating-stars label:hover~label {
    color: #FFC107;
}

.rating-stars input:checked+label {
    color: #FFC107;
}

/* Disease Detection Section */
.disease-detection {
    padding: 80px 0;
    background: var(--white);
}

.detection-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(76, 175, 80, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.upload-area p {
    margin-bottom: 20px;
}

#imagePreview {
    max-width: 100%;
    max-height: 300px;
    display: none;
    margin: 0 auto 20px;
    border-radius: 5px;
}

.results-area {
    padding: 30px;
    background: #f5f5f5;
    border-radius: 10px;
    min-height: 300px;
}

.results-area h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.disease-result {
    background: var(--white);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.disease-result h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Soil Analysis Section */
.soil-analysis {
    padding: 80px 0;
    background: var(--light-color);
}

.analysis-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

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

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.analysis-results {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
    display: none;
}

.fertilizer-suggestion {
    background: var(--white);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chatbot-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.chatbot-btn:hover {
    background: var(--dark-color);
    transform: scale(1.1);
}

.chatbot-btn i {
    font-size: 1.5rem;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
}

.bot-message {
    background: #e5e5ea;
    color: black;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.chatbot-input {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    outline: none;
}

.chatbot-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-input button:hover {
    background: var(--dark-color);
}

/* Responsive Styles */
@media (max-width: 992px) {

    .about-content,
    .detection-container {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
    }

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

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

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .shop-tools {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .search-box {
        width: 100%;
    }

    .chatbot-window {
        width: 300px;
        height: 400px;
    }

    /* Mobile Dropdowns */
    .nav-links .dropdown {
        width: 100%;
        text-align: center;
    }

    .nav-links .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #f9fdf9;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 5px;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-links .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 10px 0;
    }

    .nav-links .dropdown-menu::before {
        display: none;
    }

    .nav-links .dropdown-toggle {
        justify-content: center;
    }

    .profile-dropdown .dropdown-toggle {
        margin: 0 auto;
        width: fit-content;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .auth-form {
        padding: 30px 20px;
    }

    .rating-form {
        padding: 30px 20px;
    }

    .analysis-form {
        padding: 20px;
    }

    .chatbot-window {
        width: 280px;
        right: -20px;
    }
}

/* Loading Spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading {
    text-align: center;
    padding: 20px;
}

.loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #4CAF50;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

/* Result Styles */
.result-success,
.result-error,
.result-warning {
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

.result-success {
    background-color: #f0f9f0;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result-error {
    background-color: #fdf3f3;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.result-warning {
    background-color: #fff8e6;
    border: 1px solid #ffeeba;
    color: #856404;
}

.crop-result {
    margin-top: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.crop-result i {
    color: #4CAF50;
    font-size: 2rem;
}

/* Form Validation */
input:invalid {
    border-color: #dc3545;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease;
}

.slide-up {
    animation: slideUp 1s ease;
}

.slide-down {
    animation: slideDown 1s ease;
}

/* Page Transitions */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

/* Messages */
.messages-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    pointer-events: none;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: white;
    position: relative;
    animation: slideInRight 0.3s ease-out;
    pointer-events: auto;
    padding-right: 44px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .messages-container {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

.alert-success {
    background-color: #28a745;
}

.alert-error {
    background-color: #dc3545;
}

.alert-warning {
    background-color: #ffc107;
    color: #212529;
}

.alert-info {
    background-color: #17a2b8;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    line-height: 32px;
}

/* Cart Styles */
.cart-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

.cart-content {
    padding: 60px 0;
}

.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

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

.item-details h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.item-category {
    color: var(--secondary-color);
    font-size: 0.9em;
    margin: 5px 0;
}

.item-description {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

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

.item-quantity input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.item-total {
    font-size: 1.1em;
    color: var(--primary-color);
}

.item-actions .btn {
    padding: 8px 16px;
    font-size: 0.9em;
}

.cart-summary {
    display: flex;
    justify-content: flex-end;
}

.summary-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 350px;
}

.summary-card h3 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-row.total {
    border-top: 2px solid var(--primary-color);
    border-bottom: none;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
    padding-top: 15px;
}

.checkout-btn {
    width: 100%;
    margin: 20px 0 10px 0;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 30px;
}

/* Checkout Styles */
.checkout-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

.checkout-content {
    padding: 60px 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.order-summary,
.checkout-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.order-summary h3,
.checkout-form h3 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
}

.order-items {
    margin-bottom: 20px;
}

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

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

.item-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.item-category {
    color: var(--secondary-color);
    font-size: 0.9em;
    margin: 0;
}

.item-price {
    color: #666;
    font-size: 0.9em;
}

.order-total {
    border-top: 2px solid var(--primary-color);
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.final-total {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
}

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

.checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.checkout-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

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

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

/* Order Confirmation Styles */
.order-confirmation-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

.confirmation-icon {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 20px;
}

.order-details {
    padding: 60px 0;
}

.order-info-card,
.order-items-card,
.shipping-info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.order-info-card h3,
.order-items-card h3,
.shipping-info-card h3 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.info-row .label {
    font-weight: 600;
    color: var(--primary-color);
}

.info-row .value {
    color: #666;
}

.status-pending {
    color: #ffc107;
}

.status-confirmed {
    color: #17a2b8;
}

.status-shipped {
    color: #007bff;
}

.status-delivered {
    color: #28a745;
}

.status-cancelled {
    color: #dc3545;
}

.order-items .order-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.order-items .item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.next-steps {
    background: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    margin: 30px 0;
}

.next-steps h3 {
    text-align: center;
    margin: 0 0 30px 0;
    color: var(--primary-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.step p {
    color: #666;
    margin: 0;
}

.action-buttons {
    text-align: center;
    margin-top: 40px;
}

.action-buttons .btn {
    margin: 0 10px;
}

/* My Orders Styles */
.my-orders-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

.orders-list {
    padding: 60px 0;
}

.orders-grid {
    display: grid;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.order-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--light-color);
    border-bottom: 1px solid #eee;
}

.order-number h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.order-date {
    color: #666;
    font-size: 0.9em;
}

.order-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-shipped {
    background: #d4edda;
    color: #155724;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-items {
    padding: 20px 30px;
}

.order-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

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

.more-items {
    text-align: center;
    padding: 15px 0;
    color: #666;
    font-style: italic;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--light-color);
    border-top: 1px solid #eee;
}

.order-total {
    font-size: 1.1em;
}

.order-total span {
    color: #666;
}

.order-total strong {
    color: var(--primary-color);
}

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

.order-actions .btn {
    margin: 0;
}

.btn-cancel {
    background: #ea071e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-cancel i {
    font-size: 16px;
}

.cancelled-badge,
.delivered-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cancelled-badge {
    background: #f8d7da;
    color: #721c24;
}

.delivered-badge {
    background: #d4edda;
    color: #721c24;
}

.no-orders {
    text-align: center;
    padding: 60px 20px;
}

.no-orders-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-orders h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.no-orders p {
    color: #666;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .order-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

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

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Product Stock and Seller Badges */
.product-img {
    position: relative;
}

.stock-badge,
.seller-badge {
    position: absolute;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.stock-badge {
    top: 10px;
    left: 10px;
}

.stock-badge.out-of-stock {
    background: #dc3545;
    color: white;
}

.stock-badge.low-stock {
    background: #ffc107;
    color: #333;
}

.seller-badge {
    bottom: 10px;
    left: 10px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    backdrop-filter: blur(5px);
}

.add-to-cart i {
    margin-right: 6px;
}