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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f5ed;
    color: #17351f;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

body.darkMode {
    background: #101712;
    color: #f4f4ef;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #228b22;
    z-index: 9999;
    transition: width 0.5s ease, opacity 0.5s ease;
}

.siteHeader {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #dddddd;
    z-index: 1000;
}

.darkMode .siteHeader {
    background: #162019;
    border-bottom-color: #29382e;
}

.mainNavigation {
    width: 92%;
    max-width: 1250px;
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brandLogo {
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #17351f;
    white-space: nowrap;
}

.brandLogo span {
    color: #228b22;
}

.darkMode .brandLogo {
    color: #ffffff;
}

.navigationLinks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.navigationLinks a {
    position: relative;
    font-size: 15px;
    font-weight: 700;
    color: #26332a;
    transition: color 0.25s ease;
}

.navigationLinks a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: #228b22;
    transition: width 0.25s ease;
}

.navigationLinks a:hover {
    color: #228b22;
}

.navigationLinks a:hover::after {
    width: 100%;
}

.navigationLinks .activeLink {
    color: #228b22;
}

.navigationLinks .activeLink::after {
    width: 100%;
}

.darkMode .navigationLinks a {
    color: #e9eee9;
}

.darkMode .navigationLinks a:hover,
.darkMode .navigationLinks .activeLink {
    color: #7acb7a;
}

.navigationActions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.themeToggle {
    width: 40px;
    height: 40px;
    border: 1px solid #cccccc;
    border-radius: 50%;
    background: #ffffff;
    color: #17351f;
    cursor: pointer;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.themeToggle:hover {
    border-color: #228b22;
    color: #228b22;
}

.darkMode .themeToggle {
    background: #202d24;
    border-color: #455449;
    color: #ffffff;
}

.desktopProfileLink {
    width: 40px;
    height: 40px;
    border: 1px solid #cccccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: #17351f;
    transition: 0.25s ease;
}

.desktopProfileLink:hover {
    border-color: #228b22;
    color: #228b22;
}

.darkMode .desktopProfileLink {
    border-color: #455449;
    color: #ffffff;
}

.desktopCartLink {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 19px;
    color: #17351f;
    transition: 0.25s ease;
}

.desktopCartLink:hover {
    color: #228b22;
}

.darkMode .desktopCartLink {
    color: #ffffff;
}

.desktopCartLink span {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 20px;
    background: #228b22;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loginLink {
    font-size: 15px;
    font-weight: 700;
    color: #17351f;
    transition: color 0.25s ease;
}

.loginLink:hover {
    color: #228b22;
}

.darkMode .loginLink {
    color: #ffffff;
}

.signupButton {
    padding: 11px 19px;
    border-radius: 7px;
    background: #17351f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s ease;
}

.signupButton:hover {
    background: #228b22;
}

.mobileMenuButton {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    background: #ffffff;
    cursor: pointer;
    padding: 9px;
}

.mobileMenuButton span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #17351f;
}

.darkMode .mobileMenuButton {
    background: #202d24;
    border-color: #455449;
}

.darkMode .mobileMenuButton span {
    background: #ffffff;
}

.closeMenuButton {
    display: none;
}

.mobileProfileLink,
.mobileCartLink,
.mobileLogoutLink {
    display: none;
}

.cartHero {
    min-height: 380px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(10, 31, 17, 0.62), rgba(10, 31, 17, 0.62)), url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1800&q=85");
    background-position: center;
    background-size: cover;
}

.cartHeroContent {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
    color: #ffffff;
}

.sectionEyebrow {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #228b22;
}

.cartHero .sectionEyebrow {
    color: #ffffff;
}

.cartHero h1 {
    max-width: 700px;
    margin-bottom: 18px;
    font-size: 55px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.cartHero p:last-child {
    max-width: 650px;
    font-size: 19px;
    line-height: 1.7;
    color: #f1f1f1;
}

.cartSection {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 85px 0;
}

.cartTop {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.cartTop h2 {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    color: #17351f;
}

.darkMode .cartTop h2 {
    color: #ffffff;
}

.continueShoppingButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 21px;
    border: 1px solid #17351f;
    border-radius: 7px;
    background: transparent;
    color: #17351f;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s ease;
}

.continueShoppingButton:hover {
    background: #17351f;
    color: #ffffff;
}

.darkMode .continueShoppingButton {
    border-color: #ffffff;
    color: #ffffff;
}

.darkMode .continueShoppingButton:hover {
    background: #ffffff;
    color: #17351f;
}

.cartLayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 35px;
}

.cartItemsArea {
    min-width: 0;
}

.cartItems {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cartItem {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 12px;
}

.darkMode .cartItem {
    background: #18231c;
    border-color: #304035;
}

.cartItemImage {
    width: 170px;
    height: 145px;
    border-radius: 9px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.agroImageOne {
    background-image: url("https://images.unsplash.com/photo-1551754655-cd27e38d2076?auto=format&fit=crop&w=900&q=80");
}

.agroImageTwo {
    background-image: url("https://images.unsplash.com/photo-1592841200221-a6898f307baa?auto=format&fit=crop&w=900&q=80");
}

.agroImageThree {
    background-image: url("https://images.unsplash.com/photo-1628352081506-83c43123ed6d?auto=format&fit=crop&w=900&q=80");
}

.agroImageFour {
    background-image: url("https://images.unsplash.com/photo-1589923188900-85dae523342b?auto=format&fit=crop&w=900&q=80");
}

.agroImageFive {
    background-image: url("https://images.unsplash.com/photo-1592982537447-6f2a6a0a9f1b?auto=format&fit=crop&w=900&q=80");
}

.agroImageSix {
    background-image: url("https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=900&q=80");
}

.agroImageSeven {
    background-image: url("https://images.unsplash.com/photo-1588250677789-4f5f4f4f8d7a?auto=format&fit=crop&w=900&q=80");
}

.agroImageEight {
    background-image: url("https://images.unsplash.com/photo-1592398855677-efb0f7f5f1a4?auto=format&fit=crop&w=900&q=80");
}

.cartItemContent {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cartItemLocation {
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #228b22;
}

.cartItemName {
    margin-bottom: 6px;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 800;
    color: #17351f;
}

.darkMode .cartItemName {
    color: #ffffff;
}

.cartItemSeller {
    margin-bottom: 13px;
    font-size: 14px;
    color: #333333;
}

.darkMode .cartItemSeller {
    color: #d7ddd8;
}

.cartItemBottom {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.cartItemPrice {
    font-size: 19px;
    font-weight: 800;
    color: #17351f;
}

.darkMode .cartItemPrice {
    color: #ffffff;
}

.cartItemPrice span {
    font-size: 13px;
    font-weight: 600;
    color: #444444;
}

.darkMode .cartItemPrice span {
    color: #cbd2cc;
}

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

.quantityControl {
    display: flex;
    align-items: center;
    border: 1px solid #cccccc;
    border-radius: 7px;
    overflow: hidden;
}

.darkMode .quantityControl {
    border-color: #455449;
}

.quantityButton {
    width: 34px;
    height: 34px;
    border: 0;
    background: #f3f3ef;
    color: #17351f;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s ease;
}

.quantityButton:hover {
    background: #228b22;
    color: #ffffff;
}

.darkMode .quantityButton {
    background: #26342b;
    color: #ffffff;
}

.quantityValue {
    min-width: 35px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

.removeButton {
    border: 0;
    background: transparent;
    color: #7a1d1d;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 5px;
}

.removeButton:hover {
    color: #b00000;
    text-decoration: underline;
}

.darkMode .removeButton {
    color: #ff9c9c;
}

.cartSummary {
    position: sticky;
    top: 105px;
    padding: 28px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    background: #ffffff;
}

.darkMode .cartSummary {
    background: #18231c;
    border-color: #304035;
}

.summaryHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 20px;
}

.summaryHeader h3 {
    font-size: 22px;
    font-weight: 800;
    color: #17351f;
}

.darkMode .summaryHeader h3 {
    color: #ffffff;
}

.summaryHeader span {
    font-size: 13px;
    font-weight: 700;
    color: #444444;
}

.darkMode .summaryHeader span {
    color: #d4dbd5;
}

.summaryRows {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summaryRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 15px;
    color: #333333;
}

.darkMode .summaryRow {
    color: #e0e5e0;
}

.summaryRow strong {
    color: #17351f;
    font-size: 15px;
}

.darkMode .summaryRow strong {
    color: #ffffff;
}

.summaryDivider {
    width: 100%;
    height: 1px;
    margin: 23px 0;
    background: #dddddd;
}

.darkMode .summaryDivider {
    background: #354339;
}

.summaryTotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.summaryTotal span {
    font-size: 17px;
    font-weight: 800;
    color: #17351f;
}

.summaryTotal strong {
    font-size: 25px;
    font-weight: 800;
    color: #17351f;
}

.darkMode .summaryTotal span,
.darkMode .summaryTotal strong {
    color: #ffffff;
}

.checkoutButton {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 7px;
    background: #17351f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.checkoutButton:hover {
    background: #228b22;
}

.checkoutNotice {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    color: #444444;
}

.darkMode .checkoutNotice {
    color: #d4dbd5;
}

.emptyCart {
    padding: 65px 30px;
    border: 1px dashed #bdbdbd;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
}

.darkMode .emptyCart {
    background: #18231c;
    border-color: #455449;
}

.emptyCartIcon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #edf4ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.darkMode .emptyCartIcon {
    background: #26342b;
}

.emptyCart h3 {
    margin-bottom: 10px;
    font-size: 25px;
    font-weight: 800;
    color: #17351f;
}

.darkMode .emptyCart h3 {
    color: #ffffff;
}

.emptyCart p {
    max-width: 500px;
    margin: 0 auto 25px;
    font-size: 15px;
    line-height: 1.7;
    color: #333333;
}

.darkMode .emptyCart p {
    color: #d8ded9;
}

.primaryButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 7px;
    background: #17351f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    transition: 0.25s ease;
}

.primaryButton:hover {
    background: #228b22;
}

.cartTrust {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto 85px;
    padding: 45px;
    border-radius: 12px;
    background: #17351f;
    color: #ffffff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.trustItem {
    display: flex;
    align-items: flex-start;
    gap: 17px;
}

.trustNumber {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    color: #7acb7a;
}

.trustItem h3 {
    margin-bottom: 7px;
    font-size: 17px;
    font-weight: 800;
}

.trustItem p {
    font-size: 14px;
    line-height: 1.65;
    color: #e3e9e4;
}

.siteFooter {
    background: #102317;
    color: #ffffff;
}

.darkMode .siteFooter {
    background: #0a100c;
}

.footerMain {
    width: 92%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 70px 0 55px;
    display: grid;
    grid-template-columns: 1.7fr repeat(4, 1fr);
    gap: 45px;
}

.footerBrand {
    max-width: 330px;
}

.footerLogo {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 29px;
    font-weight: 800;
}

.footerLogo span {
    color: #7acb7a;
}

.footerBrand p {
    margin-bottom: 17px;
    font-size: 14px;
    line-height: 1.7;
    color: #dce4de;
}

.footerBrand .footerCompany {
    color: #ffffff;
    font-weight: 700;
}

.footerColumn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footerColumn h3 {
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 800;
}

.footerColumn a,
.footerColumn p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #dce4de;
}

.footerColumn a:hover {
    color: #7acb7a;
}

.footerBottom {
    width: 92%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid #314338;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footerBottom p {
    font-size: 13px;
    color: #dce4de;
}

.footerBottomLinks {
    display: flex;
    gap: 22px;
}

.footerBottomLinks a {
    font-size: 13px;
    color: #dce4de;
}

.footerBottomLinks a:hover {
    color: #7acb7a;
}

.backToTop {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: #228b22;
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
    z-index: 900;
}

.backToTop.showButton {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .navigationLinks {
        gap: 18px;
    }

    .mainNavigation {
        gap: 15px;
    }

    .cartLayout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .footerMain {
        grid-template-columns: 1.5fr repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .mainNavigation {
        min-height: 70px;
    }

    .navigationLinks {
        position: fixed;
        top: 0;
        right: -100%;
        width: 310px;
        max-width: 88%;
        height: 100vh;
        padding: 85px 30px 30px;
        background: #ffffff;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
        overflow-y: auto;
        transition: right 0.3s ease;
    }

    .darkMode .navigationLinks {
        background: #162019;
    }

    .navigationLinks.menuOpen {
        right: 0;
    }

    .navigationLinks a {
        font-size: 16px;
    }

    .closeMenuButton {
        position: absolute;
        top: 20px;
        right: 22px;
        display: flex;
        width: 40px;
        height: 40px;
        border: 1px solid #cccccc;
        border-radius: 50%;
        background: transparent;
        color: #17351f;
        align-items: center;
        justify-content: center;
        font-size: 25px;
        cursor: pointer;
    }

    .darkMode .closeMenuButton {
        border-color: #455449;
        color: #ffffff;
    }

    .mobileProfileLink,
    .mobileCartLink,
    .mobileLogoutLink {
        display: flex !important;
        align-items: center;
        gap: 9px;
        width: 100%;
    }

    .mobileCartCount {
        min-width: 19px;
        height: 19px;
        padding: 0 5px;
        border-radius: 20px;
        background: #228b22;
        color: #ffffff;
        font-size: 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobileLogoutLink {
        margin-top: 10px;
        padding-top: 20px;
        border-top: 1px solid #dddddd;
    }

    .darkMode .mobileLogoutLink {
        border-top-color: #354339;
    }

    .navigationActions {
        margin-left: auto;
    }

    .desktopProfileLink,
    .desktopCartLink,
    .loginLink,
    .signupButton {
        display: none;
    }

    .mobileMenuButton {
        display: block;
    }

    .cartHero {
        min-height: 330px;
    }

    .cartHero h1 {
        font-size: 45px;
    }

    .cartHeroContent {
        padding: 65px 0;
    }

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

    .cartSummary {
        position: static;
    }

    .cartTrust {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 35px;
    }

    .footerMain {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    .footerBrand {
        grid-column: 1 / -1;
        max-width: 600px;
    }
}

@media (max-width: 600px) {
    .mainNavigation {
        width: 94%;
    }

    .brandLogo {
        font-size: 25px;
    }

    .themeToggle {
        width: 37px;
        height: 37px;
    }

    .mobileMenuButton {
        width: 39px;
        height: 39px;
    }

    .cartHero {
        min-height: 290px;
    }

    .cartHeroContent {
        width: 94%;
        padding: 55px 0;
    }

    .cartHero h1 {
        max-width: 100%;
        font-size: 36px;
        letter-spacing: -0.7px;
    }

    .cartHero p:last-child {
        font-size: 16px;
    }

    .cartSection {
        width: 94%;
        padding: 60px 0;
    }

    .cartTop {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 28px;
    }

    .cartTop h2 {
        font-size: 28px;
    }

    .continueShoppingButton {
        width: 100%;
    }

    .cartItem {
        grid-template-columns: 1fr;
        gap: 17px;
        padding: 15px;
    }

    .cartItemImage {
        width: 100%;
        height: 190px;
    }

    .cartItemName {
        font-size: 21px;
    }

    .cartItemBottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .cartItemControls {
        width: 100%;
        justify-content: space-between;
    }

    .cartSummary {
        padding: 22px;
    }

    .emptyCart {
        padding: 50px 20px;
    }

    .cartTrust {
        width: 94%;
        margin-bottom: 60px;
        padding: 30px 24px;
    }

    .footerMain {
        width: 94%;
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
        padding: 55px 0 40px;
    }

    .footerBrand {
        grid-column: 1 / -1;
    }

    .footerColumn h3 {
        font-size: 15px;
    }

    .footerColumn a,
    .footerColumn p,
    .footerBrand p {
        font-size: 13px;
    }

    .footerBottom {
        width: 94%;
        flex-direction: column;
        align-items: flex-start;
    }

    .backToTop {
        right: 18px;
        bottom: 18px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 420px) {
    .cartHero h1 {
        font-size: 31px;
    }

    .cartTop h2 {
        font-size: 25px;
    }

    .cartItemImage {
        height: 165px;
    }

    .cartItemControls {
        align-items: flex-start;
        flex-direction: column;
    }

    .quantityControl {
        width: 100%;
    }

    .quantityButton {
        flex: 1;
    }

    .quantityValue {
        flex: 1;
    }

    .removeButton {
        padding-left: 0;
    }

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

    .footerBrand {
        grid-column: auto;
    }
}