/* Site-specific additions on top of the "Green Line" template. */
[x-cloak] { display: none !important; }
.fb-optional { font-weight: 300; opacity: .6; text-transform: none; }
.btn-link-inline { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.btn-link-inline:hover { text-decoration: underline; }
.footer-links a { color: inherit; }
.footer-links a:hover { color: #8ec942; }
.page-footer .button { margin-top: 12px; }
.contact-map { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- catalog ---------- */
.catalog-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 48px; }
.catalog-filter { display: inline-block; padding: 9px 22px; border: 2px solid #e2e4ee; border-radius: 30px; font: 700 13px/20px "Montserrat", Helvetica, Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: #29292b; transition: .25s; }
.catalog-filter:hover, .catalog-filter.active { background: #8ec942; border-color: #8ec942; color: #fff; }

.product-card { display: flex; flex-direction: column; height: 100%; background: #fff; box-shadow: 0 6px 24px rgba(41, 41, 43, .09); border-radius: 4px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(41, 41, 43, .15); }
.product-card-media { position: relative; aspect-ratio: 4 / 3; background: #f2f3f9; overflow: hidden; }
.product-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-card-category { position: absolute; left: 14px; top: 14px; padding: 3px 12px; background: #8ec942; color: #fff; border-radius: 20px; font: 700 11px/18px "Montserrat", Helvetica, Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; text-align: left; }
.product-card-title { margin: 0 0 10px; min-height: 2.6em; }
.product-card-text { flex: 1; margin: 0 0 18px; font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product-card-price { font: 700 22px/1.2 "Montserrat", Helvetica, Arial, sans-serif; color: #29292b; }
.product-card .button { margin: 0; min-width: 0; }
.product-card .button.is-added { background: #29292b; border-color: #29292b; }

/* ---------- service cards ---------- */
.service-card { height: 100%; max-width: none; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.service-card:hover, .service-card:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(41, 41, 43, .12); outline: 0; }
.service-card-cta { display: inline-block; margin-top: 18px; font: 700 13px/20px "Montserrat", Helvetica, Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: #8ec942; }

/* ---------- forms ---------- */
.form-wrap { margin-bottom: 16px; }
.form-label-outside { display: block; margin-bottom: 8px; }
textarea.form-input { min-height: 140px; border-radius: 25px; resize: vertical; }
.form-input.is-invalid { border-color: #e5484d; }
.field-error { margin-top: 6px; color: #e5484d; font-size: 14px; }
.form-status { margin-top: 16px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-success { color: #3c8a1e; }
.form-status.is-error { color: #e5484d; }
.button-block { display: block; width: 100%; }
.checkout-note { margin-top: 16px; font-size: 14px; opacity: .8; }

/* ---------- feedback modal ---------- */
/* Bootstrap 4 reboot sets dialog{display:block}, which un-hides a closed <dialog>. */
.fb-modal:not([open]) { display: none; }
.fb-modal { width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 6px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); color: #29292b; overflow: auto; }
.fb-modal::backdrop { background: rgba(41, 41, 43, .72); }
.fb-modal-form { position: relative; padding: 36px 32px 32px; }
.fb-modal-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 24px; color: #29292b; cursor: pointer; }
.fb-modal-close:hover { color: #8ec942; }
.fb-modal-title { margin: 0 0 6px; }
.fb-modal-subject { margin: 0 0 6px; font-weight: 700; color: #6aa62a; }
.fb-modal-text { margin: 0 0 20px; font-size: 15px; }
.fb-modal .button { margin-top: 8px; }
html.fb-modal-open { overflow: hidden; }

/* ---------- header cart ---------- */
.cart-widget { position: relative; }
.cart-widget .rd-navbar-shop-icon { cursor: pointer; }
.cart-panel { position: absolute; right: 0; top: calc(100% + 18px); z-index: 1200; width: 360px; max-width: calc(100vw - 16px); max-height: 80vh; overflow: auto; background: #fff; color: #29292b; text-align: left; font-size: 15px; line-height: 1.4; font-weight: 300; box-shadow: 0 12px 40px rgba(41, 41, 43, .25); border-radius: 4px; }
.cart-panel-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid #e8eaf3; }
.cart-panel-title { font: 700 16px/1.2 "Montserrat", Helvetica, Arial, sans-serif; }
.cart-panel-count { font-size: 14px; opacity: .7; }
.cart-line { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid #f0f1f7; }
.cart-line-img { flex: none; width: 64px; height: 48px; object-fit: cover; border-radius: 2px; }
.cart-line-body { flex: 1; min-width: 0; }
.cart-line-title { font-weight: 400; font-size: 14px; line-height: 1.3; margin-bottom: 8px; }
.cart-line-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid #dfe2ee; border-radius: 20px; }
.cart-qty button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: #29292b; }
.cart-qty button:hover { color: #8ec942; }
.cart-qty span { min-width: 22px; text-align: center; font-weight: 400; }
.cart-line-price { font-weight: 700; font-size: 14px; }
.cart-line-remove { flex: none; width: 26px; height: 26px; border: 0; background: none; cursor: pointer; font-size: 16px; color: #9a9ca8; }
.cart-line-remove:hover { color: #e5484d; }
.cart-empty { padding: 28px 20px; text-align: center; }
.cart-empty-icon { display: block; font-size: 44px; color: #c9ccd9; }
.cart-panel-foot { padding: 16px 20px 20px; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 16px; }
.cart-panel .button { margin-top: 12px; }

/* Mobile: keep the cart icon in the fixed top bar next to the menu toggle. */
.rd-navbar-fixed .rd-navbar-shop.cart-widget { position: fixed; top: 4px; right: 4px; z-index: 1100; }
.rd-navbar-fixed .cart-panel { position: fixed; top: 60px; right: 8px; }
.rd-navbar-fixed .rd-navbar-shop .rd-navbar-shop-icon { color: #29292b; }

/* ---------- checkout ---------- */
.checkout-summary { padding: 28px; background: #f2f3f9; border-radius: 4px; }
.checkout-line { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #dfe2ee; }
.checkout-line img { flex: none; width: 72px; height: 54px; object-fit: cover; border-radius: 2px; }
.checkout-line-title { font-weight: 400; line-height: 1.3; }
.checkout-line-meta { font-size: 14px; opacity: .7; }
.checkout-line-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.checkout-total { display: flex; justify-content: space-between; margin-top: 18px; font: 700 20px/1.2 "Montserrat", Helvetica, Arial, sans-serif; }

.form-wrap .form-label-outside { font-size: 14px; }
