/* =========================================================
   GRANDSTYL.CZ – vlastní styly (spojeno z jednotlivých souborů)
   Každá úprava je samostatný blok. Pro odebrání úpravy smažte
   celý blok od řádku ===== START až po ===== KONEC.
   ========================================================= */

/* ===== START: MENU – menší blok podkategorií v kategorii (menu-mensi-5.css) ===== */
@media (min-width: 992px) {

  /* seznam podkategorií */
  .category-top ul.subcategories.with-image {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch !important;
    margin-bottom: 10px !important;
  }
  .category-top ul.subcategories.with-image::before,
  .category-top ul.subcategories.with-image::after {
    display: none;
  }

  /* 5 sloupců (pro 6 sloupců dej 16.66 %) */
  .category-top ul.subcategories.with-image li.col-lg-3 {
    width: 20% !important;
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }

  /* dělicí řádek přes celou šířku */
  .category-top ul.subcategories.with-image li.divider {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin: 4px 0 !important;
  }

  /* řádky: žádná pevná výška ani velké odsazení */
  .category-top ul.subcategories.with-image li {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }
  .category-top ul.subcategories.with-image li a {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }

  /* obrázky */
  .category-top ul.subcategories.with-image li a img {
    max-width: 50px !important;
    max-height: 50px !important;
    width: auto;
    height: auto;
  }

  /* text */
  .category-top ul.subcategories.with-image li a .text {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  /* ORÁMOVANÉ POLOŽKY (parametric) – zarovnané doleva, stejně vysoké v řádku */
  .category-top ul.subcategories.with-image li.parametric {
    display: flex !important;
    padding: 4px 6px !important;
  }
  .category-top ul.subcategories.with-image li.parametric a {
    display: flex !important;
    flex: 1 1 auto;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #fff;
    padding: 8px 14px !important;
    min-height: 44px !important;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  .category-top ul.subcategories.with-image li.parametric a:hover {
    border-color: #1a1a1a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  }

  /* logo/obrázek: pevně široké místo, aby text začínal pořád na stejném místě */
  .category-top ul.subcategories.with-image li.parametric a img {
    width: auto;
    height: auto;
    max-width: 56px !important;
    max-height: 40px !important;
    object-fit: contain;
  }
  .category-top ul.subcategories.with-image li.parametric a > :not(.text) {
    flex: 0 0 64px;
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 12px 0 0 !important;
  }

  /* text vlevo */
  .category-top ul.subcategories.with-image li.parametric a .text {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  /* položky bez obrázku: text odsazený stejně jako u ostatních (jen když jsou na stránce i položky s obrázky) */
  .category-top ul.subcategories.with-image:has(li.parametric img) li.parametric a:not(:has(img)) .text {
    padding-left: 76px !important;
  }
}
/* ===== KONEC: MENU – menší blok podkategorií v kategorii ===== */

/* ===== START: BLOG – výpis článků (blog4.css) ===== */
@media (min-width: 768px) {

  .news-wrapper .news-item {
    position: relative;
    display: block !important;
    padding: 16px 0 16px 180px !important;
    min-height: 120px;
    border-bottom: 1px solid #e5e5e5;
  }

  .news-wrapper .news-item .news-image {
    position: absolute !important;
    left: 0;
    top: 16px;
    width: 160px !important;
    height: 120px !important;
    max-width: 160px !important;
    object-fit: contain !important;
    object-position: center center;
    margin: 0 !important;
  }

  /* menší nadpis */
  .news-wrapper .news-item h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
  }

  .news-wrapper .news-item time {
    display: block;
    margin: 0 0 6px 0 !important;
  }

  .news-wrapper .news-item .description {
    margin: 0 !important;
  }
}

/* mobil: beze změny, obrázek nahoře přes celou šířku */
@media (max-width: 767px) {
  .news-wrapper .news-item .news-image {
    width: 100% !important;
    height: 280px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center center;
    display: block;
    margin-bottom: 20px;
  }
}
/* ===== KONEC: BLOG – výpis článků ===== */

/* ===== START: ÚVOD – dlaždice top značek (gs-brand-tiles.css) ===== */
.gs-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 40px 0 20px;
}
.gs-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
  transition: box-shadow .25s, transform .25s;
}
.gs-tile > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gs-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.gs-tile:hover > img { transform: scale(1.06); }

.gs-tile-label {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gs-tile-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: -12px;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: #eec777;
  transition: width .3s;
}
.gs-tile:hover .gs-tile-label::before { width: 56px; }
.gs-tile-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.gs-tile .gs-tile-logo {
  display: block;
  height: 16px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
/* Opticky sjednocená velikost log – široká loga nižší, kompaktní vyšší */
.gs-tile .gs-tile-logo[src*="maserati"] { height: 13px; }
.gs-tile .gs-tile-logo[src*="versace"]  { height: 17px; }
.gs-tile .gs-tile-logo[src*="casio"]    { height: 14px; }
.gs-tile .gs-tile-logo[src*="citizen"]  { height: 16px; }
.gs-tile .gs-tile-logo[src*="bulova"]   { height: 19px; }
.gs-tile-arrow {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eec777;
  color: #141824;
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
  transition: transform .25s;
}
.gs-tile:hover .gs-tile-arrow { transform: translateX(4px); }

.gs-tiles-all { text-align: center; margin: 14px 0 44px; }
.gs-tiles-all a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  background: #141824;
  color: #fff !important;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(20,24,36,.18);
  transition: background .25s, box-shadow .25s, transform .25s;
}
.gs-tiles-all a::after {
  content: "›";
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eec777;
  color: #141824;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
  transition: transform .25s;
}
.gs-tiles-all a:hover {
  background: #262b3a;
  box-shadow: 0 8px 22px rgba(20,24,36,.25);
  transform: translateY(-2px);
}
.gs-tiles-all a:hover::after { transform: translateX(3px); }

/* Tablet */
@media (max-width: 991px) {
  .gs-tile-name { font-size: 16px; }
  .gs-tile-arrow { display: none; }
}
/* Mobil: posun do strany */
@media (max-width: 767px) {
  .gs-tiles {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .gs-tile { scroll-snap-align: start; }
  .gs-tile-name { font-size: 18px; }
}
/* ===== KONEC: ÚVOD – dlaždice top značek ===== */

/* ===== START: ÚVOD – úvodní text a ikonky výhod (gs-uvodni-text.css) ===== */
.gs-intro-lead { font-size: 1.1em; line-height: 1.6; }

.gs-usp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 10px;
}
.gs-usp-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 14px 16px 14px 76px;
  position: relative;
  background: #f7f5f0;
  border-radius: 12px;
  line-height: 1.35;
}
.gs-usp-item strong { font-size: 16px; color: #141824; }
.gs-usp-item span { font-size: 13px; color: #6b6f7a; }
.gs-usp-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background-color: #141824;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}
/* Ikony (zlaté čárové SVG) */
.gs-usp--since::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eec777' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 16.9 6.1 20l1.2-6.5L2.5 8.9 9.1 8z'/%3E%3C/svg%3E");
}
.gs-usp--brands::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eec777' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E");
}
.gs-usp--original::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eec777' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.3-8 11-4.6-1.7-8-6-8-11V5z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
}
.gs-usp--truck::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eec777' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4h14v12H1zM15 9h4l4 4v3h-8z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2'/%3E%3Ccircle cx='18.5' cy='18.5' r='2'/%3E%3C/svg%3E");
}

@media (max-width: 991px) {
  .gs-usp { grid-template-columns: repeat(2, 1fr); }
}
/* Mobil: kompaktní 2×2 */
@media (max-width: 767px) {
  .gs-usp { gap: 8px; margin: 18px 0 6px; }
  .gs-usp-item { min-height: 0; padding: 10px 10px 10px 52px; border-radius: 10px; }
  .gs-usp-item::before { left: 10px; width: 34px; height: 34px; margin-top: -17px; background-size: 18px 18px; }
  .gs-usp-item strong { font-size: 13px; }
  .gs-usp-item span { font-size: 11px; }
}
/* ===== KONEC: ÚVOD – úvodní text a ikonky výhod ===== */

/* ===== START: ÚVOD – šipky carouselu (gs-carousel-arrows.css) ===== */
/* Menší, u okrajů, na počítači se ukážou až po najetí myší */
#carousel .carousel-control {
  width: 48px !important;
  background: none !important;
  opacity: 0 !important;
  transition: opacity .25s;
}
#carousel .carousel-control.left  { left: 6px !important; }
#carousel .carousel-control.right { right: 6px !important; }
#carousel:hover .carousel-control { opacity: .85 !important; }
#carousel .carousel-control:hover { opacity: 1 !important; }

/* Dotyková zařízení (mobil/tablet): šipky vždy jemně vidět */
@media (hover: none) {
  #carousel .carousel-control { opacity: .6 !important; width: 36px !important; }
}
/* ===== KONEC: ÚVOD – šipky carouselu ===== */

/* ===== START: ÚVOD – mezery pod bannery a u nadpisů (gs-homepage-spacing.css) ===== */
/* Mezera pod řadou bannerů */
.banners-row {
  margin-bottom: 10px !important;
  padding-bottom: 0 !important;
}

/* Nadpisy sekcí: Akční nabídka, Novinky, ... */
.homepage-group-title {
  margin-top: 24px !important;    /* mezera nad nadpisem */
  margin-bottom: 18px !important; /* mezera mezi nadpisem a produkty */
}

/* Mobil: ještě úspornější */
@media (max-width: 767px) {
  .banners-row { margin-bottom: 0 !important; }
  .homepage-group-title {
    margin-top: 14px !important;
    margin-bottom: 10px !important;
  }
}
/* ===== KONEC: ÚVOD – mezery pod bannery a u nadpisů ===== */

/* ===== START: ÚVOD – velikost nadpisů sekcí (gs-homepage-headings.css) ===== */
.homepage-group-title {
  font-size: 26px !important;
  line-height: 1.25 !important;
}
@media (max-width: 767px) {
  .homepage-group-title { font-size: 20px !important; }
}
/* ===== KONEC: ÚVOD – velikost nadpisů sekcí ===== */

/* ===== START: KOŠÍK – výrazné názvy doprav (gs-doprava.css) ===== */
table.shipping-options-layout tr.shipping-options-row a.shipping-options {
  font-size: 18px !important;
  font-weight: 700 !important;
}
table.shipping-options-layout tr.shipping-options-row a.shipping-options::after {
  content: " \1F69A";
  font-size: 18px;
}
/* ===== KONEC: KOŠÍK – výrazné názvy doprav ===== */

/* ===== START: DETAIL – skrytý krátký popis (gs-skryt-kratky-popis.css) ===== */
p.p-desc { display: none !important; }
/* ===== KONEC: DETAIL – skrytý krátký popis ===== */

/* ===== START: DETAIL – větší tlačítko Do košíku (gs-tlacitko-kosik.css) ===== */
.add-to-cart-button { font-size: 24px !important; }
/* ===== KONEC: DETAIL – větší tlačítko Do košíku ===== */

/* ===== START: DETAIL – datum doručení a blok o značce (gs-detail-produktu.css) ===== */
.delivery-time-label,
.delivery-time {
  font-size: 18px;
}
#manufacturerDescription {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}
@media (min-width: 768px) {
  #manufacturerDescription p img {
    float: left;
    margin-right: 50px;
  }
}
/* ===== KONEC: DETAIL – datum doručení a blok o značce ===== */

/* ===== START: KATEGORIE – posuvný filtr značek (gs-filtr-scroll.css) ===== */
.filter-section-parametric-id-224 form fieldset {
  max-height: 250px;
  overflow-y: auto;
}
/* ===== KONEC: KATEGORIE – posuvný filtr značek ===== */

/* ===== START: KARTY PRODUKTŮ – štítky (gs-stitky.css) ===== */
.product .flag {
  padding: 5px 10px;
  width: auto !important;
  height: 24px !important;
  border-radius: 0;
}
/* ===== KONEC: KARTY PRODUKTŮ – štítky ===== */

/* ===== START: PATIČKA – newsletter v jednom řádku (gs-newsletter.css) ===== */
/* Tmavý pruh v barvách webu */
.odber {
  background: #1b1b1b !important;
}

/* Text vlevo, formulář vpravo v jednom řádku */
.odber .custom-footer__newsletter {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 32px;
  padding: 22px 0;
}
.odber .custom-footer__newsletter .newsletter-header {
  flex: 0 1 380px;
  width: auto;
  margin: 0;
  text-align: left;
}
.odber .custom-footer__newsletter .newsletter-header h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 20px;
}
.odber .custom-footer__newsletter .newsletter-header p {
  margin: 0;
  color: #b5b5b5;
  font-size: 14px;
  line-height: 1.4;
}
.odber #formNewsletterWidget {
  flex: 1 1 auto;
  width: auto;
}
.odber #formNewsletterWidget > fieldset {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

/* E-mail */
.odber #formNewsletterWidget > fieldset > .form-group {
  flex: 1 1 260px;
  margin: 0;
}
.odber #formNewsletterWidget .form-control {
  height: 48px;
  border: 0;
  border-radius: 6px;
}

/* Captcha: skrytá, zobrazí se v řádku po kliknutí do formuláře nebo po zadání e-mailu */
.odber #formNewsletterWidget fieldset.box {
  display: none;
}
.odber #formNewsletterWidget:focus-within fieldset.box,
.odber #formNewsletterWidget:has(#newsletterWidget:valid) fieldset.box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.odber #formNewsletterWidget fieldset.box h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.odber #formNewsletterWidget fieldset.box .form-group {
  margin: 0;
}
.odber #formNewsletterWidget .captcha-image img {
  display: block;
  height: 48px;
  width: auto;
  border-radius: 6px;
}
.odber #formNewsletterWidget fieldset.box .form-control {
  width: 190px;
}

/* Tlačítko ve žluté barvě webu */
.odber #formNewsletterWidget button[type="submit"] {
  flex: 0 0 auto;
  height: 48px;
  margin: 0;
  padding: 0 24px;
  background: #ffc600;
  color: #1b1b1b;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}
.odber #formNewsletterWidget button[type="submit"]:hover {
  background: #ffd84d;
}

/* Tablet a mobil: pod sebou */
@media (max-width: 991px) {
  .odber .custom-footer__newsletter {
    flex-wrap: wrap;
    gap: 14px;
  }
  .odber .custom-footer__newsletter .newsletter-header,
  .odber #formNewsletterWidget {
    flex: 1 1 100%;
    text-align: center;
  }
  .odber #formNewsletterWidget > fieldset,
  .odber #formNewsletterWidget:focus-within fieldset.box,
  .odber #formNewsletterWidget:has(#newsletterWidget:valid) fieldset.box {
    flex-wrap: wrap;
  }
  .odber #formNewsletterWidget > fieldset > .form-group,
  .odber #formNewsletterWidget fieldset.box,
  .odber #formNewsletterWidget button[type="submit"] {
    flex: 1 1 100%;
  }
  .odber #formNewsletterWidget fieldset.box .form-group:last-child {
    flex: 1 1 auto;
  }
  .odber #formNewsletterWidget fieldset.box .form-control {
    width: 100%;
  }
}
/* ===== KONEC: PATIČKA – newsletter v jednom řádku ===== */
