/* ==========================================================================
   LifeLockets "Villa" theme for OpenCart 4.1
   Ported from the Villa 1.5 theme. Design tokens taken from the legacy
   villa_* settings in the 1.5 store database:

   primary (thickbar/headings/footer/body bg) #849BAB
   container bg  #F7F7F7   pattern overlays 24 (body) / 14 (container)
   menu bg       #000000   (hover #2e2e2e from villa stylesheet)
   accent teal   #29B4A5   (new badge, icon buttons, old-price colour)
   accent red    #D14D59   (sale + bestseller badges)
   cart count    #17B437
   product box   bg #F5F5F5  border #B3B3B3  hover border #F1A0B5
   product name  #24151C    price #000000
   top bar text  #FFFFFF    footer text/links #FFFFFF
   currency      bg #FFFFFF text #849BAB
   fonts         Quando (body/title/buttons)
   ========================================================================== */

:root {
  --villa-primary: #849BAB;
  --villa-container: #F7F7F7;
  --villa-menu: #000000;
  --villa-menu-hover: #2e2e2e;
  --villa-teal: #29B4A5;
  --villa-red: #D14D59;
  --villa-green: #17B437;
  --villa-box-bg: #F5F5F5;
  --villa-box-border: #B3B3B3;
  --villa-box-border-hover: #F1A0B5;
  --villa-name: #24151C;
  --villa-font: 'Quando', Georgia, serif;
}

/* ---- page frame ------------------------------------------------------- */
body.villa {
  background: var(--villa-primary) url('../image/patterns/24.png');
  font-family: var(--villa-font);
  font-size: 14px;
  color: #000;
  padding: 20px 0;
}

body.villa > #container {
  position: static;
  width: auto;
  min-height: auto;
  margin-bottom: 0;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--villa-container) url('../image/patterns/14.png');
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, .25);
  overflow: visible;
}

body.villa h1, body.villa h2, body.villa h3, body.villa h4,
body.villa legend, body.villa .btn {
  font-family: var(--villa-font);
}

body.villa h1, body.villa h2 {
  color: var(--villa-primary);
}

body.villa a {
  color: var(--villa-primary);
}

body.villa a:hover {
  color: var(--villa-teal);
}

/* ---- top utility bar --------------------------------------------------- */
.villa-topbar {
  background: var(--villa-primary);
  color: #fff;
  border-radius: 10px 10px 0 0;
  padding: 8px 0;
  font-size: 12px;
  text-transform: uppercase;
}

.villa-topbar a,
.villa-topbar .dropdown-toggle {
  color: #fff;
  text-decoration: none;
}

.villa-topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

.villa-usp .list-inline-item {
  margin-right: 18px;
}

.villa-usp i {
  margin-right: 4px;
}

.villa-topbar .dropdown-menu a {
  color: #333;
}

.villa-topbar .dropdown-menu a:hover {
  color: var(--villa-primary);
  text-decoration: none;
}

/* currency selector: white pill, primary text (villa_currency_*) */
.villa-topbar form .dropdown-toggle,
.villa-topbar #form-currency .dropdown-toggle {
  background: #fff;
  color: var(--villa-primary);
  border-radius: 4px;
  padding: 1px 8px;
  display: inline-block;
}

/* ---- header ------------------------------------------------------------ */
.villa-header {
  padding: 18px 0 10px;
}

.villa-header #logo img {
  max-height: 120px;
  margin: 0 auto;
}

/* search box */
.villa-header #search {
  max-width: 320px;
}

.villa-header #search .form-control {
  border: 1px solid var(--villa-box-border);
  border-radius: 20px 0 0 20px;
  font-family: var(--villa-font);
}

.villa-header #search .btn {
  background: var(--villa-primary);
  color: #fff;
  border: 1px solid var(--villa-primary);
  border-radius: 0 20px 20px 0;
}

.villa-header #search .btn:hover {
  background: var(--villa-teal);
  border-color: var(--villa-teal);
}

/* cart widget: dark button, green total (villa_cart_color #17B437) */
.villa-header #header-cart .btn,
.villa-header #cart .btn {
  background: var(--villa-menu);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: var(--villa-font);
}

.villa-header #header-cart .btn:hover,
.villa-header #cart .btn:hover {
  background: var(--villa-menu-hover);
}

.villa-header #cart .btn span,
.villa-header #header-cart .btn span {
  color: var(--villa-green);
}

/* ---- main menu (black bar, dropdown panels) ----------------------------- */
.villa-menu {
  background: var(--villa-menu) !important;
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 0 10px;
}

.villa-menu .navbar-nav > .nav-item > .nav-link,
.villa-menu .navbar-nav > .nav-item > a {
  color: #eee !important;
  font-size: 14px;
  padding: 12px 18px;
  text-decoration: none;
}

.villa-menu .navbar-nav > .nav-item:hover {
  background: var(--villa-menu-hover);
}

.villa-menu #category {
  color: #fff;
  font-family: var(--villa-font);
  padding: 10px;
}

.villa-menu .navbar-toggler {
  color: #fff;
  border-color: #555;
}

.villa-menu .dropdown-menu {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0 0 5px 5px;
  padding: 10px;
}

.villa-menu .dropdown-menu .dropdown-item {
  color: #555;
  padding: 6px 10px;
}

.villa-menu .dropdown-menu .dropdown-item:hover {
  color: #fff;
  background: var(--villa-primary);
}

/* ---- section headings (villa box-heading: primary bg, white text) ------- */
#content > h2,
#content > div > h3,
#content h3 {
  background: var(--villa-primary);
  color: #fff;
  font-size: 20px;
  text-transform: uppercase;
  padding: 12px 15px;
  border-radius: 5px;
  margin: 25px 0 20px;
}

#content h1 {
  color: var(--villa-primary);
  text-transform: uppercase;
  font-size: 26px;
}

/* column boxes (category module etc.) */
#column-left h2, #column-right h2,
#column-left h3, #column-right h3 {
  background: var(--villa-primary);
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 5px;
}

#column-left .list-group-item {
  font-family: var(--villa-font);
  color: #555;
}

#column-left .list-group-item.active,
#column-left .list-group-item:hover {
  background: var(--villa-primary);
  border-color: var(--villa-primary);
  color: #fff;
}

/* ---- product cards ------------------------------------------------------ */
.product-thumb {
  background: var(--villa-box-bg);
  border: 1px solid var(--villa-box-border);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  transition: border-color .2s ease;
  height: 100%;
}

.product-thumb:hover {
  border-color: var(--villa-box-border-hover);
}

.product-thumb .image {
  background: #fff;
  padding: 8px;
  text-align: center;
}

.product-thumb .image img {
  margin: 0 auto;
}

.product-thumb .content {
  padding: 10px 12px;
  text-align: left;
}

.product-thumb .description h4,
.product-thumb .description .name {
  font-size: 15px;
  margin-bottom: 6px;
}

.product-thumb .description h4 a,
.product-thumb .description .name a {
  color: var(--villa-name);
  font-weight: bold;
  text-decoration: none;
}

.product-thumb .description h4 a:hover,
.product-thumb .description .name a:hover {
  color: var(--villa-primary);
}

.product-thumb .description p {
  color: #000;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  max-height: 3.2em;
  overflow: hidden;
}

.product-thumb .price {
  color: #000;
  font-size: 20px;
  font-weight: bold;
}

.product-thumb .price-old {
  color: var(--villa-teal);
  font-size: 15px;
  font-weight: normal;
  text-decoration: line-through;
  margin-left: 6px;
}

.product-thumb .price-new {
  color: #000;
}

.product-thumb .price-tax {
  display: block;
  color: #999;
  font-size: 11px;
  font-weight: normal;
}

/* card action buttons: teal squares (villa_icons_bg #29B4A5, hover #CCCCCC) */
.product-thumb .button {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.product-thumb .button button {
  background: var(--villa-teal);
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 38px;
  height: 34px;
}

.product-thumb .button button:hover {
  background: #ccc;
  color: #000;
}

/* SALE badge (villa_sale_bg #D14D59) */
.villa-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 12px;
}

.villa-badge-sale {
  background: var(--villa-red);
}

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

/* ---- generic buttons ---------------------------------------------------- */
body.villa .btn-primary {
  background: var(--villa-primary);
  border-color: var(--villa-primary);
  font-family: var(--villa-font);
}

body.villa .btn-primary:hover,
body.villa .btn-primary:focus {
  background: var(--villa-teal);
  border-color: var(--villa-teal);
}

/* ---- homepage ------------------------------------------------------------ */
/* slideshow */
#content .carousel {
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 25px;
}

#content .carousel img {
  border-radius: 5px;
  width: 100%;
}

/* category tile grid */
.villa-tiles .row {
  margin: 0 -8px;
}

.villa-tiles a {
  display: block;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--villa-box-border);
  background: #fff;
  transition: opacity .2s ease, border-color .2s ease;
}

.villa-tiles a:hover {
  opacity: .85;
  border-color: var(--villa-box-border-hover);
}

.villa-tiles img {
  width: 100%;
  height: auto;
  display: block;
}

/* welcome block */
.villa-welcome {
  text-align: center;
  color: var(--villa-primary);
  font-size: 20px;
  padding: 5px 0 0;
}

.villa-welcome p {
  margin-bottom: 10px;
}

/* ---- custom blocks above footer ----------------------------------------- */
.villa-customblocks {
  margin-top: 30px;
}

.villa-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
  height: 100%;
}

.villa-box-heading {
  background: var(--villa-primary);
  color: #fff;
  font-family: var(--villa-font);
  text-transform: uppercase;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 5px 5px 0 0;
}

.villa-box-content {
  padding: 15px;
}

/* ---- footer (villa_footer_bg #849BAB, white text/links) ------------------ */
.villa-footer {
  background: var(--villa-primary);
  color: #fff;
  border-radius: 0 0 10px 10px;
  margin-top: 20px;
  padding: 25px 0 15px;
}

.villa-footer h5 {
  color: #fff;
  font-family: var(--villa-font);
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.villa-footer a {
  color: #fff;
  text-decoration: none;
}

.villa-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.villa-footer ul.list-unstyled li {
  margin-bottom: 5px;
  font-size: 12px;
}

.villa-footer hr {
  border-color: rgba(255, 255, 255, .35);
}

.villa-social li {
  margin-bottom: 6px;
}

.villa-social-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: #fff;
  color: var(--villa-primary);
  border-radius: 50%;
  margin-right: 5px;
}

.villa-social a:hover .villa-social-icon {
  background: var(--villa-teal);
  color: #fff;
}

.villa-payment-text {
  font-size: 12px;
}

.villa-payment img {
  height: 28px;
  border-radius: 3px;
  background: #fff;
}

.villa-bottom {
  font-size: 12px;
}

/* ---- product page -------------------------------------------------------- */
#product .price-new,
#content .h2.price,
#product h2 {
  color: #000;
}

#product .price-old {
  color: var(--villa-teal);
  text-decoration: line-through;
}

/* breadcrumb */
body.villa .breadcrumb {
  background: transparent;
  font-size: 12px;
}

/* pagination */
body.villa .pagination .page-link {
  color: var(--villa-primary);
  font-family: var(--villa-font);
}

body.villa .pagination .active > .page-link {
  background: var(--villa-primary);
  border-color: var(--villa-primary);
  color: #fff;
}

/* ---- small screens -------------------------------------------------------- */
@media (max-width: 767px) {
  body.villa {
    padding: 0;
  }

  body.villa > #container,
  .villa-topbar,
  .villa-footer {
    border-radius: 0;
  }

  .villa-header #logo img {
    max-height: 90px;
  }
}

/* ---- overrides for OpenCart default stylesheet.css (ID-selector wins) --- */
body.villa #top {
  background-color: var(--villa-primary);
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 5px;
}
body.villa #top .list-inline-item > a,
body.villa #top .list-inline-item .dropdown > a {
  color: #fff;
  line-height: inherit;
  font-size: 12px;
}
body.villa footer {
  position: static;
  border: none;
  width: auto;
}
body.villa #top form .dropdown-toggle,
body.villa #top #form-currency .dropdown-toggle {
  color: var(--villa-primary);
}
body.villa footer a { color: #fff; }
body.villa footer a:hover { color: #fff; text-decoration: underline; }
/* match legacy 45px menu bar */
body.villa .villa-menu { padding: 0 10px; }
body.villa .villa-menu .navbar,
body.villa .villa-menu.navbar { padding-top: 0; padding-bottom: 0; min-height: 0; }
body.villa .villa-menu .navbar-nav > .nav-item > .nav-link,
body.villa .villa-menu .navbar-nav > .nav-item > a {
  font-size: 13px;
  line-height: 21px;
  padding: 12px 15px;
}
