/* =====================================================================
   Tupperware-shop.sk – UX vrstva (hlavička, vyhľadávanie, košík, pokladňa)
   Nasadené 2026-09-22, podľa riešenia na jananails.sk. Načítava sa ako
   posledný stylesheet v head.tpl. Dizajn (farby, písmo) ostáva Tupperware.
   ===================================================================== */
:root {
  --tw-text: #1f1f1f;
  --tw-accent: #ff0090;
  --tw-accent-light: #fff0f8;
  --tw-grey: #7c7e8f;
  --tw-line: #ebebeb;
  --tw-shadow: 0 4px 18px rgba(31, 31, 31, 0.07);
  --tw-shadow-hover: 0 10px 28px rgba(31, 31, 31, 0.13);
}

/* ---------- Hlavička (desktop): logo | vyhľadávanie | účet | košík, pod tým menu ---------- */
@media (min-width: 992px) {
  #header .header-top .container { max-width: 1320px; }
  .header-top-wrapper { display: flex !important; flex-wrap: wrap; align-items: center; padding: 10px 0 0 !important; }
  .header-top-wrapper > #_desktop_logo, .header-top-wrapper > .vertical-center#_desktop_logo { order: 1; flex: 0 0 auto; margin-right: 40px; padding: 6px 0 !important; min-height: 0 !important; height: auto !important; }
  #_desktop_logo img { max-height: 48px !important; width: auto; }
  .header-top-wrapper > .header-right { order: 2; flex: 1 1 auto; display: flex !important; align-items: center; justify-content: flex-end; gap: 28px; float: none !important; width: auto !important; }
  .header-top-wrapper > .header-center { order: 3; flex: 0 0 100%; width: 100%; margin-top: 10px; border-top: 1px solid var(--tw-line); padding: 0 !important; }

  /* vyhľadávanie ako stále viditeľné pole */
  .header-right .search-wrapper { flex: 1 1 auto; max-width: 620px; margin: 0 auto 0 0; position: static !important; }
  .header-right .search-button, .header-right .search-button-wrapper, .header-right .search-button-close-wrapper { display: none !important; }
  .header-right #search_widget {
    display: block !important; position: relative !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
    float: none !important; border: 0 !important; box-shadow: none !important; background: transparent !important; transform: none !important; opacity: 1 !important; visibility: visible !important;
  }
  .header-right #_desktop_user_info, .header-right #_desktop_cart { flex: 0 0 auto; }

  /* menu kategórií pod hlavičkou, zarovnané vľavo */
  .header-center .header-top-nav { min-height: 0 !important; padding: 0 !important; }
  #amegamenu .anav-top { display: flex; flex-wrap: wrap; justify-content: flex-start !important; align-items: center; gap: 0 8px; margin: 0; padding: 0; min-height: 0 !important; }
  #amegamenu .anav-top > li.amenu-item { margin: 0 !important; padding: 0 !important; }
  #amegamenu .anav-top > li.amenu-item:first-child > .amenu-link { padding-left: 0 !important; }
  #amegamenu .anav-top > li.amenu-item > .amenu-link { display: inline-block; padding: 12px 14px !important; line-height: 1.2 !important; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
  #amegamenu .anav-top > li.amenu-item:hover > .amenu-link { color: var(--tw-accent) !important; }
  #amegamenu .anav-top > li.amenu-item > .amenu-link sup { top: -10px !important; }

  .header-nav .container, .header-nav-inside { padding-top: 4px !important; padding-bottom: 4px !important; min-height: 0 !important; }
  #header .header-top, #header .header-top.tablet-h { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  #header { position: relative; z-index: 1200; }
}

/* Pole vyhľadávania */
#search_widget form { position: relative; }
#search_widget form input[type="text"], .search-widget form input[type="text"] {
  width: 100% !important; height: 44px !important; padding: 0 56px 0 20px !important;
  border: 1px solid #d9d9d9 !important; border-radius: 30px !important; background: #fff !important;
  font-size: 14px !important; color: var(--tw-text) !important; box-shadow: none !important; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#search_widget form input[type="text"]:focus { border-color: var(--tw-text) !important; box-shadow: 0 0 0 3px rgba(31,31,31,0.06) !important; }
#search_widget form input[type="text"]::placeholder { color: #9a9a9a; }
#search_widget form button[type="submit"] {
  position: absolute !important; top: 50% !important; right: 5px !important; left: auto !important; transform: translateY(-50%) !important;
  width: 34px !important; height: 34px !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 50% !important; background: var(--tw-text) !important;
  display: flex !important; align-items: center; justify-content: center; cursor: pointer;
}
#search_widget form button[type="submit"] svg { width: 16px !important; height: 16px !important; }
#search_widget form button[type="submit"] svg path, #search_widget form button[type="submit"] svg circle { fill: #fff !important; }
#search_widget form button[type="submit"] span { display: none !important; }

/* Našepkávač vyhľadávania (jQuery UI autocomplete z ps_searchbar) */
.ui-autocomplete.ui-menu {
  border: 1px solid #f0f0f0 !important; border-radius: 16px !important; box-shadow: var(--tw-shadow-hover) !important;
  padding: 8px !important; margin-top: 6px !important; background: #fff !important;
  max-height: 460px; overflow-y: auto; overflow-x: hidden; z-index: 2000 !important;
}
.ui-autocomplete.ui-menu .ui-menu-item { margin: 0 !important; padding: 0 !important; border: 0 !important; list-style: none; }
.ui-autocomplete.ui-menu .ui-menu-item > a, .ui-autocomplete.ui-menu .ui-menu-item > .ui-menu-item-wrapper {
  display: flex !important; align-items: center; gap: 12px;
  padding: 7px 10px !important; margin: 0 !important; border: 0 !important; border-radius: 10px !important;
  background: transparent !important; color: var(--tw-text) !important; cursor: pointer; text-decoration: none !important;
}
.ui-autocomplete.ui-menu .ui-menu-item > a:hover, .ui-autocomplete.ui-menu .ui-menu-item > a.ui-state-active,
.ui-autocomplete.ui-menu .ui-menu-item > a.ui-state-focus, .ui-autocomplete.ui-menu .ui-menu-item .ui-state-active { background: #f6f6f6 !important; color: var(--tw-text) !important; }
.ui-autocomplete.ui-menu .product-image { width: 52px !important; height: 52px !important; object-fit: contain; border-radius: 8px; border: 1px solid #f0f0f0; background: #fff; flex: 0 0 52px; margin: 0 !important; }
.ui-autocomplete.ui-menu .product-desc { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ui-autocomplete.ui-menu .product-desc .product { font-size: 13px !important; font-weight: 600; line-height: 1.3; white-space: normal; }
.ui-autocomplete.ui-menu .prices-block { display: flex; gap: 8px; align-items: baseline; }
.ui-autocomplete.ui-menu .prices-block .price, .ui-autocomplete.ui-menu .prices-block .product-price { font-size: 13px !important; font-weight: 700 !important; color: var(--tw-text) !important; }
.ui-autocomplete.ui-menu .prices-block .regular-price { font-size: 11px; color: var(--tw-grey); text-decoration: line-through; }
.ui-autocomplete.ui-menu .ui-menu-item + .ui-menu-item > a { border-top: 1px solid #f6f6f6 !important; border-radius: 0 !important; }

/* ---------- Účet: "Prihlásenie" / meno zákazníka vedľa ikony ---------- */
.user-info .btn-unstyle, .user-info .tw-login-link { display: inline-flex !important; align-items: center; gap: 8px; color: var(--tw-text) !important; text-decoration: none !important; }
.user-info .user-label { font-size: 13px; font-weight: 600; color: var(--tw-text); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.user-info .btn-unstyle:hover .user-label, .user-info .tw-login-link:hover .user-label { color: var(--tw-accent); }
.user-info .tw-login-link + .dropdown-menu { display: none; }

/* ---------- Košík v hlavičke: ikona + počet + aktuálna suma ---------- */
#_desktop_cart .blockcart-link { position: relative; display: inline-flex !important; align-items: center; gap: 10px; text-decoration: none !important; }
#_desktop_cart .cart-products-count {
  position: absolute !important; top: -8px !important; left: 11px !important; right: auto !important;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; line-height: 18px !important;
  background: var(--tw-accent) !important; color: #fff !important; font-size: 10px !important; font-weight: 700; text-align: center;
}
.blockcart .cart-total-amount { font-size: 14px; font-weight: 700; color: var(--tw-text); white-space: nowrap; line-height: 1; }
.blockcart.inactive .cart-total-amount { color: var(--tw-grey); font-weight: 600; }
@keyframes twCartPulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.blockcart .tw-cart-updated { animation: twCartPulse 0.5s ease; }

/* ---------- Sticky hlavička pri scrolle nahor ---------- */
/* vlastný sticky skript témy (an_theme/stickymenu.js) vypnutý – vytrhával menu z hlavičky */
@media (min-width: 992px) {
  #amegamenu.fixed-menu { position: static !important; top: auto !important; width: auto !important; box-shadow: none !important; animation: none !important; }
  #amegamenu.fixed-menu .fixed-menu-container.container { max-width: none !important; padding: 0 !important; width: auto !important; }
  #header .header-top { height: auto !important; }
  /* logo a košík, ktoré téma ukazuje vo "fixed" menu – máme ich už v lepiacej hlavičke */
  #amegamenu #_desktop_logo, #amegamenu .fixed-menu-right { display: none !important; }
  #amegamenu.fixed-menu { display: block !important; justify-content: flex-start !important; }
  #amegamenu .fixed-menu-container { display: block !important; width: 100% !important; margin: 0 !important; }
  #amegamenu.fixed-menu .anav-top { width: 100% !important; max-width: none !important; margin: 0 !important; flex-wrap: nowrap !important; justify-content: flex-start !important; }
}
@keyframes twSlideDown { from { transform: translateY(-100%); } to { transform: none; } }
@media (min-width: 992px) {
  #header .header-top.tw-sticky {
    position: fixed !important; top: 0; left: 0; right: 0; width: 100% !important; z-index: 1500;
    background: #fff !important; box-shadow: 0 6px 18px rgba(31,31,31,0.10) !important; margin: 0 !important;
    animation: twSlideDown 0.25s ease both;
  }
  #header .header-top.tw-sticky .header-top-wrapper { padding-top: 4px !important; }
  #header .header-top.tw-sticky #_desktop_logo img { max-height: 38px !important; }
  #header .header-top.tw-sticky .header-top-wrapper > .header-center { margin-top: 2px !important; }
  #header .header-top.tw-sticky #amegamenu .anav-top > li.amenu-item > .amenu-link { padding: 9px 14px !important; }
  #header .header-top.tw-sticky #amegamenu .anav-top > li.amenu-item:first-child > .amenu-link { padding-left: 0 !important; }
  #header .header-top.tw-sticky #search_widget form input[type="text"] { height: 38px !important; }
  #header .header-top.tw-sticky #search_widget form button[type="submit"] { width: 30px !important; height: 30px !important; }
}
@media (max-width: 991px) {
  /* na mobile sa prilepí len riadok s menu, logom a košíkom */
  #header .header-nav.tw-sticky {
    position: fixed !important; top: 0; left: 0; right: 0; width: 100% !important; z-index: 1500;
    background: #fff !important; box-shadow: 0 6px 18px rgba(31,31,31,0.10); animation: twSlideDown 0.25s ease both;
  }
  #header .header-nav.tw-sticky .container { padding-top: 0 !important; padding-bottom: 0 !important; }
  .amegamenu_mobile-modal { z-index: 2100 !important; }
  .amegamenu_mobile-cover { z-index: 2050 !important; }
  #mobile_top_menu_wrapper { z-index: 2110 !important; }
}
.tw-menu-spacer { width: 100%; }

/* ---------- Mobil: hlavička s hodnotou košíka ---------- */
@media (max-width: 991px) {
  .mobile-header { display: flex !important; align-items: center; justify-content: space-between; position: relative; min-height: 60px; padding: 0 14px; }
  .mobile-header #menu-icon { float: none !important; flex: 0 0 auto; }
  /* logo Tupperware je široké: vľavo vedľa menu, aby sa zmestila suma košíka */
  .mobile-header #_mobile_logo, .mobile-header .top-logo { position: static !important; transform: none !important; margin: 0 0 0 14px !important; float: none !important; flex: 0 1 auto; min-width: 0; order: 1; }
  .mobile-header #menu-icon { order: 0; }
  .mobile-header #_mobile_cart { order: 2; }
  .mobile-header #_mobile_logo img, .mobile-header .top-logo img { max-height: 26px !important; max-width: 150px !important; width: auto !important; height: auto !important; }
  .mobile-header #menu-icon svg { width: 24px; height: 14px; }
  .mobile-header #_mobile_cart { float: none !important; flex: 0 0 auto; margin-left: auto; padding: 0 !important; display: flex !important; align-items: center; height: 60px; }
  #_mobile_cart .blockcart, #_mobile_cart .blockcart .header { position: static !important; display: flex; align-items: center; height: auto !important; }
  #_mobile_cart .blockcart-link { position: relative !important; display: inline-flex !important; align-items: center; gap: 10px; padding: 0 !important; line-height: 1 !important; }
  #_mobile_cart .blockcart-link svg { width: 20px; height: 22px; }
  #_mobile_cart .cart-products-count { display: none !important; }
  .mobile-header .mobile-cart-item-count, #_mobile_cart .mobile-cart-item-count {
    position: absolute !important; top: -8px !important; left: 11px !important; right: auto !important;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; line-height: 18px !important;
    background: var(--tw-accent) !important; color: #fff !important; font-size: 10px !important; font-weight: 700;
    display: inline-flex !important; align-items: center; justify-content: center;
  }
  #_mobile_cart .blockcart-link .cart-total-amount { display: inline-block !important; font-size: 13px; }
  .mobile-header, #header .header-nav .mobile { overflow: visible !important; }
  /* vyhľadávanie pod hlavičkou */
  #header .header-top.tablet-h { background: #fff !important; }
  #search_widget form input[type="text"] { height: 44px !important; }
}

/* ---------- Bočný košík (sb-menu-right / js-cart-sidebar) ---------- */
.sb-menu-right { width: 400px !important; max-width: 100vw; box-shadow: -8px 0 30px rgba(31,31,31,0.12); }
#js-cart-sidebar .cart-title { padding: 18px 22px !important; border-bottom: 1px solid var(--tw-line); }
#js-cart-sidebar .cart-title .h4 { font-size: 15px !important; font-weight: 700 !important; letter-spacing: 0.06em; text-transform: uppercase; text-align: left !important; margin: 0 !important; }
#js-cart-sidebar .cart-items { padding: 6px 22px !important; margin: 0 !important; max-height: calc(100vh - 300px); overflow-y: auto; }
#js-cart-sidebar .cart-product-line { padding: 14px 0 !important; margin: 0 !important; border-bottom: 1px solid #f3f3f3; min-height: 0 !important; }
#js-cart-sidebar .cart-product-line:last-child { border-bottom: 0; }
#js-cart-sidebar .cart-product-line .product-image { width: 72px !important; height: 72px !important; border: 1px solid #f0f0f0; border-radius: 10px; overflow: hidden; }
#js-cart-sidebar .cart-product-line .product-image img { width: 100%; height: 100%; object-fit: contain; }
#js-cart-sidebar .cart-product-line .product-name { font-size: 13px !important; font-weight: 600 !important; line-height: 1.35; color: var(--tw-text) !important; }
#js-cart-sidebar .cart-product-line .product-price { font-size: 16px !important; font-weight: 700 !important; color: var(--tw-text) !important; }
#js-cart-sidebar .cart-bottom { padding: 12px 22px 22px !important; background: #fff; }
#js-cart-sidebar .cart-bottom hr { margin: 8px 0 !important; border-color: var(--tw-line); }
#js-cart-sidebar .cart-subtotals { display: block !important; }
#js-cart-sidebar .cart-subtotals .total-line, #js-cart-sidebar .cart-total.total-line { display: flex !important; justify-content: space-between; align-items: baseline; padding: 4px 0 !important; margin: 0 !important; font-size: 13px; }
#js-cart-sidebar .cart-subtotals .label { color: var(--tw-grey); text-transform: none !important; font-size: 13px !important; }
#js-cart-sidebar .cart-subtotals .value { font-size: 13px !important; color: var(--tw-text); }
#js-cart-sidebar .cart-total .label { font-size: 14px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.06em; }
#js-cart-sidebar .cart-total .value { font-size: 20px !important; font-weight: 700 !important; color: var(--tw-text) !important; }
#js-cart-sidebar .cart-action { margin-top: 14px !important; }
#js-cart-sidebar .cart-action .btn { width: 100%; padding: 14px 20px !important; font-size: 14px !important; }
#js-cart-sidebar .tw-continue { display: block; margin-top: 10px; text-align: center; font-size: 13px; color: var(--tw-grey); text-decoration: underline; cursor: pointer; background: none; border: 0; width: 100%; }
#js-cart-sidebar .tw-continue:hover { color: var(--tw-text); }
#js-cart-sidebar .no-items { padding: 30px 22px; text-align: center; color: var(--tw-grey); font-size: 13px; }
@media (max-width: 480px) { .sb-menu-right { width: 100vw !important; } }

/* ---------- Stránka košíka a pokladňa ---------- */
/* Facebook/Instagram lišta prekrývala sumy v košíku a v pokladni */
body#cart .pc-social-sidebar, body#checkout .pc-social-sidebar { display: none !important; }
/* ...a pri otvorenom bočnom košíku nesmie byť nad ním */
.pc-social-sidebar { z-index: 900 !important; }
.sb-menu-right { z-index: 3000 !important; }
body#cart #wrapper > .container, body#checkout #wrapper > .container { max-width: 1320px; padding-left: 15px !important; padding-right: 15px !important; }
body#cart .cart-grid-body .card, body#cart .cart-container { border: 1px solid #f0f0f0 !important; border-radius: 16px !important; box-shadow: var(--tw-shadow); overflow: hidden; }
body#cart .cart-grid-body .card-block h1 { font-size: 22px !important; font-weight: 700 !important; padding: 18px 20px 10px !important; margin: 0 !important; }
body#cart .cart-items .cart-item { padding: 14px 20px !important; }
body#cart .cart-grid-right .card, body#cart .cart-grid-right .cart-summary, body#checkout #js-checkout-summary {
  border: 1px solid #f0f0f0 !important; border-radius: 16px !important; box-shadow: var(--tw-shadow); background: #fff !important; overflow: hidden;
}
body#cart .cart-grid-right .card-block, body#cart .cart-summary .card-block { background: #fff !important; }
.cart-summary-line.cart-total .label, .cart-summary-line.cart-total .value { font-weight: 700 !important; font-size: 18px !important; color: var(--tw-text) !important; }
.cart-summary-line .value { color: var(--tw-text); }
.cart-summary .checkout .btn { width: 100%; }

@media (max-width: 767px) {
  body#checkout section.checkout-step .desktop-step-status { display: none !important; }
  body#checkout section.checkout-step .step-title { position: relative; padding-right: 90px; }
  body#checkout section.checkout-step .mobile-step-status { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  body#checkout section.checkout-step.-reachable.-complete h1 .mobile-step-status .step-edit { display: inline-flex !important; margin: 0 !important; }
  body#checkout section.checkout-step { padding: 16px !important; }
  #js-checkout-summary, .cart-summary { margin: 16px 0 24px !important; padding: 16px !important; }
  #js-checkout-summary .card-block, .cart-summary .card-block { padding: 0 !important; }
  #js-checkout-summary .cart-summary-line.cart-total { border-top: 1px solid var(--tw-line); margin-top: 8px; padding-top: 10px !important; }
  .cart-grid-body .card-block h1 { font-size: 18px !important; }
  .cart-grid .cart-detailed-actions, .shopping-continue { margin: 12px 0 8px !important; }
  .cart-item .product-line-grid { padding: 8px 0; }
  #checkout .checkout-step .continue.btn, .cart-summary .checkout .btn, #payment-confirmation .btn { width: 100% !important; margin: 8px 0 0 !important; float: none !important; }
  #payment-confirmation .ps-shown-by-js { width: 100%; }
}

/* =====================================================================
   Etapa 2 (2026-09-22): šírka obsahu, hero, kategória, detail produktu
   ===================================================================== */

/* ---------- Obsah v rovnakej šírke ako hlavička ---------- */
#wrapper > .container, .breadcrumb .container, #wrapper .breadcrumb-wrapper .container,
#footer .footer-container > .container, #footer .container.iconset > *, .copyright-container .container { max-width: 1320px; margin-left: auto; margin-right: auto; }
#wrapper > .container { padding-left: 15px !important; padding-right: 15px !important; }
.container:has(> nav.breadcrumb), .container:has(> .breadcrumb) { max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; }

/* ---------- Hero slider: nie na celú šírku, zaoblený ---------- */
.anthemeblocks_homeslider-block {
  width: calc(100% - 30px) !important; max-width: 1290px; margin: 18px auto 8px !important;
  border-radius: 20px; overflow: hidden; box-shadow: var(--tw-shadow);
}
.anthemeblocks_homeslider-block img { border-radius: 0; }
@media (max-width: 767px) {
  .anthemeblocks_homeslider-block { width: calc(100% - 30px) !important; margin: 12px auto 4px !important; border-radius: 14px; }
}

/* ---------- Facebook/Instagram lišta na mobile prekrývala tlačidlá ---------- */
@media (max-width: 767px) { .pc-social-sidebar { display: none !important; } }

/* ---------- Hlavička: tablet a mobilné menu ---------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .header-top-wrapper > #_desktop_logo { margin-right: 20px; }
  #_desktop_logo img { max-height: 38px !important; }
  .header-top-wrapper > .header-right { gap: 16px; min-width: 0; }
  .header-right .search-wrapper { min-width: 0; }
  .header-right .user-label { display: none; }
}
#mobile_top_menu_wrapper .user-info .user-label, .mobile-lang-and-cur .user-info .user-label { display: none !important; }

/* ---------- Kategória: lišta nad produktmi ---------- */
#js-product-list-top.products-selection {
  background: #fff !important; border: 1px solid var(--tw-line) !important; border-radius: 12px !important;
  padding: 10px 16px !important; margin: 0 0 20px !important; display: flex; flex-wrap: wrap; align-items: center;
}
#js-product-list-top .collection-view { display: none !important; }
#js-product-list-top .total-products p { margin: 0 !important; color: var(--tw-grey); font-size: 13px; }
#js-product-list-top .sort-by-row { justify-content: flex-end; }
#js-product-list-top .showing { display: none !important; }
#category h1, #category .block-category h1, .page-category h1 { font-weight: 600 !important; }

/* ---------- Karty produktov: rovnaká výška, tlačidlá v jednej línii ---------- */
#js-product-list .products, .featured-products .products, .products.row { display: flex !important; flex-wrap: wrap; }
#js-product-list .products > .product-miniature, .featured-products .products > .product-miniature { float: none !important; display: flex; margin-bottom: 24px !important; }
.product-miniature .thumbnail-container {
  display: flex !important; flex-direction: column; width: 100%; height: 100% !important; min-height: 0 !important;
  border-radius: 16px; background: #fff; padding-bottom: 16px; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) { .product-miniature .thumbnail-container:hover { box-shadow: var(--tw-shadow-hover); transform: translateY(-2px); } }
.product-miniature .product-description { display: flex !important; flex-direction: column; flex: 1 1 auto; position: static !important; height: auto !important; padding: 0 12px !important; }
.product-miniature .product-title { margin: 12px 0 6px !important; min-height: 0 !important; }
.product-miniature .product-title a {
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.35 !important; min-height: calc(1.35em * 2); font-weight: 600;
}
.product-miniature .an_short_description {
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12.5px !important; line-height: 1.5 !important; color: var(--tw-grey) !important; margin: 0 0 10px !important; min-height: calc(1.5em * 2);
}
.product-miniature .product-price-and-shipping { margin-top: auto !important; }
.product-miniature .product-miniature-prices { margin-bottom: 12px !important; }
.product-miniature .product-miniature-prices .price { font-weight: 700 !important; }
.product-miniature .an_productattributes-qty-add { display: flex !important; align-items: center; justify-content: center; gap: 8px; }
.product-miniature .an_productattributes-qty-container { flex: 0 0 64px; width: 64px !important; margin: 0 !important; }
.product-miniature .an_productattributes-qty-container input { width: 100% !important; text-align: center; border-radius: 20px !important; height: 40px; }
.product-miniature .an_productattributes-add { flex: 0 1 auto; margin: 0 !important; }
@media (max-width: 767px) {
  #js-product-list .products > .product-miniature { padding-left: 6px !important; padding-right: 6px !important; margin-bottom: 14px !important; }
  .product-miniature .thumbnail-container { border: 1px solid #f0f0f0; padding-bottom: 12px; }
  .product-miniature .product-description { padding: 0 8px !important; }
  .product-miniature .product-title { margin: 8px 0 6px !important; }
  .product-miniature .product-title a { font-size: 13px !important; }
  .product-miniature .an_short_description { display: none !important; }
  .product-miniature .product-miniature-prices { margin-bottom: 10px !important; }
  .product-miniature .product-miniature-prices .price, .product-miniature .product-miniature-prices .money { font-size: 16px !important; }
  .product-miniature .product-miniature-prices .regular-price { font-size: 12px !important; }
  .product-miniature .an_productattributes-qty-container { display: none !important; }
  .product-miniature .an_productattributes-add, .product-miniature .an_productattributes-add .btn { width: 100% !important; }
  .product-miniature .an_productattributes-add .btn { padding: 10px 6px !important; font-size: 11.5px !important; }
  .product-miniature .product-flags li.product-flag { font-size: 9.5px !important; }
}

/* ---------- Detail produktu ---------- */
#product #main h1.h1, #product .col-md-7 > h1 { font-size: 28px !important; line-height: 1.25 !important; font-weight: 600 !important; margin: 0 0 14px !important; }
#product .product-prices { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 16px !important; }
#product .product-prices .product-price { margin: 0 !important; }
#product .product-prices .current-price span { font-size: 30px !important; font-weight: 700 !important; color: var(--tw-text); }
#product .product-prices .product-discount { margin: 0 !important; }
#product .product-prices .regular-price { font-size: 17px !important; color: var(--tw-grey) !important; text-decoration: line-through; }
#product .product-prices .tax-shipping-delivery-label { flex: 0 0 100%; margin: -4px 0 0 !important; font-size: 11px; color: var(--tw-grey); }
.tw-save { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 13px; background: var(--tw-accent-light); color: var(--tw-accent); font-size: 12.5px; font-weight: 700; }
.tw-avail { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.tw-avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tw-avail-ok { color: #2e9e3e; }
.tw-avail-no { color: #b0b0b0; }
#product .product-information > [id^="product-description-short"] { font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
#product .product-reference { font-size: 12px; color: var(--tw-grey); margin: 0 0 10px !important; }
#product .social-sharing li.googleplus { display: none !important; }
#product .social-sharing { margin: 0 0 18px !important; }
#product .product-add-to-cart .product-quantity { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px; }
#product .product-add-to-cart .product-quantity .add { flex: 1 1 240px; max-width: 360px; margin: 0 !important; }
#product .product-add-to-cart .add-to-cart { width: 100% !important; height: 52px; font-size: 15px !important; }
.tw-trust { list-style: none; margin: 20px 0 0 !important; padding: 16px 18px !important; border: 1px solid var(--tw-line); border-radius: 14px; background: #fafafa; display: grid; gap: 10px; max-width: 520px; }
.tw-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--tw-text); }
.tw-trust li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 1px; background: center / contain no-repeat; }
.tw-trust .t-ship::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E"); }
.tw-trust .t-free::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff0090' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'/%3E%3Crect x='2' y='7' width='20' height='5'/%3E%3Cline x1='12' y1='22' x2='12' y2='7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E"); }
.tw-trust .t-pay::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E"); }
.tw-trust strong { font-weight: 700; }
/* popis produktu */
#product .tabs { margin-top: 40px !important; border: 0 !important; padding: 0 !important; }
#product .tabs .nav-tabs { border-bottom: 1px solid var(--tw-line) !important; }
#product .tabs .tab-content { padding: 24px 0 0 !important; border: 0 !important; }
#product .tabs.tw-single .nav-tabs { display: none !important; }
.tw-desc-title { font-size: 20px !important; font-weight: 700 !important; margin: 0 0 12px !important; padding-bottom: 12px; border-bottom: 1px solid var(--tw-line); }
#product #description .product-description { max-width: 860px; font-size: 14px; line-height: 1.7; }
#product #description .product-description h1 { font-size: 22px !important; line-height: 1.3 !important; margin: 0 0 14px !important; font-weight: 600 !important; }
#product #description .product-description h2, #product #description .product-description h3 { font-size: 17px !important; margin: 22px 0 8px !important; font-weight: 600 !important; }
#product #description .product-description ul { padding-left: 18px; margin: 0 0 12px; }
#product #description .product-description li { list-style: disc; margin: 0 0 4px; }
/* súvisiace produkty */
.tw-related { margin: 48px 0 0; }
.tw-related h2 { font-size: 22px !important; font-weight: 700 !important; margin: 0 0 18px !important; }
.tw-related .products { display: flex !important; flex-wrap: wrap; margin: 0 -10px; }
.tw-related .products > .product-miniature { flex: 0 0 25%; max-width: 25%; padding: 0 10px; float: none !important; display: flex; }
@media (max-width: 767px) {
  .tw-related .products { margin: 0 -6px; }
  .tw-related .products > .product-miniature { flex: 0 0 50%; max-width: 50%; padding: 0 6px; margin-bottom: 14px; }
  .tw-mobile-title h1 { margin: 6px 0 12px !important; }
  #product #main h1.h1, #product .tw-mobile-title h1 { font-size: 22px !important; }
  #product .product-prices .current-price span { font-size: 26px !important; }
  #product .product-add-to-cart .product-quantity .add { flex: 1 1 100%; max-width: none; }
  #product .tabs .nav-tabs .nav-item { width: auto !important; }
  #product #description .product-description h1 { font-size: 19px !important; }
}
/* ---------- Ukazovateľ dopravy zdarma ---------- */
.tw-freeship { margin: 10px 0 6px; padding: 10px 12px; border-radius: 10px; background: #fafafa; font-size: 12.5px; color: var(--tw-text); }
.tw-freeship strong { font-weight: 700; }
.tw-freeship-bar { height: 6px; margin-top: 8px; border-radius: 3px; background: #ececec; overflow: hidden; }
.tw-freeship-bar span { display: block; height: 100%; border-radius: 3px; background: var(--tw-accent); transition: width 0.4s ease; }
.tw-freeship.done { background: #eef8f0; color: #2e7d3a; }
.tw-freeship.done .tw-freeship-bar span { background: #2e9e3e; }

/* opravy po náhľade */
.tw-trust li > span { flex: 1 1 auto; }
#product .col-md-5 { position: relative; }
#product .tw-mobile-title h1 { color: var(--tw-text) !important; opacity: 1 !important; }
@media (max-width: 767px) {
  #product .product-add-to-cart .add, #product .product-add-to-cart .add .add-to-cart { width: 100% !important; float: none !important; }
}
#content.page-home .customtext { overflow: hidden; }
.tw-mobile-title { clear: both; width: 100%; padding: 0 15px; }
#product .product-cover .product-flags { display: none !important; } /* duplicitné štítky, ostávajú tie v #content */
/* súvisiace produkty: 4 v riadku (téma dáva kartám vlastné šírky) */
.tw-related .products > .product-miniature { flex: 0 0 25% !important; max-width: 25% !important; width: 25% !important; margin: 0 0 20px !important; }
.tw-related .product-miniature .product-title a { font-size: 14px !important; }
.tw-related .product-miniature .product-miniature-prices .price { font-size: 18px !important; }
@media (max-width: 767px) { .tw-related .products > .product-miniature { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; } }
/* "Doručenie: Zdarma" pred výberom dopravcu klame (predvolený dopravca je bezplatný) – cena dopravy sa ukáže v pokladni */
#js-cart-sidebar .cart-subtotals .shipping, body#cart #cart-subtotal-shipping { display: none !important; }

/* =====================================================================
   Mobilné menu na celú obrazovku – prevzaté z jananails.sk
   ===================================================================== */
/* Mobilné menu (podľa jananails.sk): na celú šírku, logo hore, položky na stred */
@media (max-width: 991px) {
  .amegamenu_mobile-modal, #mobile_top_menu_wrapper { width: 100% !important; max-width: 100% !important; }
  #mobile_top_menu_wrapper { padding: 0 !important; margin: 0 !important; background: #fff; }
  .mobile-menu-header {
    height: 72px !important; padding: 0 16px !important; margin: 0 !important; display: flex !important; align-items: center; justify-content: center; position: relative;
    border-bottom: 1px solid var(--tw-line);
  }
  .mobile-menu-header::before { content: ""; width: 150px; height: 40px; background: url("/img/tupperware-logo-1728611518.jpg") center / contain no-repeat; }
  .mobile-menu-header .megamenu_mobile-btn-close { position: absolute !important; right: 18px; top: 50%; transform: translateY(-50%); margin: 0 !important; }
  .mobile-menu-header .megamenu_mobile-btn-back { position: absolute !important; left: 18px; top: 50%; transform: translateY(-50%); margin: 0 !important; }
  #mobile-amegamenu { padding: 8px 0 !important; }
  #mobile-amegamenu .anav-mobile > li.amenu-item { position: relative; border-bottom: 1px solid #f6f6f6; padding: 0 !important; margin: 0 !important; }
  #mobile-amegamenu .anav-mobile > li.amenu-item > div > a.amenu-link,
  #mobile-amegamenu .anav-mobile > li.amenu-item > a.amenu-link {
    display: block; text-align: center !important; padding: 15px 52px !important; font-size: 14px !important; font-weight: 700 !important;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--tw-text) !important;
  }
  #mobile-amegamenu .anav-mobile .mobile-toggle-plus, #mobile-amegamenu .anav-mobile > li.amenu-item > div > .mobile-toggle-plus {
    position: absolute !important; right: 18px; top: 26px; transform: translateY(-50%); margin: 0 !important; padding: 6px !important;
  }
  #mobile-amegamenu .adropdown-mobile { padding: 0 0 8px !important; background: #fcfcfc; }
  #mobile-amegamenu .adropdown-mobile .category-item .category-title, #mobile-amegamenu .adropdown-mobile .category-item .category-title a {
    text-align: center !important; font-size: 13px !important; text-transform: none !important; font-weight: 500 !important; letter-spacing: 0; padding: 9px 16px !important; margin: 0 !important; display: block;
  }
  #mobile-amegamenu .adropdown-mobile .category-item.level-1 > .category-title a { font-weight: 700 !important; text-transform: uppercase !important; font-size: 12px !important; }
  .mobile-lang-and-cur {
    padding: 20px 16px !important; margin: 12px 0 0 !important; background: var(--tw-accent-light);
    display: flex !important; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  }
  .mobile-lang-and-cur > div { width: auto !important; margin: 0 !important; text-align: center; }
  .mobile-lang-and-cur .user-info .btn-unstyle::after { display: none; }
  .mobile-lang-and-cur .user-info, .mobile-lang-and-cur .currency-selector { justify-content: center; }
}
@media (max-width: 991px) {
  /* položky na stred: obal položky je flex, odkaz musí byť blok na celú šírku */
  #mobile-amegamenu .anav-mobile > li.amenu-item > div,
  #mobile-amegamenu .anav-mobile .mobile_item_wrapper, #mobile-amegamenu .anav-mobile .mobile-item-nodropdown, #mobile-amegamenu .anav-mobile .mobile-item-dropdown { display: block !important; width: 100%; }
  #mobile-amegamenu .anav-mobile > li.amenu-item > div > a.amenu-link, #mobile-amegamenu .anav-mobile > li.amenu-item > a.amenu-link { width: 100%; }
  #mobile-amegamenu .anav-mobile a.amenu-link span { display: block; text-align: center; }
  /* podmenu: namiesto prekrytia nahradí zoznam (ostatné položky sa skryjú) */
  #mobile_top_menu_wrapper .mobile_item_wrapper.open + .adropdown-mobile, #mobile_top_menu_wrapper .mobile_item_wrapper.open + .adropdown-mobile.menu-active {
    position: static !important; transform: none !important; height: auto !important; min-height: 0; width: 100% !important; padding: 0 0 12px !important; background: #fff !important;
  }
  #mobile_top_menu_wrapper:not([data-level="0"]) .anav-mobile > li.amenu-item:not(:has(.mobile_item_wrapper.open)) { display: none !important; }
  #mobile_top_menu_wrapper:not([data-level="0"]) .anav-mobile > li.amenu-item:has(.mobile_item_wrapper.open) > .mobile_item_wrapper { display: none !important; }
  #mobile_top_menu_wrapper:not([data-level="0"]) .mobile-lang-and-cur, #mobile_top_menu_wrapper:not([data-level="0"]) #_mobile_an_wishlist-nav { display: none !important; }
  #mobile-amegamenu .adropdown-mobile .category-item.level-1 { border-bottom: 1px solid #f6f6f6; padding: 6px 0; }
  #mobile-amegamenu .adropdown-mobile .category-item.level-1 > .category-title a { color: var(--tw-accent) !important; }
  /* spodný blok bez duplicitného textu */
  .mobile-lang-and-cur .user-info .user-label { display: none !important; }
  .mobile-lang-and-cur .user-info .dropdown-menu { position: static !important; display: block !important; border: 0; box-shadow: none; background: transparent; text-align: center; padding: 0; }
}
@media (max-width: 991px) {
  #mobile-amegamenu .anav-mobile > li.amenu-item { position: relative !important; }
  #mobile_top_menu_wrapper .mobile-toggle-plus, #mobile_top_menu_wrapper .anav-mobile li .mobile-toggle-plus, #mobile-amegamenu .anav-mobile > li.amenu-item > div > .mobile-toggle-plus {
    position: absolute !important; right: 16px !important; left: auto !important; top: 10px !important; transform: none !important;
    width: 32px !important; height: 32px !important; display: flex !important; align-items: center; justify-content: center; padding: 0 !important; margin: 0 !important; z-index: 2;
  }
  #mobile-amegamenu .adropdown-mobile .category-item, #mobile-amegamenu .adropdown-mobile .category-item.level-1, #mobile-amegamenu .adropdown-mobile .category-item.level-2, #mobile-amegamenu .adropdown-mobile .category-item.level-3 { padding: 0 !important; margin: 0 !important; }
  #mobile-amegamenu .adropdown-mobile .category-item.level-1 { padding: 6px 0 !important; }
  #mobile-amegamenu .adropdown-mobile .category-item .category-title { margin: 0 !important; padding: 0 !important; line-height: 1.3; }
  #mobile-amegamenu .adropdown-mobile .category-item .category-title a { padding: 9px 16px !important; line-height: 1.3 !important; }
  #mobile-amegamenu .adropdown-mobile .category-item.level-1 > .category-title a { padding: 12px 16px 8px !important; }
}
@media (max-width: 991px) {
  #mobile-amegamenu .anav-mobile .mobile_item_wrapper { position: relative !important; }
  #mobile_top_menu_wrapper .anav-mobile .mobile_item_wrapper > .mobile-toggler, #mobile-amegamenu .mobile-toggler {
    position: absolute !important; right: 12px !important; top: 0 !important; bottom: 0 !important; width: 44px !important; height: auto !important;
    display: flex !important; align-items: center; justify-content: center; margin: 0 !important; padding: 0 !important; z-index: 2; cursor: pointer;
  }
  #mobile-amegamenu .mobile-toggler svg { width: 8px; height: 14px; }
  #mobile-amegamenu .anav-mobile a.amenu-link .mobile-toggle-plus { display: none !important; }
}
/* Mobilné menu (podľa jananails.sk): profil / prihlásenie ako výrazné tlačidlo */
@media (max-width: 991px) {
  .mobile-lang-and-cur #_mobile_user_info .user-info .btn-unstyle { display: none !important; }
  .mobile-lang-and-cur #_mobile_user_info .dropdown-menu li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .mobile-lang-and-cur #_mobile_user_info a.dropdown-item {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; width: auto !important;
    background: #000; color: #fff !important; border-radius: 30px; padding: 12px 26px !important; font-size: 14px; font-weight: 700; line-height: 1 !important;
  }
  .mobile-lang-and-cur #_mobile_user_info a.dropdown-item::before {
    content: ""; width: 16px; height: 16px; flex: 0 0 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .mobile-lang-and-cur #_mobile_user_info a.account.dropdown-item span::before { content: "Môj účet: "; font-weight: 500; }
  .mobile-lang-and-cur #_mobile_user_info a.logout.dropdown-item {
    display: inline-block !important; background: transparent; color: var(--tw-grey) !important; padding: 4px 8px !important; font-size: 12px; font-weight: 500; text-decoration: underline;
  }
  .mobile-lang-and-cur #_mobile_user_info a.logout.dropdown-item::before { display: none; }
  #mobile_top_menu_wrapper .logout { display: inline-block !important; }
  .mobile-lang-and-cur { gap: 14px; }
}
/* Mobilné menu (podľa jananails.sk): kontakt "Sme tu pre vás" */
@media (max-width: 991px) {
  .tw-mobile-contact { padding: 22px 16px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .tw-mobile-contact .tw-mc-title { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tw-accent); }
  .tw-mobile-contact .tw-mc-link { display: inline-flex; align-items: center; gap: 8px; color: var(--tw-text) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
  .tw-mobile-contact .tw-mc-link::before { content: ""; width: 16px; height: 16px; flex: 0 0 16px; background-size: contain; background-repeat: no-repeat; background-position: center; }
  .tw-mobile-contact .tw-mc-phone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff0090' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
  .tw-mobile-contact .tw-mc-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff0090' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E"); }
  .tw-mobile-contact .tw-mc-mail { font-size: 13px; font-weight: 500; }
  #mobile_top_menu_wrapper:not([data-level="0"]) .tw-mobile-contact { display: none !important; }
}
/* Mobilné menu (podľa jananails.sk) musí byť nad sticky hlavičkou (z-index 1500) */
@media (max-width: 991px) {
  .amegamenu_mobile-modal { z-index: 2100 !important; }
  .amegamenu_mobile-cover { z-index: 2050 !important; }
  #mobile_top_menu_wrapper { z-index: 2110 !important; }
  body.tw-menu-open #header .header-nav.tw-sticky { display: none !important; }
}

/* na celú obrazovku (Tupperware téma dáva panelu 280 px a nechá presvitať stránku) */
@media (max-width: 991px) {
  .amegamenu_mobile-modal, #mobile_top_menu_wrapper, .amegamenu_mobile-modal .js-top-menu-bottom { width: 100vw !important; max-width: 100vw !important; left: 0 !important; right: 0 !important; }
  .amegamenu_mobile-modal { height: 100vh !important; background: #fff !important; }
  #mobile_top_menu_wrapper { min-height: 100vh; overflow-y: auto; }
  .mobile-menu-header .megamenu_mobile-btn-close svg { width: 18px; height: 18px; }
}
@media (max-width: 991px) {
  .mobile-lang-and-cur { padding: 18px 16px !important; }
  .mobile-lang-and-cur > div:empty, .mobile-lang-and-cur #_mobile_currency_selector:empty, .mobile-lang-and-cur #_mobile_language_selector:empty { display: none !important; }
}
