/* ============================================================
   KVITU.UA STYLE THEME — OpenCart 3
   Color: green #4db050, dark top bar, white body
   ============================================================ */

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

:root {
  --green: #4db050;
  --green-dark: #3d9440;
  --green-light: #e8f5e9;
  --dark: #2d2d2d;
  --text: #333;
  --text-light: #777;
  --border: #e5e5e5;
  --bg: #f5f5f5;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

/* ---- RESET DEFAULTS ---- */
body {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  transition: color .2s;
}

a:hover {
  color: var(--green-dark);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text);
}

/* Hide default OpenCart top nav, header, menu — we override them */
nav#top {
  display: none !important;
}

header:not(#main-header) {
  display: none !important;
}

#menu {
  display: none !important;
}

/* ============================================================
   TOP INFO BAR — dark strip with links + phone + schedule
   ============================================================ */
#top-info-bar {
  background: var(--dark);
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  padding: 6px 0;
  letter-spacing: 0.3px;
}

#top-info-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#top-info-bar .top-left {
  display: flex;
  align-items: center;
}

.top-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}

.top-nav-links li {
  position: relative;
}

.top-nav-links li+li::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, .25);
}

.top-nav-links li a {
  color: rgba(255, 255, 255, .8);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0 6px;
  white-space: nowrap;
}

.top-nav-links li a:hover {
  color: #fff;
}

#top-info-bar .top-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.top-schedule {
  color: rgba(255, 255, 255, .7);
}

.top-schedule .fa {
  margin-right: 4px;
}

.top-phone a {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.top-phone .fa {
  margin-right: 4px;
  color: var(--green);
}

/* ============================================================
   MAIN HEADER — logo + search + icons
   ============================================================ */
#main-header {
  background: var(--white);
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-logo {
  flex: 0 0 220px;
}

.header-logo img {
  max-height: 55px;
}

.header-logo .logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  display: inline-block;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.header-logo .logo-text .fa {
  margin-right: 4px;
  font-size: 22px;
}

.header-logo .logo-text:hover {
  color: var(--green-dark);
  text-decoration: none;
}

.header-search {
  flex: 1;
}

/* Search bar override */
.header-search #search {
  margin: 0;
}

.header-search #search .input-lg {
  height: 46px;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 14px;
  padding: 8px 16px;
  box-shadow: none;
}

.header-search #search .input-lg:focus {
  border-color: var(--green);
  box-shadow: none;
}

.header-search #search .btn-lg {
  height: 46px;
  background: var(--white);
  border: 2px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-light);
  font-size: 18px;
  padding: 0 18px;
}

.header-search #search .btn-lg:hover {
  color: var(--green);
}

/* Header icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 18px;
  transition: all .2s;
}

.header-icon:hover {
  background: var(--green);
  color: var(--white);
}

/* Cart in header */
.header-cart-wrap {
  position: relative;
}

.header-cart-wrap #cart {
  margin: 0;
}

.header-cart-wrap #cart>.btn {
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  height: 44px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-cart-wrap #cart>.btn:hover {
  background: var(--green-dark);
}

.header-cart-wrap #cart>.btn .fa-shopping-cart {
  font-size: 18px;
}

.header-cart-wrap .dropdown-menu {
  min-width: 320px;
}

/* ============================================================
   GREEN MENU BAR
   ============================================================ */
#menu-bar {
  background: var(--green);
  border: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 100;
}

#menu-bar .container {
  padding: 0;
}

.btn-menu-toggle {
  background: var(--green);
  border: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  width: 100%;
  text-align: left;
}

.main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.main-nav>li>a {
  display: block;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 12px 10px;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  transition: background .2s;
  white-space: nowrap;
}

.main-nav>li>a:hover,
.main-nav>li.open>a {
  background: rgba(255, 255, 255, .15);
  color: var(--white);
}

/* Dropdown */
.main-nav .dropdown-menu {
  border-radius: 0 0 var(--radius) var(--radius);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  padding: 15px 20px;
  min-width: 220px;
}

.main-nav .dropdown-menu .dropdown-inner {
  display: flex;
  gap: 20px;
}

.main-nav .dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav .dropdown-menu li a {
  display: block;
  padding: 4px 0;
  color: var(--text);
  font-size: 13px;
}

.main-nav .dropdown-menu li a:hover {
  color: var(--green);
}

/* ============================================================
   PRODUCT CARDS — kvitu.ua style
   ============================================================ */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--green);
}

.product-card-image {
  position: relative;
  padding: 15px;
  text-align: center;
  background: var(--white);
}

.product-card-image img {
  max-height: 200px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 3px;
  color: var(--white);
}

.badge-sale {
  background: #e74c3c;
}

.badge-new {
  background: var(--green);
}

.product-card-body {
  padding: 0 15px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 8px;
  min-height: 36px;
}

.product-card-name a {
  color: var(--text);
}

.product-card-name a:hover {
  color: var(--green);
}

.product-card-rating {
  margin-bottom: 6px;
}

.product-card-rating .fa {
  font-size: 12px;
  color: #ffc107;
}

.product-card-rating .fa-star-o {
  color: #ddd;
}

.product-card-price {
  margin-top: auto;
  padding: 0;
}

.price-current {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.price-old {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 6px;
}

.product-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.product-card-icons {
  display: flex;
  gap: 4px;
}

.product-card-icons button {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  transition: all .2s;
  padding: 0;
  font-size: 13px;
}

.product-card-icons button:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-kupyty {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background .2s;
}

.btn-kupyty:hover {
  background: var(--green-dark);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.kvitu-section {
  margin: 30px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
}

.section-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   CATEGORY PAGE PRODUCT GRID — override default .product-thumb
   ============================================================ */
.product-thumb {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  transition: all .3s;
}

.product-thumb:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--green);
}

.product-thumb .image {
  padding: 10px;
  text-align: center;
}

.product-thumb .image img {
  max-height: 200px;
}

.product-thumb .caption {
  padding: 0 12px 10px;
}

.product-thumb .caption h4 {
  font-size: 13px;
  font-weight: 500;
  min-height: 36px;
}

.product-thumb .caption h4 a {
  color: var(--text);
}

.product-thumb .caption h4 a:hover {
  color: var(--green);
}

.product-thumb .price,
.product-thumb .caption .price {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.product-thumb .price-new {
  color: #e74c3c;
  font-weight: 700;
}

.product-thumb .price-old {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 13px;
}

.product-thumb .button-group {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.product-thumb .button-group button {
  flex: 1;
  border: none;
  background: #fafafa;
  padding: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-light);
  transition: all .2s;
}

.product-thumb .button-group button:first-child {
  flex: 2;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-thumb .button-group button:first-child:hover {
  background: var(--green-dark);
}

.product-thumb .button-group button:hover {
  color: var(--green);
  background: var(--green-light);
}

.product-thumb .button-group button+button {
  border-left: 1px solid var(--border);
}

/* Rating stars */
.product-thumb .rating .fa-stack {
  font-size: 5px;
}

.product-thumb .rating .fa-star {
  color: #ffc107;
}

.product-thumb .rating .fa-star-o {
  color: #ddd;
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
#button-cart,
.btn-primary {
  background: var(--green);
  border-color: var(--green);
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 30px;
  font-size: 14px;
}

#button-cart:hover,
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:hover {
  border-top: 2px solid var(--green);
  color: var(--green);
}

.nav-tabs>li>a {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: transparent;
  padding: 12px 0;
  margin-bottom: 15px;
  font-size: 12px;
}

.breadcrumb>li+li:before {
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--green);
}

/* ============================================================
   FOOTER
   ============================================================ */
#kvitu-footer .footer-main {
  background: var(--dark);
  color: rgba(255, 255, 255, .75);
  padding: 40px 0 30px;
}

#kvitu-footer h5 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contacts li {
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
}

.footer-contacts .fa {
  width: 18px;
  color: var(--green);
  margin-right: 6px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  font-size: 16px;
  transition: all .2s;
}

.footer-social a:hover {
  background: var(--green);
  color: var(--white);
}

.footer-bottom {
  background: #222;
  padding: 15px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.list-group a {
  border-radius: 0;
  color: var(--text);
  font-size: 13px;
  padding: 10px 15px;
  border: 1px solid var(--border);
}

.list-group a.active,
.list-group a:hover {
  background: var(--green-light);
  color: var(--green);
  border-color: var(--green);
}

/* ============================================================
   BUTTONS GENERIC
   ============================================================ */
.btn-default {
  border-radius: var(--radius);
}

.btn-info {
  background: var(--green);
  border-color: var(--green);
  border-radius: var(--radius);
}

.btn-info:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* ============================================================
   CART PAGE
   ============================================================ */
.table-responsive {
  border-radius: var(--radius);
  overflow: hidden;
}

.table thead td,
.table thead th {
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination>li>a {
  color: var(--green);
  border-radius: var(--radius) !important;
  margin: 0 2px;
}

.pagination>.active>a,
.pagination>.active>a:hover {
  background: var(--green);
  border-color: var(--green);
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.panel-default>.panel-heading {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
}

.panel-default {
  border-color: var(--border);
  border-radius: var(--radius);
}

/* ============================================================
   ALERT
   ============================================================ */
.alert-success {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green-dark);
}

/* ============================================================
   SLIDESHOW / BANNER
   ============================================================ */
.slideshow.swiper-viewport {
  margin: 0 !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.slideshow .swiper-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.slideshow .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--green);
}

.slideshow .swiper-button-next,
.slideshow .swiper-button-prev {
  opacity: 0;
  transition: opacity .3s;
}

.slideshow:hover .swiper-button-next,
.slideshow:hover .swiper-button-prev {
  opacity: 1;
}

/* ============================================================
   CATEGORIES CAROUSEL
   ============================================================ */
#popular-categories {
  background: var(--white);
  padding: 25px 0 20px;
  margin: 0 0 20px;
  border-top: 3px solid var(--green);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#popular-categories .section-header {
  padding: 0 15px 15px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px;
}

.carousel-arrows {
  display: flex;
  gap: 6px;
}

.carousel-arrows button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-size: 13px;
}

.carousel-arrows button:hover {
  border-color: var(--green);
  color: var(--green);
}

.cat-carousel-wrap {
  overflow: hidden;
  padding: 0 15px;
}

.cat-carousel {
  display: flex;
  gap: 10px;
  transition: transform .4s ease;
  will-change: transform;
}

.cat-carousel-item {
  flex: 0 0 120px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
  padding: 8px 4px;
  border-radius: var(--radius);
}

.cat-carousel-item:hover {
  background: var(--green-light);
  color: var(--green);
  text-decoration: none;
}

.cat-carousel-img {
  width: 90px;
  height: 90px;
  margin: 0 auto 8px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.cat-carousel-item:hover .cat-carousel-img {
  border-color: var(--green);
}

.cat-carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-carousel-name {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3;
  display: block;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
#content {
  min-height: 400px;
}

.container {
  max-width: 1200px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .main-nav>li>a {
    padding: 11px 8px;
    font-size: 10.5px;
  }
}

@media (max-width: 991px) {
  .top-nav-links {
    gap: 4px;
  }

  .top-nav-links li a {
    font-size: 9px;
    padding: 0 3px;
  }

  .top-right {
    gap: 12px !important;
  }

  .top-schedule {
    font-size: 10px;
  }

  .top-phone a {
    font-size: 11px;
  }

  .header-logo {
    flex: 0 0 150px;
  }

  .main-nav>li>a {
    padding: 10px 7px;
    font-size: 10px;
  }
}

@media (max-width: 767px) {
  #top-info-bar .container {
    flex-direction: column;
    gap: 4px;
  }

  #top-info-bar .top-left {
    display: none;
  }

  .header-row {
    flex-wrap: wrap;
  }

  .header-logo {
    flex: 0 0 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .header-search {
    flex: 1 1 60%;
  }

  .header-icons {
    flex: 0 0 auto;
    gap: 4px;
  }

  .header-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .main-nav {
    flex-direction: column;
  }

  .main-nav>li>a {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .product-card-name {
    font-size: 12px;
    min-height: auto;
  }

  .price-current {
    font-size: 15px;
  }

  .btn-kupyty {
    padding: 6px 12px;
    font-size: 11px;
  }

  .kvitu-section {
    margin: 15px 0;
  }

  .section-header h3 {
    font-size: 18px;
  }

  #kvitu-footer .footer-main {
    padding: 25px 0 15px;
  }

  #kvitu-footer .col-md-3 {
    margin-bottom: 20px;
  }
}