/* Cleaned and reorganized stylesheet, extracted colors into CSS variables.
   Sections: variables, base, layout/header, top/menu, logo/search/cart, buttons, product/category, footer, modals/popups, unknown.
   This file is meant to replace usage gradually; original stylesheet.css is left intact.
*/

:root {
    /* Green + yellow palette for organic produce theme */
    --color-text: #243b2b; /* dark green for body text */
    --color-heading: #1f3526; /* deeper green for headings */
    --color-muted: #6c7164; /* muted neutral for secondary text */
    --color-border: #eaf6e8; /* very light green border */
    --color-border-2: #e0efe0;
    --color-bg: #fffdf2; /* warm off-white */
    --color-site-dark: #1d5b2b; /* deep forest green for top bar */
    --color-primary: #3f9e3f; /* lively green primary */
    --color-primary-dark: #2f7a2f; /* darker green */
    --color-primary-mid: #379337; /* mid green */
    --color-primary-2: #6ea22a; /* olive-ish accent */
    --color-accent: #f2c94c; /* yellow accent for CTAs */
    --color-warning: #f4b400;
    --color-orange: #ff9f1c;
    --color-facebook: #4267b2;
    --color-danger: #b33a2f;
    --color-tomato: Tomato;
    --color-footer-bg: #243427; /* dark green footer */
    --color-footer-text: #f5f3ea;
    --color-light-bg: #f7fff4; /* product/category header bg */
    --color-very-light: #ffffff;
    --color-modal-overlay: rgba(0, 0, 0, 0.6);
    --color-tag-bg: rgba(237, 247, 227, 0.95);
}

/* =========== Base =========== */
html {
    overflow-y: scroll;
}
* {
    unicode-bidi: embed;
}
body {
    font-family: "Rubik", "Varela Round", sans-serif;
    font-display: swap;
    font-weight: 400;
    color: var(--color-text);
    font-size: 14px;
    line-height: 20px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

body.mfp-active {
    overflow: hidden;
    -webkit-overflow-scrolling: auto;
    width: 100%;
    position: fixed;
    overflow: auto;
}
body .mfp-wrap {
    position: fixed;
    overflow: auto;
    top: 0 !important;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
}
/* default font size */
.fa, .fab {
    font-size: 14px;
    font-weight: 900;
}
.fa.fa-lg {
    font-size: 20px;
}

/* Forms */
.form-control {
    font-size: 16px;
    line-height: 20px;
    border: 1px solid var(--color-border);
    -webkit-box-shadow: none; 
    box-shadow: none; 
    -webkit-transition: none; 
    -o-transition: none;
    transition: none; 
    position: relative;
}
textarea.form-control {
    border-radius: 17px;
}
button + input[type=text], button + input[type=password], button + select { margin: 0px 10px; }
select.form-control { padding: 0px 12px; }

/* Override bootstrap defaults for headings */
h1 { font-size: 33px; }
h2 { font-size: 27px; }
h3 { font-size: 21px; }
h4 { font-size: 16px; font-weight: 300; height:34px; overflow: hidden; }
h5 { font-size: 12px; color: #606060; height:38px; overflow: hidden; margin: 0 2px; }
h6 { font-size: 10.2px; }

a { color: var(--color-primary); word-wrap: break-word; }
a:hover { text-decoration: none; }
legend { font-size: 18px; padding: 7px 0px }
label { font-weight: normal; }

/* Direction helpers */
[dir="rtl"] .pull-right { float: left!important; right: auto; left: 0; }
[dir="rtl"] .pull-left { float: right!important; }
[dir="rtl"] .text-start { text-align: right; }
[dir="ltr"] .text-start { text-align: left; }

.input-group .input-group-addon { font-size: 12px; height: 30px; }

/* Fix some bootstrap issues */
span.hidden-xs, span.hidden-sm, span.hidden-md, span.hidden-lg { display: inline; }

.nav-tabs { margin-bottom: 15px; }
div.required .control-label:before { content: '* '; color: #F00; font-weight: bold; }

/* Menu wrapper */
.menu-wrapper { min-height: 40px; }
.menu-wrapper #menu.fixed { position: fixed; z-index: 5; top: 0; left: 0; right: 0; }

/* =========== Top bar =========== */
#top { background-color: var(--color-primary-dark); border-bottom: 1px solid var(--color-border-2); padding: 4px 0px 3px 0; margin: 0 0 3px 0; min-height: 20px; }
#top .container { padding: 0 5px; }
#top #form-currency .currency-select, #top #form-language .language-select { text-align: left; color: var(--color-primary); }
#top #form-currency .currency-select:hover, #top #form-language .language-select:hover { text-shadow: none; color: #ffffff; background-color: var(--color-primary); background-image: linear-gradient(to bottom, var(--color-primary), var(--color-primary-dark)); background-repeat: repeat-x; }
#top .btn-link, #top-links li, #top-links a { color: #FFF; text-decoration: none; }
#top .btn-link:hover, #top-links a:hover { color: var(--color-accent); }
#top-links .dropdown-menu a { text-shadow: none; }
#top-links .dropdown-menu a:hover { color: #FFF; }
#top .btn-link strong { font-size: 14px; line-height: 14px; }
#top-links { padding-top: 6px; }
#top-links a + a { margin-left: 15px; }

/* Ensure the language dropdown appears above the navbar (navbar z-index: 1000) */
#form-language .dropdown-menu { z-index: 2000; width: auto; min-width: 0; white-space: nowrap; }

/* Align the language dropdown according to document direction: left for LTR, right for RTL */
[dir="ltr"] #form-language .dropdown-menu { left: 0; right: auto; }
[dir="rtl"] #form-language .dropdown-menu { right: 0; left: auto; }

/* =========== Logo =========== */
#logo { display: inline-block; padding: 0; min-width: 147px; }
#logo > h1 { margin: 0; }
.pull-right.language { position: absolute; right: 0; z-index: 1000; }

/* =========== Search =========== */
#search { margin-bottom: 2px; }
#search .input-lg { height: 40px; line-height: 20px; padding: 0 10px; }
#search .btn-lg { font-size: 15px; line-height: 18px; padding: 10px 15px; text-shadow: 0 1px 0 #FFF; }

/* =========== Cart =========== */
#cart { display: inline-block; margin-bottom: 2px;}
#cart > .btn {
    font-size: 13px;
    line-height: 18px;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
    /* background: linear-gradient(to bottom, #2f6b3d, #1f4b29); */
    border: 1px solid #1d4426;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.2s ease-in-out;
}
#cart > .btn:hover {
    background: linear-gradient(to bottom, #356f43, #1b3f24);
    color: #fff;
}
#cart.open > .btn {
    background: linear-gradient(to bottom, #24572f, #163a24);
    border: 1px solid #163a1a;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
#cart.open > .btn:hover { color: #fff; }
#cart .dropdown-menu { background: #eee; z-index: 1001; overflow-y:scroll; max-height: 75vh; }
#cart .dropdown-menu { min-width: 100%; }
@media (max-width: 478px) { #cart .dropdown-menu { width: 100%; } }
#cart .dropdown-menu table { margin-bottom: 10px; }
#cart .dropdown-menu li > div { min-width: 427px; padding: 0 10px; }
@media (max-width: 478px) { #cart .dropdown-menu li > div { min-width: 100%; } }
#cart .dropdown-menu li p { margin: 8px 0; }
#cart .fa-layers-counter, #cart-toggle .fa-layers-counter { -webkit-transform: scale(.6); transform: scale(.6); right: -5px; top: -7px; }
#checkout-cart tr.error { background: #fee; }

/* =========== Menu =========== */
#menu .navbar-ex3-collapse .nav.navbar-nav { background: #fff; padding: 10px; margin-top: 10px; }
#menu { background-color: var(--color-primary-dark); min-height: 40px; border-radius: 0px; font-size: 16px; width: 100%; max-width: 1640px; margin: 0 auto; z-index: 999 !important; margin-bottom: 0px; overflow: auto; white-space: nowrap; -ms-overflow-style: none; scrollbar-width: none; }
#menu::-webkit-scrollbar { display: none; }
#menu .fa { font-size: 18px; }
#menu .nav > div > li > a, #menu .nav > div > li > button, #menu .nav > li > a, #menu .nav > li > button { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); padding: 10px 7px 10px 7px; min-height: 15px; background-color: transparent; display: inline-block; float: none; }
#menu > div > #cart > button { font-size: 20px; }
@media (min-width: 768px) { #menu .navbar-collapse.collapse { display: inline-block!important; padding: 0px; } }
.navbar-collapse.in, #menu #cart .dropdown-menu { max-height: calc(100vh - 57px); overflow-y: auto; }
#menu .nav { padding: 0; }
#menu .nav > div > li > a:hover, #menu .nav > div > li.open > a, #menu .nav > div > li > button:hover, #menu .nav > div > li.open > button, #menu .nav > li > a:hover, #menu .nav > li.open > a, #menu .nav > li > button:hover, #menu .nav > li.open > button, #menu > div > #cart > button:hover{ color: var(--color-accent); }
#menu .lang-btn { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); padding: 10px 15px 10px 15px; min-height: 15px; background-color: transparent; display: inline-block; float: none; }
#menu #currency > button { font-size: 27px; padding-bottom: 7px; padding-top: 4px; }
#menu #currency > button:hover { text-decoration: none; }
#menu .language .dropdown-inner button, #menu .currency .dropdown-inner button { padding: 3px 20px; text-align: left; line-height: 20px; color: #333333; font-size: 15px; font-weight: 500; }
#menu .language .dropdown-inner button:hover, #menu .currency .dropdown-inner button:hover { color: var(--color-primary-2); text-decoration: none; }
#menu .language .dropdown-inner button img { margin-right: 10px; }
#menu .language .dropdown-inner button img { margin-right: 0px; margin-left: 10px; }
#menu .language .dropdown-inner button, #menu .currency .dropdown-inner button { text-align: right; }
#menu .dropdown-menu { padding: 0; text-align: inherit; border-radius: 0; }
#menu .dropdown-menu { right: 0; left: auto; }
#menu .dropdown-menu-right { right: unset; left: 0; }
#menu .dropdown-inner { display: table; width: 100%; }
#menu .dropdown-inner ul { display: table-cell; }
#menu .dropdown-inner ul + ul { border-left: 1px solid var(--color-border); }
#menu .dropdown-inner ul + ul { border-right: 1px solid var(--color-border); border-left: 0px; }
#menu .dropdown-inner li { padding: 10px 5px; }
#menu .dropdown-inner li + li { border-top: 1px solid var(--color-border); }
#menu .dropdown-inner a { width: max-content; min-width: 150px; max-width: 300px; display: block; padding: 3px 20px; clear: both; line-height: 20px; color: #333333; font-size: 15px; font-weight: 500; }
#menu .dropdown-inner li a:hover { color: var(--color-primary-2); background: none; }
#menu .see-all { display: block; border-top: 1px solid var(--color-border); padding: 15px 25px; font-size: 15px; color: var(--color-primary-2); font-weight: 500; background: var(--color-very-light); }
#menu .see-all:hover, #menu .see-all:focus { text-decoration: none; color: #ffffff; background-color: var(--color-primary-2); }

@media (max-width: 767px) {
    #product-zipcode .col-sm-3 {margin-top:10px;}
    #menu .dropdown-inner li { border-color: var(--color-primary-2)!important; }
    #menu .dropdown-inner ul + ul { border-left: 0px; border-top: 1px solid var(--color-border); border-color: var(--color-primary-2); }
    #menu .see-all { background: rgba(0,0,0,0.1); }
}

#menu #category { float: left; padding-right: 15px; font-size: 16px; font-weight: 700; line-height: 40px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); }
#menu .btn-navbar { font-size: 15px; font-stretch: expanded; color: #FFF; padding: 2px 18px; float: right; background-color: var(--color-primary); background-image: linear-gradient(to bottom, var(--color-primary), var(--color-primary-mid)); background-repeat: repeat-x; border-color: var(--color-primary) var(--color-primary) #145e7a; }
#menu .btn-navbar:hover, #menu .btn-navbar:focus, #menu .btn-navbar:active, #menu .btn-navbar.disabled, #menu .btn-navbar[disabled] { color: #ffffff; background-color: var(--color-primary); }

.navbar-nav > li > form > .dropdown-menu { margin-top: 0px; }
nav .list-inline { margin-left: 0px !important; }

@media (min-width: 768px) { #menu .dropdown:hover .dropdown-menu { display: block; padding: 0px; } }

@media (max-width: 767px) {
    #menu .navbar-collapse > ul > li { display: block; float: none; }
    #menu div.dropdown-inner > ul.list-unstyled { display: block; }
    #menu div.dropdown-menu { margin-left: 0 !important; padding-bottom: 10px; background-color: rgba(0, 0, 0, 0.1); }
    #menu .dropdown-inner { display: block; }
    #menu .dropdown-inner a { width: 100%; color: #fff; }
    #menu .dropdown-menu a:hover, #menu .dropdown-menu ul li a:hover { background: rgba(0, 0, 0, 0.1); }
    #menu .see-all { margin-top: 0; border: none; color: #fff; }
}

/* =========== Grid/Columns RTL swaps =========== */
[dir="rtl"] .col-xs-1, [dir="rtl"] .col-xs-10, [dir="rtl"] .col-xs-11, [dir="rtl"] .col-xs-12, [dir="rtl"] .col-xs-2, [dir="rtl"] .col-xs-3, [dir="rtl"] .col-xs-4, [dir="rtl"] .col-xs-5, [dir="rtl"] .col-xs-6, [dir="rtl"] .col-xs-7, [dir="rtl"] .col-xs-8, [dir="rtl"] .col-xs-9,
[dir="rtl"] .col-sm-1, [dir="rtl"] .col-sm-10, [dir="rtl"] .col-sm-11, [dir="rtl"] .col-sm-12, [dir="rtl"] .col-sm-2, [dir="rtl"] .col-sm-3, [dir="rtl"] .col-sm-4, [dir="rtl"] .col-sm-5, [dir="rtl"] .col-sm-6, [dir="rtl"] .col-sm-7, [dir="rtl"] .col-sm-8, [dir="rtl"] .col-sm-9,
[dir="rtl"] .col-md-1, [dir="rtl"] .col-md-10, [dir="rtl"] .col-md-11, [dir="rtl"] .col-md-12, [dir="rtl"] .col-md-2, [dir="rtl"] .col-md-3, [dir="rtl"] .col-md-4, [dir="rtl"] .col-md-5, [dir="rtl"] .col-md-6, [dir="rtl"] .col-md-7, [dir="rtl"] .col-md-8, [dir="rtl"] .col-md-9 { float: right; }

.list-unstyled { padding-right: 0; }
.list-unstyled li { padding-bottom: 8px; }

.container { width: 100%; max-width: 1640px; position: relative; margin: 0 auto; padding: 0 15px; }

/* =========== Footer / Pre-footer =========== */
#pre-footer { padding: 15px 0px; color: #000; }
#pre-footer > .container > div { display: flex; justify-content: space-between; margin: 0px -15px; }
#pre-footer > .container > div > div { padding: 15px; }
@media (max-width: 991px) { #pre-footer > .container > div { display: block; justify-content: inherit; } #pre-footer > .container > div > div { padding: 7.5px 15px; width: 100%; } }
#pre-footer svg { margin-right: 10px; color: var(--color-primary-2); }
#pre-footer .fa { margin-right: 0px; margin-left: 10px; }

footer { margin-top: 30px; padding: 30px 0px; background-color: var(--color-footer-bg); color: var(--color-footer-text); }
footer hr { border-top: none; border-bottom: 1px solid #666; }
footer a { color: #fff; }
footer a:hover { color: var(--color-accent); }
footer h5 { font-size: 18px; font-weight: 600; color: #fff; }
footer #footer-logo img { display: inline-block; }
.footerp { margin-top: 10px; color: #fff; }
@media (max-width: 991px) { footer #footer-logo { margin-top: 30px; clear: both; } footer .col-xs-6:nth-child(3) { clear: left; } }
#post-footer { background: var(--color-very-light); text-align: center; font-size: 12px; padding-top: 20px; }
#post-footer .payment { height: 26px; width: 184px; display: inline-block; background: url(../image/payment1.png); background-position: center left; background-repeat: no-repeat; }
footer .headline { margin-top: 8px; }

/* =========== Alerts / Breadcrumbs / Pagination =========== */
.alert { padding: 8px 33px 8px 14px; bottom: 0px; z-index: 999; margin-left: 3px; }
.breadcrumb { margin: 0 0 20px 0; padding: 8px 0; border: 1px solid var(--color-border); }
.breadcrumb i { font-size: 15px; }
.breadcrumb > li { text-shadow: 0 1px 0 #FFF; padding: 0 20px; position: relative; white-space: nowrap; }
.breadcrumb > li + li:before { content: ''; padding: 0; }
.breadcrumb > li:after { content: ''; display: block; position: absolute; top: -3px; right: -5px; width: 26px; height: 26px; border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); }
[dir='rtl'] .breadcrumb > li:after { display: none; }
.breadcrumb > li + li:after { content: ''; padding: 0; }
.breadcrumb > li:before { content: ''; display: block; position: absolute; top: -3px; left: -5px; width: 26px; height: 26px; border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); -webkit-transform: rotate(135deg); -moz-transform: rotate(135deg); -o-transform: rotate(135deg); transform: rotate(135deg); }
[dir="ltr"] .breadcrumb > li:before { display: none; }
.pagination { margin: 0; }

.fa-chevron-right:before { content: "\f053"; }

/* =========== Buttons =========== */
.buttons { margin: 1em 0; }
.btn { line-height: 19px; font-size: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); border: 0px; border-radius: 0px; }
.btn-xs { font-size: 9px; }
.btn-sm { font-size: 10.2px; }
.btn-lg { padding: 10px 16px; font-size: 15px; }
.btn-group > .btn, .btn-group > .dropdown-menu, .btn-group > .popover { font-size: 12px; }
.btn-group > .btn-xs { font-size: 9px; }
.btn-group > .btn-sm { font-size: 10.2px; }
.btn-group > .btn-lg { font-size: 15px; }

.btn-primary { color: var(--color-bg); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: var(--color-primary); background-image: linear-gradient(to bottom, var(--color-primary), var(--color-primary-dark)); background-repeat: repeat-x; border-color: var(--color-primary) var(--color-primary) #145e7a; border-radius: 9999px; }
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { background-color: #356B45; background-position: 0 -15px; }

.btn-invisible { background: none; color: rgba(0,0,0,0); float: right; margin-left: -53px; box-shadow: none; }
.btn-invisible { float: left; margin-right: -53px; margin-left: 15px; }

.btn-warning { color: var(--color-bg); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: var(--color-warning); background-image: linear-gradient(to bottom, #fbb450, #f89406); background-repeat: repeat-x; border-color: #f89406 #f89406 #ad6704; }
.btn-warning:hover, .btn-warning:active, .btn-warning.active, .btn-warning.disabled, .btn-warning[disabled] { box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1); }

.btn-danger { color: var(--color-bg); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: var(--color-danger); background-image: linear-gradient(to bottom, #ee5f5b, #bd362f); background-repeat: repeat-x; border-color: #bd362f #bd362f #802420; }
.btn-danger:hover, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] { box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1); }

.btn-success { color: var(--color-bg); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #5bb75b; background-image: linear-gradient(to bottom, #62c462, #51a351); background-repeat: repeat-x; border-color: #51a351 #51a351 #387038; }
.btn-success:hover, .btn-success:active, .btn-success.active, .btn-success.disabled, .btn-success[disabled] { box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1); }

.btn-info { color: var(--color-bg); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-repeat: repeat-x; border-color: #dc512c #dc512c #a2371a; }
.btn-info:hover, .btn-info:active, .btn-info.active, .btn-info.disabled, .btn-info[disabled] { background-image: none; background-color: #df5c39; }

.btn-link { border-color: rgba(0, 0, 0, 0); cursor: pointer; color: var(--color-primary); border-radius: 0; }
.btn-link, .btn-link:active, .btn-link[disabled] { background-color: rgba(0, 0, 0, 0); background-image: none; box-shadow: none; }

.btn-inverse { color: var(--color-bg); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: var(--color-site-dark); background-image: linear-gradient(to bottom, #444444, #222222); background-repeat: repeat-x; border-color: #222222 #222222 #000000; }
.btn-inverse:hover, .btn-inverse:active, .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] { background-color: #222222; background-image: linear-gradient(to bottom, #333333, #111111); }

.btn-menu { margin: 0px; border: 0px; border-radius: 0px; background-color: transparent; line-height: 20px; padding: 10px 15px 10px 15px; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); min-height: 15px; box-shadow: none; display: inline-block; float: none; }

/* Input-group radius adjustments per direction */
[dir="rtl"] .input-group .form-control:first-child, [dir="rtl"] .input-group-addon:first-child, [dir="rtl"] .input-group-btn:first-child>.btn, [dir="rtl"] .input-group-btn:first-child>.btn-group>.btn, [dir="rtl"] .input-group-btn:first-child>.dropdown-toggle { border-top-left-radius: 0; border-bottom-left-radius: 0; border-top-right-radius: 9999px; border-bottom-right-radius: 9999px; }
[dir="rtl"] .input-group-btn:first-child>.btn, [dir="rtl"] .input-group-btn:first-child>.btn-group { border-top-left-radius: 0; border-bottom-left-radius: 0; border-top-right-radius: 9999px; border-bottom-right-radius: 9999px; }
[dir="rtl"] .input-group-btn:last-child>.btn, [dir="rtl"] .input-group-btn:last-child>.btn-group { border-top-right-radius: 0; border-bottom-right-radius: 0; border-top-left-radius: 9999px; border-bottom-left-radius: 9999px; }
[dir="ltr"] .input-group .form-control:first-child, [dir="ltr"] .input-group-addon:first-child, [dir="ltr"] .input-group-btn:first-child>.btn, [dir="ltr"] .input-group-btn:first-child>.btn-group>.btn, [dir="ltr"] .input-group-btn:first-child>.dropdown-toggle { border-top-left-radius: 9999px; border-bottom-left-radius: 9999px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
[dir="ltr"] .input-group-btn:first-child>.btn, [dir="ltr"] .input-group-btn:first-child>.btn-group { border-top-left-radius: 9999px; border-bottom-left-radius: 9999px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
[dir="ltr"] .input-group-btn:last-child>.btn, [dir="ltr"] .input-group-btn:last-child>.btn-group { border-top-right-radius: 9999px; border-bottom-right-radius: 9999px; border-top-left-radius: 0; border-bottom-left-radius: 0; }

.input-group-btn:last-child>.btn-group:not(:last-child)>.btn, .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle) { border-radius: 0px; }
#button-search { margin-left: 10px; }

.navbar { border: 0px; }
.navbar-nav { margin: 0px; height: 40px; float: none; display: inline-block; }
.navbar-header { display: none; }

/* Header itself is not sticky; navbar will remain in the normal flow and become sticky when scrolled to the top. */
header { position: static; background: white; }

/* Make only the navbar sticky so it sticks to the top when scrolling. */
#navbar-container { position: -webkit-sticky; position: sticky; top: 0; z-index: 1000; background: white; }

/* No spacer required for sticky positioning. */

@media (max-width: 767px) { .navbar-header { display: inline-block; } .visible-xs-inline { display: inline-block!important; } }
@media (min-width: 768px) { nav#menu .navbar-collapse.collapse.navbar-ex2-collapse, nav#menu .navbar-collapse.collapse.navbar-ex3-collapse { display: none!important; } .visible-xs { display: none!important; } }
.navbar-nav > li, .navbar-nav > div > li { float: none; display: inline-block; }

/* =========== Lists / Thumbnails =========== */
.list-group a { border: 1px solid var(--color-border); color: #888888; padding: 8px 12px; }
.list-group a.active, .list-group a.active:hover, .list-group a:hover { color: #444444; background: #eeeeee; border: 1px solid var(--color-border); text-shadow: 0 1px 0 #FFF; }

/* =========== Carousel / Banner =========== */
.carousel-caption { color: #FFFFFF; text-shadow: 0 1px 0 #000000; }
.carousel-control .icon-prev:before { content: '\f053'; font-family: FontAwesome; }
.carousel-control .icon-next:before { content: '\f054'; font-family: FontAwesome; }

/* =========== Product list / Category styles =========== */
h2.price { margin: 0; }
.price-new { color: var(--color-tomato); font-weight: 600; }
.price-old { font-family: "Varela Round", sans-serif; text-decoration: line-through; color: var(--color-muted); }
.category-layout .caption { display: table; width: 100%; margin-top: 10px; }
.category-layout h4 { height: 32px; display: table-cell; vertical-align: middle; }
a.thumb { cursor: -moz-zoom-in; cursor: -webkit-zoom-in; cursor: zoom-in; }
.product-href { height: 142px; }
.category-layout, .subcategory-layout { border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); text-align: center; padding: 15px; }
.category-layout, .subcategory-layout { border-right: 0px; border-left: 1px solid var(--color-border); }

@media (max-width: 767px) {
    .subcategory-layout:nth-child(2n+1) { border-left: 1px solid var(--color-border); }
    .subcategory-layout:nth-child(2n+1) { border-right: 1px solid var(--color-border); }
    .subcategory-layout:nth-child(-n+2) { border-top: 1px solid var(--color-border); }
    .category-layout:nth-child(3n+1) { border-left: 1px solid var(--color-border); }
    .category-layout:nth-child(3n+1) { border-right: 1px solid var(--color-border); }
    .category-layout:nth-child(-n+3) { border-top: 1px solid var(--color-border); }
}
@media (min-width: 768px) and (max-width: 991px) {
    .subcategory-layout:nth-child(3n+1) { border-left: 1px solid var(--color-border); }
    .subcategory-layout:nth-child(3n+1) { border-right: 1px solid var(--color-border); }
    .subcategory-layout:nth-child(-n+3) { border-top: 1px solid var(--color-border); }
    .category-layout:nth-child(4n+1) { border-left: 1px solid var(--color-border); }
    .category-layout:nth-child(4n+1) { border-right: 1px solid var(--color-border); }
    .category-layout:nth-child(-n+4) { border-top: 1px solid var(--color-border); }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .subcategory-layout:nth-child(4n+1) { border-left: 1px solid var(--color-border); }
    .subcategory-layout:nth-child(4n+1) { border-right: 1px solid var(--color-border); }
    .subcategory-layout:nth-child(-n+4) { border-top: 1px solid var(--color-border); }
}
@media (min-width: 992px) {
    .category-layout:nth-child(6n+1) { border-left: 1px solid var(--color-border); }
    .category-layout:nth-child(6n+1) { border-right: 1px solid var(--color-border); }
    .category-layout:nth-child(-n+6) { border-top: 1px solid var(--color-border); }
}
@media (min-width: 1200px) {
    .subcategory-layout:nth-child(6n+1) { border-left: 1px solid var(--color-border); }
    .subcategory-layout:nth-child(6n+1) { border-right: 1px solid var(--color-border); }
    .subcategory-layout:nth-child(-n+6) { border-top: 1px solid var(--color-border); }
}
.category-layout, .subcategory-layout { float: right; }
.category-layout .product-thumb .caption, .subcategory-layout .product-thumb .caption { display: table; width: 100%; padding: 15px 0px; }
.category-layout .product-thumb .caption h4, .subcategory-layout .product-thumb .caption h4 { display: table-cell; height: 85px; vertical-align: middle; font-size: 20px; }
.category-layout .product-thumb .caption h4 span, .subcategory-layout .product-thumb .caption h4 span { font-size: 16px; color: var(--color-muted); }
.category-layout .price, .subcategory-layout .price { font-family: "Varela Round", sans-serif; color: var(--color-primary-2); font-size: 22px; }
.subcategory-layout { height: 375px; }
.category-layout .img-responsive, .subcategory-layout .img-responsive { display: inline-block; }
.category-layout a, .subcategory-layout a { color: #000; }
.category-layout a.btn-invisible, .subcategory-layout a.btn-invisible { color: rgba(0,0,0,0); }
.subcategory-layout a:hover { color: var(--color-primary-2); }
.subcategory-layout:hover .btn-invisible { color: #ddd; }
.subcategory-layout .btn-invisible:hover svg { color: var(--color-accent); font-size: 18px; }
.category-layout:hover { background: var(--color-very-light); cursor: pointer; }
.category-layout:hover a { color: var(--color-primary-2); }

/* ======= Eco theme specific styles ======= */
.eco-category { background: linear-gradient(180deg, var(--color-bg), var(--color-light-bg)); padding-top: 8px; padding-bottom: 18px; }
.eco-category h1, .eco-category h2, .eco-category h3 { color: var(--color-heading); }
/* Move visual card styles to the product-thumb when eco-card is applied so there is a single card container
   and product images can expand without creating a nested "card within a card" effect. */
.product-thumb.eco-card {
    background: var(--color-very-light);
    border-radius: 12px;
    padding: 10px;
    margin: 8px 0;
    box-shadow: 0 6px 18px rgba(46,79,31,0.06);
    border: 1px solid var(--color-border);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
.product-thumb.eco-card:hover { box-shadow: 0 12px 26px rgba(46, 79, 31, 0.12); }
.product-thumb.eco-card .image {
    padding: 0;
    background: none;
    border-radius: 10px;
    overflow: hidden;
}
.product-thumb.eco-card .image img { width: 100%; height: auto; display: block; border-radius: 8px; }
.product-thumb.eco-card h4 a { color: var(--color-site-dark); font-weight: 600; font-size: 15px; }
.product-thumb.eco-card h5 { color: var(--color-muted); font-size: 13px; margin-top: 6px; }
.product-thumb.eco-card .tags { right: 12px; top: 12px; }
.product-thumb.eco-card .tags span { background: var(--color-tag-bg); color: var(--color-primary-dark); padding: 2px 6px; border-radius: 999px; margin-right: 4px; font-size: 12px; display: inline-block; box-shadow: none; }
.product-thumb.eco-card .price { color: var(--color-primary-dark); font-weight: 700; font-size: 16px; margin-top: 6px; }
.product-thumb.eco-card .price .price-old { color: var(--color-muted); text-decoration: line-through; font-weight: 400; }
.product-thumb.eco-card .cart-button-div { padding-top: 12px; }
.product-thumb.eco-card .cart-button-div .btn { padding: 6px 12px; }

/* header tweaks for eco theme */
.site-header-eco #top { background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark)); }
.site-header-eco #top-links a { color: #fff; }
.site-header-eco .hello { color: var(--color-primary-dark); font-weight: 500; }

/* Header top-links visibility (moved from header.twig) */
#top-links.cart-has-items .show-if-empty {
    display: none !important;
}
#top-links.cart-empty .show-if-cart {
    display: none !important;
}

/* Ensure Google Places suggestion dropdown appears above modals */
.pac-container {
    z-index: 100000 !important;
}

/* Organic header tweaks (moved from header.twig) */
.site-header-eco { background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,255,245,0.98) 100%); }
#header-logo-bar { padding: 10px 0; align-items: center; }
#header-logo-bar #logo img { max-height: 64px; }

.category-title { background: var(--color-accent); }
.category-title h4 { font-family: "Varela Round", sans-serif; font-size: 26px; }
.category-title h4.background { color: #fff; padding: 15px; background: rgba(76, 179, 86,0.55); text-shadow: -1px -1px 0 rgba(76, 179, 86,1), 1px -1px 0 rgba(76, 179, 86,1), -1px 1px 0 rgba(76, 179, 86,1), 1px 1px 0 rgba(76, 179, 86,1) }
.category-more { background: var(--color-very-light); font-size: 16px; padding: 35px; cursor: pointer; }
.category-more .more { background: var(--color-primary-2); color: var(--color-bg); font-weight: 600; display: block; padding: 60px 15px; font-size: 20px; margin-bottom: 35px; }
.category-more:hover .more { background: rgb(133, 198, 121); }
.category-more:hover a { color: var(--color-primary-2); }
.row.sub-categories { margin-top: 20px; }
.product-thumb.disabled { opacity: 0.6; }
#product-category, #product-search, #header-logo-bar { background-color: var(--color-light-bg); }
#product-category h1, #product-search h1 { font-size: 27px; }
#product-category #content { margin-top: -10px; }
.row.description { border: 1px solid var(--color-border); border-top: 0px; padding: 15px 0px 5px; margin-bottom: 20px; }

.thumbnails { overflow: auto; clear: both; list-style: none; padding: 0; margin: 0; }
.thumbnails > li { margin-left: 20px; }
.thumbnails { margin-left: -20px; }
.image-additional a { margin-bottom: 20px; padding: 5px; display: block; border: 1px solid var(--color-border); }
.image-additional { max-width: 78px; }
.thumbnails .image-additional { float: left; margin-left: 20px; }

.product-thumb, .input-cart { margin-bottom: 20px; margin-left: auto; margin-right: auto; line-height: 20px; max-width: none; border-radius: 0; border: 0; text-align: center; position: relative; top: 2px; color: black; background-color: transparent; padding: 0; }

.price { margin: 0; }
p.weight100 { color: var(--color-muted); font-size: 11px; }
.cart-button-div { /* allow flexible height so buttons don't overflow */
    height: 43px;
    margin-top: 12px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb h4 { font-size: 14px; height: 30px; margin-bottom: -2px; }
.product-thumb h5 { font-size: 12px; height: 45px; line-height: 15px; }
.product-thumb .tags span { font-size: 12px; }
.product-thumb .img-responsive { max-width: 100%; height: auto; display: block; }
.product-layout { padding-right: 5px; padding-left: 5px; }
.product-thumb .btn { font-size: 14px; }
.product-thumb .about-estimate { color: #777; font-size: small; }


/* Mobile tweaks: ensure buttons fit and do not overflow the card */
@media (max-width: 600px) {
    /* .product-thumb.eco-card { padding-bottom: 12px; }
    .product-thumb.eco-card .cart-button-div { padding-top: 10px; }
    .product-thumb.eco-card .cart-button-div .btn {
        width: 100%;
        box-sizing: border-box;
        padding-left: 12px;
        padding-right: 12px;
    } */
    /* Reduce button font-size slightly on small screens to avoid wrapping */
    /* .product-thumb.eco-card .cart-button-div .btn { font-size: 14px; } */
}
.product-thumb .button-group, .product-thumb .input-group, #checkout-cart .table-responsive .input-group { margin: auto; }

.hovernow { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); transition: box-shadow 0.3s ease-in-out; }
.hovernow:hover { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8); }

@media (min-width: 1200px) { #content .col-lg-2:nth-child(6n+1), #content .col-lg-3:nth-child(4n+1), #content .col-lg-4:nth-child(3n+1), #content .col-lg-6:nth-child(2n+1) { clear:left; } }
@media (min-width: 992px) and (max-width: 1199px) { #content .col-md-2:nth-child(6n+1), #content .col-md-3:nth-child(4n+1), #content .col-md-4:nth-child(3n+1), #content .col-md-6:nth-child(2n+1) { clear:left; } }
@media (min-width: 768px) and (max-width: 991px) { #content .col-sm-2:nth-child(6n+1), #content .col-sm-3:nth-child(4n+1), #content .col-sm-4:nth-child(3n+1), #content .col-sm-6:nth-child(2n+1) { clear:left; } }

/* =========== Column behavior =========== */
@media (min-width: 768px) {
    #column-left  .product-layout .col-md-3 { width: 100%; }
    #column-left + #content .product-layout .col-md-3 { width: 50%; }
    #column-left + #content + #column-right .product-layout .col-md-3 { width: 100%; }
    #content + #column-right .product-layout .col-md-3 { width: 100%; }
}
#column-left .product-layout, #column-right .product-layout { width: 100%; }
#column-left { position: sticky; top: 91px; }

/* fixed mobile cart quantity input */
.input-group .form-control[name^=quantity] { min-width: 40px; }

.row.slideshow, .row.carousel { margin-top: 30px; border: 1px solid var(--color-border); margin-bottom: 40px; }
#banner { margin-top: 30px; border: 1px solid var(--color-border); }
#banner .banner-image { position: relative; min-height: 169px; }
#banner .banner-image h2 { padding-left: 40%; padding-right: 15px; margin-top: 30px; text-align: right; font-size: 34px; color: #d72626; text-shadow: -1px -1px 0 rgba(255,255,255,0.8), 1px -1px 0 rgba(255,255,255,0.8), -1px 1px 0 rgba(255,255,255,0.8), 1px 1px 0 rgba(255,255,255,0.8); }
#banner .banner-image h3 { padding: 0px 15px; text-align: right; font-size: 24px; color: var(--color-primary-2); text-shadow: -1px -1px 0 rgba(255,255,255,0.8), 1px -1px 0 rgba(255,255,255,0.8), -1px 1px 0 rgba(255,255,255,0.8), 1px 1px 0 rgba(255,255,255,0.8); }
#banner > div + div { padding: 30px; }
.row.facebook { background: var(--color-facebook); color: #fff; padding: 30px 15px; margin-top: 30px; }
.row.specials { background: var(--color-orange); color: #fff; padding: 30px 15px; }
.row.facebook h4, .row.facebook h2, .row.specials h4, .row.specials h2 { margin-top: 0px; color: #fff; }
.row.facebook h4 svg, .row.specials h4 svg { margin-right: 15px; }
.row.facebook h4 svg, .row.specials h4 svg { margin-right: 0px; margin-left: 15px; }
.row.facebook > div, .row.specials > div { display: inline-block; }
.row.facebook > div + div, .row.specials > div + div { margin-left: 120px; }
.row.facebook > div + div, .row.specials > div + div { margin-right: 120px; margin-left: 0px; }
.delivery-table td { padding: 2px 5px; }
@media (min-width: 768px) { .modal-dialog { max-width: 80%; } }

.martop { margin-top:5px; display:block !important; }
.martop button { background-color: #f78c06; background-image: linear-gradient(to bottom, #f78c06, #f78c06); border-color: #f78c06 #f78c06 #f78c06; }

.mfp-title { text-align: right; padding-right: 0px; }

td { white-space: normal !important; }

*:focus { outline: 0 !important; }

.cart-count-selector { width: 112px; }
.cart-count-text { font-weight: bold; font-size: 14px; }

.form-control[disabled] { cursor: auto; }

input[type=radio] { margin-right: -20px; }
.radio, .checkbox { padding-right: 20px; }

.hello { margin-bottom: 0; }
body.modal-open {
    padding-right: 0 !important;
}

.substract-half { position: relative; top: -30px; right: 80px; }

/* Popup / Dialogs */
#small-dialog { background: white; padding: 20px 30px; text-align: right; max-width: 90%; margin: 40px auto; position: relative; }
.whatsnew .mfp-content { background: white; padding: 20px 30px; text-align: right; max-width: 90%; min-height: 500px; margin: 40px auto; position: relative; }

/* Animations for popups (keep as-is) */
.my-mfp-zoom-in .zoom-anim-dialog { opacity: 0; -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; -webkit-transform: scale(0.8); -moz-transform: scale(0.8); -ms-transform: scale(0.8); -o-transform: scale(0.8); transform: scale(0.8); }
.my-mfp-zoom-in.mfp-ready .zoom-anim-dialog { opacity: 1; -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); transform: scale(1); }
.my-mfp-zoom-in.mfp-removing .zoom-anim-dialog { -webkit-transform: scale(0.8); -moz-transform: scale(0.8); -ms-transform: scale(0.8); -o-transform: scale(0.8); transform: scale(0.8); opacity: 0; }
.my-mfp-zoom-in.mfp-bg { opacity: 0; -webkit-transition: opacity 0.3s ease-out; -moz-transition: opacity 0.3s ease-out; -o-transition: opacity 0.3s ease-out; transition: opacity 0.3s ease-out; }
.my-mfp-zoom-in.mfp-ready.mfp-bg { opacity: 0.8; }
.my-mfp-zoom-in.mfp-removing.mfp-bg { opacity: 0; }

.my-mfp-slide-bottom .zoom-anim-dialog { opacity: 0; -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; transition: all 0.2s ease-out; -webkit-transform: translateY(-20px) perspective( 600px ) rotateX( 10deg ); -moz-transform: translateY(-20px) perspective( 600px ) rotateX( 10deg ); -ms-transform: translateY(-20px) perspective( 600px ) rotateX( 10deg ); -o-transform: translateY(-20px) perspective( 600px ) rotateX( 10deg ); transform: translateY(-20px) perspective( 600px ) rotateX( 10deg ); }
.my-mfp-slide-bottom.mfp-ready .zoom-anim-dialog { opacity: 1; -webkit-transform: translateY(0) perspective( 600px ) rotateX( 0 ); -moz-transform: translateY(0) perspective( 600px ) rotateX( 0 ); -ms-transform: translateY(0) perspective( 600px ) rotateX( 0 ); -o-transform: translateY(0) perspective( 600px ) rotateX( 0 ); transform: translateY(0) perspective( 600px ) rotateX( 0 ); }
.my-mfp-slide-bottom.mfp-removing .zoom-anim-dialog { opacity: 0; -webkit-transform: translateY(-10px) perspective( 600px ) rotateX( 10deg ); -moz-transform: translateY(-10px) perspective( 600px ) rotateX( 10deg ); -ms-transform: translateY(-10px) perspective( 600px ) rotateX( 10deg ); -o-transform: translateY(-10px) perspective( 600px ) rotateX( 10deg ); transform: translateY(-10px) perspective( 600px ) rotateX( 10deg ); }
.my-mfp-slide-bottom.mfp-bg { opacity: 0; -webkit-transition: opacity 0.3s ease-out; -moz-transition: opacity 0.3s ease-out; -o-transition: opacity 0.3s ease-out; transition: opacity 0.3s ease-out; }
.my-mfp-slide-bottom.mfp-ready.mfp-bg { opacity: 0.8; }
.my-mfp-slide-bottom.mfp-removing.mfp-bg { opacity: 0; }

.tags { position: absolute; right: 5px; top: 10px; }
.tags a, .tags span { background: var(--color-tag-bg); float: right; border-radius: 75px; white-space: normal; line-height: 10px; font-size: 12px; padding: 2px 5px; margin: 1px 2px; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%), 0 2px 1px -1px rgb(0 0 0 / 8%), 0 1px 3px 0 rgb(0 0 0 / 12%); }

div.alert-info { line-height: 18px; }

.modal-backdrop { position: relative; }
.modal-content { margin-top: 60px; }
.modal-content select { max-width: 100%; direction: rtl; }
.modal-title { font-size: 30px; text-align: center; color: var(--color-primary); font-weight: 600; margin: 0.6em 0 1.3em; }
.modal-header .close { margin-top: -2px; font-size: 30px; color: var(--color-primary); opacity: 1; }
.modal { background-color: var(--color-modal-overlay); }

table.avail-table { width: 100%; }
#shippingModal th { padding: 10px 5px; }
#shippingModal td { padding: 3px 10px; font-size: x-small; }
#shippingModal .subitem { font-size: 13px; color: darkgray; }

.change_zone { direction: ltr; }
#checkout-cart .number, #collapse-checkout-confirm .number { direction: ltr; }
#checkout-cart .cart-count-selector { width: 60px; }
#checkout-cart .img-thumbnail { padding: 0; border: 0; max-width: initial; width: 60px; }
#checkout-cart .qty-cart { margin:auto; }
#checkout-cart .table-responsive .input-group-btn { width: 0; }
#checkout-cart .notes { font-size: 12px; }

/* Animations */
.mfp-fade-in { opacity: 0; -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; }
.mfp-ready .mfp-fade-in { opacity: 1; }
.mfp-removing .mfp-fade-in { opacity: 0; }


/* =========== Unknown / miscellaneous (kept from original) =========== */
/* If you find styles here that are unused or need categorization, we'll move them into appropriate sections later. */
