/* Grandara – visi svetainės stiliai vienoje vietoje (įskiepis „Grandara“) */

/* ---------- Bendra ---------- */
html { scroll-behavior: smooth; }
#kodel-medzio-granules, #musu-granules, #apie-mus, #kontaktai { scroll-margin-top: 60px; }
body.admin-bar #kodel-medzio-granules, body.admin-bar #musu-granules, body.admin-bar #apie-mus, body.admin-bar #kontaktai { scroll-margin-top: 92px; }
#header_cart { display: none !important; }
#Footer { display: none; }
#Content { margin-bottom: 0 !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Viršutinė juosta ---------- */
#Top_bar .responsive-menu-toggle { color: #fff; }
#Top_bar.is-sticky .menu > li > a, #Top_bar.is-sticky #menu ul li.submenu .menu-toggle { color: #3a3632; }
#Top_bar.is-sticky #menu > ul > li.current-menu-item > a { color: #fff; background: #ff660a; }

/* ---------- Mygtukai ---------- */
a.button, button, input[type="submit"], input[type="reset"], input[type="button"] { font-family: Roboto, sans-serif; font-weight: 400; letter-spacing: 1px; background-image: none; font-size: 14px; }
input[type="submit"] { background: url(/wp-content/uploads/2017/08/patternas-grandara-lt.jpg) !important; }

/* ---------- Pagrindinė nuotrauka ---------- */
.gh { position: relative; height: min(56.25vw, 1080px); min-height: 420px; overflow: hidden; background: #fff url(/wp-content/uploads/2017/08/pagrindine-nuotrauka-grandara-lt.png) no-repeat 50% 100% / cover; }
.gh-in { position: absolute; left: min(7.3vw, 140px); top: min(17.24vw, 331px); color: #fff; text-align: left; animation: gh-fade .3s ease both; }
.gh h1 { display: inline-block; margin: 0; background: rgba(0,0,0,.5); width: clamp(330px, 35.6vw, 684px); height: clamp(34px, 3.39vw, 65px); padding-left: min(1.1vw, 21px); font-family: Exo, sans-serif; font-weight: 300; font-size: clamp(22px, 2.6vw, 50px); line-height: clamp(34px, 3.39vw, 65px); letter-spacing: 0; white-space: nowrap; color: #fff; }
.gh p { margin: min(1.2vw, 23px) 0 0 min(1vw, 19px); font-family: Exo, sans-serif; font-size: clamp(13px, 1.04vw, 20px); line-height: 1.1; white-space: nowrap; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.gh a.gh-btn { display: inline-flex; align-items: center; gap: min(.6vw, 12px); margin: min(1.5vw, 29px) 0 0 min(1vw, 19px); padding: clamp(9px, .63vw, 12px) clamp(22px, 1.82vw, 35px); background: #ff660a; color: #fff; border-radius: 3px; font-family: Roboto, sans-serif; font-weight: 500; font-size: clamp(13px, .9vw, 17px); line-height: 1.2; text-decoration: none; transition: background .2s, color .2s; }
.gh a.gh-btn:hover { background: #fff; color: #000; }
.gh-btn svg { width: .9em; height: .9em; }
@keyframes gh-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 767px) {
  .gh { height: auto; min-height: 560px; display: flex; align-items: center; justify-content: center; padding: 90px 20px 40px; }
  .gh-in { position: relative; left: auto; top: auto; text-align: center; max-width: 474px; background: rgba(0,0,0,.5); padding: 24px 20px 26px; }
  .gh h1 { display: block; background: none; width: auto; height: auto; padding: 0; font-size: 35px; line-height: 40px; white-space: normal; }
  .gh p { margin: 14px 0 0; font-size: 17px; line-height: 22px; white-space: normal; text-shadow: none; }
  .gh p br { display: none; }
  .gh a.gh-btn { margin: 20px 0 0; padding: 12px 35px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .gh-in { animation: none; } }

/* ---------- „Mūsų granulės“: be dešinės linijos mažuose ekranuose ---------- */
@media (max-width: 959px) {
  #musu-granules .mcb-wrap { border-right: 0 !important; padding-right: 0 !important; }
}
@media (max-width: 767px) {
  #musu-granules .column_attr { border-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
  #kodel-medzio-granules .column_attr, #musu-granules .column_attr, #apie-mus .column_attr { font-size: 15px; line-height: 23px; }
}

/* ---------- Kontaktų forma: per visą plotį mažuose ekranuose ---------- */
@media (max-width: 959px) {
  #kontaktai .mcb-column.two-third { width: 100% !important; max-width: 640px; float: none !important; margin: 0 auto !important; }
  #kontaktai .mcb-column.one-sixth { display: none !important; }
  #kontaktai .wpcf7 { padding: 18px 16px 8px !important; }
  #kontaktai .column_attr > .clearfix, #kontaktai .wpcf7 form { padding: 0 !important; }
  #kontaktai .wpcf7 input:not([type=submit]), #kontaktai .wpcf7 textarea { width: 100% !important; box-sizing: border-box; }
  #kontaktai .wpcf7 .column { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; }
  #kontaktai .wpcf7 .column.one-second { width: calc(50% - 6px) !important; }
  #kontaktai .wpcf7 .column.one-second:first-of-type { margin-right: 12px !important; }
}
@media (max-width: 767px) {
  #kontaktai .wpcf7 .column.one-second { width: 100% !important; margin-right: 0 !important; }
  #kontaktai .wpcf7 input:not([type=submit]), #kontaktai .wpcf7 textarea { font-size: 16px; }
}

/* ---------- Parduotuvė (/parduotuve/) ---------- */
.page-id-2417 #Subheader { display: none; }
.page-id-2417 #Header_wrapper { background: none !important; }
.page-id-2417 #Content { padding-top: 0 !important; }
.gp { color: #5f6266; }
.gp-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding: 170px 20px 90px; background: #2a1d14 url(/wp-content/uploads/2017/08/pagrindine-nuotrauka-grandara-lt.png) no-repeat 50% 70% / cover; }
.gp-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,16,10,.88) 0%, rgba(25,16,10,.6) 55%, rgba(25,16,10,.25) 100%); }
.gp-hero-in { position: relative; max-width: 1180px; margin: 0 auto; color: #fff; }
.gp-eyebrow { margin: 0 0 12px; color: #ffb27d; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.gp-hero h1 { margin: 0 0 14px; max-width: 640px; color: #fff; font-family: Exo, sans-serif; font-weight: 300; font-size: clamp(32px, 4vw, 52px); line-height: 1.12; }
.gp-hero-in > p:last-child { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.88); }

.gp-wrap { max-width: 1180px; margin: -50px auto 0; padding: 0 20px 70px; position: relative; }
.gp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; align-items: stretch; }
.gp-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(40,25,10,.12); transition: transform .25s, box-shadow .25s; }
.gp-card:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(40,25,10,.16); }
.gp-img { position: relative; aspect-ratio: 3 / 2; background: #efe8df url(/wp-content/uploads/2019/01/granuliu-promo-4-Copy-scaled.jpg) no-repeat; background-size: 215% auto; }
.gp-img--aukscciausia { background-position: 0 98%; }
.gp-img--ekonomine { background-position: 0 2%; }
.gp-badge { position: absolute; left: 16px; top: 16px; padding: 7px 12px; border-radius: 20px; background: #ff660a; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .3px; }
.gp-card.is-out .gp-img { filter: grayscale(.7) brightness(.95); }
.gp-card.is-out .gp-badge { background: #2b2b2b; }

.gp-body { flex: 1; display: flex; flex-direction: column; padding: 26px 28px 30px; }
.gp-body h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; font-weight: 400; color: #1f1f1f; }
.gp-desc p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.gp-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; }
.gp-chips li { margin: 0; padding: 5px 11px; border-radius: 20px; background: #f5efe8; color: #6b4a2f; font-size: 13px; }

.gp-buy { margin-top: auto; padding: 20px; border-radius: 10px; background: #fbf7f3; }
.gp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; }
.gp-price-main { color: #1f1f1f; font-size: 36px; line-height: 1; font-weight: 500; }
.gp-price-unit { font-size: 14px; }
.gp-units { margin: 0 0 18px; padding: 0; }
.gp-units div { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px dashed #e6dbd0; font-size: 14px; }
.gp-units dt, .gp-units dd { margin: 0; font-weight: 400; }
.gp-units dd { color: #1f1f1f; font-weight: 500; }

.gp-form { display: flex; gap: 10px; flex-wrap: wrap; }
.gp-qty { display: flex; align-items: stretch; border: 1px solid #e2d6ca; border-radius: 8px; overflow: hidden; background: #fff; }
.gp-qty .gp-step { width: 42px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: #1f1f1f; font-size: 20px; line-height: 1; letter-spacing: 0; cursor: pointer; }
.gp-qty .gp-step:hover { background: #fff1e7; }
.gp-qty input[type=number] { width: 48px; margin: 0; padding: 0; border: 0; text-align: center; font-size: 17px; background: #fff; box-shadow: none; -moz-appearance: textfield; }
.gp-qty input::-webkit-outer-spin-button, .gp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gp .gp-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 170px; min-height: 48px; margin: 0; padding: 12px 22px; border: 0; border-radius: 8px; background: #ff660a; color: #fff !important; font: 500 16px Roboto, sans-serif; letter-spacing: .2px; text-decoration: none !important; cursor: pointer; transition: background .2s; }
.gp .gp-btn:hover { background: #e85600; }
.gp .gp-btn--ghost { background: #fff; color: #ff660a !important; border: 2px solid #ff660a; }
.gp .gp-btn--ghost:hover { background: #fff1e7; }
.gp-msg { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.gp-msg strong { color: #1f1f1f; }

.gp-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; list-style: none; margin: 56px 0 0; padding: 0; }
.gp-perks li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.gp-perks svg { flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #fff1e7; fill: #ff660a; box-sizing: border-box; }
.gp-perks strong { display: block; margin-bottom: 3px; color: #1f1f1f; font-weight: 500; }
.gp-perks span { font-size: 14px; line-height: 1.5; }
.gp-note { margin: 40px 0 0; text-align: center; font-size: 15px; }
.gp-checkout-note { margin: 0 0 15px; }

@media (max-width: 767px) {
  .gp-hero { padding: 120px 18px 80px; }
  .gp-hero-in > p:last-child { font-size: 16px; }
  .gp-wrap { padding: 0 14px 50px; }
  .gp-grid { grid-template-columns: 1fr; }
  .gp-body { padding: 22px 20px 24px; }
  .gp-buy { padding: 16px; }
  .gp-price-main { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .gp-card, .gp-card:hover { transition: none; transform: none; } }

/* Užsakymo forma po kortelėmis */
.gp-card.is-selected { box-shadow: 0 0 0 3px #ff660a, 0 12px 40px rgba(40,25,10,.12); }
.gp-checkout { margin: 50px 0 0; padding: 34px 36px; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(40,25,10,.12); scroll-margin-top: 90px; animation: gh-fade .4s ease both; }
.gp-checkout > h2 { margin: 0 0 24px; color: #1f1f1f; font-size: 28px; font-weight: 400; }
.gp-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 40px; }
.gp-checkout form.checkout > * { grid-column: 1 / -1; }
.gp-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; width: auto; }
.gp-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 14px; font-size: 20px; }
.gp-checkout #order_review { grid-column: 2; grid-row: 2; width: auto; }
.gp-checkout .col2-set .col-1, .gp-checkout .col2-set .col-2 { float: none; width: 100%; }
.gp-checkout h3 { font-size: 20px; }
.gp-checkout input.input-text, .gp-checkout textarea, .gp-checkout select { width: 100%; padding: 12px 14px; border: 1px solid #e2d6ca; border-radius: 8px; background: #fff; font-size: 16px; box-sizing: border-box; box-shadow: none; }
.gp-checkout #payment { border-radius: 10px; background: #fbf7f3; }
.gp-checkout #place_order { float: none; width: 100%; min-height: 52px; border-radius: 8px; background: #ff660a !important; color: #fff; font-size: 17px; letter-spacing: .3px; }
.gp-checkout #place_order:hover { background: #e85600 !important; }
.gp-done { padding-top: 160px; }
@media (max-width: 900px) {
  .gp-checkout { padding: 24px 16px; }
  .gp-checkout form.checkout { display: block; }
}

/* Krepšelis ir žemėlapis užsakyme */
.gp-checkout .woocommerce-checkout-review-order-table thead, .gp-checkout .woocommerce-checkout-review-order-table tbody { display: none; }
.gp-cart-form { margin: 0 0 30px; border-top: 1px solid #efe6dc; }
.gp-cart-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #efe6dc; }
.gp-cart-name { flex: 1; color: #1f1f1f; font-size: 16px; }
.gp-cart-name small { display: block; color: #8d8f92; font-size: 13px; }
.gp-cart-sum { min-width: 110px; text-align: right; color: #1f1f1f; font-weight: 500; }
.gp-cart-del { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #f5efe8; color: #6b4a2f !important; font-size: 20px; line-height: 1; text-decoration: none !important; }
.gp-cart-del:hover { background: #ffe3d1; color: #c0390b !important; }
.gp-map-field { margin: 10px 0 20px; }
.gp-map-field label { display: block; margin-bottom: 4px; color: #1f1f1f; }
.gp-map-help { margin: 0 0 10px; font-size: 14px; }
#gp-map { height: 300px; border-radius: 10px; border: 1px solid #e2d6ca; }
.gp-map-label { margin: 18px 0 8px; color: #1f1f1f; font-weight: 500; }
.gp-map-tools { margin: 10px 0 0; font-size: 14px; }
.gp-map-me { margin: 0 10px 0 0 !important; padding: 9px 14px !important; border: 1px solid #ff660a !important; border-radius: 8px; background: #fff !important; color: #ff660a !important; font-size: 14px !important; }
.gp-map-coords { color: #2e7d32; }
@media (max-width: 600px) {
  .gp-cart-row { flex-wrap: wrap; gap: 10px; }
  .gp-cart-name { flex-basis: 100%; }
  .gp-cart-sum { flex: 1; }
  #gp-map { height: 280px; }
}

/* Pristatymas, įmonė, juostelė */
.gp-delivery { margin: 0 0 18px; padding: 16px 18px; border: 1px solid #efe1d3; border-radius: 10px; background: #fff; }
.gp-delivery-title { margin: 0 0 10px; color: #1f1f1f; }
.gp-delivery label { display: flex; gap: 8px; align-items: center; margin: 6px 0; cursor: pointer; }
.gp-delivery-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff4e5; color: #6b4a2f; font-size: 14px; }
.gp-checkout .gp-imone-toggle label { font-weight: 500; color: #1f1f1f; }
.gp-float { position: fixed; left: 50%; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 12px; transform: translateX(-50%); padding: 12px 20px; border-radius: 30px; background: #1f1f1f; color: #fff !important; font-size: 15px; text-decoration: none !important; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .25s, transform .25s; white-space: nowrap; }
.gp-float span { color: #ffb27d; }
.gp-float .amount { color: #fff; }
.gp-float.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }
@media (max-width: 600px) { .gp-float { left: 12px; right: 12px; transform: none; justify-content: space-between; font-size: 14px; } .gp-float.is-hidden { transform: translateY(20px); } }
.gp-delivery-info { margin: 10px 0 0; font-size: 14px; color: #5f6266; }
