/* ═══════════════════════════════════════════
   EMMEDICIOTTO — GALVENIE STILI
   Standalone tēma — bez Astra
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --blk: #111; --mid: #666; --lt: #f5f5f5;
    --brd: #e0e0e0; --wht: #fff;
    --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--blk); background: var(--wht); -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

/* ── PROMO ── */
.em-promo { background: var(--blk); color: #fff; text-align: center; padding: 10px 20px; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; }
.em-promo strong { border-bottom: 1px solid rgba(255,255,255,.4); }

/* ── HEADER ── */
.em-header { position: sticky; top: 0; z-index: 9999; background: #fff; border-bottom: 1px solid var(--brd); display: flex; align-items: center; justify-content: space-between; padding: 0 60px; height: 68px; }
@media(max-width:768px) { .em-header { padding: 0 20px; } }
.em-logo img { height: 40px; width: auto; max-width: 180px; }
.em-nav { display: flex; gap: 36px; }
.em-nav a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); transition: color .2s; }
.em-nav a:hover, .em-nav a.cur { color: var(--blk); }
.em-icons { display: flex; gap: 20px; align-items: center; }
.em-icons a, .em-icons svg { color: var(--blk); display: flex; align-items: center; }
.em-cart-icon { position: relative; }
.em-cart-count { position: absolute; top: -6px; right: -8px; background: var(--blk); color: #fff; font-size: 9px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.em-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.em-burger span { display: block; width: 22px; height: 1.5px; background: var(--blk); }
@media(max-width:900px) { .em-nav { display: none; } .em-burger { display: flex; } }

/* Mobilā nav */
.em-mobile-nav { display: none; position: fixed; inset: 0; background: #fff; z-index: 99999; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.em-mobile-nav.open { display: flex; }
.em-mobile-nav a { font-size: 22px; letter-spacing: 3px; text-transform: uppercase; }
.em-mob-close { position: absolute; top: 24px; right: 24px; font-size: 28px; background: none; border: none; }

/* ── STRIP ── */
.em-strip { background: #fff; border-bottom: 1px solid var(--brd); display: flex; justify-content: center; flex-wrap: wrap; }
.em-strip-i { display: flex; align-items: center; gap: 10px; padding: 16px 36px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); border-right: 1px solid var(--brd); }
.em-strip-i:last-child { border-right: none; }
@media(max-width:600px) { .em-strip-i { padding: 12px 16px; font-size: 9px; } }

/* ── POGAS ── */
.em-btn { display: inline-block; padding: 14px 34px; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; border: 1px solid transparent; transition: all .25s; cursor: pointer; font-family: var(--font); }
.em-btn-b { background: var(--blk); color: #fff; border-color: var(--blk); }
.em-btn-b:hover { background: #333; color: #fff; }
.em-btn-ob { background: transparent; color: var(--blk); border-color: var(--blk); }
.em-btn-ob:hover { background: var(--blk); color: #fff; }
.em-btn-w { background: #fff; color: #111; border-color: #fff; }
.em-btn-w:hover { background: transparent; color: #fff; }
.em-btn-gh { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.em-btn-gh:hover { border-color: #fff; }

/* ── SEKCIJAS ── */
.em-sec { padding: 80px 60px; }
.em-sec-g { background: var(--lt); }
.em-sec-w { background: #fff; }
.em-con { max-width: 1200px; margin: 0 auto; }
.em-head { text-align: center; margin-bottom: 56px; }
.em-ey { display: block; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--mid); margin-bottom: 14px; }
.em-head h2 { font-size: clamp(26px,3vw,42px); font-weight: 300; letter-spacing: -.5px; line-height: 1.2; }
@media(max-width:600px) { .em-sec { padding: 56px 20px; } }

/* ── PRODUKTU GRID ── */
.em-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--brd); }
@media(max-width:1100px) { .em-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:750px)  { .em-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px)  { .em-grid { grid-template-columns: 1fr; } }

.em-card { background: #fff; display: flex; flex-direction: column; transition: box-shadow .3s; position: relative; }
.em-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,.1); z-index: 1; }
.em-card-img { background: var(--lt); aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.em-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.em-card:hover .em-card-img img { transform: scale(1.04); }
.em-card-img .em-noimg { font-size: 64px; opacity: .25; }
.em-badge { position: absolute; top: 0; left: 0; background: var(--blk); color: #fff; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; padding: 6px 14px; }
.em-badge.sale { background: #c00; }
.em-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.em-card-line { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); margin-bottom: 8px; }
.em-card-name { font-size: 14px; font-weight: 400; line-height: 1.4; margin-bottom: 8px; color: var(--blk); }
.em-card-desc { font-size: 12px; color: #888; line-height: 1.5; flex: 1; margin-bottom: 16px; }
.em-card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--lt); padding-top: 14px; }
.em-card-price { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.em-card-price del { font-size: 13px; font-weight: 400; color: #999; margin-right: 4px; }
.em-card-price ins { text-decoration: none; color: #c00; }
.em-card-btn { background: var(--blk); color: #fff; border: none; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; padding: 10px 16px; cursor: pointer; transition: background .2s; font-family: var(--font); white-space: nowrap; }
.em-card-btn:hover { background: #333; }

/* Paginācija */
.em-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--brd); }
.em-pagination .page-numbers { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 13px; border: 1px solid var(--brd); color: var(--mid); transition: all .2s; text-decoration: none; }
.em-pagination .page-numbers.current, .em-pagination .page-numbers:hover { background: var(--blk); color: #fff; border-color: var(--blk); }

/* ── KATALOGS WRAP ── */
.em-shop-wrap { max-width: 1300px; margin: 0 auto; padding: 48px 40px; }
@media(max-width:600px) { .em-shop-wrap { padding: 32px 16px; } }
.em-shop-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--brd); }
.em-shop-title { font-size: 28px; font-weight: 300; letter-spacing: -.5px; }
.em-shop-count { font-size: 12px; color: var(--mid); }
.em-cat-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--brd); margin-bottom: 36px; }
.em-cat-tab { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 12px 22px; color: var(--mid); border-bottom: 2px solid transparent; transition: all .2s; text-decoration: none; }
.em-cat-tab:hover { color: var(--blk); }
.em-cat-tab.active { color: var(--blk); border-bottom-color: var(--blk); }

/* ── PRODUKTA LAPA ── */
.em-single-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 40px; }
@media(max-width:600px) { .em-single-wrap { padding: 32px 16px; } }
.em-breadcrumb { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #888; margin-bottom: 36px; }
.em-breadcrumb a { color: #888; }
.em-breadcrumb a:hover { color: var(--blk); }
.em-single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
@media(max-width:800px) { .em-single-grid { grid-template-columns: 1fr; gap: 40px; } }
.em-gallery-main { aspect-ratio: 1; background: var(--lt); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.em-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.em-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.em-gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; cursor: pointer; opacity: .6; border: 1px solid transparent; transition: all .2s; }
.em-gallery-thumbs img:hover, .em-gallery-thumbs img.active { opacity: 1; border-color: var(--blk); }
.em-single-cats { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--mid); margin-bottom: 14px; }
.em-single-cats a { color: var(--mid); }
.em-single-title { font-size: clamp(24px,3vw,36px); font-weight: 300; letter-spacing: -.5px; line-height: 1.2; margin-bottom: 20px; }
.em-single-price { font-size: 28px; font-weight: 600; letter-spacing: -1px; margin-bottom: 24px; }
.em-single-price del { font-size: 18px; font-weight: 400; color: #999; margin-right: 8px; }
.em-single-price ins { text-decoration: none; color: #c00; }
.em-single-short { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 24px; padding-top: 20px; border-top: 1px solid var(--lt); }
.em-qty-row { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.em-qty-box { display: flex; align-items: center; border: 1px solid var(--brd); }
.em-qty-box button { width: 40px; height: 48px; background: none; border: none; font-size: 20px; cursor: pointer; }
.em-qty-box button:hover { background: var(--lt); }
.em-qty-box input { width: 56px; height: 48px; border: none; border-left: 1px solid var(--brd); border-right: 1px solid var(--brd); text-align: center; font-size: 16px; font-family: var(--font); -moz-appearance: textfield; }
.em-qty-box input::-webkit-outer-spin-button, .em-qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.em-add-btn { flex: 1; height: 48px; background: var(--blk); color: #fff; border: none; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; cursor: pointer; transition: background .2s; font-family: var(--font); }
.em-add-btn:hover { background: #333; }
.em-single-meta { font-size: 12px; color: #888; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--lt); }
.em-single-meta span { display: block; margin-bottom: 5px; }
.em-stock-yes { color: #2d6a4f; }
.em-stock-no  { color: #c00; }

/* Tabs */
.em-tabs { margin-top: 56px; border-top: 1px solid var(--brd); }
.em-tabs-nav { display: flex; }
.em-tab-btn { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 16px 28px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--mid); cursor: pointer; transition: all .2s; font-family: var(--font); }
.em-tab-btn.active { color: var(--blk); border-bottom-color: var(--blk); }
.em-tab-pane { display: none; padding: 28px 0; font-size: 14px; color: #444; line-height: 1.8; }
.em-tab-pane.active { display: block; }

/* Saistītie */
.em-related { margin-top: 72px; }
.em-related h2 { font-size: 26px; font-weight: 300; margin-bottom: 28px; }

/* ── GROZS ── */
.em-cart-wrap { max-width: 1100px; margin: 0 auto; padding: 48px 40px; font-family: var(--font); }
@media(max-width:600px) { .em-cart-wrap { padding: 32px 16px; } }
.em-cart-title { font-size: 30px; font-weight: 300; letter-spacing: -.5px; margin-bottom: 36px; }
.em-cart-layout { display: flex; gap: 40px; align-items: flex-start; }
@media(max-width:860px) { .em-cart-layout { flex-direction: column; } }
.em-cart-left { flex: 1; min-width: 0; }
.em-cart-head { display: flex; border-bottom: 2px solid var(--blk); padding-bottom: 10px; }
.em-cart-head span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); }
@media(max-width:640px) { .em-cart-head { display: none; } }
.em-ch-img   { width: 82px; flex-shrink: 0; }
.em-ch-name  { flex: 1; padding-left: 12px; }
.em-ch-price { width: 90px; flex-shrink: 0; }
.em-ch-qty   { width: 130px; flex-shrink: 0; }
.em-ch-total { width: 90px; flex-shrink: 0; }
.em-ch-del   { width: 32px; flex-shrink: 0; }
.em-cart-row { display: flex; align-items: center; border-bottom: 1px solid var(--lt); padding: 18px 0; }
.em-cr-img   { width: 82px; flex-shrink: 0; }
.em-cr-img img { width: 72px; height: 72px; object-fit: cover; border: 1px solid #eee; }
.em-cr-img .em-noimg { width: 72px; height: 72px; background: var(--lt); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.em-cr-name  { flex: 1; padding: 0 12px; }
.em-cr-name a { font-size: 14px; color: var(--blk); }
.em-cr-name a:hover { text-decoration: underline; }
.em-cr-name .em-var { font-size: 11px; color: #888; margin-top: 4px; }
.em-cr-price { width: 90px; flex-shrink: 0; font-size: 14px; font-weight: 500; }
.em-cr-qty   { width: 130px; flex-shrink: 0; }
.em-cr-total { width: 90px; flex-shrink: 0; font-size: 14px; font-weight: 700; }
.em-cr-del   { width: 32px; flex-shrink: 0; text-align: center; }
.em-cr-del a { color: #bbb; font-size: 20px; transition: color .2s; }
.em-cr-del a:hover { color: var(--blk); }
@media(max-width:640px) {
    .em-cr-price, .em-cr-total { display: none; }
    .em-cr-qty { width: auto; }
}
.em-qty-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--brd); }
.em-qty-ctrl button { width: 30px; height: 38px; background: none; border: none; font-size: 16px; cursor: pointer; }
.em-qty-ctrl button:hover { background: var(--lt); }
.em-qty-ctrl input { width: 42px; height: 38px; border: none; border-left: 1px solid var(--brd); border-right: 1px solid var(--brd); text-align: center; font-size: 13px; font-family: var(--font); -moz-appearance: textfield; }
.em-qty-ctrl input::-webkit-outer-spin-button, .em-qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.em-cart-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.em-coupon { display: flex; }
.em-coupon input { border: 1px solid var(--brd); border-right: none; padding: 10px 14px; font-size: 13px; font-family: var(--font); outline: none; width: 180px; height: 40px; }
.em-coupon input:focus { border-color: var(--blk); }
.em-coupon button { background: var(--blk); color: #fff; border: none; padding: 10px 16px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; font-family: var(--font); height: 40px; }
.em-coupon button:hover { background: #333; }
.em-update-btn { background: transparent; color: var(--blk); border: 1px solid var(--blk); padding: 10px 18px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; font-family: var(--font); transition: all .2s; height: 40px; }
.em-update-btn:hover { background: var(--blk); color: #fff; }
.em-cart-right { width: 320px; flex-shrink: 0; background: #f7f7f7; padding: 28px; }
@media(max-width:860px) { .em-cart-right { width: 100%; } }
.em-cart-right h3 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 400; border-bottom: 1px solid var(--brd); padding-bottom: 12px; margin-bottom: 16px; }
.em-sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.em-sum-total { border-bottom: none !important; padding-top: 14px !important; }
.em-sum-total span:first-child { font-size: 15px; font-weight: 500; }
.em-sum-total span:last-child { font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.em-checkout-btn { display: block; width: 100%; background: var(--blk); color: #fff; border: none; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; padding: 16px; text-align: center; margin-top: 16px; text-decoration: none; cursor: pointer; font-family: var(--font); transition: background .2s; }
.em-checkout-btn:hover { background: #333; color: #fff; }
.em-back-link { display: block; text-align: center; margin-top: 12px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #999; }
.em-back-link:hover { color: var(--blk); }
.em-cart-empty { text-align: center; padding: 80px 20px; }
.em-cart-empty p { font-size: 52px; margin-bottom: 16px; }
.em-cart-empty h2 { font-size: 20px; font-weight: 300; color: #555; margin-bottom: 24px; }

/* ── CHECKOUT ── */
.em-checkout-wrap { max-width: 1100px; margin: 0 auto; padding: 48px 40px; }
@media(max-width:600px) { .em-checkout-wrap { padding: 32px 16px; } }
.em-checkout-title { font-size: 30px; font-weight: 300; margin-bottom: 36px; }
.em-checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; }
@media(max-width:900px) { .em-checkout-grid { grid-template-columns: 1fr; } }
.em-form-sec h3 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 400; border-bottom: 1px solid var(--brd); padding-bottom: 12px; margin: 0 0 20px; }
.em-field { margin-bottom: 16px; }
.em-field label { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--mid); margin-bottom: 7px; }
.em-field input, .em-field select, .em-field textarea { width: 100%; border: 1px solid var(--brd); padding: 12px 16px; font-size: 14px; font-family: var(--font); outline: none; transition: border-color .2s; border-radius: 0; }
.em-field input:focus, .em-field select:focus { border-color: var(--blk); }
.em-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.em-order-box { background: #f7f7f7; padding: 28px; position: sticky; top: 88px; }
.em-order-box h3 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 400; border-bottom: 1px solid var(--brd); padding-bottom: 12px; margin-bottom: 16px; }
.em-order-item { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.em-order-item img { width: 52px; height: 52px; object-fit: cover; }
.em-order-item-name { flex: 1; font-size: 13px; }
.em-order-item-price { font-size: 14px; font-weight: 600; }
.em-place-order { width: 100%; background: var(--blk); color: #fff; border: none; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; padding: 17px; cursor: pointer; font-family: var(--font); margin-top: 20px; transition: background .2s; }
.em-place-order:hover { background: #333; }

/* WooCommerce notices */
.woocommerce-message, .woocommerce-error, .woocommerce-info { border-left: 3px solid var(--blk); background: #f9f9f9; padding: 14px 18px; font-size: 14px; margin-bottom: 16px; list-style: none; }
.woocommerce-error { border-color: #c00; }
.woocommerce-message .button { background: var(--blk); color: #fff; border: none; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; padding: 8px 16px; float: right; font-family: var(--font); }

/* ── FOOTER ── */
.em-footer { background: var(--blk); color: rgba(255,255,255,.55); padding: 64px 60px 32px; }
.em-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 48px; }
@media(max-width:900px) { .em-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media(max-width:500px) { .em-footer-grid { grid-template-columns: 1fr; } }
.em-footer-logo-img img { filter: invert(1); mix-blend-mode: screen; height: 38px; width: auto; }
.em-footer p { font-size: 13px; line-height: 1.8; margin-bottom: 4px; }
.em-footer h4 { color: rgba(255,255,255,.28); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px; font-weight: 400; }
.em-footer ul li { margin-bottom: 10px; }
.em-footer ul li a { color: rgba(255,255,255,.55); font-size: 13px; transition: color .2s; }
.em-footer ul li a:hover { color: #fff; }
.em-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; text-align: center; font-size: 11px; color: rgba(255,255,255,.22); max-width: 1200px; margin: 0 auto; letter-spacing: 1px; }
@media(max-width:600px) { .em-footer { padding: 48px 20px 24px; } }

/* ── PAGE (Par mums, Kontakti) ── */
.em-page-wrap { max-width: 860px; margin: 0 auto; padding: 64px 40px; }
.em-page-wrap h1 { font-size: 42px; font-weight: 300; letter-spacing: -1px; margin-bottom: 32px; }
.em-page-wrap p { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 16px; }
