/*
Theme Name: Gesavi Pharma
Theme URI: https://gesavi.com.ar/
Author: Gesavi
Description: Clean pharmaceutical landing page and WooCommerce storefront for Gesavi Pharma.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: gesavi-pharma
*/

:root {
  --gp-ink: #172334;
  --gp-muted: #5f6b7a;
  --gp-line: #dce4ec;
  --gp-soft: #f4f8fb;
  --gp-white: #ffffff;
  --gp-blue: #087ac1;
  --gp-blue-deep: #08185c;
  --gp-green: #10bd4f;
  --gp-green-deep: #07913b;
  --gp-shadow: 0 14px 32px rgba(23, 35, 52, 0.1);
  --gp-radius: 8px;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f9fb;
  color: var(--gp-ink);
  font-family: var(--wp--preset--font-family--system-font, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.gp-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.gp-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(151, 165, 179, 0.24);
  box-shadow: 0 5px 18px rgba(25, 34, 45, 0.08);
  backdrop-filter: blur(12px);
}

.gp-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
}

.gp-logo {
  display: inline-flex;
  align-items: center;
}

.gp-logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.gp-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 46px);
  margin: 0;
  padding: 0;
  color: #253244;
  font-size: 16px;
}

.gp-nav li {
  list-style: none;
}

.gp-nav a {
  position: relative;
  padding: 10px 0;
}

.gp-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--gp-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
  content: "";
}

.gp-nav a:hover::after,
.gp-nav a:focus-visible::after {
  transform: scaleX(1);
}

.gp-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gp-icon-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #172334;
  border-radius: 999px;
}

.gp-icon-link:hover {
  background: #eef5f8;
  color: var(--gp-blue);
}

.gp-search {
  display: flex;
  align-items: center;
  width: min(230px, 18vw);
  height: 38px;
  overflow: hidden;
  border: 1px solid #ccd7e0;
  border-radius: 4px;
  background: #fff;
}

.gp-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--gp-ink);
  font: inherit;
}

.gp-search button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 100%;
  border: 0;
  background: var(--gp-blue-deep);
  color: #fff;
  cursor: pointer;
}

.gp-mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gp-ink);
}

.gp-hero {
  min-height: 480px;
  background-image: linear-gradient(90deg, rgba(248, 252, 255, 0.94) 0%, rgba(248, 252, 255, 0.84) 42%, rgba(248, 252, 255, 0.12) 72%), url("assets/images/backimage.png");
  background-position: center;
  background-size: cover;
}

.gp-hero-inner {
  display: flex;
  align-items: center;
  min-height: 480px;
  padding: 46px 0;
}

.gp-hero-copy {
  max-width: 690px;
}

.gp-hero-logo {
  width: 110px;
  height: 110px;
  margin-bottom: 16px;
  object-fit: contain;
}

.gp-hero h1 {
  margin: 0 0 22px;
  color: var(--gp-green);
  font-size: clamp(35px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.15;
}

.gp-button,
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--gp-green);
  border-radius: 8px;
  background: #fff;
  color: var(--gp-blue-deep);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.gp-button:hover,
.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  border-color: var(--gp-green-deep);
  background: var(--gp-green);
  color: #fff;
}

.gp-section {
  padding: 72px 0;
}

.gp-section-title {
  margin: 0 0 44px;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.2;
}

.gp-services {
  background: #f3f7fa;
}

.gp-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 96px;
}

.gp-service-item {
  max-width: 520px;
}

.gp-service-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  color: #1b2736;
}

.gp-service-item h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 400;
}

.gp-service-item p {
  margin: 0;
  color: #334155;
}

.gp-contact {
  background: #f7f9fb;
}

.gp-contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 370px) minmax(250px, 360px) minmax(280px, 1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}

.gp-contact h2 {
  margin: 0 0 4px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
}

.gp-contact p {
  margin: 0 0 14px;
}

.gp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.gp-form input,
.gp-form textarea {
  width: 100%;
  border: 1px solid #ccd7e0;
  border-radius: 4px;
  background: #fff;
  padding: 11px 12px;
  color: var(--gp-ink);
  font: inherit;
}

.gp-form textarea {
  min-height: 134px;
  resize: vertical;
}

.gp-honeypot {
  position: absolute;
  left: -9999px;
}

.gp-form-notice {
  margin: 12px 0;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 15px;
}

.gp-form-notice-success {
  border: 1px solid #19bf5f;
  background: #edfff4;
  color: #0c6230;
}

.gp-form-notice-error {
  border: 1px solid #dc3545;
  background: #fff1f2;
  color: #8a1f2d;
}

.gp-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 12px 0 24px;
  color: #263344;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
}

.gp-consent input {
  width: 14px;
  height: 14px;
  margin-top: 6px;
}

.gp-contact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-contact-list a {
  color: #314155;
}

.gp-contact-list a:hover {
  color: var(--gp-blue);
}

.gp-map iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.gp-site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--gp-line);
  background: #fff;
  color: var(--gp-muted);
  font-size: 14px;
}

.gp-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.gp-page {
  padding: 56px 0;
}

.woocommerce .woocommerce-breadcrumb {
  margin: 0 0 18px;
  color: var(--gp-muted);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 22px;
}

.woocommerce .woocommerce-ordering select,
.woocommerce .products-per-page select,
.woocommerce-product-search .search-field {
  min-height: 42px;
  border: 1px solid #cfd9e2;
  border-radius: 4px;
  background: #fff;
  padding: 0 12px;
  font: inherit;
}

.woocommerce-product-search {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.woocommerce-product-search .search-field {
  flex: 1;
  min-width: 0;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  border: 1px solid #e0e6ed;
  border-radius: var(--gp-radius);
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 35, 52, 0.06);
  overflow: hidden;
}

.woocommerce ul.products li.product a {
  display: block;
  padding: 20px 20px 0;
}

.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 0 20px;
  background: #eef2f7;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 52px;
  padding: 0;
  color: #394452;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.woocommerce ul.products li.product .price {
  display: block;
  margin: 18px 20px 20px;
  color: #2d3745;
  font-size: 22px;
  font-weight: 700;
}

.woocommerce ul.products li.product .button {
  margin: 0 20px 22px;
}

.woocommerce span.onsale {
  min-width: auto;
  min-height: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gp-green);
  line-height: 1;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(280px, 46%) 1fr;
  gap: 48px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none;
  width: auto;
}

.woocommerce div.product .product_title {
  color: var(--gp-ink);
  font-weight: 500;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--gp-green-deep);
  font-size: 28px;
  font-weight: 700;
}

.gp-shop-wrap {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 32px;
}

.gp-shop-sidebar {
  align-self: start;
  padding: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.gp-shop-sidebar h2,
.gp-shop-sidebar .widgettitle {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .gp-header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 76px;
  }

  .gp-nav,
  .gp-header-actions {
    display: none;
  }

  .gp-mobile-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
  }

  .gp-site-header.is-open .gp-nav,
  .gp-site-header.is-open .gp-header-actions {
    display: flex;
    grid-column: 1 / -1;
  }

.gp-site-header.is-open .gp-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 8px;
  }

  .gp-site-header.is-open .gp-header-actions {
    flex-wrap: wrap;
    padding-bottom: 18px;
  }

  .gp-search {
    width: min(100%, 320px);
  }

  .gp-service-grid,
  .gp-contact-grid,
  .woocommerce div.product,
  .gp-shop-wrap {
    grid-template-columns: 1fr;
  }

  .gp-contact-grid {
    gap: 34px;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp-shop-sidebar {
    order: 2;
  }
}

@media (max-width: 620px) {
  .gp-container {
    width: min(100% - 28px, 1180px);
  }

  .gp-hero {
    min-height: auto;
    background-image: linear-gradient(90deg, rgba(248, 252, 255, 0.96) 0%, rgba(248, 252, 255, 0.84) 72%), url("assets/images/backimage.png");
    background-position: 62% center;
  }

  .gp-hero-inner {
    min-height: 430px;
    padding: 34px 0;
  }

  .gp-hero-logo {
    width: 82px;
    height: 82px;
  }

  .gp-section {
    padding: 52px 0;
  }

  .gp-field-row,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .gp-footer-inner {
    flex-direction: column;
  }
}
