/* ============================================================
   VYSHYVANKA THEME v18 — фінальна чиста версія
   Звірено з реальною версткою dev.vyshyvanka.com (08.07.2026)
   Файл: catalog/view/stylesheet/vyshyvanka.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Manrope:wght@400;600;700;800&display=swap');

/* ---------- 1. КОЛЬОРИ — міняти тут ---------- */
:root {
  --vysh-bg:        #fdfbf7;
  --vysh-text:      #1c1a17;
  --vysh-muted:     #4a453c;
  --vysh-brown:     #96795a;  /* верхня смужка, футер, кнопка пошуку — МІНЯТИ ТУТ */
  --vysh-brown-txt: #fbf3e8;
  --vysh-red:       #c0392b;
  --vysh-orange:    #e8622c;
  --vysh-orange-h:  #d4551f;
  --vysh-linen:     #f2ece0;
  --vysh-linen-2:   #e9e0d0;
  --vysh-hover:     #f7f0e6;
  --vysh-border:    rgba(0,0,0,.08);
  --vysh-serif:     'Lora', Georgia, serif;
  --vysh-sans:      'Manrope', system-ui, sans-serif;
}

/* ---------- 2. БАЗА ---------- */
body { background: var(--vysh-bg); color: var(--vysh-text); font-family: var(--vysh-sans); }
h1, h2, h3, .h1, .h2, .h3, legend { font-family: var(--vysh-serif); font-weight: 700; color: var(--vysh-text); }
a { color: var(--vysh-red); }
a:hover { color: var(--vysh-orange); }
.container { max-width: 1480px !important; }
.btn-primary {
  background: var(--vysh-orange) !important;
  border-color: var(--vysh-orange) !important;
  color: #fff !important;
  border-radius: 0;
  font-weight: 700;
}
.btn-primary:hover { background: var(--vysh-orange-h) !important; border-color: var(--vysh-orange-h) !important; }

/* ---------- 3. ВЕРХНЯ СМУЖКА (~34px) ---------- */
#container {
  padding-top: 0;
  margin-top: 0;
  position: static !important;   /* OC: absolute, частина sticky-footer */
  margin-bottom: 0 !important;
}
#content, #column-left, #column-right {
  padding-bottom: 30px !important; /* OC резервує 400-730px під absolute-футер */
}
#top { background: var(--vysh-brown) !important; padding: 0; font-size: 11.5px; }
#top .container { padding-top: 0; padding-bottom: 0; }
#top ul.list-inline { margin: 0; }
#top form { margin: 0; }
nav#top { margin: 0 !important; border: 0 !important; }
#top .row > [class*='col'] { padding-top: 0; padding-bottom: 0; }
#top li { margin-top: 0 !important; margin-bottom: 0 !important; }
#top a:not(.dropdown-item), #top .dropdown-toggle {
  display: inline-block;
  color: var(--vysh-brown-txt) !important;
  text-decoration: none;
  padding: 9px 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}
/* лівий блок (Currency) у рівень з лого і CATEGORIES */
#top .row > [class*='col']:first-child { padding-left: 32px; }
#top .row > .text-end { padding-right: 32px; }
#top .list-inline-item { line-height: 1 !important; vertical-align: middle; }
#top a:hover { color: #fff !important; }
#top strong { color: var(--vysh-brown-txt); }
/* прибрати телефон, Shopping Cart і Checkout (дублікати) */
#top li:has(.fa-phone),
#top li:has(.fa-cart-shopping),
#top li:has(.fa-share) { display: none !important; }
/* випадайки: темний текст на білому */
#top .dropdown-menu { background: #fff; border: 1px solid var(--vysh-border); border-radius: 0; }
#top .dropdown-menu .dropdown-item {
  color: var(--vysh-text) !important;
  font-size: 12.5px !important;
  padding: 8px 18px !important;
  font-weight: 400 !important;
}
#top .dropdown-menu .dropdown-item:hover { background: var(--vysh-hover); color: var(--vysh-red) !important; }

/* ---------- 4. ОРНАМЕНТ впритул під смужкою ---------- */
header { background: var(--vysh-bg); border-bottom: 1px solid var(--vysh-border); padding: 0; }
header::before {
  content: '';
  display: block;
  height: 17px;
  background: url('../../../image/catalog/ornament.gif') repeat-x;
  background-size: 14px 17px;
  image-rendering: pixelated;
}

/* ---------- 5. ШАПКА ---------- */
header .row { align-items: center; padding: 16px 0 12px; }
#logo h1 { margin: 0; line-height: 1.1; padding-left: 20px; }
#logo h1 a {
  font-family: var(--vysh-serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--vysh-text);
  text-decoration: none;
}
#logo h1 a:hover { color: var(--vysh-red); }

/* пошук: form.input-group.mb-3, кнопка btn-light з лупою */
header form.input-group { margin: 0 !important; }
header form.input-group .form-control {
  border: 1.5px solid var(--vysh-text);
  border-right: 0;
  border-radius: 2px 0 0 2px;
  background: transparent;
  font-size: 14px;
  box-shadow: none;
}
header form.input-group .form-control:focus { border-color: var(--vysh-text); box-shadow: none; }
header form.input-group .btn-light {
  background: var(--vysh-brown);
  color: var(--vysh-bg);
  border: 1.5px solid var(--vysh-brown);
  border-radius: 0 2px 2px 0;
  padding: 0 24px;
}
header form.input-group .btn-light:hover { background: var(--vysh-text); border-color: var(--vysh-text); }
header form.input-group .btn-light i { display: none; }
header form.input-group .btn-light::after {
  content: 'Search';
  font-weight: 600;
  font-size: 13.5px;
  color: var(--vysh-bg);
}

/* кошик: btn-dark → спокійний текстовий, вирівняний праворуч */
#cart { margin-bottom: 0 !important; }
#cart .btn-dark {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--vysh-text) !important;
  font-weight: 700;
  font-size: 13.5px;
  text-align: right;
}
#cart .btn-dark:hover { color: var(--vysh-red) !important; }
#cart .dropdown-menu { border-radius: 0; border: 1px solid var(--vysh-border); }

/* ---------- 6. МЕНЮ: приховане (категорії лише зліва) ---------- */
#menu { display: none !important; }
main > .container { padding-top: 0 !important; padding-bottom: 0 !important; }

/* ---------- 7. КОЛОНКИ: сайдбар 250px, рівні відступи 24px ---------- */
#column-left {
  flex: 0 0 250px !important;
  width: 250px !important;
  max-width: 250px !important;
  border-right: 1px solid var(--vysh-border);
  padding-top: 24px;
  min-height: 72vh;
}
#column-left::before {
  content: 'Categories';
  display: block;
  font-family: var(--vysh-serif);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--vysh-red);
  padding: 0 20px 12px;
}
#column-left .list-group { border-radius: 0; }
#column-left .list-group-item {
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  color: var(--vysh-text);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 20px;
}
#column-left .list-group-item:hover { background: var(--vysh-hover); color: var(--vysh-red); }
#column-left .list-group-item.active {
  background: var(--vysh-hover);
  color: var(--vysh-red);
  border-left-color: var(--vysh-red);
}
#content { padding: 24px 0 0 24px; }

/* ---------- 8. HERO, ОРНАМЕНТ-РОЗДІЛЮВАЧ, ПЛИТКИ ---------- */
.vysh-hero {
  min-height: 300px;
  background: repeating-linear-gradient(135deg, var(--vysh-linen) 0 14px, var(--vysh-linen-2) 14px 28px);
  border: 1px solid var(--vysh-border);
  display: flex;
  align-items: center;
  padding: 40px 44px;
}
.vysh-hero h2 { font-size: 34px; line-height: 1.15; max-width: 460px; margin: 0; }
.vysh-hero p { margin: 12px 0 0; max-width: 420px; font-size: 14px; color: var(--vysh-muted); }
.vysh-hero .btn { margin-top: 20px; padding: 13px 26px; }

.vysh-ornament {
  height: 17px;
  margin: 26px 0;
  background: url('../../../image/catalog/ornament.gif') repeat-x;
  background-size: 14px 17px;
  image-rendering: pixelated;
}

.vysh-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}
.vysh-tiles > div { margin: 0; }
.vysh-tiles p { margin: 0; }
.vysh-tiles a { display: block; text-decoration: none; color: var(--vysh-text); text-align: center; }
.vysh-tiles .tile-img {
  display: block;
  height: 150px;
  background: repeating-linear-gradient(45deg, var(--vysh-linen) 0 10px, var(--vysh-linen-2) 10px 20px);
  border: 1px solid var(--vysh-border);
  overflow: hidden;
}
.vysh-tiles .tile-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.vysh-tiles .tile-name {
  display: block;
  margin-top: 9px;
  font-family: var(--vysh-serif);
  font-weight: 600;
  font-size: 13.5px;
}
.vysh-tiles a:hover .tile-name { color: var(--vysh-red); }

/* заголовок New Arrivals */
#content > h3 { font-size: 20px; margin-bottom: 16px; }

/* ---------- 9. КАРТКИ ТОВАРІВ (звірено: .content > .description + form > .button) ---------- */
.product-thumb {
  border: 1px solid var(--vysh-border);
  border-radius: 0;
  background: #fff;
  transition: border-color .15s;
}
.product-thumb:hover { border-color: rgba(0,0,0,.2); }
.product-thumb .image { background: var(--vysh-linen); }
.product-thumb .image img { mix-blend-mode: multiply; }
.product-thumb .description {
  padding: 12px 14px 0;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.product-thumb .content {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.product-thumb .description h4 { margin: 0 0 6px; }
.product-thumb .description h4 a {
  font-family: var(--vysh-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--vysh-text);
  text-decoration: none;
}
.product-thumb .description p:not([class]) { display: none; } /* короткий опис — геть */
.product-thumb .price { margin-bottom: 10px; }
.product-thumb .price-new {
  font-family: var(--vysh-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--vysh-red);
}
.product-thumb .price-old { color: var(--vysh-muted); font-size: 12px; }
.product-thumb .price-tax { display: none !important; }   /* Ex Tax — геть */

/* кнопки: ПОЗИЦІЙНІ селектори (1=кошик, 2=вішліст, 3=порівняння).
   Не за title: Bootstrap-тултіпи видаляють title при наведенні! */
.product-thumb .content form .button,
.product-thumb form .button {
  display: block !important;
  padding: 0 !important;
  position: static !important;   /* OC ставить absolute bottom:0 — кнопка накривала ціну */
  width: auto !important;
}
.product-thumb .description { margin-bottom: 0 !important; } /* резерв 45px під absolute-кнопку не потрібен */
.product-thumb form .button button:nth-child(1) {
  display: block;
  width: calc(100% - 28px) !important;
  margin: 0 14px 14px !important;
  background: var(--vysh-orange);
  border: 0;
  border-radius: 0;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 0;
  letter-spacing: .01em;
  line-height: 1.4 !important;
}
.product-thumb form .button button:nth-child(1):hover { background: var(--vysh-orange-h); }
.product-thumb form .button button:nth-child(1) i { display: none; }
.product-thumb form .button button:nth-child(1)::after { content: 'Add to Cart'; }
.product-thumb form .button button:nth-child(2),
.product-thumb form .button button:nth-child(3) { display: none !important; }

/* ядерна видимість ціни: перебиває будь-що */
.product-thumb .price {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
  margin: 0 0 10px !important;
}
.product-thumb .price-new, .product-thumb .price-old {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ---------- 10. КРИХТИ, ПАГІНАЦІЯ, ВКЛАДКИ ---------- */
.breadcrumb { background: transparent; padding-left: 0; font-size: 12.5px; }
.breadcrumb a { color: var(--vysh-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--vysh-red); }
.pagination .page-link { color: var(--vysh-text); border-color: var(--vysh-border); border-radius: 0; }
.pagination .page-item.active .page-link { background: var(--vysh-red); border-color: var(--vysh-red); }
.nav-tabs .nav-link { color: var(--vysh-muted); border-radius: 0; }
.nav-tabs .nav-link.active { color: var(--vysh-red); font-weight: 700; }

/* ---------- 11. СТОРІНКА ТОВАРУ ---------- */
#product .form-select, #product .form-control { border-radius: 2px; border-color: var(--vysh-text); }
.price-new, h2 .price { color: var(--vysh-red); font-family: var(--vysh-serif); }

/* ---------- 12. ФУТЕР ---------- */
footer {
  position: static !important;   /* вимкнути sticky-footer OpenCart */
  width: auto !important;
  bottom: auto !important;
  background: var(--vysh-brown) !important;
  color: var(--vysh-brown-txt);
  margin-top: 40px;
  padding-top: 30px;
}
footer h5 {
  color: #fff;
  font-family: var(--vysh-sans);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
footer a { color: var(--vysh-brown-txt) !important; text-decoration: none; line-height: 2; font-size: 12.5px; }
footer a:hover { color: #fff !important; }
footer hr { border-top: 1px solid rgba(255,255,255,.4); opacity: 1; margin: 24px 0 16px; }
footer p { color: #e3d3c2; font-size: 11.5px; }

body { margin-bottom: 0 !important; } /* резерв під absolute-футер більше не потрібен */

/* ---------- 13. МОБІЛЬНА АДАПТАЦІЯ ---------- */
@media (max-width: 767px) {
  .vysh-hero { min-height: 220px; padding: 24px; }
  .vysh-hero h2 { font-size: 24px; }
  #logo h1 a { font-size: 19px; }
  .vysh-tiles { grid-template-columns: repeat(2, 1fr); }
  #content { padding-left: 0; }
}

/* ============================================================
   PRODUCT PAGE (v19)
   ============================================================ */
#product-info .row.mb-3 > .col-sm:nth-child(2){display:flex;flex-direction:column;position:relative}
#product-info .row.mb-3 > .col-sm:nth-child(2) > h1{order:1;font-size:34px;line-height:1.15;margin:0 0 10px;padding-right:64px}
#product-info .row.mb-3 > .col-sm:nth-child(2) > ul.list-unstyled:has(.price-new){order:2;margin:0 0 14px}
#product-info .price-new{font-family:'Lora',serif;font-size:32px;font-weight:700;color:#c0392b}
#product-info .row.mb-3 > .col-sm:nth-child(2) > ul.list-unstyled:has(.price-new) h2{margin:0}
#product-info ul.list-unstyled:has(.price-new) li:not(:first-child){display:none}
#product-info .row.mb-3 > .col-sm:nth-child(2) > ul.list-unstyled:not(:has(.price-new)){order:3;margin:0 0 16px;font-family:'Manrope',sans-serif;font-size:14px;color:#8a7a68}
#product-info .row.mb-3 > .col-sm:nth-child(2) > ul.list-unstyled:not(:has(.price-new)) li{margin-bottom:2px}
#product-info .rating{order:4;margin:0 0 6px;font-size:13px}
#product-info .rating p{margin:0}
#product-info .rating a{color:#8a7a68}
#product-info #product{order:5}
#product-info .row.mb-3 > .col-sm:nth-child(2) > form[method="post"]{position:absolute;top:2px;right:0;z-index:2}
#product-info .row.mb-3 > .col-sm:nth-child(2) > form[method="post"] .btn-group{display:block}
#product-info .row.mb-3 > .col-sm:nth-child(2) > form[method="post"] button{width:48px;height:48px;border-radius:50% !important;border:1px solid #d9cbb8;background:#fff;color:#c0392b;padding:0;font-size:17px}
#product-info .row.mb-3 > .col-sm:nth-child(2) > form[method="post"] button:hover{background:#c0392b;color:#fff;border-color:#c0392b}
#product-info .row.mb-3 > .col-sm:nth-child(2) > form[method="post"] button:nth-child(2){display:none}
#product-info .row.mb-3 > .col-sm:nth-child(2) > br{display:none}
#form-product > hr{display:none}
#form-product > h3{display:none}
#form-product .form-label{font-family:'Manrope',sans-serif;font-weight:700;font-size:14px;color:#3a3128;margin-bottom:8px}
#form-product select.form-select.vysh-hidden-select{display:none}
.vysh-size-btns{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.vysh-size{min-width:52px;height:44px;padding:0 14px;border:1px solid #d9cbb8;background:#fff;border-radius:2px;font-family:'Manrope',sans-serif;font-size:15px;font-weight:500;color:#3a3128;cursor:pointer;transition:border-color .15s,background .15s}
.vysh-size:hover{border-color:var(--vysh-brown,#96795a)}
.vysh-size.active{background:var(--vysh-brown,#96795a);border-color:var(--vysh-brown,#96795a);color:#fff}
#form-product .input-group{display:flex;align-items:stretch;gap:16px;margin-top:6px}
#form-product .input-group .input-group-text{display:none}
.vysh-qty{display:flex;align-items:stretch;flex:0 0 auto}
.vysh-qty-btn{width:42px;border:1px solid #d9cbb8;background:#fff;color:#3a3128;font-size:18px;line-height:1;cursor:pointer;border-radius:2px 0 0 2px}
.vysh-qty-btn:last-child{border-radius:0 2px 2px 0}
#form-product #input-quantity{flex:0 0 56px;width:56px;height:auto;min-height:50px;border:1px solid #d9cbb8;border-left:0;border-right:0;border-radius:0;text-align:center;font-family:'Manrope',sans-serif;font-size:16px;background:#fff;box-shadow:none}
#form-product #button-cart{flex:1 1 auto;min-height:50px;background:#e8622c;border:none;border-radius:2px;font-family:'Manrope',sans-serif;font-weight:700;font-size:16px;letter-spacing:.02em;color:#fff}
#form-product #button-cart:hover{background:#d4551f}
#product-info .image.magnific-popup > a > img.img-thumbnail{width:100%;border:1px solid #e0d5c5;border-radius:0;padding:0;background:#fff}
#product-info .image.magnific-popup > div a img.img-thumbnail{width:84px;height:84px;object-fit:cover;border:1px solid #e0d5c5;border-radius:0;padding:0;margin:10px 8px 0 0;transition:border-color .15s}
#product-info .image.magnific-popup > div a img.img-thumbnail:hover{border-color:#c0392b}
#product-info .breadcrumb{font-family:'Manrope',sans-serif;font-size:13px;margin-bottom:18px}
#product-info .breadcrumb a{color:#8a7a68;text-decoration:none}
#product-info .breadcrumb a:hover{color:#c0392b}
#product-info .nav-tabs{border-bottom:1px solid #e0d5c5;margin-top:28px}
#product-info .nav-tabs .nav-item{margin-right:28px}
#product-info .nav-tabs .nav-link{font-family:'Manrope',sans-serif;font-weight:700;font-size:15px;color:#8a7a68;border:none;border-bottom:2px solid transparent;padding:10px 2px;background:transparent}
#product-info .nav-tabs .nav-link:hover{color:#3a3128}
#product-info .nav-tabs .nav-link.active{color:#3a3128;background:transparent;border:none;border-bottom:2px solid #c0392b}
#product-info .tab-content{padding-top:18px;font-size:15px;line-height:1.75;color:#4a4136;max-width:760px}
@media (max-width: 575px){
  #product-info .row.mb-3 > .col-sm:nth-child(2) > h1{font-size:26px;padding-right:56px}
  #form-product #button-cart{font-size:15px}
}


/* ============================================================
   PRODUCT PAGE refinements (v20)
   ============================================================ */
/* breadcrumb off on product page */
#product-info .breadcrumb{display:none}
/* shorter Add to Cart */
#form-product .input-group #button-cart{flex:0 1 75%}
/* description moved under buy form (vyshyvanka.js adds .vysh-moved) */
#product-info.vysh-moved .nav-tabs{display:none}
#product-info.vysh-moved .tab-content{display:none}
.vysh-desc{order:6;margin-top:30px}
.vysh-desc-head{border-bottom:2px solid #c0392b;padding-bottom:10px}
.vysh-desc-head h4{font-family:'Manrope',sans-serif;font-weight:700;font-size:15px;color:#3a3128;margin:0;display:inline-block}
.vysh-desc-body{padding-top:14px;font-size:15px;line-height:1.75;color:#4a4136}
.vysh-desc-body p:last-child{margin-bottom:0}
/* You May Also Like */
.vysh-related-title{font-size:22px;margin:36px 0 18px}


/* ---------- v21: no reviews row on product page ---------- */
#product-info .rating{display:none}

/* checkout: без поля Company */
.col:has(> #input-shipping-company), .col:has(> #input-payment-company), .col:has(> #input-company) { display: none !important; }
