/*
Theme Name: MediCare Store
Theme URI: https://example.com/medicare-store
Author: OpenAI
Description: Сине-зелёная тема WooCommerce для лекарств, ветеринарных товаров, витаминов, БАДов и товаров для красоты.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medicare-store
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root{
  --mc-white:#ffffff;
  --mc-mint:#f1faf6;
  --mc-navy:#0b1f3a;
  --mc-blue:#0d4c8c;
  --mc-green:#0eb56d;
  --mc-green-dark:#0a7a53;
  --mc-sea:#21c08b;
  --mc-slate:#475569;
  --mc-light:#e6edf1;
  --mc-border:#d9e2ea;
  --mc-orange:#f59e0b;
  --mc-purple:#7c3aed;
  --mc-cyan:#0ea5e9;
  --mc-radius:16px;
  --mc-shadow:0 12px 35px rgba(11,31,58,.08);
  --mc-container:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--mc-navy);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.container{width:min(calc(100% - 32px),var(--mc-container));margin-inline:auto}
.site-main{min-height:50vh}

/* Header */
.site-header{background:linear-gradient(90deg,#07182e,#0b2f4d);color:#fff;position:sticky;top:0;z-index:50;box-shadow:0 6px 24px rgba(11,31,58,.14)}
.header-top{display:grid;grid-template-columns:auto minmax(260px,1fr) auto;gap:24px;align-items:center;padding:18px 0 12px}
.site-branding{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;letter-spacing:-.02em;white-space:nowrap}
.site-branding .brand-mark{width:38px;height:38px;border-radius:12px;background:var(--mc-green);display:grid;place-items:center;font-size:24px;font-weight:900;box-shadow:inset 0 0 0 5px rgba(255,255,255,.18)}
.site-branding small{display:block;color:var(--mc-green);font-size:11px;letter-spacing:.08em;margin-top:-3px}
.site-branding .custom-logo{max-height:42px;width:auto}
.header-search form{display:flex;background:#fff;border-radius:10px;overflow:hidden}
.header-search input[type="search"]{width:100%;border:0;padding:12px 14px;font-size:14px;outline:0;color:#14213d}
.header-search button{border:0;background:#fff;padding:0 16px;color:var(--mc-blue);cursor:pointer}
.header-actions{display:flex;align-items:center;gap:18px;font-size:14px}
.cart-link{position:relative;font-weight:700}
.cart-count{position:absolute;right:-11px;top:-12px;background:var(--mc-green);color:#fff;font-size:10px;min-width:18px;height:18px;border-radius:999px;display:grid;place-items:center;padding:0 4px}
.main-nav{border-top:1px solid rgba(255,255,255,.08)}
.main-nav ul{display:flex;align-items:center;justify-content:center;gap:28px;list-style:none;margin:0;padding:11px 0}
.main-nav a{font-size:14px;color:#eef7fb}
.main-nav a:hover{color:#6ee7b7}

/* Hero */
.home-hero{padding:34px 0 18px}
.hero-card{background:linear-gradient(115deg,#f7fbff 0%,#effcf6 100%);border:1px solid #e6eff2;border-radius:24px;padding:54px;display:grid;grid-template-columns:1.05fr .95fr;gap:42px;align-items:center;overflow:hidden;position:relative}
.hero-card:after{content:"+";position:absolute;right:35%;top:23%;font-size:150px;line-height:1;color:rgba(14,181,109,.08);font-weight:900;pointer-events:none}
.hero-copy h1{font-size:clamp(38px,5vw,62px);line-height:1.02;margin:0 0 18px;letter-spacing:-.045em;max-width:700px}
.hero-copy h1 span{color:var(--mc-green)}
.hero-copy p{font-size:18px;color:var(--mc-slate);max-width:620px;margin:0 0 28px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;padding:13px 20px;font-weight:700;border:1px solid transparent;transition:.2s ease}
.btn-primary{background:var(--mc-green);color:#fff}.btn-primary:hover{background:var(--mc-green-dark);transform:translateY(-1px)}
.btn-outline{background:#fff;border-color:#73cfa9;color:var(--mc-green-dark)}.btn-outline:hover{background:#f6fffa}
.hero-visual{min-height:300px;display:flex;align-items:center;justify-content:center}
.hero-visual-box{width:100%;max-width:460px;aspect-ratio:4/3;border-radius:22px;background:radial-gradient(circle at 30% 30%,#fff 0 18%,transparent 19%),linear-gradient(145deg,#dff7eb,#f9fffc);position:relative;box-shadow:inset 0 0 0 1px rgba(14,181,109,.08)}
.hero-bottle,.hero-box,.hero-pills{position:absolute;box-shadow:0 18px 30px rgba(11,31,58,.12)}
.hero-bottle{width:112px;height:180px;border-radius:20px 20px 14px 14px;background:linear-gradient(#fff 0 18%,#07965e 18% 100%);left:43%;top:23%}
.hero-bottle:before{content:"";position:absolute;left:21px;top:-16px;width:70px;height:26px;border-radius:7px;background:#f5f5f5;border:1px solid #ddd}
.hero-box{width:100px;height:138px;border-radius:16px;background:linear-gradient(160deg,#fff,#f0f5f8);left:18%;bottom:16%;transform:rotate(-5deg)}
.hero-pills{width:92px;height:128px;border-radius:12px;background:linear-gradient(145deg,#f8f8f8,#dce5e9);right:13%;bottom:15%;transform:rotate(7deg)}

/* Feature row */
.trust-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:20px}
.trust-item{display:flex;gap:10px;align-items:center;font-size:12px;color:var(--mc-slate)}
.trust-icon{width:32px;height:32px;border-radius:10px;background:#fff;color:var(--mc-green-dark);display:grid;place-items:center;border:1px solid #ddefe7;font-weight:800}

/* Categories */
.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;padding:14px 0 26px}
.category-card{border-radius:16px;padding:18px;border:1px solid var(--mc-border);background:#fff;min-height:104px;display:flex;flex-direction:column;justify-content:space-between;transition:.2s ease}
.category-card:hover{transform:translateY(-3px);box-shadow:var(--mc-shadow)}
.category-card .icon{font-size:26px;font-weight:800}.category-card strong{font-size:15px}.category-card small{font-size:12px;color:var(--mc-slate)}
.cat-medicines{background:#f5f9ff;color:#0d4c8c}.cat-veterinary{background:#f2fbf5;color:#16a34a}.cat-vitamins{background:#fff9ed;color:#d97706}.cat-beauty{background:#f8f5ff;color:#7c3aed}.cat-wellness{background:#f0fbff;color:#0284c7}

/* Product sections */
.section{padding:24px 0 40px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.section-head h2{margin:0;font-size:28px;letter-spacing:-.03em}
.section-head a{color:var(--mc-green-dark);font-weight:700;font-size:14px}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0!important}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;border:1px solid var(--mc-border);border-radius:16px;background:#fff;padding:14px;box-shadow:none;transition:.2s ease;position:relative;overflow:hidden}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:var(--mc-shadow)}
.woocommerce ul.products li.product a img{border-radius:12px;background:#f8fafc;margin-bottom:14px!important;aspect-ratio:1/1;object-fit:contain}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px!important;line-height:1.35;color:var(--mc-navy);padding:4px 0!important;min-height:48px}
.woocommerce ul.products li.product .price{color:var(--mc-navy)!important;font-weight:800;font-size:17px!important}
.woocommerce ul.products li.product .button{margin-top:12px!important;background:#fff!important;color:var(--mc-green-dark)!important;border:1px solid #79d6b1!important;border-radius:9px!important;padding:10px 13px!important;font-weight:700!important}
.woocommerce ul.products li.product .button:hover{background:var(--mc-green)!important;color:#fff!important}
.woocommerce span.onsale{background:var(--mc-orange)!important;border-radius:999px!important;min-height:auto!important;line-height:1!important;padding:8px 10px!important;left:10px!important;top:10px!important}
.woocommerce .star-rating span::before{color:var(--mc-orange)}

/* WooCommerce common */
.woocommerce .woocommerce-breadcrumb{color:var(--mc-slate);font-size:13px;margin-top:24px}
.woocommerce .woocommerce-breadcrumb a{color:var(--mc-blue)}
.woocommerce div.product{padding:32px 0}
.woocommerce div.product .product_title{font-size:36px;line-height:1.15;letter-spacing:-.035em}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--mc-navy);font-weight:800}
.woocommerce button.button.alt,.woocommerce a.button.alt,.woocommerce input.button.alt{background:var(--mc-green)!important;border-radius:9px!important}
.woocommerce button.button.alt:hover,.woocommerce a.button.alt:hover,.woocommerce input.button.alt:hover{background:var(--mc-green-dark)!important}
.woocommerce-message{border-top-color:var(--mc-green)}.woocommerce-message::before{color:var(--mc-green)}
.woocommerce-info{border-top-color:var(--mc-blue)}.woocommerce-info::before{color:var(--mc-blue)}
.woocommerce-cart table.cart img{width:80px;border-radius:10px}

/* Content */
.entry-content,.page-content,.site-content-inner{padding:34px 0}
.entry-title{font-size:38px;letter-spacing:-.035em}

/* Footer */
.site-footer{margin-top:50px;background:linear-gradient(110deg,#07182e,#0b2f4d 72%,#0a6b4d);color:#dbeafe;padding:54px 0 22px}
.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr) 1.25fr;gap:34px}
.footer-grid h4{color:#fff;margin:0 0 12px}.footer-grid p,.footer-grid li,.footer-grid a{font-size:13px;color:#c9d7e4}
.footer-grid ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.footer-newsletter{display:flex;margin-top:12px}.footer-newsletter input{min-width:0;flex:1;border:0;padding:11px;border-radius:8px 0 0 8px}.footer-newsletter button{border:0;background:var(--mc-green);color:#fff;padding:0 14px;border-radius:0 8px 8px 0;font-weight:700}
.footer-bottom{margin-top:36px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;gap:16px;font-size:12px;color:#b8c6d4}

/* Mobile */
.mobile-nav-toggle{display:none}
@media (max-width:1000px){
  .header-top{grid-template-columns:1fr auto}.header-search{grid-column:1/-1;grid-row:2}.main-nav ul{gap:18px;overflow-x:auto;justify-content:flex-start}.hero-card{grid-template-columns:1fr;padding:38px}.hero-visual{min-height:260px}.category-grid{grid-template-columns:repeat(3,1fr)}.woocommerce ul.products{grid-template-columns:repeat(3,1fr)!important}.footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:700px){
  .container{width:min(calc(100% - 22px),var(--mc-container))}.site-header{position:relative}.header-top{gap:12px;padding:12px 0}.site-branding{font-size:17px}.header-actions{gap:10px;font-size:12px}.main-nav{display:none}.hero-card{padding:26px 20px;border-radius:18px}.hero-copy h1{font-size:39px}.hero-copy p{font-size:16px}.trust-row{grid-template-columns:repeat(2,1fr)}.category-grid{grid-template-columns:repeat(2,1fr)}.woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important}.footer-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column}.hero-visual{display:none}
}
@media (max-width:430px){.woocommerce ul.products{grid-template-columns:1fr!important}.category-grid{grid-template-columns:1fr 1fr}.hero-actions .btn{width:100%}}
/* ===== COOKIE BANNER — ПРИНУДИТЕЛЬНОЕ ПОВЕДЕНИЕ ===== */

html body #cookie-banner.cookie-banner {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background: #0F2E4A !important;
  color: #fff !important;
  padding: 25px !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25) !important;
  transform: translateY(100%) !important;
  transition: transform 0.5s ease !important;
  z-index: 999999 !important;
  font-family: 'Inter', sans-serif !important;
}

html body #cookie-banner.cookie-banner.show {
  transform: translateY(0) !important;
}

/* ===== CONTENT ===== */

.cookie-content h3 {
  margin: 0 0 10px !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #1F9D8A !important;
}

.cookie-content p {
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
}

.cookie-buttons {
  display: flex !important;
  gap: 10px !important;
}

.cookie-btn {
  padding: 10px 18px !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 14px !important;
  transition: 0.3s !important;
}

.cookie-btn.accept {
  background: #1F9D8A !important;
  color: #fff !important;
}

.cookie-btn.accept:hover {
  background: #168272 !important;
}

.cookie-btn.decline {
  background: #123B5D !important;
  color: #fff !important;
  border: 1px solid #1F9D8A !important;
}

.cookie-btn.decline:hover {
  background: #1F9D8A !important;
}

.cookie-btn.settings {
  background: #fff !important;
  color: #123B5D !important;
}

.cookie-btn.settings:hover {
  background: #E2E8ED !important;
}

/* ===== SETTINGS PANEL ===== */

.cookie-settings-panel {
  background: #0F2E4A !important;
  padding: 20px !important;
  margin-top: 20px !important;
  border-top: 1px solid #1F9D8A !important;
  display: none !important;
}

.cookie-settings-panel.open {
  display: block !important;
}

.cookie-settings-panel h4 {
  color: #1F9D8A !important;
  margin-bottom: 10px !important;
}

.cookie-settings-panel label {
  display: block !important;
  margin: 8px 0 !important;
  font-size: 14px !important;
}
/* Мобильный фикс для баннера cookies */
@media (max-width: 700px) {
  #cookie-banner.cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    transform: translateY(100%) !important;
    z-index: 999999 !important;
  }

  #cookie-banner.cookie-banner.show {
    transform: translateY(0) !important;
  }
}
