/* =================================
   POLAREYE USA — Custom CSS (Καθαρή Έκδοση)
================================= */

/* =================================
   GLOBAL
================================= */
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #222;
  background: #ffffff;
  line-height: 1.6;
}
a { color: #111; text-decoration: none; 
    font-weight: 500;
}
a:hover { color: #c9a227; }

/* =================================
   TOP BAR
================================= */
#top {
  background: #efe9df;
  border-bottom: 1px solid #e4d9ca;
  min-height: 30px;
  height: 30px;
  overflow: hidden;
}
#top .container {
  padding: 0 20px;
  height: 40px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
#top .pull-left,
#top .pull-right {
  float: none !important;
  display: flex !important;
  align-items: center !important;
  height: 40px;
}
#top-links li {
  display: inline-flex !important;
  align-items: center !important;
  height: 40px;
}
#top-links a,
#top .btn-link {
  color: #000;
  font-size: 12px;
  display: inline-flex !important;
  align-items: center !important;
  height: 40px;
  line-height: 1;
  transition: color 0.2s;
}
#top-links a:hover,
#top .btn-link:hover { color: #e4d9ca; }
#top .btn-link strong { font-size: 12px; font-weight: 600; }
#top-links { padding-top: 0 !important; display: flex !important; align-items: center !important; }
#top-links a + a { margin-left: 12px; }
#top-links .dropdown-menu a { color: #333; height: auto; display: block !important; }
#top-links .dropdown-menu a:hover { color: #000; background: #f3ede5; }

/* =================================
   LOGO
================================= */
#logo { margin: 0 0 10px 0; }

/* =================================
   SEARCH
================================= */
#search { margin-bottom: 10px; }
#search .input-lg {
  border: 1px solid #e4d9ca;
  height: 38px;
  font-size: 13px;
  border-radius: 4px 0 0 4px;
  border-right: none;
}
#search .btn-lg {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 15px;
  padding: 10px 18px;
  transition: background 0.2s;
}
#search .btn-lg:hover { background: #e4d9ca; color: #000; }

/* =================================
   CART
================================= */
#cart { margin-bottom: 10px; }
#cart > .btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  padding: 8px 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
#cart > .btn:hover { background: #e4d9ca; color: #000; }
#cart.open > .btn { background: #fff; color: #333; border: 1px solid #ddd; }
#cart .dropdown-menu { background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); min-width: 100%; }

/* =================================
   NAV MENU — Desktop
================================= */
#menu {
  background: #efe9df;
  border-bottom: 3px solid #e4d9ca;
  min-height: 40px;
  height: 40px;
  overflow: visible;
}

@media (min-width: 768px) {
  #menu .navbar-header { display: none !important; }

  #menu .navbar-collapse { padding: 0 !important; display: block !important; }

  #menu .nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 40px;
  }

  #menu .nav > li {
    float: none !important;
    display: flex !important;
    flex: 1 1 0 !important;
    position: relative;
  }

  #menu .nav > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: clamp(9px, 0.9vw, 12px) !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    padding: 0 4px !important;
    height: 40px !important;
    line-height: 1 !important;
    transition: background 0.18s !important;
  }

  #menu .nav > li > a:hover,
  #menu .nav > li.open > a {
    background: #e4d9ca !important;
    color: #000 !important;
  }

  #menu .dropdown:hover .dropdown-menu { display: block; }

  #menu .dropdown-menu {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    padding: 12px;
    border: none;
    margin-top: 0;
  }
  #menu .dropdown-inner { display: table; }
  #menu .dropdown-inner ul { display: table-cell; }
  #menu .dropdown-inner a {
    min-width: 180px;
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    border-radius: 4px;
    transition: background 0.2s;
    height: auto;
  }
  #menu .dropdown-inner a:hover { background: #f3ede5; color: #000; }
  #menu .see-all {
    display: block; border-top: 1px solid #eee;
    padding: 8px 12px; font-size: 12px; font-weight: 700;
    color: #e4d9ca; text-transform: uppercase; letter-spacing: 0.06em;
    transition: all 0.2s;
  }
  #menu .see-all:hover { background: #e4d9ca; color: #000; }
}

/* =================================
   PRODUCT CARDS
================================= */
.product-thumb {
  background: #fff;
  border: 0px solid #e6ded2;
  border-radius: 8px;
  transition: 0.25s;
  margin-bottom: 20px;
  overflow: hidden;
}
.product-thumb:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.product-thumb .image img { transition: 0.4s; }
.product-thumb:hover .image img { transform: scale(1.05); }
.product-thumb h4 { font-size: 14px; font-weight: 600; min-height: 40px; }
.product-thumb .price { color: #d10000; font-size: 22px; font-weight: 700; }
.product-thumb .price-old { font-size: 13px; opacity: 0.6; }

/* Product buttons */
.product-thumb .button-group {
  background: #faf7f2;
  display: flex;
  border-top: 1px solid #e6ded2;
  transition: 0.3s;
}
.product-thumb:hover .button-group { background: #e4d9ca; }

.product-thumb .button-group button {
  flex: 1;
  border: none;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.product-thumb .button-group button:first-child {
  background: #C9A227;
  color: #000;
}
.product-thumb .button-group button:first-child:hover {
  background: #e4d9ca;
  color: #000;
}
.product-thumb .button-group button:not(:first-child) {
  background: #efe9df;
  color: #393939;
  border-left: 1px solid rgba(227 204 196);
}
.product-thumb .button-group button:not(:first-child):hover {
  background: #333;
  color: #fff;
}

/* =================================
   BUTTONS
================================= */
.btn-primary { background: #111; border: none; color: #fff; }
.btn-primary:hover { background: #e4d9ca; color: #000; }

/* =================================
   FOOTER
================================= */
footer {
  background: #111;
  border-top: 4px solid #e4d9ca;
  color: #ccc;
  padding-top: 30px;
}
footer a { color: #e4d9ca; }
footer a:hover { color: #fff; }

/* =================================
   MOBILE
================================= */
@media (max-width: 767px) {

  #top { min-height: unset !important; height: auto !important; overflow: visible !important; padding: 5px 0 !important; }
  #top .container { height: auto !important; display: block !important; }
  #top-links { display: flex !important; flex-wrap: wrap !important; line-height: normal !important; height: auto !important; }
  #top-links a, #top .btn-link { height: auto !important; font-size: 11px !important; }

  #logo { text-align: center; margin: 2px 0 2px; }
  #logo img { max-height: 52px; width: auto; }

  #search { margin: 0 10px 6px; width: calc(100% - 20px); }
  #search .input-group { width: 100%; display: flex; }
  #search .input-lg { height: 30px !important; font-size: 14px; border-radius: 6px 0 0 6px !important; flex: 1; border: 1px solid #e4d9ca !important; border-right: none !important; }
  #search .btn-lg { height: 30px !important; width: 52px; padding: 0 !important; font-size: 17px; border-radius: 0 6px 6px 0 !important; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

  #cart { margin: 0 10px 10px; width: calc(100% - 20px); }
  #cart > .btn {
    width: 100%; height: 30px;
    display: flex; align-items: center; justify-content: center;
    gap: 8px; font-size: 14px; font-weight: 500;
    border-radius: 8px; background: #111 !important; color: #fff !important;
  }
  #cart > .btn:active { background: #333 !important; }

  #menu {
    min-height: 50px !important; height: auto !important;
    overflow: visible !important; border-radius: 0;
    border-bottom: 3px solid #e4d9ca !important;
  }
  #menu .navbar-header {
    display: flex !important; align-items: center !important;
    justify-content: space-between !important;
    padding: 0 14px !important; min-height: 50px !important;
  }
  #menu #category {
    font-size: 13px !important; font-weight: 800 !important;
    letter-spacing: 0.1em !important; text-transform: uppercase !important;
    color: #000 !important; line-height: 50px !important;
  }
  #menu .btn-navbar {
    background: rgba(0,0,0,0.08) !important;
    border: 1.5px solid rgba(0,0,0,0.2) !important;
    border-radius: 6px !important; color: #000 !important;
    font-size: 18px !important; padding: 8px 14px !important; margin: 8px 0 !important;
  }
  #menu .navbar-collapse, #menu div.dropdown-menu {
    background: #e4d9ca !important;
    border: none !important; border-radius: 0 !important; box-shadow: none !important;
    padding: 4px 0 12px !important; margin: 0 !important;
  }
  #menu .nav {
    display: flex !important; flex-direction: column !important;
    flex-wrap: wrap !important; overflow: visible !important;
    height: auto !important;
  }
  #menu .nav > li {
    display: block !important; flex: none !important;
    width: 100% !important; float: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  }
  #menu .nav > li > a {
    display: flex !important; align-items: center !important;
    justify-content: space-between !important;
    color: #000 !important; font-size: 13px !important;
    font-weight: 700 !important; letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 13px 18px !important; height: auto !important;
    white-space: normal !important; width: 100% !important;
  }
  #menu .nav > li > a::after { content: '›'; font-size: 20px; opacity: 0.4; margin-left: 8px; }
  #menu .nav > li > a:hover, #menu .nav > li.open > a {
    background: #e4d9ca !important; color: #000 !important; padding-left: 22px !important;
  }
  #menu .dropdown-inner { display: block !important; }
  #menu .dropdown-inner a {
    width: 100% !important; color: #111 !important;
    font-size: 12px !important; padding: 10px 26px !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    background: rgba(0,0,0,0.04) !important;
    border-radius: 0 !important; height: auto !important;
  }
  #menu .dropdown-inner a:hover { background: #e4d9ca !important; color: #000 !important; }

  /* Products grid - 2 columns */
  .product-layout { width: 50%; float: left; padding: 4px; }
  .product-thumb { border-radius: 10px; overflow: hidden; }
  .product-thumb .caption { padding: 6px; min-height: 120px; text-align: center; }
  .product-thumb h4 {
    font-size: 13px; line-height: 17px; height: 50px;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    margin-bottom: 4px; min-height: unset;
  }
  .product-thumb .price { font-size: 18px; font-weight: 700; }
  .product-thumb .button-group button { font-size: 11px; padding: 8px 4px; }
}

@media (max-width: 380px) {
  #cart > .btn { font-size: 12px; height: 46px; }
  #search .input-lg { font-size: 13px !important; }
  .product-layout { width: 50%; padding: 3px; }
}

/* ─── NAV TABS FIX ─── */
.nav-tabs {
  border-bottom: 1px solid #ddd !important;
}
.nav-tabs > li > a {
  border: 1px solid transparent;
  border-bottom: none;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  border: 1px solid #ddd;
  border-bottom-color: #fff;
  background: #fff;
  color: #333;
}

/* =================================
   ΣΕΛΙΔΑ ΠΡΟΪΟΝΤΟΣ
================================= */

/* Τίτλος */
#product-product h1 {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* Manufacturer / Κωδικός / Διαθεσιμότητα */
#product-product ul.list-unstyled {
  background: #f9f7f4;
  border: 1px solid #e4d9ca;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
#product-product ul.list-unstyled li {
  font-size: 16px;
  color: #555;
  padding: 3px 0;
  border-bottom: 1px solid #efe9df;
}
#product-product ul.list-unstyled li:last-child {
  border-bottom: none;
}

/* Τιμή */
#product-product .price {
  font-size: 36px !important;
  font-weight: 800 !important;
  color: #111 !important;
  margin: 16px 0 !important;
  display: block;
}
#product-product .price-old {
  font-size: 18px !important;
  color: #999 !important;
  text-decoration: line-through !important;
  margin-left: 10px;
}
#product-product .price-tax {
  font-size: 12px;
  color: #aaa;
  display: block;
  margin-top: 4px;
}

/* Διαθέσιμες Επιλογές */
#product-product h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  border-bottom: 2px solid #e4d9ca;
  padding-bottom: 8px;
  margin: 20px 0 14px;
}

/* Labels */
#product-product .control-label,
#product-product label {
  font-size: 12px;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}

/* Checkboxes / Radio */
#product-product .checkbox label,
#product-product .radio label {
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Quantity input */
#product-product input[name="quantity"] {
  height: 46px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border: 2px solid #e4d9ca;
  border-radius: 8px;
  width: 100%;
  max-width: 120px;
  transition: border-color 0.2s;
}
#product-product input[name="quantity"]:focus {
  border-color: #111;
  outline: none;
  box-shadow: none;
}

/* ΚΑΛΑΘΙ button */
#product-product #button-cart {
  width: 100%;
  height: 52px;
  background: #C9A227;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  margin-top: 8px;
}
#product-product #button-cart:hover {
  background: #e4d9ca;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
#product-product #button-cart:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Wishlist / Compare buttons */
#product-product .btn-default {
  border: 2px solid #e4d9ca;
  background: #fff;
  color: #444;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}
#product-product .btn-default:hover {
  background: #e4d9ca;
  border-color: #e4d9ca;
  color: #000;
}

/* Thumbnail images */
#product-product .thumbnails {
  margin-top: 10px;
}
#product-product .image-additional a {
  border: 2px solid #e4d9ca;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  transition: border-color 0.2s;
}
#product-product .image-additional a:hover {
  border-color: #111;
}

/* Main image */
#product-product .col-sm-8 a img,
#product-product .col-md-8 a img {
  border-radius: 12px;
  border: 0px solid #efe9df;
}

/* Nav tabs — Περιγραφή */
#product-product .nav-tabs {
  border-bottom: 20px solid #f9f7f4 !important;
  margin-bottom: 20px;
}
#product-product .nav-tabs > li > a {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  padding: 10px 20px;
  background: transparent !important;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -2px;
}
#product-product .nav-tabs > li > a:hover {
  color: #111;
  border-bottom-color: #e4d9ca !important;
  background: transparent !important;
}
#product-product .nav-tabs > li.active > a,
#product-product .nav-tabs > li.active > a:hover,
#product-product .nav-tabs > li.active > a:focus {
  color: #111 !important;
  border-bottom: 3px solid #111 !important;
  background: transparent !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

/* Tab content */
#product-product .tab-content {
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

/* Product info box */
#product-product .product-info {
  background: #f9f7f4;
  border-radius: 12px;
  padding: 20px;
}
/* κρύβει wishlist και compare */
.product-thumb .button-group button:nth-child(2),
.product-thumb .button-group button:nth-child(3){
display:none;
}

/* σωστή θέση προϊόντος */
.product-thumb{
position:relative;
overflow:hidden;
}

/* κουμπί στο κέντρο */
.product-thumb .button-group{
position:absolute;
top:10%;
left:50%;
transform:translate(-50%,-50%);
opacity:0;
transition:0.3s;
background:transparent;
border:none;
text-align:center;
}

/* εμφανίζεται στο hover */
.product-thumb:hover .button-group{
opacity:1;
}

/* κουμπί */
.product-thumb .button-group button{
background:#cbbda6;
color:transparent;
border:none;
padding:0px 70px;
font-size:0;
font-weight:600;
border-radius:5px;
}

/* hover */
.product-thumb .button-group button:hover{
background:#242d37;
}

/* κρύβει icon */
.product-thumb .button-group button i{
display:none;
}

/* εμφανίζει μόνο ΑΓΟΡΑ */
.product-thumb .button-group button:after{
content:"ΑΓΟΡΑ";
color:#fff;
font-size:13px;
letter-spacing:1px;
}
#live-search{
position:absolute;
top:100%;
left:0;
width:100%;
background:#fff;
border:1px solid #ddd;
z-index:9999;
max-height:400px;
overflow-y:auto;
}

.live-item{
display:flex;
align-items:center;
padding:8px;
border-bottom:1px solid #eee;
}

.live-item img{
width:50px;
height:50px;
object-fit:cover;
margin-right:10px;
}

.live-item:hover{
background:#f5f5f5;
}