/* ============================================================
   LOCAL STYLES — supermercadotecnologico.com
   Replaces all external stylesheet dependencies
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #333; background: #ececec; line-height: 1.4; }
a { color: #e05a00; text-decoration: none; }
a:hover { color: #b34400; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
fieldset { border: none; }
.clear { clear: both; }

/* --- Border-radius helpers --------------------------------- */
.round2 { border-radius: 2px; }
.round3 { border-radius: 3px; }
.round4 { border-radius: 4px; }
.round5 { border-radius: 5px; }

/* ============================================================
   TOP NAVIGATION BAR
   ============================================================ */
#top-navi {
  background: #1f1f1f;
  color: #bbb;
  font-size: 12px;
  border-bottom: 2px solid #e05a00;
}
.navi-wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 10px;
}

/* h-bar: horizontal strip with location, phone, user links */
#h-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 7px 0;
}
.h-my-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #888;
}
.i-pos {
  width: 10px;
  height: 10px;
  background: #e05a00;
  border-radius: 50%;
  flex-shrink: 0;
}
#h-phone span {
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.3px;
}
#h-bar > span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #aaa;
  cursor: pointer;
}
#h-bar > span a { color: #f90; }
#h-bar > span a:hover { color: #fff; text-decoration: none; }

/* icon placeholders (real icons come from font-awesome) */
.icon-user-reg,
.icon-fb-login,
.icon-user-login {
  width: 14px;
  height: 14px;
  background: #555;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

/* Login dropdown */
#login-wrap {
  position: relative;
  margin-left: auto;
}
#login-box {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 14px;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
#login-box .top-arrow {
  position: absolute;
  top: -8px;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ccc;
}
#login-box label {
  display: block;
  font-size: 11px;
  color: #666;
  margin: 8px 0 2px;
  font-weight: bold;
}
#login-box input[type="text"],
#login-box input[type="password"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
  color: #333;
}
#login-box .checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 12px;
  color: #555;
}
#login-box button[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background: #e05a00;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
#login-box button[type="submit"]:hover { background: #b34400; }
#login-box a {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  color: #888;
  text-align: center;
}

/* ============================================================
   HEADER (logo + publish button + fb)
   ============================================================ */
#header {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 10px;
  background: #fff;
  flex-wrap: wrap;
}
#logo { flex-shrink: 0; }
#logo img { max-height: 64px; width: auto; }

.form_publish { margin-left: auto; }
.publish_button a.orange-button {
  display: inline-block;
  padding: 10px 22px;
  background: #e05a00;
  color: #fff;
  border-radius: 3px;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
}
.publish_button a.orange-button:hover {
  background: #b34400;
  text-decoration: none;
}

#fb-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f4f8;
  border: 1px solid #dde;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 12px;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
#form_publish.navi-wrap + #form_publish,
div#form_publish {
  background: #e05a00;
  padding: 10px;
}
div#form_publish .scroller {
  max-width: 1020px;
  margin: 0 auto;
}
div#form_publish form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
div#form_publish input[type="text"] {
  flex: 1 1 140px;
  padding: 8px 10px;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  color: #333;
}
div#form_publish select {
  flex: 0 1 180px;
  padding: 8px 6px;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  background: #fff;
  color: #333;
}
div#form_publish button[type="submit"] {
  padding: 8px 20px;
  background: #1f1f1f;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}
div#form_publish button[type="submit"]:hover { background: #000; }
.clear-cookie {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
.clear-cookie:hover { background: rgba(255,255,255,0.45); }

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.container {
  max-width: 1020px;
  margin: 12px auto;
  padding: 0 10px;
}

#back-top-right {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}
#back-top-right a {
  display: block;
  width: 38px;
  height: 38px;
  background: #e05a00;
  border-radius: 3px;
  opacity: 0.85;
}
#back-top-right a:hover { opacity: 1; }
#back-top-right span {
  display: block;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 6l-8 8h16z"/></svg>') center / 18px no-repeat;
}

/* ============================================================
   CONTENT LAYOUT (sidebar + main)
   ============================================================ */
.content.home {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar {
  width: 190px;
  flex-shrink: 0;
}

/* Location box */
.navigation .box.location {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.country-block {
  padding: 6px 8px;
}
#wrap-list {
  margin-bottom: 4px;
}
li.country {
  padding: 6px 8px;
  background: #f0f0f0;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
li.country:hover { background: #e8e8e8; }
li.country > a {
  color: #333;
  font-size: 13px;
  font-weight: bold;
  flex: 1;
}
#plus-minus.icon-country-plus,
#plus-minus.icon-country-minus {
  width: 14px;
  height: 14px;
  background: #bbb;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
#plus-minus.icon-country-plus::after,
#plus-minus.icon-country-minus::after {
  content: '+';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 12px;
  color: #fff;
  line-height: 1;
}
#plus-minus.icon-country-minus::after { content: '−'; }

.region-block {
  padding-left: 14px;
  margin-top: 2px;
}
.region-block li.region {
  padding: 3px 0;
  border-top: 1px dotted #eee;
}
.region-block li.region a { font-size: 12px; color: #555; }
.city-block { padding-left: 12px; }
.city-block li.city a { font-size: 11px; color: #888; }

/* Sidebar promos */
.home-google,
.mobile-friendly,
.fb-friendly {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #777;
  text-align: center;
  line-height: 1.5;
}
.mobile-friendly .text::before { content: '📱 '; }
.fb-friendly .text::before { content: '👍 '; }

/* ============================================================
   MAIN AREA
   ============================================================ */
#main-new {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

/* --- Category grid ----------------------------------------- */
.categories.c8 {
  display: flex;
  gap: 0;
  padding: 12px;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
}
.col.c1,
.col.c2 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.col.c1 { padding-right: 6px; border-right: 1px solid #eee; }
.col.c2 { padding-left: 6px; }

.category-box {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.category-box h1 {
  display: flex;
  align-items: center;
  background: #2a2a2a;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: bold;
}
.category-box h1 a.category {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  flex: 1;
}
.category-box h1 a.category:hover { color: #f90; text-decoration: none; }
.cat-img {
  margin-left: auto;
  flex-shrink: 0;
}
.cat-img img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.55;
  filter: invert(1);
}

.cat-bg {
  background: #fefefe;
  padding: 8px 10px;
}
.cat-bg ul li {
  border-bottom: 1px dotted #efefef;
}
.cat-bg ul li:last-child { border-bottom: none; }
.cat-bg ul li a {
  display: block;
  padding: 3px 0;
  font-size: 12px;
  color: #555;
}
.cat-bg ul li a:hover { color: #e05a00; text-decoration: none; }
.show-all {
  padding: 5px 0 2px;
}
.show-all a {
  font-size: 11px;
  color: #e05a00;
  font-weight: bold;
}

/* --- Partners block ---------------------------------------- */
.content.home > div:not(#sidebar):not(#main-new) {
  /* inline partners block inserted between categories and latest ads */
}
/* target the partners block by its content */
div:has(> ul > li > a.sahabatslot88) {
  background: #fff8f0;
  border: 1px solid #f0d0b0;
  border-radius: 4px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 12px;
  color: #888;
}
div:has(> ul > li > a.sahabatslot88) ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
div:has(> ul > li > a.sahabatslot88) ul li a {
  display: inline-block;
  padding: 3px 8px;
  background: #e05a00;
  color: #fff;
  border-radius: 2px;
  font-size: 11px;
  font-weight: bold;
}
div:has(> ul > li > a.sahabatslot88) ul li a:hover {
  background: #b34400;
  text-decoration: none;
}

/* --- Latest ads -------------------------------------------- */
.latest_ads {
  border-top: 1px solid #ddd;
}
.latest_ads > h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2a2a2a;
  color: #fff;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: bold;
}
.icon-latest-header {
  width: 16px;
  height: 16px;
  background: #e05a00;
  border-radius: 2px;
  flex-shrink: 0;
}

.latest_ads table {
  width: 100%;
  border-collapse: collapse;
}
.latest_ads tr.odd  { background: #f9f9f9; }
.latest_ads tr.even { background: #fff; }
.latest_ads tr:hover { background: #fff3e8; cursor: pointer; }

.latest_ads td.photo {
  padding: 10px 8px 10px 14px;
  width: 178px;
  vertical-align: top;
}
.latest_ads td.photo img {
  border-radius: 2px;
  width: 150px;
  height: 112px;
  object-fit: cover;
}

.latest_ads td.text {
  padding: 10px 14px 10px 8px;
  vertical-align: top;
}
.latest_ads td.text h3 {
  margin-bottom: 5px;
}
.latest_ads td.text h3 a {
  color: #1f1f1f;
  font-size: 14px;
  font-weight: bold;
}
.latest_ads td.text h3 a:hover { color: #e05a00; text-decoration: none; }

.zoznam_cena {
  display: inline-block;
  background: #e05a00;
  color: #fff;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
}
.zoznam_views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #aaa;
  margin-left: 8px;
  vertical-align: middle;
}
.icon-latest-views {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
}

.zoznam_desc {
  font-size: 12px;
  color: #666;
  margin: 5px 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zoznam_dole {
  font-size: 11px;
  color: #aaa;
  margin-top: 5px;
}
.zoznam_country,
.zoznam_region,
.zoznam_city,
.zoznam_datum { color: #aaa; }

.pagination {
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
}
.see_more_link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 10px 14px;
  border-top: 1px solid #eee;
}
.see_more_link a {
  font-size: 13px;
  font-weight: bold;
  color: #e05a00;
}
.icon-show-all {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #e05a00;
  border-radius: 1px;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
#footer {
  background: #2a2a2a;
  color: #888;
  font-size: 12px;
  padding: 10px;
  text-align: center;
  margin-top: 12px;
}
#footer .fact { margin: 0 3px; color: #bbb; }
#footer .dott { color: #555; margin: 0 2px; }

/* ============================================================
   FOOTER-NEW (rich footer)
   ============================================================ */
.footer-hook {
  margin-top: 14px;
}
#footer-new {
  background: #1a1a1a;
  color: #999;
}
#footer-new .top-white {
  height: 4px;
  background: #e05a00;
}
#footer-new .inside {
  max-width: 1020px;
  margin: 0 auto;
  padding: 20px 10px 12px;
}

.bottom-place {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.some-block { flex: 1; min-width: 150px; }
.some-block h4 {
  color: #eee;
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-hot  { width: 13px; height: 13px; background: #e05a00; border-radius: 2px; display: inline-block; }
.icon-fav  { width: 13px; height: 13px; background: #c00;    border-radius: 2px; display: inline-block; }
.icon-inf  { width: 13px; height: 13px; background: #07a;    border-radius: 2px; display: inline-block; }

.del { height: 1px; background: #2e2e2e; margin-bottom: 8px; }
.del.is_full { height: 1px; background: #2e2e2e; margin: 12px 0; }

.some-block .text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.some-block .text span a { font-size: 12px; color: #999; }
.some-block .text span a:hover { color: #f90; text-decoration: none; }

.top-place {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  padding-top: 8px;
}
.top-place .element a { color: #777; }
.top-place .element a:hover { color: #ccc; text-decoration: none; }
.top-place .dot { color: #444; }
.cop { margin-left: auto; color: #444; font-size: 11px; }

.footer-hook center {
  display: block;
  padding: 8px;
  background: #f5f5f5;
  font-size: 11px;
  color: #888;
  border-top: 1px solid #ddd;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .content.home { flex-direction: column; }
  #sidebar { width: 100%; }
  .categories.c8 { flex-direction: column; }
  .col.c1 { padding-right: 0; border-right: none; border-bottom: 1px solid #eee; padding-bottom: 10px; }
  .col.c2 { padding-left: 0; }
  #header { gap: 10px; }
  .form_publish { margin-left: 0; }
  div#form_publish select { flex-basis: 120px; }
  .bottom-place { flex-direction: column; }
}
