@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Karla:wght@400;500;700&family=Space+Mono:wght@400;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  /* Pod dřezem — bez cirkusu.
     Nine brand colours. Hlína is the only accent; Mech is a system signal.
     Hlína is 4,10:1 on Papír, so it carries fills and large numbers only —
     small accent text uses Rez (6,06:1). */
  --dg-papir: #F4EFE6;
  --dg-krida: #E3DACB;
  --dg-inkoust: #241E17;
  --dg-kamen: #6B6759;
  --dg-hlina: #B55A34;
  --dg-rez: #8E4525;
  --dg-mech: #3F6543;

  /* legacy names kept so existing rules keep working */
  --dg-ink: #241E17;
  --dg-blue: #241E17;
  --dg-blue-dark: #3D362C;
  --dg-aqua: #B55A34;
  --dg-water: #F4EFE6;
  --dg-sky: #E3DACB;
  --dg-line: #DED3C2;
  --dg-white: #ffffff;
  --dg-focus: #B55A34;
}

html { overflow-x: hidden; }
body {
  background: var(--dg-white);
  color: var(--dg-ink);
  font-family: "Karla", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  overflow-x: hidden;
}
/* The new responsive header has a variable height. Keep it in document flow
   instead of the source theme's fixed header plus hard-coded 156px spacer. */
#header.l-header {
  position: relative;
  top: auto;
  left: auto;
  transform: none !important;
  transition: none;
}
body #wrapper { margin-top: 0 !important; }
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  letter-spacing: -0.025em;
}
a { color: var(--dg-rez); }
a:hover { color: var(--dg-hlina); }
.container-full {
  margin-left: auto;
  margin-right: auto;
  max-width: 1440px;
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
  width: 100%;
}

.dg-site-status {
  align-items: center;
  background: var(--dg-ink);
  color: var(--dg-white);
  display: flex;
  font-size: .78rem;
  font-weight: 700;
  gap: .55rem;
  justify-content: center;
  min-height: 2.2rem;
  padding: .4rem 1rem;
  text-align: center;
}
.dg-site-status span {
  background: var(--dg-aqua);
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  flex: 0 0 auto;
  height: .7rem;
  width: .7rem;
}

.dg-site-header {
  align-items: center;
  display: grid;
  gap: clamp(1rem, 3vw, 2.5rem);
  grid-template-columns: auto minmax(16rem, 1fr) auto;
  min-height: 6.6rem;
}
.dg-site-logo img { display: block; height: auto; max-width: 100%; }
.dg-site-search {
  align-items: stretch;
  border: 2px solid var(--dg-blue);
  border-radius: .25rem;
  display: flex;
  min-width: 0;
  overflow: hidden;
}
.dg-site-search input {
  background: var(--dg-white);
  border: 0;
  box-shadow: none;
  color: var(--dg-ink);
  font-size: 1rem;
  height: 3.2rem;
  min-width: 0;
  padding: .7rem 1rem;
  width: 100%;
}
.dg-site-search button {
  background: var(--dg-blue);
  border: 0;
  color: var(--dg-white);
  font-weight: 800;
  min-width: 5.5rem;
  padding: 0 1.2rem;
}
.dg-site-search button:hover { background: var(--dg-blue-dark); }

.dg-site-actions { display: flex; gap: .35rem; }
.dg-site-actions .blockcart { display: block; }
.dg-site-actions a {
  align-items: center;
  color: var(--dg-ink);
  display: grid;
  font-size: .76rem;
  gap: 0 .4rem;
  grid-template-columns: auto auto auto;
  min-height: 44px;
  min-width: 44px;
  padding: .45rem .6rem;
  text-decoration: none;
}
.dg-site-actions a:hover { background: var(--dg-water); }
.dg-site-actions svg {
  fill: none;
  height: 1.45rem;
  stroke: var(--dg-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.45rem;
}
.dg-site-actions b { font-size: .86rem; }
.dg-site-actions em {
  align-items: center;
  background: var(--dg-focus);
  border-radius: 1rem;
  color: var(--dg-white);
  display: flex;
  font-size: .68rem;
  font-style: normal;
  font-weight: 800;
  height: 1.25rem;
  justify-content: center;
  min-width: 1.25rem;
}

.dg-site-nav { background: var(--dg-blue); box-shadow: 0 2px 0 rgba(16, 42, 67, .12); }
.dg-site-nav > div { display: flex; overflow-x: auto; scrollbar-width: thin; }
.dg-site-nav a {
  border-right: 1px solid rgba(255, 255, 255, .2);
  color: var(--dg-white);
  flex: 0 0 auto;
  font-size: .9rem;
  font-weight: 750;
  padding: .9rem 1.1rem;
  text-decoration: none;
  white-space: nowrap;
}
.dg-site-nav a:first-child { background: var(--dg-blue-dark); }
.dg-site-nav a:hover { background: #1680bd; }

#wrapper { background: var(--dg-white); padding-top: 0; }
.page-home { padding: 0; }
.breadcrumb { margin-top: 1rem; }
.l-wrapper { min-height: 35vh; }
.card,
.cart-container,
.cart-summary,
.checkout-step {
  border-color: var(--dg-line);
  box-shadow: none;
}
.btn-primary,
.btn-success {
  background: var(--dg-blue);
  border-color: var(--dg-blue);
}
.btn-primary:hover,
.btn-success:hover {
  background: var(--dg-blue-dark);
  border-color: var(--dg-blue-dark);
}
.checkout-step.-current .step-title,
.checkout-step.-reachable.-current .step-title { color: var(--dg-blue); }
.form-control:focus { border-color: var(--dg-blue); box-shadow: 0 0 0 .15rem rgba(11, 105, 163, .18); }

.dg-site-footer {
  background: var(--dg-ink);
  color: #dbeaf2;
  margin-top: 4rem;
  padding: 3rem 0 1rem;
}
.dg-site-footer > .container { display: grid; gap: 3rem; grid-template-columns: 1.2fr 1fr .7fr; }
.dg-site-footer img { height: auto; max-width: 100%; }
.dg-site-footer strong { color: var(--dg-white); display: block; font-size: 1rem; margin-bottom: .75rem; }
.dg-site-footer p { line-height: 1.65; margin: .7rem 0; max-width: 30rem; }
.dg-site-footer nav { display: flex; flex-direction: column; gap: .55rem; }
.dg-site-footer a { color: var(--dg-water); }
.dg-site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .76rem;
  margin: 2.25rem auto 0 !important;
  max-width: 1140px !important;
  padding: 1rem;
  text-align: center;
}

.dg-order-item-placeholder {
  align-items: center;
  aspect-ratio: 1;
  background: var(--dg-water);
  border: 1px solid var(--dg-line);
  color: var(--dg-blue-dark);
  display: flex;
  font-size: .85rem;
  font-weight: 800;
  justify-content: center;
  min-width: 64px;
  width: 100%;
}

.dg-test-payment-note {
  background: var(--dg-water);
  border: 1px solid var(--dg-line);
  border-left: .35rem solid var(--dg-focus);
  border-radius: .35rem;
  color: var(--dg-ink);
  margin: 1rem 0;
  padding: 1rem 1.15rem;
}
.dg-test-payment-note h2 { color: var(--dg-blue-dark); font-size: 1.25rem; margin: 0 0 .7rem; }
.dg-test-payment-note p:last-child { margin-bottom: 0; }
.dg-test-payment-note dt { font-weight: 700; }
.dg-test-payment-note dd { margin-bottom: .6rem; }

*:focus-visible { outline: 3px solid var(--dg-focus) !important; outline-offset: 3px; }
.sr-only {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

@media (max-width: 900px) {
  .dg-site-header { grid-template-columns: 1fr auto; padding-bottom: 1rem; padding-top: 1rem; }
  .dg-site-search { grid-column: 1 / -1; grid-row: 2; }
  .dg-site-logo img { width: 190px; }
  .dg-site-footer > .container { grid-template-columns: 1fr 1fr; }
  .dg-site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .dg-site-status { font-size: .7rem; }
  .dg-site-header { gap: .7rem; }
  .dg-site-logo img { width: 148px; }
  .dg-site-actions b { display: none; }
  .dg-site-actions a { padding: .35rem; }
  .dg-site-search input { font-size: .9rem; }
  .dg-site-search button { min-width: 4.5rem; padding: 0 .75rem; }
  .dg-site-nav a { font-size: .82rem; padding: .8rem .9rem; }
  .dg-site-footer > .container { grid-template-columns: 1fr; }
  .dg-site-footer__brand { grid-column: auto; }
}
/* Real pointer/focus target; the legacy floated icon left an empty inline link. */
.cart-line-product-actions .remove-from-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}


/* ============================================================
   Pod dřezem — identity layer
   ============================================================ */

/* --- logo lockup: inline mark + live type, so the webfont applies --- */
.dg-site-logo { align-items: center; display: flex; gap: 13px; text-decoration: none; }
.dg-site-logo:hover { text-decoration: none; }
.dg-brand-mark { flex: 0 0 auto; }
.dg-brand-text { display: flex; flex-direction: column; gap: 2px; }
.dg-brand-word {
  color: var(--dg-inkoust);
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-size: 1.7rem; font-weight: 800; letter-spacing: -0.035em; line-height: .95;
}
.dg-brand-claim {
  color: var(--dg-rez);
  font-family: "Space Mono", ui-monospace, Menlo, monospace;
  font-size: .53rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}

/* --- unit price: the whole point of the shop --- */
.dg-unit-price {
  color: var(--dg-rez);
  font-family: "Space Mono", ui-monospace, Menlo, monospace;
  font-size: .78rem; font-style: normal; font-weight: 700;
  display: block; margin-top: .15rem;
}
.dg-unit-price--lg { font-size: .95rem; }

/* --- "the same product is cheaper in another pack" --- */
.dg-cheaper {
  background: var(--dg-inkoust); color: var(--dg-papir);
  font-size: .85rem; line-height: 1.5;
  margin: .9rem 0 0; padding: .8rem .95rem;
}
.dg-cheaper strong { color: #E8A57F; font-family: "Space Mono", ui-monospace, monospace; font-weight: 700; }

/* --- chrome --- */
.dg-site-status { background: var(--dg-inkoust); letter-spacing: .01em; }
.dg-site-status span { background: var(--dg-hlina); }
.dg-site-search { border-color: var(--dg-inkoust); border-radius: 0; }
.dg-site-search button { background: var(--dg-inkoust); border-radius: 0; font-weight: 700; }
.dg-site-search button:hover { background: #3D362C; }
.dg-site-nav { background: var(--dg-inkoust); box-shadow: none; }
.dg-site-actions svg { stroke: var(--dg-inkoust); }
.dg-site-actions em { background: var(--dg-hlina); border-radius: 0; }
.dg-site-actions a:hover { background: var(--dg-krida); }

/* --- product cards --- */
.dg-product-card { background: #fff; border: 1px solid var(--dg-line); border-radius: 0; }
.dg-product-card h2 a { color: var(--dg-inkoust); font-weight: 700; letter-spacing: -0.01em; }
.dg-product-card__brand {
  color: var(--dg-kamen);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
}
.dg-product-card__price strong,
.dg-detail__price strong {
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
}
.dg-product-card__price span, .dg-detail__price span { color: var(--dg-kamen); font-size: .7rem; }

/* --- buttons: ink, square, honest --- */
.dg-button, .btn-primary, .btn-success {
  background: var(--dg-inkoust); border: 0; border-radius: 0;
  color: var(--dg-papir); font-weight: 700; letter-spacing: .01em;
  min-height: 44px;
}
.dg-button:hover, .btn-primary:hover, .btn-success:hover { background: #3D362C; color: var(--dg-papir); }
.dg-button--cart { width: 100%; }

/* --- sort control sits with the filters --- */
.dg-filter select, .dg-filter input { border-radius: 0; }

/* --- card buy block: price and unit price share a line, button gets its own --- */
.dg-product-card__buy { align-items: stretch; flex-direction: column; gap: .6rem; }
.dg-product-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; }
.dg-product-card__price strong { display: inline; white-space: nowrap; }
.dg-product-card__price span { display: block; flex: 1 0 100%; }
.dg-unit-price { display: inline; margin-top: 0; white-space: nowrap; }
.dg-cart-form { width: 100%; }
.dg-product-card .dg-button--cart { width: 100%; }

/* --- filters: stop the selects truncating their own labels --- */

/* --- detail page price block --- */
.dg-detail__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.dg-detail__price span { flex: 1 0 100%; }

/* --- filters: five fields now (search, category, sort, brand, submit) --- */
.dg-filters {
  background: var(--dg-krida);
  border-left: 0;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  max-width: 100%;
}
.dg-filter > span { font-family: "Space Mono", ui-monospace, monospace; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 1100px) { .dg-filters { grid-template-columns: 1fr 1fr; } }

/* the filter shelf spans the content width; fields flex inside it */
.dg-mobile-filters { width: 100%; }
.dg-filters select, .dg-filters input { min-width: 0; width: 100%; }

/* The base theme caps every .page-content form at 450px and centres it
   (.page-content form{width:75%;max-width:450px;margin:0 auto}). That is meant
   for account/checkout forms; the catalogue's filter shelf and the add-to-cart
   forms are layout, not data entry, so they opt out. */
.page-content form.dg-filters,
.page-content form.dg-cart-form,
.page-content form.dg-detail__cart-form,
.page-content .dg-site-search {
  margin: 0;
  max-width: none;
  width: 100%;
}

/* ============================================================
   Responsive: the header grid and filter shelf were overflowing
   below ~860px. Nothing may scroll sideways.
   ============================================================ */
@media (max-width: 860px) {
  .dg-site-header {
    gap: .8rem 1rem;
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding-bottom: .8rem;
    padding-top: .8rem;
  }
  .dg-site-search { grid-column: 1 / -1; min-height: 48px; }
  .dg-site-search input { height: 48px; }
  .dg-brand-word { font-size: 1.4rem; }
  .dg-site-actions a > b { display: none; }
  .dg-site-nav > div {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dg-site-nav > div::-webkit-scrollbar { display: none; }
  .dg-site-nav a { white-space: nowrap; }
  .dg-filters { grid-template-columns: 1fr; }
  .dg-filters .dg-button, .dg-filters button { width: 100%; }
}
@media (max-width: 480px) {
  .dg-brand-word { font-size: 1.25rem; }
  .dg-brand-claim { font-size: .48rem; }
}

/* ============================================================
   The base theme pins .container/.l-wrapper/body to
   min-width:992px !important, so the shop could never lay out
   below 992px — every phone got a sideways scroll. Release it.
   ============================================================ */
@media (max-width: 991px) {
  body,
  .container,
  .l-wrapper,
  .l-wrapper--boxed,
  main > .notifications-container {
    min-width: 0 !important;
  }
  .dg-catalog__grid, .dg-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-hero { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dg-catalog__grid, .dg-product-grid { grid-template-columns: 1fr; }
}


/* ===== homepage (doplněno po vypnutí modulu drogeriecatalogpreview) ===== */
.dg-home-hero { padding: 56px 0 40px; max-width: 46rem; }
.dg-home-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08;
  letter-spacing: -0.03em; margin: 0 0 1rem; color: #241E17; }
.dg-home-hero p { font-size: 1.05rem; line-height: 1.55; color: #6B6759; margin: 0 0 1.4rem; }
.dg-home-hero .dg-button { display: inline-flex; align-items: center; min-height: 52px;
  padding: 0 28px; background: #241E17; color: #F4EFE6; font-weight: 700;
  text-decoration: none; border-radius: 2px; }
.dg-home-hero .dg-button:hover { background: #3D362C; color: #F4EFE6; }
.dg-home-cats { padding: 0 0 64px; }
.dg-home-cats h2 { font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: #6B6759; margin: 0 0 1rem; font-weight: 700; }
.dg-home-cats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.dg-home-cats li a { display: flex; align-items: center; min-height: 68px; padding: 0 20px;
  background: #FFFFFF; border: 1px solid #DED3C2; border-radius: 2px;
  color: #241E17; font-weight: 700; text-decoration: none; }
.dg-home-cats li a:hover { border-color: #B55A34; color: #8E4525; }


/* ===== vypis produktu: rozvrzeni karty (doplneno pri UI revizi) ===== */

/* Ikona kosiku v tlacitku nemela nikde rozmer a roztahovala celou kartu. */
.add-to-cart-img {
  width: 20px; height: 20px;
  object-fit: contain; display: inline-block; flex: 0 0 auto;
}
.quick-add-to-cart .btn,
.quick-add-to-cart button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; border-radius: 2px;
}

/* Karty maji ruzne dlouhe nazvy — srovname je do stejne mrizky, aby ceny
   a tlacitka sedela na jedne lince. */
.product-miniature,
.product-miniature .thumbnail-container {
  display: flex; flex-direction: column; height: 100%;
}
.product-miniature .product-thumbnail img {
  width: 100%; height: 180px; object-fit: contain;
}
.product-miniature .product-title {
  min-height: 2.7em; line-height: 1.35; margin-bottom: .35rem;
}
.product-miniature .product-price-and-shipping {
  margin-top: auto; padding-top: .35rem;
}

/* Hlaska o levnejsim baleni: na karte tise, na detailu zustava blok. */
.product-miniature .dg-cheaper {
  background: none; color: var(--dg-kamen);
  border-top: 1px solid var(--dg-krida);
  margin: .55rem 0 0; padding: .5rem 0 0;
  font-size: .76rem; line-height: 1.45;
}
.product-miniature .dg-cheaper strong { color: var(--dg-rez); }

/* Jednotkova cena na karte: hlavni cislo znacky, ale nesmi prebit cenu baleni. */
.product-miniature .dg-unit-price {
  display: block; margin-top: .2rem; font-size: .8rem;
}
/* ===== konec ===== */


/* ===== srovnani vysek karet ===== */
/* Rada musi natahnout vsechny karty na stejnou vysku... */
.products { align-items: stretch; }
.product-miniature { display: flex; }
.product-miniature .card-product { display: flex; flex-direction: column; width: 100%; }
/* ...a telo karty vyplnit zbytek, aby slo tlacitko odsunout dolu. */
.product-miniature .card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
/* Tohle je ten spravny prvek — tlacitko, ne cenovy blok. */
.product-miniature .quick-add-to-cart { margin-top: auto; padding-top: .6rem; }
.product-miniature .product-price-and-shipping { margin-top: 0; }
/* Nazev na dva az tri radky nesmi posouvat zbytek karty. */
.product-miniature .product-title { min-height: 3.9em; }

/* ===== jednotka za cislem ===== */
/* Cislice zustavaji v monu kvuli porovnatelnosti, jednotka jde do Karly:
   v Space Mono je male "l" k nerozeznani od jednicky. */
.dg-unit-suffix {
  font-family: "Karla", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: .24em;
}
/* ===== konec ===== */


/* ===== srovnani vysek karet: spodni mez misto flex stretch ===== */
@media (min-width: 768px) {
  .product-miniature .card-product { min-height: 588px; }
}
/* ===== konec ===== */


/* ===== karty ve vypisu: panel s tlacitkem zpet do toku ===== */
@media (min-width: 768px) {
  /* Tema ho ma absolutne + translateY(61px) jako hover-reveal. Bez orezani
     ale visel pod kartou a prekryvala ho dalsi rada. */
  .product-miniature .highlighted-informations {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  /* Spolecna vyska karet: 632px pokryje i nejvyssi variantu (nazev na tri
     radky + jednotkova cena + dvouradkova hlaska o levnejsim baleni). */
  .product-miniature .card-product {
    min-height: 632px;
    display: flex;
    flex-direction: column;
  }
  /* Flex retezec az k panelu, aby slo tlacitko odsunout dolu. */
  .product-miniature .card-body,
  .product-miniature .product-description {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }
  .product-miniature .product-miniature-content { margin-top: auto; }
}
/* ===== konec ===== */


/* ===== panel s tlacitkem do toku na vsech sirkach ===== */
/* Tlacitko do kosiku ma byt videt rovnou, ne az po najeti mysi — na dotykovem
   displeji zadny hover neni. Plati i pod 768px, kde karty stoji pod sebou. */
.product-miniature .highlighted-informations {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
}
.product-miniature .card-product,
.product-miniature .card-body,
.product-miniature .product-description {
  display: flex;
  flex-direction: column;
}
.product-miniature .card-body,
.product-miniature .product-description { flex: 1 1 auto; }
.product-miniature .product-miniature-content { margin-top: auto; }
/* ===== konec ===== */
