/*
 * pharmacy.css — NorApotek
 * Styles specific to the main landing page (pharmacy.html).
 * Requires: base.css loaded first.
 * ─────────────────────────────────────────────────────────────────────────── */

/* ══════════════════
   SEARCH BAR
══════════════════ */
.search-bar { background: var(--g50); border-bottom: 1px solid var(--border); padding: 12px 0; }
.search-wrap {
    display: flex;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    overflow: visible;
    transition: border-color .2s;
    margin-bottom: 10px;
}
.search-wrap:focus-within { border-color: var(--g600); }
.search-select {
  border: none; outline: none; background: var(--g50);
  border-right: 1px solid var(--border); padding: 0 12px;
  font-family: 'Jost', sans-serif; font-size: 13px; color: var(--muted);
  cursor: pointer; min-width: 140px; max-width: 140px;
}
.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 11px 14px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    color: var(--text);
    width: 100%;
}
.search-input::placeholder { color: #a0b5a5; }
.btn-search {
  background: var(--g600); color: #fff; border: none; cursor: pointer;
  padding: 0 20px; font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 600;
  transition: background .2s; white-space: nowrap; flex-shrink: 0;
}
.btn-search:hover { background: var(--g700); }
.search-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-tag-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.search-tag {
  background: var(--white); border: 1px solid var(--border); color: var(--g700);
  font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 50px;
  cursor: pointer; transition: background .2s, border-color .2s;
  text-decoration: none; white-space: nowrap;
}
.search-tag:hover { background: var(--g100); border-color: var(--g400); }

/* ══════════════════
   HERO
══════════════════ */
.hero {
  background: linear-gradient(110deg, var(--g900) 0%, var(--g800) 55%, var(--g700) 100%);
  padding: 64px 0 0; overflow: hidden; position: relative;
}
.hero::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,155,80,.2) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.hero-content { padding-bottom: 64px; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px;
  font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--g400); margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--g400); }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 70px); line-height: 1.05; color: var(--white);
  font-weight: 700; letter-spacing: -1px; margin-bottom: 18px;
}
.hero h1 strong { color: var(--g400); }
.hero-desc { color: rgba(255,255,255,.55); font-size: 18px; max-width: 380px; margin-bottom: 32px; line-height: 1.75; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.btn-ghost {
  background: transparent; color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.2); cursor: pointer; border-radius: 6px;
  padding: 13px 26px; font-size: 14px; font-weight: 500; font-family: 'Jost', sans-serif;
  text-decoration: none; transition: border-color .2s, background .2s; display: inline-block;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat .num { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; color: var(--white); line-height: 1; }
.hero-stat .lbl { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 3px; text-transform: uppercase; letter-spacing: 1px; }

.hero-right {
    position: relative;
    z-index: 1;
    align-self: start;
}
.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-content: start;
}
.hcard {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 18px; backdrop-filter: blur(4px); transition: background .3s;
}
.hcard:hover { background: rgba(255,255,255,.12); }
.hcard.accent { background: rgba(46,155,80,.18); border-color: rgba(46,155,80,.3); }
.hcard.full { grid-column: span 2; }
.hcard-icon { font-size: 24px; margin-bottom: 8px; }
.hcard-title { color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.hcard-sub { color: rgba(255,255,255,.4); font-size: 12px; }

/* ══════════════════
   RIBBON
══════════════════ */
.ribbon { background: var(--g700); padding: 13px 0; }
.ribbon-inner { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.ribbon-item { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 500; }
.ribbon-sep { color: rgba(255,255,255,.2); font-size: 18px; }

/* ══════════════════
   REGULATORY BANNER
══════════════════ */
.reg-banner { background: var(--g50); border-bottom: 1px solid var(--border); padding: 10px 0; }
.reg-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reg-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white);
  border: 1.5px solid var(--g500); border-radius: 6px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; color: var(--g800);
}
.reg-note { font-size: 12px; color: var(--muted); }

/* ══════════════════
   CATEGORIES
══════════════════ */
.categories { padding: 64px 0; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 20px;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    background: var(--white);
    text-decoration: none;
    transition: all .25s ease;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
    .cat-item::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--g50) 0%, transparent 60%);
        opacity: 0;
        transition: opacity .25s;
    }

    .cat-item:hover {
        border-color: var(--g500);
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(11,42,26,.1);
    }

        .cat-item:hover::before {
            opacity: 1;
        }

.cat-icon {
    width: 52px;
    height: 52px;
    background: var(--g100);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g700);
    transition: background .25s, transform .25s;
}

    .cat-icon svg {
        width: 26px;
        height: 26px;
    }

.cat-item:hover .cat-icon {
    background: var(--g700);
    color: #fff;
    transform: scale(1.08);
}

.cat-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--g900);
    line-height: 1.3;
    position: relative;
}

.cat-sub {
    font-size: 12px;
    color: var(--muted);
    position: relative;
}

/* ══════════════════
   PRODUCTS (home: 4-col)
══════════════════ */
.products { padding: 64px 0; background: var(--white); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ══════════════════
   ABOUT
══════════════════ */
.about { padding: 72px 0; background: var(--g50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-stat { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; padding: 22px 18px; text-align: center; }
.about-stat:first-child { border-color: var(--g500); }
.a-num { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 700; color: var(--g800); line-height: 1; }
.a-desc { font-size: 11px; color: var(--muted); margin-top: 5px; text-transform: uppercase; letter-spacing: .8px; }
.about-badge {
  grid-column: span 2; background: var(--g800); border-radius: 10px;
  padding: 18px 22px; color: rgba(255,255,255,.75); font-size: 13px;
  display: flex; align-items: center; gap: 14px;
}
.about-badge-icon { font-size: 26px; flex-shrink: 0; }
.about-badge strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.about-text p { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.about-features { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.af-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px; transition: border-color .2s;
}
.af-item:hover { border-color: var(--g400); }
.af-dot { width: 8px; height: 8px; background: var(--g500); border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.af-item h4 { font-size: 13px; font-weight: 600; color: var(--g900); margin-bottom: 2px; }
.af-item p { font-size: 12px; color: var(--muted); margin: 0; }

/* ══════════════════
   CTA BANNER
══════════════════ */
.cta-banner { background: linear-gradient(110deg, var(--g900) 0%, var(--g700) 100%); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-text h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 3vw, 36px); color: #fff; font-weight: 700; margin-bottom: 8px; }
.cta-text p { color: rgba(255,255,255,.55); font-size: 15px; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ══════════════════
   CONTACTS
══════════════════ */
.contacts { padding: 72px 0; background: var(--white); }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 40px; }
.contact-card { border: 1.5px solid var(--border); border-radius: 10px; padding: 26px 22px; background: var(--off); transition: border-color .25s; }
.contact-card:hover { border-color: var(--g500); }
.cc-icon { font-size: 30px; margin-bottom: 12px; }
.cc-title { font-size: 16px; font-weight: 700; color: var(--g900); margin-bottom: 8px; font-family: 'Cormorant Garamond', serif; }
.cc-val { font-size: 17px; font-weight: 600; color: var(--g700); text-decoration: none; display: block; margin-bottom: 4px; }
.cc-sub { font-size: 12px; color: var(--muted); }
.map-ph {
  margin-top: 28px; border-radius: 10px; height: 220px;
  background: var(--g50); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px; color: var(--muted);
}
.map-ph .mi { font-size: 44px; }
.map-ph p { font-size: 13px; }

/* ══════════════════════════════════════
   RESPONSIVE — pharmacy page
══════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-content { padding-bottom: 52px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .ribbon-inner { gap: 14px; }
  .ribbon-sep { display: none; }
}
@media (max-width: 600px) {
  .top-bar .tb-left { gap: 12px; font-size: 11px; }
  .search-wrap { flex-wrap: wrap; }
  .search-select { min-width: 100%; max-width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 10px 12px; border-radius: 0; }
  .search-input { padding: 10px 12px; font-size: 14px; }
  .btn-search { padding: 0 16px; font-size: 13px; }
  .search-tag-label { display: none; }
  .hero { padding: 44px 0 0; }
  .hero h1 { font-size: clamp(32px, 8vw, 46px); }
  .hero-desc { font-size: 15px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 100%; text-align: center; }
  .hero-stats { gap: 18px; }
  .ribbon-inner { flex-direction: column; gap: 8px; align-items: flex-start; padding: 0 20px; }
  .categories { padding: 48px 0; }
  .cat-item { padding: 20px 12px; }
  .cat-icon { font-size: 28px; }
  .cat-name { font-size: 12px; }
  .products { padding: 48px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod-img { height: 110px; font-size: 44px; }
  .prod-name { font-size: 13px; }
  .price-cur { font-size: 18px; }
  .btn-add { padding: 7px 10px; font-size: 11px; }
  .about { padding: 48px 0; }
  .about-visual { grid-template-columns: 1fr 1fr; }
  .about-inner { gap: 36px; }
  .contacts { padding: 48px 0; }
  .contacts-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions a { flex: 1; text-align: center; }
}
@media (max-width: 380px) {
  .cat-grid { gap: 1px; }
  .products-grid { grid-template-columns: 1fr; }
}
