/* ===================================================================
   ARIES MEDISHOP — přesná kopie ariesmedishop.cz
   Každý detail laděn podle screenshotů originálu
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* ── Proměnné ─────────────────────────────────────────────────────── */
:root {
  --orange:       #f7941d;
  --orange-dark:  #d97c0e;
  --orange-hover: #d46510;
  --gray:         #333333;
  --gray-mid:     #666666;
  --gray-light:   #999999;
  --border:       #DDDDDD;
  --red:          #CC0000;
  --blue-zp:      #1A3A6E;
  --blue-new:     #2B7EC4;
  --green:        #28a745;
  --footer-bg:    #3a3a3a;
  --footer-dark:  #2a2a2a;
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family:'Open Sans',Arial,sans-serif; font-size:14px; color:var(--gray); margin:0; background:#fff; }
a { color:var(--gray); text-decoration:none; }
a:hover { color:var(--orange); }
img { max-width:100%; height:auto; }
button { font-family:inherit; }

/* ── Skrýt výchozí panel (My Account, Sign In...) ───────────────── */
.panel.wrapper { display:none !important; }

/* ── Široká stránka — jako M1 (1400px), neomezit blank theme defaultem 1280px ── */
.page-wrapper { width:100%; }
.cms-index-index .page-main,
.cms-index-index .columns,
.cms-index-index main#maincontent {
  max-width:none !important; padding:0 !important; margin:0 auto !important;
}
.cms-index-index .columns .column.main { padding:0 !important; }
/* Pro ostatní stránky širší container */
.page-main, main#maincontent { max-width:1400px; }

/* ════════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════════ */
.page-header {
  background:#fff;
  border-bottom:1px solid #e0e0e0;
  position:sticky; top:0; z-index:500;
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}

/* Header content: logo vlevo + ikony vpravo */
.header.content {
  max-width:1200px; margin:0 auto; padding:10px 16px;
  display:flex; align-items:center; gap:0;
}

/* ── Hamburger skrýt na desktopu ────────────────────────────────── */
.nav-toggle { display:none !important; }

/* ── Logo vlevo (originál PNG z M1) ─────────────────────────────── */
.logo {
  order:0; flex:0 0 auto; margin-right:auto; padding-right:20px;
  display:flex; align-items:center;
  line-height:1;
}
.logo strong { display:none; }
.logo img { width:244px; height:auto; max-height:74px; display:block; }

/* ── Společný styl pro všechny header ikony ─────────────────────── */
.aries-hicon,
.minicart-wrapper .action.showcart,
.block-search .label {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-width:60px; padding:6px 8px;
  font-size:11px; font-weight:700; color:var(--gray); text-transform:uppercase;
  text-decoration:none; background:none; border:none; cursor:pointer;
  position:relative; letter-spacing:.5px; transition:color .15s;
  white-space:nowrap;
}
.aries-hicon:hover,
.minicart-wrapper .action.showcart:hover,
.block-search .label:hover { color:var(--orange); }

/* SVG ikony — použít CSS background, svg schovat */
.aries-hicon svg { display:none; }
.aries-hicon-label { display:block; }

/* ── NAJÍT — vyhledávání (order:1) ─────────────────────────────── */
.block-search { order:1; position:relative; flex:0 0 auto; }
.block-search .block-title { display:none; }
.block-search .block-content { display:flex; }
.block-search .label {
  flex-direction:column; gap:0;
}
.block-search .label::before {
  content:'';
  display:block; width:30px; height:30px; margin-bottom:3px;
  background:url("../images/top-search.png") center/contain no-repeat;
}
/* Nahradit "Search" textem "NAJÍT" */
.block-search .label > span { font-size:0; display:block; line-height:0; }
.block-search .label > span::after { content:'NAJÍT'; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; line-height:1; }
/* Formulář vyhledávání — dropdown */
.block-search .form.minisearch {
  position:absolute; right:0; top:calc(100% + 4px);
  background:#fff; border:2px solid var(--orange);
  border-radius:3px; padding:8px; display:none;
  min-width:320px; z-index:600;
  box-shadow:0 6px 16px rgba(0,0,0,.15);
}
.block-search.active .form.minisearch,
.block-search._active .form.minisearch { display:flex; }
.block-search .field.search { display:flex; flex:1; }
.block-search input {
  border:1px solid var(--border); border-radius:3px 0 0 3px;
  padding:8px 12px; font-size:13px; flex:1; min-width:0;
}
.block-search input:focus { border-color:var(--orange); outline:none; }
.block-search .action.search {
  background:var(--orange); border:none; border-radius:0 3px 3px 0;
  padding:8px 14px; color:#fff; cursor:pointer; font-size:13px; font-weight:600;
}
.block-search .action.search:hover { background:var(--orange-dark); }
.block-search .nested { display:none; }

/* ── PRODEJNY + PŘIHLÁSIT + OBLÍBENÉ z header_icons.phtml (order:2) */
.aries-header-extra { order:2; display:flex; align-items:center; }

/* Všechny SVG v aries-header-extra jsou CSS background — schovat inline SVG */
.aries-header-extra .aries-hicon svg { display:none; }

/* PRODEJNY (top-stores.png z M1) */
.aries-header-extra .aries-hicon-stores::before {
  content:'';
  display:block; width:30px; height:30px; margin-bottom:3px;
  background:url("../images/top-stores.png") center/contain no-repeat;
}

/* PŘIHLÁSIT (top-user.png z M1) */
.aries-header-extra .aries-hicon-account::before {
  content:'';
  display:block; width:30px; height:30px; margin-bottom:3px;
  background:url("../images/top-user.png") center/contain no-repeat;
}

/* OBLÍBENÉ (top-wishlist.png z M1) */
.aries-header-extra .aries-hicon-wishlist::before {
  content:'';
  display:block; width:30px; height:30px; margin-bottom:3px;
  background:url("../images/top-wishlist.png") center/contain no-repeat;
}
/* Oblíbené label + counter */
.aries-hicon-wishlist .aries-hicon-label { position:relative; display:inline-block; }
.aries-hicon-wishlist .aries-hicon-count {
  font-style:normal;
  background:var(--orange); color:#fff; border-radius:10px;
  font-size:10px; font-weight:700; padding:1px 4px; min-width:16px;
  text-align:center; position:absolute; top:-14px; right:-10px; line-height:1.4;
}

/* Skrýt výchozí header.links (panel.wrapper je hidden, wishlist je v header_icons) */
.header.links { display:none !important; }

/* ── KOŠÍK — minicart (order:3) ─────────────────────────────────── */
.minicart-wrapper { order:3; flex:0 0 auto; }
.minicart-wrapper .action.showcart {
  flex-direction:column !important; padding:6px 8px; min-width:60px;
}
/* Skrýt "My Cart" text, nahradit "KOŠÍK" */
.minicart-wrapper .action.showcart .text { font-size:0; line-height:0; display:block; }
.minicart-wrapper .action.showcart .text::after { content:'KOŠÍK'; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; line-height:1; }
.minicart-wrapper .action.showcart::before {
  content:'';
  display:block; width:30px; height:30px; margin-bottom:3px;
  background:url("../images/top-cart.png") center/contain no-repeat;
}
.minicart-wrapper .action.showcart::after { display:none; }
/* Badge košíku */
.minicart-wrapper .counter.qty {
  background:var(--orange); color:#fff;
  border-radius:10px; font-size:10px; font-weight:700;
  padding:1px 5px; min-width:16px; text-align:center;
  position:absolute; top:2px; right:2px; line-height:1.4;
}
.minicart-wrapper .counter.qty.empty { display:block; }
.minicart-wrapper .counter-number { display:block; }
/* Skrýt "My Cart" span ze screen readerů */
.minicart-wrapper .action.showcart .counter-label { display:none; }

/* ════════════════════════════════════════════════════════════════════
   NAVIGACE — přesně jako originál
   ════════════════════════════════════════════════════════════════════ */
.nav-sections { background:var(--orange); }
.nav-sections-item-content { background:var(--orange); }
.navigation { background:var(--orange); }
.navigation ul { display:flex; list-style:none; margin:0; padding:0; flex-wrap:nowrap; }

/* Level 0 — hlavní kategorie */
.navigation > ul > li.level0 > a {
  display:block; padding:10px 14px;
  color:#fff; font-size:14px; font-weight:600; text-transform:uppercase;
  border-right:1px solid rgba(255,255,255,.25); white-space:nowrap;
  transition:background .15s;
}
.navigation > ul > li.level0:last-child > a { border-right:none; }
.navigation > ul > li.level0:first-child > a { padding-left:16px; }
.navigation > ul > li.level0:first-child > a::before { content:''; }
/* Aktivní top-nav: bílé pozadí + oranžový text (jako M1) */
.navigation > ul > li.level0:hover > a,
.navigation > ul > li.level0 > a:hover,
.navigation > ul > li.level0.active > a,
.navigation > ul > li.level0._active > a {
  background:#fff !important; color:var(--orange) !important;
}

/* Mega menu — sloupcový dropdown (jako M1) */
.navigation > ul > li.level0 { position:static !important; }
.navigation > ul > li.level0 > .submenu {
  display:none !important;
  position:absolute; top:100%; left:0; right:0; width:100%;
  background:#fff;
  box-shadow:0 6px 20px rgba(0,0,0,.15); z-index:1000;
  padding:24px 32px;
}
.navigation > ul > li.level0:hover > .submenu { display:flex !important; flex-wrap:wrap; gap:30px; }

/* Sloupec mega menu = level1 kategorie (ikonka + nadpis + seznam) */
.navigation .aries-megamenu {
  display:flex; flex-wrap:wrap; gap:32px;
  list-style:none; margin:0; padding:0; width:100%;
}
.navigation .aries-megamenu > li.level1 {
  padding:0; min-width:180px; flex:0 0 auto; max-width:240px;
}

/* Hlavička sloupce: ikona + název v oranžové */
.aries-nav-cat-link {
  display:flex; align-items:flex-start; gap:10px;
  text-decoration:none; padding:0 0 6px;
  border-bottom:none;
}
.aries-nav-cat-img {
  display:flex; flex:0 0 32px; width:32px; height:32px;
  align-items:center; justify-content:center;
}
.aries-nav-cat-img img {
  width:32px; height:32px; object-fit:contain; display:block;
}
.aries-nav-noimg { width:32px; height:32px; background:#f5f5f5; flex:0 0 32px; }

.aries-nav-cat-name {
  font-size:14px; font-weight:700; color:var(--orange);
  line-height:1.25; text-transform:none;
  flex:1; padding-top:4px;
}
.aries-nav-cat-link:hover .aries-nav-cat-name { color:var(--orange-dark); text-decoration:underline; }

/* Seznam sub-kategorií (level2) pod nadpisem */
.navigation .submenu li.level1 > ul,
.navigation .submenu li.level1 .submenu {
  list-style:none; margin:4px 0 0 42px; padding:0;
  display:block !important; position:static !important;
  background:transparent; box-shadow:none; border:none;
}
.navigation .submenu li.level2 { padding:0; }
.navigation .submenu li.level2 > a {
  display:block; padding:3px 0;
  font-size:13px; color:var(--gray); text-decoration:none; line-height:1.4;
}
.navigation .submenu li.level2 > a:hover { color:var(--orange); }
.navigation .submenu li.level3 > a { font-size:12px; color:var(--gray-mid); padding-left:10px; }

/* ════════════════════════════════════════════════════════════════════
   DROBEČKOVÁ NAVIGACE
   ════════════════════════════════════════════════════════════════════ */
.breadcrumbs { padding:10px 0; }
.breadcrumbs .items { display:flex; flex-wrap:wrap; list-style:none; margin:0; padding:0; }
.breadcrumbs .item { font-size:13px; color:var(--gray-mid); }
.breadcrumbs .item > a { color:var(--gray-mid); }
.breadcrumbs .item > a:hover { color:var(--orange); }
.breadcrumbs .item:not(:last-child)::after { content:' ▶ '; color:var(--orange); font-size:9px; margin:0 2px; }

/* ════════════════════════════════════════════════════════════════════
   STRÁNKA KATEGORIE
   ════════════════════════════════════════════════════════════════════ */
.page-title-wrapper .page-title {
  color:var(--orange); font-size:22px; font-weight:700; margin:12px 0 16px;
}
.category-image { margin-bottom:16px; }
.category-image img { width:100%; max-height:220px; object-fit:cover; border-radius:3px; display:block; }

/* ── Podkategorie s obrázky ─────────────────────────────────────── */
.aries-subcategories {
  display:flex; flex-wrap:wrap; gap:12px; margin-bottom:24px;
}
.aries-subcat-tile {
  display:flex; flex-direction:column; align-items:center;
  width:calc(16.666% - 11px); min-width:100px;
  border:1px solid var(--border); background:#fff; border-radius:3px;
  padding:10px 8px; text-align:center; transition:box-shadow .2s, border-color .2s;
  color:var(--gray);
}
.aries-subcat-tile:hover { box-shadow:0 3px 12px rgba(0,0,0,.1); border-color:#ccc; color:var(--orange); }
.aries-subcat-tile img { width:100%; height:70px; object-fit:contain; margin-bottom:6px; display:block; }
.aries-subcat-noimg { width:100%; height:70px; background:#f5f5f5; margin-bottom:6px; }
.aries-subcat-name { font-size:11px; font-weight:600; line-height:1.3; color:inherit; }
@media (max-width:768px) { .aries-subcat-tile { width:calc(33.333% - 9px); } }
@media (max-width:480px) { .aries-subcat-tile { width:calc(50% - 7px); } }

/* SORT ZÁLOŽKY — jako originál: Nejnovější | Doporučujeme | ... | ☐ Akce | ☐ Na poukaz ZP */
.aries-sort-bar {
  display:flex; align-items:center; flex-wrap:wrap; gap:0;
  border:1px solid var(--border); border-radius:3px;
  background:#fff; margin-bottom:20px; overflow:hidden;
}
.aries-sort-tab {
  padding:9px 14px; font-size:13px; font-weight:400; color:var(--gray);
  background:#fff; border:none; border-right:1px solid var(--border);
  cursor:pointer; white-space:nowrap; transition:background .15s;
}
.aries-sort-tab:last-child { border-right:none; }
.aries-sort-tab:hover { background:#f5f5f5; }
.aries-sort-tab.active { background:var(--orange); color:#fff; font-weight:600; }
.aries-sort-check {
  display:flex; align-items:center; gap:6px;
  padding:9px 14px; font-size:13px; color:var(--gray); border-right:1px solid var(--border);
  cursor:pointer; white-space:nowrap;
}
.aries-sort-check input[type=checkbox] { width:16px; height:16px; cursor:pointer; accent-color:var(--orange); }
/* Skrýt výchozí Magento toolbar sorter — používáme vlastní aries-sort-bar */
.toolbar-sorter { display:none !important; }
.toolbar.toolbar-products {
  display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap;
  gap:6px; margin-bottom:10px; padding:0;
  border:none; background:none;
}
.toolbar-amount { font-size:13px; color:var(--gray-mid); }
.limiter { display:none; } /* Skrýt limiter — stránkování postačuje */

/* ════════════════════════════════════════════════════════════════════
   GRID PRODUKTŮ — výpis
   ════════════════════════════════════════════════════════════════════ */
.products-grid .product-items {
  display:flex; flex-wrap:wrap; list-style:none; margin:0; padding:0;
}
.products-grid .product-item { width:25%; padding:0 0 16px; }
@media (max-width:1024px){ .products-grid .product-item { width:33.333%; } }
@media (max-width:640px) { .products-grid .product-item { width:50%; } }

.product-item-info {
  border:1px solid var(--border); background:#fff;
  position:relative; overflow:hidden;
  display:flex; flex-direction:column;
  height:100%; margin:0 8px;
  transition:box-shadow .2s, border-color .2s;
}
.product-item-info:hover { box-shadow:0 4px 16px rgba(0,0,0,.12); border-color:#ccc; }

/* Product image — spolupracujeme s Magento blank theme padding-bottom aspect ratio systémem */
.product-item-photo { display:block; background:#fff; }
.product-item-photo .product-image-container { display:block; width:100% !important; }
/* Wrapper používá padding-bottom trik pro zachování poměru stran (nastaveno JS) */
.product-item-photo .product-image-wrapper { background:#fff; }
/* Samotný obrázek je position:absolute (blank theme) — ponecháme to tak */
.product-item-photo .product-image-photo { max-height:260px; object-fit:contain; }
.product-item-info:hover .product-item-photo .product-image-photo { opacity:.95; }

.product-item-details { padding:10px 10px 8px; flex:1; display:flex; flex-direction:column; }
.product-item-name { flex:1; min-height:36px; margin-bottom:8px; }
.product-item-name a {
  font-size:13px; color:var(--gray); line-height:1.4;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.product-item-name a:hover { color:var(--orange); }

/* Cena + tlačítko v jednom řádku */
.price-box { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px; }
.price { font-size:16px; font-weight:700; color:var(--orange); }
.old-price .price { font-size:12px; color:var(--gray-light); text-decoration:line-through; font-weight:400; }
.special-price .price { color:var(--orange); }

.product-item-actions { margin-top:auto; }
.product-item-actions .actions-primary { display:flex; justify-content:space-between; align-items:center; margin-top:4px; }

/* Tlačítko "Zobrazit detaily" (jako M1 btn-cart) */
.product-item-actions .action.tocart,
.product-item-actions .action.details {
  background:var(--orange); color:#fff; border:none;
  padding:6px 14px; border-radius:2px; font-size:13px; font-weight:600;
  cursor:pointer; text-decoration:none; display:inline-block;
}
.product-item-actions .action.tocart:hover,
.product-item-actions .action.details:hover { background:var(--orange-dark); color:#fff; }

/* Sleva badge */
.aries-discount { background:var(--red); color:#fff; font-size:11px; font-weight:700; padding:2px 6px; border-radius:2px; }

/* ── Odznaky produktu ────────────────────────────────────────────── */
.aries-badge {
  position:absolute; z-index:5; font-size:11px; font-weight:700;
  padding:3px 8px; border-radius:2px; text-transform:uppercase; pointer-events:none;
}
.aries-badge-sale { top:6px; left:6px; background:var(--red); color:#fff; }
.aries-badge-new  { top:6px; left:6px; background:var(--blue-new); color:#fff; }
.aries-badge-zp   { top:6px; right:6px; background:var(--blue-zp); color:#fff; font-size:10px; }
.aries-badge-top  { top:6px; left:6px; background:var(--orange); color:#fff; }
/* Dva odznaky vlevo — posunout druhý */
.aries-badge-sale ~ .aries-badge-new,
.aries-badge-new ~ .aries-badge-sale { top:30px; }

/* ════════════════════════════════════════════════════════════════════
   HOMEPAGE — slider + tabulkové sekce (M1 styl)
   ════════════════════════════════════════════════════════════════════ */

/* Slider — přes CELOU šířku okna (ne max-width) */
.aries-slider { width:100%; max-width:none; margin:0 0 24px; padding:0; }
.aries-slider-inner {
  position:relative; overflow:hidden; background:#f0f0f0;
  width:100%; min-height:380px; max-height:520px;
}
.aries-slide { display:none; }
.aries-slide.active { display:block; }
.aries-slide img { width:100%; min-height:380px; max-height:520px; object-fit:cover; display:block; }
.aries-slide a { display:block; }
.aries-sl-prev, .aries-sl-next {
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.8); border:none; cursor:pointer;
  width:36px; height:36px; border-radius:50%;
  font-size:14px; display:flex; align-items:center; justify-content:center;
  color:var(--gray); z-index:10; transition:background .15s;
}
.aries-sl-prev { left:10px; }
.aries-sl-next { right:10px; }
.aries-sl-prev:hover, .aries-sl-next:hover { background:#fff; color:var(--orange); }
.aries-sl-dots {
  position:absolute; bottom:10px; left:50%; transform:translateX(-50%);
  display:flex; gap:6px; z-index:10;
}
.aries-sl-dot {
  width:10px; height:10px; border-radius:50%;
  background:rgba(255,255,255,.55); border:none; cursor:pointer; padding:0;
  transition:background .15s;
}
.aries-sl-dot.active { background:var(--orange); }

/* ── Tabulkové sekce ─────────────────────────────────────────────── */
.aries-hp-tabs-wrap { max-width:1400px; margin:0 auto; padding:0 8px; }
.aries-tab-group { margin-bottom:24px; }

/* Tab navigace (M1: background #ffe3c1, text orange, uppercase) */
.aries-tab-nav {
  background:#ffe3c1; display:flex; margin:0;
}
.aries-tab-link {
  flex:1; display:block; text-align:center;
  padding:15px 8px;
  color:var(--orange); font-size:18px; font-weight:600;
  text-transform:uppercase; text-decoration:none;
  border-left:2px solid #fff; transition:background .15s, color .15s;
}
.aries-tab-link:first-child { border-left:none; }
.aries-tab-link:hover { background:#ffd4a0; color:var(--orange-dark); }
.aries-tab-link.active {
  background:var(--orange); color:#fff;
}

/* Tab obsah — skrytý/zobrazený */
.aries-tab-section { display:none; background:#fff; }
.aries-tab-section.active { display:block; }

/* Karusel navigace */
.aries-prod-carousel { position:relative; padding:0 0 8px; }
.aries-car-nav { display:block; margin:8px 0; }
.aries-car-prev { float:left; padding-left:8px; }
.aries-car-next { float:right; padding-right:8px; }
.aries-car-arr {
  color:var(--orange); text-decoration:none; font-size:14px; font-weight:600;
}
.aries-car-arr:hover { color:var(--orange-dark); text-decoration:underline; }
.aries-prod-carousel::after { content:''; display:table; clear:both; }

/* Mřížka produktů — 4 na řádku (jako M1) */
.aries-products-grid {
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap;
}
.hp-item {
  width:25%; box-sizing:border-box;
  padding:8px; border-right:1px solid var(--border); border-bottom:1px solid var(--border);
}
.hp-item:nth-child(4n) { border-right:none; }
.hp-no-products { padding:20px; color:var(--gray-mid); font-size:13px; }

/* Karta produktu (M1 styl) */
.hp-product-box {
  text-align:center; cursor:pointer;
  transition:box-shadow .2s; height:100%;
}
.hp-product-box:hover { box-shadow:0 2px 8px rgba(0,0,0,.12); }

.hp-product-image {
  position:relative; display:block; text-align:center;
  border:1px solid var(--border); transition:border-color .15s;
}
.hp-product-image:hover { border-color:var(--orange); }
.hp-product-image img {
  width:100%; height:220px; object-fit:contain; display:block;
  transition:transform .3s;
}
.hp-product-box:hover .hp-product-image img { transform:scale(1.03); }
.hp-no-img { width:100%; height:220px; background:#f5f5f5; display:block; }

/* Odznaky (flag) */
.hp-flag-area {
  position:absolute; top:4px; left:4px; right:4px;
  display:flex; justify-content:space-between; pointer-events:none; z-index:5;
}
.hp-flag {
  display:inline-block; font-size:10px; font-weight:700;
  padding:2px 6px; text-transform:uppercase;
}
.hp-flag-new  { background:var(--blue-new); color:#fff; }
.hp-flag-akce { background:var(--red);      color:#fff; }
.hp-flag-zp   { background:var(--blue-zp);  color:#fff; }

/* Produktové info pod obrázkem */
.hp-product-info { padding:8px 4px; text-align:left; }
.hp-product-name {
  font-size:13px; font-weight:400; margin:0 0 8px;
}
.hp-product-name a {
  color:var(--gray); text-decoration:none; line-height:1.4;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  min-height:37px;
}
.hp-product-name a:hover { color:var(--orange); }

/* Tlačítko "Zobrazit detaily" (M1 styl) */
.hp-add-to-cart { margin:6px 0; }
.hp-btn-detail {
  display:inline-block; background:var(--orange); color:#fff;
  padding:6px 14px; font-size:12px; font-weight:600;
  text-decoration:none; border-radius:2px; transition:background .15s;
}
.hp-btn-detail:hover { background:var(--orange-dark); color:#fff; }

/* Cena (M1 styl) */
.hp-price-box { margin-top:6px; }
.hp-final-price .hp-price {
  font-size:16px; font-weight:700; color:var(--orange);
}
.hp-special-price .hp-price {
  font-size:16px; font-weight:700; color:var(--orange);
}
.hp-old-price { margin:0 0 2px; }
.hp-old-price .hp-price {
  font-size:13px; color:var(--gray-light); text-decoration:line-through;
}
.hp-discount {
  font-size:11px; color:var(--gray-mid); margin-left:4px;
}

/* "Zobrazit vše" odkaz pod každou sekcí */
.aries-show-all {
  text-align:center; padding:10px 0 14px;
  border-top:1px solid var(--border); margin-top:0;
}
.aries-show-all a {
  color:var(--orange); font-size:13px; font-weight:600; text-decoration:none;
}
.aries-show-all a:hover { text-decoration:underline; color:var(--orange-dark); }

/* ════════════════════════════════════════════════════════════════════
   DETAIL PRODUKTU
   ════════════════════════════════════════════════════════════════════ */
.catalog-product-view .page-title { color:var(--orange); font-size:22px; font-weight:700; }

.product-info-price { margin-bottom:16px; }
.product-info-price .price { font-size:28px; font-weight:700; color:var(--orange); }
.product-info-price .old-price .price { font-size:17px; color:var(--gray-mid); font-weight:400; text-decoration:line-through; }

/* Skrýt "As low as" / "Nejnižší cena od" / "Regular Price" label */
.price-box .price-label { display:none !important; }

/* Zobrazit přeškrtnutou starou cenu (Magento ji skrývá přes .no-display) */
.catalog-product-view .price-box .old-price.sly-old-price,
.catalog-product-view .price-box .old-price { display:inline-block !important; margin-right:6px; }

/* Cena jako na M1: stará cena nahoře, nová cena velká dole */
.catalog-product-view .price-box {
  display:flex; flex-direction:column; gap:4px;
}
/* Řádek se starou cenou a textem slevy */
.catalog-product-view .price-box .old-price { display:flex !important; align-items:center; gap:10px; }
/* Akční cena (final) – velká oranžová */
.catalog-product-view .price-box .normal-price .price,
.catalog-product-view .price-box .special-price .price { font-size:30px; font-weight:700; color:var(--orange); }
/* Stará cena – menší přeškrtnutá */
.catalog-product-view .price-box .old-price .price { font-size:16px; color:var(--gray-mid); font-weight:400; }

/* Skrýt placeholder "Zbývá jen %1" — zobrazí JS až po výběru varianty */
.availability.only.configurable-variation-qty { display:none; }

/* Skrýt SKU v product-info (nepotřebné na frontendu) */
.catalog-product-view .product-info-stock-sku .product.attribute.sku { display:none; }

/* Skrýt prázdnou sekci recenzí */
.catalog-product-view .product-reviews-summary.empty { display:none; }

/* Dostupnost — jako M1: jen "Skladem" zeleně bez prefixu */
.product-info-stock-sku { margin-bottom:14px; }
.stock.available { color:var(--green); font-weight:700; font-size:13px; }
.stock.unavailable { color:var(--red); font-weight:700; }

/* Krátký popis produktu (overview / short description) */
.product.attribute.overview { margin-bottom:16px; padding:12px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.product.attribute.overview .value { font-size:13px; line-height:1.75; color:var(--gray); }

/* AKCE / sleva badge na detailu produktu */
.aries-product-badge-wrap { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.aries-badge-discount { background:#e53e3e; color:#fff; font-size:12px; font-weight:700; padding:3px 8px; border-radius:2px; }

/* Barevné vzorky — jako M1 */
.swatch-attribute { margin-bottom:14px; }
.swatch-attribute-label { font-weight:700; font-size:13px; display:inline-block; margin-bottom:8px; margin-right:8px; }
.swatch-attribute-selected-option { font-weight:400; color:var(--orange); margin-left:6px; }
.swatch-opt, .swatch-attribute-options { margin:0; display:flex; flex-wrap:wrap; gap:6px; }
.swatch-option {
  display:inline-block; cursor:pointer; padding:0;
  border-radius:2px; border:2px solid #ccc;
  position:relative; box-sizing:border-box;
}
/* VIZUÁLNÍ barevný vzorek — čtvereček s hex barvou */
.swatch-option.color {
  width:34px; height:34px; overflow:hidden;
  background-size:cover !important; background-position:center !important;
}
.swatch-option.color:hover,
.swatch-option.color.selected {
  border-color:var(--orange); outline:2px solid var(--orange); outline-offset:1px;
}
.swatch-option.color.disabled { opacity:.35; cursor:not-allowed; }
.swatch-option.color.disabled::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(to bottom right,transparent calc(50% - 1px),#c00 50%,transparent calc(50% + 1px));
}
/* TEXT swatch — pro velikosti / vzory bez hex */
.swatch-option.text {
  min-width:36px; height:34px; padding:0 10px; line-height:30px;
  text-align:center; font-size:13px; font-weight:600;
  background:#fff; color:var(--gray); border:2px solid #ccc;
}
.swatch-option.text:hover,
.swatch-option.text.selected { border-color:var(--orange); background:var(--orange); color:#fff; }
.swatch-option.text.disabled { color:#bbb; text-decoration:line-through; opacity:.6; cursor:not-allowed; }

/* Konfigurovatelný produkt – velikost a barva sekce */
.product-options-wrapper { margin:14px 0; }
.product-options-wrapper .field.configurable {
  margin-bottom:14px; display:flex; align-items:center; gap:14px;
}
.product-options-wrapper .field.configurable .label {
  font-weight:700; font-size:13px; color:var(--gray);
  flex:0 0 90px; padding-top:0;
}
.product-options-wrapper .field.configurable .control { flex:1; min-width:0; }

/* Dropdown velikosti — širší a viditelný */
.swatch-attribute.size .swatch-attribute-options select,
.super-attribute-select {
  width:100%; min-width:240px; max-width:100%;
  border:1px solid var(--border); border-radius:2px;
  padding:10px 44px 10px 14px; font-size:14px; color:var(--gray);
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23ffffff'/%3E%3Crect x='0' y='0' width='24' height='24' fill='%23f7941d' rx='2'/%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23ffffff'/%3E%3C/svg%3E") right 0 center/36px no-repeat #fff;
  cursor:pointer; height:auto; line-height:1.3;
  text-overflow:ellipsis; overflow:hidden;
}
.swatch-attribute.size .swatch-attribute-options select:focus,
.super-attribute-select:focus { outline:none; border-color:var(--orange); }
/* Skryjeme případný "Vyberte možnost" placeholder, který je truncovaný */
select option { font-size:13px; padding:5px; }

/* Množství */
.field.qty {
  display:flex; align-items:center;
  border:1px solid var(--border); border-radius:2px;
  overflow:hidden; width:fit-content; margin-bottom:14px;
}
.field.qty .label {
  padding:8px 12px; background:#f0f0f0; font-size:13px; font-weight:600;
  border-right:1px solid var(--border);
}
.field.qty input[type=number] {
  width:52px; border:none; text-align:center;
  font-size:15px; font-weight:600; padding:8px 4px;
}
.field.qty input:focus { outline:none; }

/* Tlačítko KOUPIT */
.action.tocart.primary {
  background:var(--orange); border:none; color:#fff;
  font-size:15px; font-weight:700; padding:13px 24px; border-radius:2px;
  width:100%; cursor:pointer; text-transform:uppercase; letter-spacing:.5px;
  display:flex; align-items:center; justify-content:center; gap:10px;
  margin-bottom:14px;
}
.action.tocart.primary:hover { background:var(--orange-dark); }
.action.tocart.primary::before { content:'🛒'; font-size:18px; }

/* Záložky produktu */
.product.info.detailed .items { display:flex; flex-wrap:wrap; gap:2px; border-bottom:3px solid var(--orange); }
.product.info.detailed .item.title a {
  display:block; padding:9px 20px; background:#e0e0e0; color:var(--gray);
  font-size:13px; font-weight:600; text-decoration:none;
}
.product.info.detailed .item.title.active a { background:var(--footer-bg); color:#fff; }
.product.info.detailed .item.content { border:1px solid var(--border); border-top:none; padding:20px; font-size:13px; line-height:1.75; }

/* Galerie */
.fotorama__thumb-border { border-color:var(--orange) !important; }
.fotorama__dot { background:var(--orange) !important; }

/* ════════════════════════════════════════════════════════════════════
   KOŠÍK A CHECKOUT
   ════════════════════════════════════════════════════════════════════ */
.page-title-wrapper .page-title.cart-title,
.cart-container .page-title { color:var(--orange); }

/* Kroky checkoutu — jako originál: KOŠÍK → DOPRAVA A PLATBA → DODACÍ ÚDAJE → SOUHRN */
.opc-progress-bar { display:flex; margin-bottom:24px; }
.opc-progress-bar-item {
  flex:1; text-align:center; padding:10px 6px;
  font-size:12px; font-weight:700; text-transform:uppercase;
  background:#ccc; color:#666; position:relative; overflow:hidden;
  clip-path:polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
}
.opc-progress-bar-item:first-child { clip-path:polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); }
.opc-progress-bar-item:last-child  { clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%); }
.opc-progress-bar-item._active { background:var(--footer-bg); color:#fff; }
.opc-progress-bar-item._complete { background:#aaa; color:#555; }

/* Košík tabulka */
.cart.items thead th { font-size:13px; font-weight:700; border-bottom:2px solid var(--border); padding:8px; }
.cart.item .product-item-name a { color:var(--orange); font-weight:600; }
.cart.item .price, .cart.item .subtotal .price { color:var(--orange); font-weight:700; }
.cart.item .availability.available { color:var(--green); font-weight:600; font-size:12px; }
.cart-totals .grand .mark, .cart-totals .grand .amount .price { color:var(--orange); font-weight:700; font-size:18px; }

/* ════════════════════════════════════════════════════════════════════
   LAYERED NAVIGATION (filtry)
   ════════════════════════════════════════════════════════════════════ */
.filter-title { font-size:14px; font-weight:700; color:var(--orange); text-transform:uppercase; border-bottom:2px solid var(--orange); padding-bottom:6px; margin-bottom:10px; }
.filter-options-title { font-weight:700; color:var(--gray); font-size:13px; cursor:pointer; padding:8px 0; border-bottom:1px solid var(--border); }
.filter-options-item.active .filter-options-title { color:var(--orange); }
.filter-options-content a { display:block; padding:3px 0; font-size:13px; color:var(--gray); }
.filter-options-content a:hover { color:var(--orange); }

/* ════════════════════════════════════════════════════════════════════
   STRÁNKOVÁNÍ
   ════════════════════════════════════════════════════════════════════ */
.pages .items { display:flex; list-style:none; gap:4px; padding:0; margin:20px 0; flex-wrap:wrap; }
.pages .item a, .pages .item strong {
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px; border:1px solid var(--border); border-radius:2px;
  font-size:13px; color:var(--gray);
}
.pages .item a:hover { background:var(--orange); color:#fff; border-color:var(--orange); }
.pages .item.current strong { background:var(--orange); color:#fff; border-color:var(--orange); font-weight:700; }

/* ════════════════════════════════════════════════════════════════════
   TLAČÍTKA A FORMULÁŘE (obecné)
   ════════════════════════════════════════════════════════════════════ */
.action.primary, button.action-primary, .action.checkout {
  background:var(--orange); border:none; color:#fff;
  font-size:14px; font-weight:700; padding:10px 24px; border-radius:2px; cursor:pointer;
}
.action.primary:hover, .action.checkout:hover { background:var(--orange-dark); }
.action.secondary { background:#e0e0e0; border:none; color:var(--gray); font-size:14px; font-weight:700; padding:10px 24px; border-radius:2px; cursor:pointer; }
.input-text, select, textarea {
  border:1px solid var(--border); border-radius:2px; font-size:13px; padding:8px 10px; color:var(--gray);
}
.input-text:focus, select:focus, textarea:focus { border-color:var(--orange); outline:none; }
.message.success { background:#d4edda; border:1px solid #c3e6cb; color:#155724; padding:10px 14px; border-radius:2px; }
.message.error   { background:#f8d7da; border:1px solid #f5c6cb; color:#721c24; padding:10px 14px; border-radius:2px; }
.message.info    { background:#fff8f2; border:1px solid #f5c6a0; color:var(--gray); padding:10px 14px; border-radius:2px; }

/* ════════════════════════════════════════════════════════════════════
   INFO BAR (pred patičkou)
   ════════════════════════════════════════════════════════════════════ */
.aries-info-bar { background:#555; color:#fff; padding:14px 0; }
.aries-info-bar .container { max-width:1200px; margin:0 auto; padding:0 16px; }
.aries-info-bar-grid { display:flex; flex-wrap:wrap; }
.aries-info-bar-item {
  flex:1; min-width:200px; display:flex; align-items:center; gap:10px;
  padding:6px 20px; border-right:1px solid rgba(255,255,255,.15);
}
.aries-info-bar-item:last-child { border-right:none; }
.aries-info-icon { width:28px; height:28px; flex-shrink:0; }
.aries-info-title { font-size:11px; opacity:.75; display:block; }
.aries-info-value { font-size:13px; font-weight:700; display:block; }

/* ════════════════════════════════════════════════════════════════════
   PATIČKA
   ════════════════════════════════════════════════════════════════════ */
.page-footer { background:var(--footer-bg); color:#ccc; }
.aries-footer-newsletter { background:var(--footer-dark); padding:14px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.newsletter-wrap { max-width:1200px; margin:0 auto; padding:0 16px; display:flex; align-items:center; flex-wrap:wrap; gap:20px; justify-content:space-between; }
.newsletter-label { font-size:13px; font-weight:700; color:#fff; white-space:nowrap; }
.newsletter-form-wrap { display:flex; flex:1; max-width:340px; }
.newsletter-form-wrap input {
  flex:1; border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.1); color:#fff;
  padding:7px 12px; font-size:13px; border-radius:2px 0 0 2px; border-right:none;
}
.newsletter-form-wrap input::placeholder { color:rgba(255,255,255,.5); }
.newsletter-form-wrap button { background:var(--orange); border:none; color:#fff; font-weight:700; font-size:13px; padding:7px 16px; border-radius:0 2px 2px 0; cursor:pointer; }
.newsletter-form-wrap button:hover { background:var(--orange-dark); }
.social-icons { display:flex; gap:8px; }
.social-icon { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border:1px solid rgba(255,255,255,.3); border-radius:3px; color:#fff; }
.social-icon:hover { border-color:var(--orange); color:var(--orange); }
.social-icon svg { width:18px; height:18px; }

.footer.content { max-width:1200px; margin:0 auto; padding:28px 16px 16px; display:flex; flex-wrap:wrap; gap:28px; }
.footer-column { flex:1; min-width:175px; }
.footer-column-title { color:#fff; font-size:13px; font-weight:700; text-transform:uppercase; border-bottom:2px solid var(--orange); padding-bottom:7px; margin-bottom:12px; display:block; }
.footer-column a { color:#bbb; font-size:13px; display:block; margin-bottom:5px; }
.footer-column a:hover { color:var(--orange); }
.footer-column p, .footer-column-stores p { font-size:12px; color:#bbb; margin:0 0 8px; line-height:1.5; }
.footer-column-stores strong { color:#ddd; }
/* Footer logos bar — Doprava | Platba | Podporujeme */
.footer-logos-bar {
  width:100%; border-top:1px solid rgba(255,255,255,.08); padding:16px 0 4px;
  display:flex; flex-wrap:wrap; gap:20px; align-items:center;
}
.footer-logos-group { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.footer-logos-label { font-size:12px; color:#aaa; font-weight:700; white-space:nowrap; }
.footer-logos-group img { height:26px; width:auto; opacity:.8; filter:brightness(1.1); }
.footer-logos-group img:hover { opacity:1; }
.footer-logos-group a img { opacity:.8; }
.footer-logos-group a img:hover { opacity:1; }

.footer-bottom-bar { width:100%; border-top:1px solid rgba(255,255,255,.08); padding:12px 0 0; margin-top:4px; text-align:center; font-size:12px; color:#777; display:flex; gap:20px; justify-content:center; flex-wrap:wrap; }
.footer-bottom-bar a { color:#777; font-size:12px; }
.footer-bottom-bar a:hover { color:var(--orange); }
/* Hide Magento default copyright block */
small.copyright { display:none !important; }
.footer.content:has(small.copyright) { display:none !important; }

/* ════════════════════════════════════════════════════════════════════
   RESPONZIVNÍ
   ════════════════════════════════════════════════════════════════════ */
@media (max-width:1200px) {
  .aries-hp-tabs-wrap { padding:0 12px; }
  .aries-slider { padding:0 12px; }
}
@media (max-width:768px) {
  .header.content { padding:8px 10px; flex-wrap:wrap; }
  .aries-logo-subtitle { display:none; }
  .aries-logo-aries, .aries-logo-medishop { font-size:20px; }
  /* Show hamburger on mobile */
  .nav-toggle { display:block !important; order:-1; color:#fff; background:none; border:none; cursor:pointer; font-size:0; padding:6px; }
  .nav-toggle::before { content:'☰'; font-size:24px; color:var(--orange); }
  /* Override blank theme's position:fixed slide-out nav — we want simple show/hide */
  .nav-sections {
    display:none !important;
    position:static !important; left:auto !important; top:auto !important;
    height:auto !important; width:100% !important;
    overflow:visible !important; transition:none !important;
    box-shadow:none !important;
  }
  html.nav-open .nav-sections,
  html.nav-before-open .nav-sections { display:block !important; }
  /* Prevent blank theme from sliding page-wrapper */
  html.nav-before-open,
  html.nav-open { height:auto !important; overflow:visible !important; }
  html.nav-before-open .page-wrapper,
  html.nav-open .page-wrapper { left:0 !important; transition:none !important; overflow:visible !important; }
  html.nav-before-open body,
  html.nav-open body { height:auto !important; overflow:auto !important; position:static !important; }
  .nav-sections .nav-sections-items { flex-direction:column; }
  .navigation > ul { flex-direction:column; }
  .navigation > ul > li.level0 > a { border-right:none; border-bottom:1px solid rgba(255,255,255,.2); }
  /* Homepage tabs responsive */
  .aries-tab-link { font-size:13px; padding:10px 4px; }
  .hp-item { width:50%; }
  .hp-item:nth-child(4n) { border-right:1px solid var(--border); }
  .hp-item:nth-child(2n) { border-right:none; }
  .aries-info-bar-item { min-width:45%; border-right:none; border-bottom:1px solid rgba(255,255,255,.1); }
}
@media (max-width:480px) {
  .aries-hicon span, .minicart-wrapper .action.showcart .text,
  .block-search .label .label-text { font-size:10px; }
  .aries-header-extra { display:none; }
}
