/* CS-Cart Lifestyle Theme for farmacia-viamaestra.it */

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #2c6b2f;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1a5c1e;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: #2c6b2f;
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
  margin-bottom: 1em;
}

/* ============================================================
   FLUID GRID SYSTEM
   ============================================================ */
.container-fluid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row-fluid {
  width: 100%;
  display: block;
  overflow: hidden;
}

.row-fluid::after {
  content: '';
  display: table;
  clear: both;
}

.row-fluid [class*="span"] {
  float: left;
  min-height: 1px;
  padding: 0 10px;
}

.row-fluid .span2  { width: 12.5%; }
.row-fluid .span3  { width: 18.75%; }
.row-fluid .span4  { width: 25%; }
.row-fluid .span8  { width: 50%; }
.row-fluid .span11 { width: 68.75%; }
.row-fluid .span16 { width: 100%; float: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

.ty-float-left  { float: left; }
.ty-float-right { float: right; }

.ml__15 { margin-left: 15px; }

.hidden-desktop { display: none !important; }
.hidden-tablet  { display: block; }
.hidden-phone   { display: block; }

.show-me       { display: block; }
.show-desktop  { display: block; }
.show-tablet   { display: none; }

/* ============================================================
   TOP PANEL
   ============================================================ */
.tygh-top-panel {
  background-color: #1a5c1e;
  color: #ffffff;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid #145018;
}

.tygh-top-panel .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.tygh-top-panel a {
  color: #d4edda;
  transition: color 0.2s;
}

.tygh-top-panel a:hover {
  color: #ffffff;
  text-decoration: none;
}

.ty-social-link-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ty-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.15);
  color: #ffffff;
  font-size: 14px;
  transition: background-color 0.2s;
}

.ty-social-link:hover {
  background-color: rgba(255,255,255,0.3);
  color: #ffffff;
}

.ty-icon-facebook::before  { content: 'f'; font-style: normal; font-weight: bold; }
.ty-icon-instagram::before { content: '\26'; font-style: normal; }

/* PE-7s icons (pharmacy-style) */
[class^="pe-7s-"]::before {
  font-family: 'Pe-icon-7-stroke', sans-serif;
  speak: none;
  font-style: normal;
  font-weight: normal;
  display: inline-block;
  vertical-align: middle;
}

.pe-7s-call   { margin-right: 4px; }
.pe-7s-mail   { margin-right: 4px; }
.pe-7s-user   { margin-right: 4px; }
.pe-7s-search { font-size: 18px; }

/* ============================================================
   HEADER
   ============================================================ */
.tygh-header {
  background-color: #ffffff;
  border-bottom: 3px solid #2c6b2f;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.header-grid {
  display: block;
  padding: 0;
}

/* Logo */
.top-logo,
.top-logo-gr {
  flex: 0 0 auto;
  max-width: 220px;
}

.top-logo img,
.top-logo-gr img {
  max-height: 50px;
  width: auto;
}

/* Search */
.ty-search {
  flex: 1 1 auto;
  max-width: 420px;
  position: relative;
}

.ty-search-field {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 2px solid #2c6b2f;
  border-radius: 25px;
  font-size: 14px;
  color: #333333;
  background: #f9f9f9;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ty-search-field:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76,175,80,0.2);
  background: #ffffff;
}

.ty-search .ty-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: #2c6b2f;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.ty-search .ty-btn:hover {
  background: #1a5c1e;
}

.fancy_search_toggler,
.fancy_search_toggler_h {
  cursor: pointer;
  color: #2c6b2f;
  font-size: 22px;
  padding: 5px;
  display: inline-flex;
  align-items: center;
}

.fancy_search_toggler_show {
  display: block;
}

/* Cart header */
.top-cart-content,
.ty-cart-content {
  flex: 0 0 auto;
  position: relative;
}

.ty-minicart,
.ty-mini-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2c6b2f;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.ty-minicart:hover,
.ty-mini-cart:hover {
  background: #1a5c1e;
  color: #ffffff;
  text-decoration: none;
}

.ty-minicart .ty-minicart__counter,
.ty-mini-cart__counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4caf50;
  color: #ffffff;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  padding: 0 4px;
}

/* Top header links row */
.top-l {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
}

.top-l a {
  color: #2c6b2f;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-l a:hover {
  color: #1a5c1e;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.ty-menu {
  background-color: #2c6b2f;
  border-top: 1px solid #245927;
}

.top-menu,
.top-menu-gr,
.top-menu-grid {
  background-color: #2c6b2f;
}

.ty-menu__items {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ty-menu__item {
  position: relative;
}

.ty-menu__item-link,
.ty-menu__item-nodrop {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.ty-menu__item-link:hover,
.ty-menu__item-nodrop:hover,
.ty-menu__item:hover > .ty-menu__item-link {
  background-color: #1a5c1e;
  color: #ffffff;
  text-decoration: none;
}

.ty-icon-down-open {
  font-size: 11px;
  opacity: 0.75;
  margin-left: 2px;
}

/* Dropdowns */
.ty-menu__submenu,
.ty-menu__submenu-l,
.ty-menu__submenu-alt-l {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #2c6b2f;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 999;
  border-radius: 0 0 4px 4px;
}

.ty-menu__item:hover > .ty-menu__submenu,
.ty-menu__item:hover > .ty-menu__submenu-l,
.ty-menu__item:hover > .ty-menu__submenu-alt-l {
  display: block;
}

.ty-menu__submenu-items {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.ty-menu__submenu-link {
  display: block;
  padding: 10px 18px;
  color: #333333;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.ty-menu__submenu-link:hover {
  background: #f0f8f0;
  color: #2c6b2f;
  text-decoration: none;
  padding-left: 24px;
}

.ty-menu__icon-open {
  font-size: 10px;
  color: #2c6b2f;
  margin-left: auto;
}

/* Vertical menu */
.ty-menu-vert .ty-menu__items {
  flex-direction: column;
}

.ty-menu-vert .ty-menu__item-link {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ty-menu-vert .ty-menu__submenu {
  position: relative;
  top: auto;
  left: auto;
  box-shadow: none;
  border: none;
  border-top: none;
  background: #245927;
}

.ty-menu-vert .ty-menu__submenu-link {
  color: #d4edda;
  padding-left: 28px;
}

.ty-menu-vert .ty-menu__submenu-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  padding-left: 32px;
}

/* ============================================================
   HAMBURGER MENU (Mobile)
   ============================================================ */
.sd-hamburger-menu {
  display: none;
  position: relative;
  z-index: 1100;
}

.sd-hamburger-menu__wrapper {
  display: flex;
  align-items: center;
}

.sd-hamburger-menu__button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

.sd-hamburger-menu__button span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #2c6b2f;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.sd-hamburger-menu__mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1090;
}

.sd-hamburger-menu--open .sd-hamburger-menu__mask {
  display: block;
}

.sd-hamburger-menu__close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.sd-hamburger-menu__items {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: #2c6b2f;
  z-index: 1100;
  overflow-y: auto;
  transition: left 0.3s ease;
  padding-top: 56px;
}

.sd-hamburger-menu--open .sd-hamburger-menu__items {
  left: 0;
}

.sd-hamburger-menu__items-wrapper {
  padding: 10px 0;
}

.sd-hamburger-menu__items .ty-menu__item-link,
.sd-hamburger-menu__items .ty-menu__item-nodrop {
  padding: 12px 20px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sd-hamburger-menu__items .ty-menu__submenu-link {
  background: #245927;
  color: #d4edda;
  padding: 10px 20px 10px 32px;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.tygh-container,
.tygh-main-container {
  min-height: 60vh;
  background: #ffffff;
}

.tygh-content {
  padding: 24px 0;
}

/* ============================================================
   AJAX OVERLAY
   ============================================================ */
.ty-ajax-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.7);
  z-index: 9000;
  display: none;
}

.ty-ajax-loading-box {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #2c6b2f;
  color: #ffffff;
  padding: 20px 36px;
  border-radius: 8px;
  font-size: 15px;
  z-index: 9001;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ============================================================
   HOMEPAGE — HERO (BENVENUTO-FARMAC)
   ============================================================ */
.benvenuto-farmac {
  background: linear-gradient(135deg, #1a5c1e 0%, #2c6b2f 50%, #4caf50 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.benvenuto-farmac::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}

.benvenuto-farmac .container-fluid {
  position: relative;
  z-index: 1;
}

.benvenuto-farmac h1,
.benvenuto-farmac h2 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.benvenuto-farmac p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin: 0 auto 28px;
}

.btn-welcome {
  display: inline-block;
  background: #ffffff;
  color: #2c6b2f;
  padding: 14px 34px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-welcome:hover {
  background: #f0f8f0;
  color: #1a5c1e;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ============================================================
   HOMEPAGE — GREEN BACKGROUND SECTIONS
   ============================================================ */
.background-verde {
  background-color: #f0f8f0;
  border-top: 3px solid #2c6b2f;
  border-bottom: 3px solid #2c6b2f;
  padding: 50px 0;
}

.background-verde h2,
.background-verde h3 {
  color: #1a5c1e;
}

.background-verde p {
  color: #444444;
}

/* Prenota / booking section */
.row-prenota {
  padding: 40px 0;
  background: #ffffff;
}

.cont-prenota {
  text-align: center;
  padding: 20px;
}

.conta {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 16px;
}

.buttons-conta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* About section */
.about-gr {
  padding: 50px 0;
}

.about-gr h2 {
  color: #2c6b2f;
  margin-bottom: 16px;
}

.about-gr p {
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
}

/* Generic blocks */
.blocch {
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e8f5e9;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(44,107,47,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.blocch:hover {
  box-shadow: 0 4px 16px rgba(44,107,47,0.14);
  transform: translateY(-2px);
}

.blocch h3 {
  font-size: 1.1rem;
  color: #2c6b2f;
  margin-bottom: 10px;
}

/* Index homepage wrapper */
.index {
  padding-bottom: 40px;
}

/* ============================================================
   WYSIWYG CONTENT
   ============================================================ */
.ty-wysiwyg-content {
  line-height: 1.7;
  color: #444444;
}

.ty-wysiwyg-content h2,
.ty-wysiwyg-content h3 {
  color: #2c6b2f;
  margin-top: 1.4em;
}

.ty-wysiwyg-content ul,
.ty-wysiwyg-content ol {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 1em;
}

.ty-wysiwyg-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

.ty-wysiwyg-content table th,
.ty-wysiwyg-content table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
}

.ty-wysiwyg-content table th {
  background: #2c6b2f;
  color: #ffffff;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.ty-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.ty-btn__primary {
  background-color: #2c6b2f;
  color: #ffffff;
  border-color: #2c6b2f;
}

.ty-btn__primary:hover {
  background-color: #1a5c1e;
  border-color: #1a5c1e;
  color: #ffffff;
}

.ty-btn__secondary {
  background-color: transparent;
  color: #2c6b2f;
  border-color: #2c6b2f;
}

.ty-btn__secondary:hover {
  background-color: #2c6b2f;
  color: #ffffff;
}

.ty-btn:disabled,
.ty-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  font-size: 14px;
  color: #333333;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: #2c6b2f;
  box-shadow: 0 0 0 3px rgba(44,107,47,0.15);
  background: #ffffff;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #444444;
  font-size: 13px;
}

.ty-control-group {
  margin-bottom: 16px;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.ty-breadcrumbs {
  padding: 10px 0;
  margin-bottom: 18px;
  border-bottom: 1px solid #e8f5e9;
  font-size: 13px;
  color: #888888;
}

.ty-breadcrumbs__item {
  display: inline;
}

.ty-breadcrumbs__item + .ty-breadcrumbs__item::before {
  content: ' / ';
  color: #bbbbbb;
  margin: 0 4px;
}

.ty-breadcrumbs__item a {
  color: #2c6b2f;
}

.ty-breadcrumbs__item a:hover {
  color: #1a5c1e;
}

.ty-breadcrumbs__item:last-child {
  color: #555555;
  font-weight: 600;
}

/* ============================================================
   PRODUCT LIST / GRID
   ============================================================ */
.ty-product-list,
.ty-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 0;
}

.ty-product-block {
  background: #ffffff;
  border: 1px solid #e8f5e9;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  flex: 0 0 calc(25% - 15px);
  min-width: 200px;
}

.ty-product-block:hover {
  box-shadow: 0 6px 20px rgba(44,107,47,0.16);
  transform: translateY(-3px);
}

.ty-product-img {
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ty-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.3s;
}

.ty-product-block:hover .ty-product-img img {
  transform: scale(1.05);
}

.ty-product-title {
  padding: 12px 14px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  line-height: 1.4;
}

.ty-product-title a {
  color: #333333;
}

.ty-product-title a:hover {
  color: #2c6b2f;
  text-decoration: none;
}

.ty-product-code {
  padding: 0 14px 4px;
  font-size: 12px;
  color: #999999;
}

.ty-product-price {
  padding: 6px 14px 12px;
  margin-top: auto;
}

.ty-price,
.ty-price-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c6b2f;
}

.ty-old-price {
  font-size: 0.9rem;
  color: #aaaaaa;
  text-decoration: line-through;
  margin-right: 6px;
}

.ty-price-placeholder {
  color: #888888;
  font-size: 13px;
}

.ty-product-review {
  padding: 0 14px 8px;
  font-size: 12px;
  color: #888888;
}

.ty-product-block .ty-btn {
  margin: 0 14px 14px;
  width: calc(100% - 28px);
}

/* cm-ajax link style */
.cm-ajax {
  cursor: pointer;
}

.cm-product-link {
  display: block;
}

/* Category blocks */
.ty-category,
.ty-category-block {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 0;
}

.ty-category__item {
  background: #f0f8f0;
  border: 1px solid #c8e6c9;
  border-radius: 6px;
  padding: 14px 20px;
  flex: 0 0 calc(20% - 13px);
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.ty-category__item:hover {
  background: #2c6b2f;
  border-color: #2c6b2f;
  color: #ffffff;
}

.ty-category__item a {
  color: #2c6b2f;
  font-weight: 600;
  font-size: 14px;
}

.ty-category__item:hover a {
  color: #ffffff;
}

/* ============================================================
   FILTERS
   ============================================================ */
.ty-filters {
  padding: 16px;
  background: #f9f9f9;
  border: 1px solid #e8f5e9;
  border-radius: 6px;
  margin-bottom: 20px;
}

.ty-filter {
  margin-bottom: 16px;
}

.ty-filter__title {
  font-size: 13px;
  font-weight: 700;
  color: #2c6b2f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  border-bottom: 1px solid #c8e6c9;
  padding-bottom: 6px;
}

.ty-filter__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: #555555;
  cursor: pointer;
}

.ty-filter__item input[type="checkbox"] {
  width: auto;
  accent-color: #2c6b2f;
}

/* ============================================================
   CART / CHECKOUT
   ============================================================ */
.ty-cart {
  padding: 20px 0;
}

.ty-quantity,
.ty-input-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  overflow: hidden;
}

.ty-input-qty input {
  width: 48px;
  text-align: center;
  border: none;
  padding: 7px 4px;
  font-size: 14px;
}

.ty-input-qty__btn {
  background: #f0f8f0;
  border: none;
  color: #2c6b2f;
  width: 32px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  transition: background 0.15s;
}

.ty-input-qty__btn:hover {
  background: #2c6b2f;
  color: #ffffff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.tygh-footer {
  background-color: #1a5c1e;
  color: #cccccc;
  padding-top: 48px;
}

.ty-footer-gr {
  background: #1a5c1e;
}

.ty-footer-menu__header {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #4caf50;
}

.ty-footer-menu__ a,
.tygh-footer a {
  color: #bbddbb;
  font-size: 13px;
  transition: color 0.2s;
}

.ty-footer-menu__ a:hover,
.tygh-footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

.ty-footer-menu__ li {
  margin-bottom: 8px;
}

.ty-footer-menu__ li::before {
  content: '›';
  color: #4caf50;
  margin-right: 6px;
}

/* Footer newsletter form */
.ty-footer-form-block {
  margin-top: 20px;
}

.ty-footer-form-block__form {
  display: flex;
  gap: 0;
}

.ty-footer-form-block__form input[type="email"] {
  border-radius: 4px 0 0 4px;
  border: 1px solid #4caf50;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  padding: 10px 14px;
}

.ty-footer-form-block__form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.ty-footer-form-block__form input[type="email"]:focus {
  background: rgba(255,255,255,0.18);
  border-color: #81c784;
  box-shadow: none;
}

.ty-footer-form-block__form .ty-btn {
  border-radius: 0 4px 4px 0;
  background: #4caf50;
  border-color: #4caf50;
  color: #ffffff;
  padding: 10px 18px;
  white-space: nowrap;
}

.ty-footer-form-block__form .ty-btn:hover {
  background: #2c6b2f;
  border-color: #2c6b2f;
}

/* Footer no-wysiwyg area */
.footer-no-wys {
  padding: 16px 0;
  color: #aaaaaa;
  font-size: 13px;
}

/* Bottom copyright */
.bottom-copyr {
  background-color: #145018;
  color: #888888;
  font-size: 12px;
  text-align: center;
  padding: 14px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.bottom-copyr a {
  color: #aaaaaa;
}

.bottom-copyr a:hover {
  color: #ffffff;
}

/* ============================================================
   GDPR / NOTIFICATIONS
   ============================================================ */
.cm-notification-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  background: #1a5c1e;
  color: #ffffff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
}

.cm-notification-container p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  flex: 1 1 auto;
}

.cm-notification-container a {
  color: #a5d6a7;
}

.cm-notification-container .ty-btn {
  flex: 0 0 auto;
}

.cm-gdpr-toolt {
  position: relative;
  cursor: help;
}

.cm-gdpr-toolt::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #333333;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.cm-gdpr-toolt:hover::after {
  opacity: 1;
}

/* cm-d display toggle */
.cm-d { display: none; }

/* cm-comb combination block */
.cm-comb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.bp-tygh-container,
.bp-tygh-conta {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================================
   RESPONSIVE — TABLET (768px – 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .row-fluid .span2  { width: 25%; }
  .row-fluid .span3  { width: 33.333%; }
  .row-fluid .span4  { width: 50%; }
  .row-fluid .span8  { width: 100%; float: none; }
  .row-fluid .span11 { width: 100%; float: none; }

  .ty-product-block {
    flex: 0 0 calc(33.333% - 14px);
  }

  .ty-category__item {
    flex: 0 0 calc(33.333% - 11px);
  }

  .tygh-header .header-grid {
    flex-wrap: wrap;
    gap: 10px;
  }

  .ty-search {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hidden-tablet { display: none; }
  .show-tablet   { display: block; }

  .ty-menu__item-link,
  .ty-menu__item-nodrop {
    padding: 12px 12px;
    font-size: 13px;
  }

  .benvenuto-farmac {
    padding: 56px 0;
  }

  .benvenuto-farmac h1,
  .benvenuto-farmac h2 {
    font-size: 1.9rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  .row-fluid [class*="span"] {
    width: 100%;
    float: none;
    padding: 0;
  }

  .row-fluid .span2,
  .row-fluid .span3,
  .row-fluid .span4,
  .row-fluid .span8,
  .row-fluid .span11,
  .row-fluid .span16 {
    width: 100%;
    float: none;
  }

  /* Header mobile */
  .tygh-header {
    position: sticky;
    top: 0;
  }

  .header-grid {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 8px;
  }

  .top-logo,
  .top-logo-gr {
    flex: 1 1 auto;
    max-width: 160px;
  }

  .top-logo img,
  .top-logo-gr img {
    max-height: 50px;
  }

  .ty-search {
    display: none;
  }

  .ty-search.fancy_search_toggler_show {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 12px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    z-index: 900;
    max-width: 100%;
  }

  /* Hide desktop nav */
  .ty-menu {
    display: none;
  }

  .top-menu,
  .top-menu-gr,
  .top-menu-grid {
    display: none;
  }

  /* Show hamburger */
  .sd-hamburger-menu {
    display: flex;
  }

  .hidden-desktop { display: block; }
  .hidden-phone   { display: none; }
  .show-desktop   { display: none; }

  /* Top panel — stack on mobile */
  .tygh-top-panel .container-fluid {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Hero section */
  .benvenuto-farmac {
    padding: 40px 0;
  }

  .benvenuto-farmac h1,
  .benvenuto-farmac h2 {
    font-size: 1.5rem;
  }

  .benvenuto-farmac p {
    font-size: 0.95rem;
  }

  /* Products */
  .ty-product-list,
  .ty-product-grid {
    gap: 14px;
  }

  .ty-product-block {
    flex: 0 0 calc(50% - 7px);
    min-width: 0;
  }

  .ty-category__item {
    flex: 0 0 calc(50% - 8px);
  }

  /* Buttons conta */
  .buttons-conta {
    flex-direction: column;
    align-items: center;
  }

  /* Footer columns — stack */
  .tygh-footer .row-fluid {
    display: block;
  }

  .tygh-footer .row-fluid [class*="span"] {
    width: 100%;
    float: none;
    padding: 0;
    margin-bottom: 24px;
  }

  .ty-footer-form-block__form {
    flex-direction: column;
  }

  .ty-footer-form-block__form input[type="email"] {
    border-radius: 4px;
  }

  .ty-footer-form-block__form .ty-btn {
    border-radius: 4px;
    text-align: center;
  }

  /* Footer menu grid */
  .ty-footer-menu__ {
    margin-bottom: 20px;
  }

  /* Blocch */
  .blocch {
    padding: 18px;
  }

  /* Background verde */
  .background-verde {
    padding: 30px 0;
  }

  /* About */
  .about-gr {
    padding: 30px 0;
  }

  /* Cart content */
  .top-cart-content,
  .ty-cart-content {
    position: static;
  }

  .ty-minicart,
  .ty-mini-cart {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ============================================================
   EXTRA SMALL (< 400px)
   ============================================================ */
@media (max-width: 399px) {
  .ty-product-block {
    flex: 0 0 100%;
  }

  .ty-category__item {
    flex: 0 0 100%;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
}

/* ============================================================
   LOGO CONTAINER
   ============================================================ */
.top-logo {
  display: flex;
  align-items: center;
}
.ty-logo-container {
  display: block;
}
.ty-logo-container a {
  display: block;
  text-decoration: none;
}
.ty-logo-container__image {
  max-height: 80px;
  width: auto;
  display: block;
}
.ty-pict {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   SEARCH BLOCK
   ============================================================ */
.ty-search-block {
  position: relative;
  display: flex;
  align-items: center;
}
.ty-search-block form {
  display: flex;
  align-items: center;
  width: 100%;
}
.ty-search-block__input,
.ty-search-block input[type="text"],
.ty-search-block input[type="search"] {
  border: 1px solid #c8e6c9;
  border-radius: 20px;
  padding: 8px 36px 8px 15px;
  font-size: 14px;
  outline: none;
  width: 220px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ty-search-block__input:focus,
.ty-search-block input[type="text"]:focus {
  border-color: #2c6b2f;
  box-shadow: 0 0 0 2px rgba(44,107,47,0.15);
}
.ty-search-magnifier {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #2c6b2f;
  cursor: pointer;
  font-size: 16px;
}
.fancy_search_toggler {
  background: none;
  border: none;
  cursor: pointer;
  color: #2c6b2f;
  font-size: 18px;
  padding: 5px;
}

/* ============================================================
   TEXT LINKS (secondary nav)
   ============================================================ */
.ty-text-links-wrapper {
  position: relative;
}
.ty-text-links-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 13px;
  color: #555;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
}
.ty-text-links-btn:hover {
  background: #f5f5f5;
}
.ty-text-links {
  position: static;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  padding: 0;
  list-style: none;
  margin: 0;
}
.ty-text-links.open,
.ty-text-links:target {
  display: flex;
}
.ty-text-links__item {
  display: inline-flex;
  align-items: center;
}
.ty-text-links__a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  color: #333;
  transition: background 0.15s;
}
.ty-text-links__a:hover {
  background: #f5f5f5;
  color: #2c6b2f;
  text-decoration: none;
}
.ty-text-links__subitems {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 500;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 180px;
  padding: 6px 0;
  list-style: none;
}

.ty-text-links__item {
  position: relative;
}

.ty-text-links__item:hover > .ty-text-links__subitems {
  display: block;
}

.ty-text-links__subitem a {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
}

.ty-text-links__subitem a:hover {
  background: #f5f5f5;
  color: #2c6b2f;
  text-decoration: none;
}
.ty-text-links_show_inline {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.ty-text-links-btn__arrow {
  font-size: 10px;
}

/* ============================================================
   ACCOUNT INFO & DROPDOWN BOX
   ============================================================ */
.ty-account-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ty-account-info__title {
  color: #2c6b2f;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ty-account-info__title:hover {
  text-decoration: none;
  color: #1a5c1e;
}
.ty-account-info__item {
  position: relative;
}
.ty-account-info__buttons {
  display: flex;
  gap: 8px;
}
.ty-account-info__orders {
  font-size: 12px;
  color: #777;
}

.ty-dropdown-box {
  position: relative;
}
.ty-dropdown-box__title {
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #555;
  border-radius: 4px;
  transition: background 0.15s;
}
.ty-dropdown-box__title:hover {
  background: #f5f5f5;
}
.ty-dropdown-box__content {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 300;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 10px;
  display: none;
}
.ty-dropdown-box__content.open,
.ty-dropdown-box.open .ty-dropdown-box__content {
  display: block;
}
.ty-dropdown-box__item {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.ty-dropdown-box__item:last-child {
  border-bottom: none;
}
.ty-dropdown-box__item a {
  color: #333;
}

/* ============================================================
   GDPR TOOLTIP
   ============================================================ */
.ty-gdpr-tooltip,
.cm-gdpr-tooltip {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  padding: 15px 20px;
  max-width: 360px;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  font-size: 13px;
  color: #555;
}
.ty-gdpr-tooltip--light {
  background: #f9fbe9;
  border-color: #c8e6c9;
}
.ty-gdpr-tooltip--close,
.cm-gdpr-tooltip--close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #999;
  line-height: 1;
}
.ty-gdpr-tooltip--close:hover {
  color: #333;
}
.ty-gdpr-tooltip-content {
  padding-right: 20px;
}
.tooltip-arrow {
  display: none;
}
.cm-gdpr-notification {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c6b2f;
  color: #fff;
  padding: 12px 20px;
  z-index: 9998;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

/* ============================================================
   FLEX CONTAINER (Homepage sections)
   ============================================================ */
.container-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
}
.flex-inside {
  flex: 1 1 calc(25% - 15px);
  min-width: 160px;
  text-align: center;
}
.flex-inside a {
  display: block;
  text-decoration: none;
  color: #333;
}
.flex-inside img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.flex-inside img:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.flex-inside p {
  font-size: 13px;
  color: #555;
  margin-top: 8px;
}

/* ============================================================
   LOGIN FORMS
   ============================================================ */
.ty-login-popup {
  padding: 15px;
}
.ty-login__filed-label {
  font-size: 12px;
  color: #666;
  display: block;
  margin-bottom: 4px;
}
.ty-login__input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 10px;
}
.ty-login__remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 10px;
}
.ty-login-reglink {
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
}
.ty-password-forgot {
  text-align: right;
  font-size: 12px;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.ty-search-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.ty-search-item__picture {
  flex: 0 0 50px;
}
.ty-search-item__picture img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}
.ty-search-item__information {
  flex: 1;
}
.ty-search-item__title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.ty-search-item__price {
  font-size: 13px;
  color: #2c6b2f;
  font-weight: 600;
}
.ty-search-item__product-code {
  font-size: 11px;
  color: #999;
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.ty-social-link-block {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ty-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2c6b2f;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.ty-social-link:hover {
  background: #1a5c1e;
  transform: scale(1.1);
  text-decoration: none;
  color: #fff;
}

/* ============================================================
   HELPER CONTAINER & MISC
   ============================================================ */
.ty-helper-container {
  display: inline-block;
  vertical-align: middle;
}
.ty-hidden {
  display: none !important;
}
.ty-float-right {
  float: right;
}
.ty-center {
  text-align: center;
}
.ty-strong {
  font-weight: 700;
}
.ty-control-group {
  margin-bottom: 15px;
}
.ty-control-group__label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  font-weight: 600;
}
.ty-input-text,
.ty-input-append input {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
}
.ty-input-text:focus,
.ty-input-append input:focus {
  border-color: #2c6b2f;
  outline: none;
}
.ty-captcha__label {
  font-size: 12px;
  color: #666;
}
.ty-recaptcha {
  margin: 10px 0;
}

/* ============================================================
   ROW PRENOTA (Booking section)
   ============================================================ */
.row-prenota {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 30px 0;
}
.row-prenota > * {
  flex: 0 0 calc(25% - 15px);
  min-width: 140px;
  text-align: center;
}
.row-prenota img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s;
}
.row-prenota img:hover {
  transform: translateY(-3px);
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .tygh-top-panel,
  .tygh-header,
  .ty-menu,
  .top-menu,
  .sd-hamburger-menu,
  .ty-ajax-overlay,
  .cm-notification-container,
  .ty-filters {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000000;
  }

  a {
    color: #000000;
  }

  .tygh-content {
    padding: 0;
  }
}








/* ============================================================
   CUSTOM DESIGN FIXES
   ============================================================ */

/* Hide GDPR tooltip */
.ty-gdpr-tooltip,
.cm-gdpr-tooltip {
  display: none !important;
}

/* Hide AJAX loading box */
#ajax_loading_box {
  display: none !important;
}

/* Compress header rows */
.header-grid > .row-fluid {
  padding: 4px 0;
}

/* Make header-grid a positioning context for the search */
.header-grid {
  position: relative;
}

/* Search form: top-right of header, absolutely positioned */
.span16.top-menu-grid > .ty-search-block {
  position: absolute;
  top: 6px;
  right: 15px;
  width: 240px;
  z-index: 100;
  background: #fff;
}

/* Hide toggle buttons (search is always visible now) */
.fancy_search_toggler {
  display: none;
}

/* Nav row: full width */
.span16.top-menu-grid > .top-menu {
  display: block;
  width: 100%;
}

/* Compress text-links items */
.ty-text-links__a {
  padding: 4px 8px !important;
  font-size: 12px;
}

/* Hide visible-phone on desktop */
@media (min-width: 769px) {
  .visible-phone {
    display: none !important;
  }
}
