:root {
  --bg-orange: #FF8A00;
  --color-anthracite: #1A1A1A;
  --color-offwhite: #F8F5F0;
  --color-dark-brown: #322323;
  --color-dark-brown-hover: #483333;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%; /* Αλλαγή από min-height σε height */
  margin: 0;
  padding: 0;
  background-color: var(--bg-orange);
  color: var(--color-anthracite);
  font-family: var(--font-main);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.link1 {
  color: #322323;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.link1:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar {
  width: 100%;
  padding: 0.75rem 2rem;
  background-color: #f7941d;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.top-col {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-col-left { justify-content: flex-start; }
.top-col-center { justify-content: center; }
.top-col-right { justify-content: flex-end; }

.top-bar a {
  color: var(--color-dark-brown);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
  font-family: 'Anton', sans-serif;
}

.top-bar a:hover { opacity: 0.8; }

@keyframes colorPulse {
  0% { color: #1a1a1a; }
  25% { color: #ff0000; }
  50% { color: #1282E9; }
  75% { color: #4CFFA3; }
  100% { color: #1a1a1a; }
}

.top-col-left a.freebies-link {
  animation: colorPulse 3s infinite ease-in-out;
}

.header-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.header-col { display: flex; align-items: center; }
.header-logo { justify-content: flex-start; }
.header-ad { justify-content: flex-end; }
.header-ad img { max-width: 100%; height: auto; display: block; }

/* Switch Toggle */
.switch-section {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.switch-container { display: inline-block; }

.toggle-switch {
  display: flex;
  background-color: var(--color-dark-brown);
  padding: 4px;
  border-radius: 50px;
  gap: 4px;
}

.switch-btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  color: var(--color-offwhite);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  text-align: center;
}

.switch-btn:hover { opacity: 0.9; }
.switch-btn.active {
  background-color: var(--color-offwhite);
  color: var(--color-anthracite);
}

/* Category & Controls Architecture */
.category-section {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-anthracite);
  line-height: 1.4;
}

.category-title a {
  color: var(--color-offwhite) !important;
  text-decoration: none;
}

.items-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-anthracite);
  opacity: 0.9;
  white-space: nowrap;
}

.category-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Sort Dropdown */
.sort-container select {
  background-color: var(--color-dark-brown);
  color: var(--color-offwhite);
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.sort-container select:hover { background-color: var(--color-dark-brown-hover); }
.sort-container select option {
  background-color: var(--color-dark-brown);
  color: var(--color-offwhite);
}

/* Breadcrumbs Badges & Dropdowns */
.breadcrumb-item-wrapper {
  position: relative;
  display: inline-block;
  margin: 0.15rem 0;
}

.breadcrumb-item,
.show-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--color-dark-brown);
  color: var(--color-offwhite) !important;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.breadcrumb-item:hover,
.show-all-link:hover {
  background-color: var(--color-dark-brown-hover);
  color: var(--color-offwhite) !important;
}

.breadcrumb-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-dark-brown);
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 0.5rem 0;
  z-index: 100;
  list-style: none;
}

.breadcrumb-item-wrapper:hover .breadcrumb-dropdown { display: block; }

.breadcrumb-dropdown li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--color-offwhite);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.breadcrumb-dropdown li a:hover {
  background-color: rgba(248, 245, 240, 0.15);
}

.sub-count { font-size: 0.8rem; opacity: 0.7; }
.breadcrumb-separator { margin: 0 0.3rem; opacity: 0.6; }

/* 2-Column Main Layout Architecture */
.main-container {
  width: 100%;
  padding: 0 2rem 2rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
  flex: 1 0 auto; /* Δίνει εντολή να μεγαλώνει και να γεμίζει τον κενό χώρο */
}

.main-content-col {
  width: 100%;
  min-width: 0;
}

.sidebar-col {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
}

/* Διόρθωση Banners: Τοποθέτηση το ένα κάτω από το άλλο και σωστό μέγεθος */
.sidebar-ad { 
  width: 100%; 
  max-width: 100%; 
  display: flex;
  flex-direction: column; /* Η μία εικόνα κάτω από την άλλη */
  align-items: center;
  gap: 1rem; /* Απόσταση μεταξύ των banners */
}

.sidebar-ad img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 400px !important;
  height: auto !important;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.sidebar-col:empty,
.sidebar-ad:empty { display: none; }
.main-container:has(.sidebar-col:empty) { grid-template-columns: 1fr; }

/* Product Grid Layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Card Wrapper Structure */
.grid-card {
  background-color: #f7941d;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(50, 35, 35, 0.25);
  position: relative;
}

.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: #322323;
}

/* Featured / Premium Cards */
.grid-card.premium1 {
  border: 1px solid rgba(50, 35, 35, 0.25);
  position: relative;
}

.grid-card.premium1:hover {
  border-color: #322323;
}

.grid-card.premium1::before {
  content: "★ FEATURED";
  position: absolute;
  top: 18px;
  right: -30px;
  background: #f00;
  color: var(--color-offwhite);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 30px;
  transform: rotate(45deg);
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.8px;
}

/* Product Image Styling */
.card-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #2a2a2a;
}

.card-image-wrapper img.clickable-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card-image-wrapper img.clickable-img:hover {
  transform: scale(1.05);
}

/* Card Content / Details */
.card-info {
  background-color: #f7941d;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.4rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #322323;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-subtitle {
  font-size: 0.85rem;
  color: #322323;
  opacity: 0.9;
}

.card-link {
  color: #322323;
  text-decoration: none;
  font-weight: 700;
}

.card-link:hover {
  text-decoration: underline;
}

/* Pricing Section */
.card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #322323;
  margin-top: 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.old-price {
  font-size: 0.95rem;
  color: #322323;
  opacity: 0.75;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
}

.discount {
  font-size: 0.75rem;
  background-color: #322323;
  color: var(--color-offwhite);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}

/* Get Deal Button (Card) */
.buy-btn {
  margin-top: auto;
  padding: 0.55rem;
  background-color: #322323;
  color: var(--color-offwhite);
  border: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  width: 100%;
}

.buy-btn:hover {
  background-color: #483333;
}

/* Controls Bar (Pagination + Sort Select Bar) */
.controls-bar {
  width: 100%;
  background: var(--color-offwhite, #F8F5F0);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(50, 35, 35, 0.2);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}

.no-deals-message {
font-size: 24px;
  font-weight: bold;
  text-align: center;
  padding: 40px 20px;
  color: #322323;
  width: 100%;
  grid-column: 1 / -1;
}

/* Pagination Links Container */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 1.5rem;
}

/* Individual Page Button/Link */
.page-link {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--color-offwhite, #F8F5F0);
  text-decoration: none;
  background-color: var(--color-dark-brown, #322323);
  border: 1px solid var(--color-dark-brown, #322323);
  border-radius: 3px;
  transition: all 0.2s ease;
}

.page-link:hover,
.page-link.active {
  background-color: var(--color-dark-brown-hover, #483333);
  color: var(--color-offwhite, #F8F5F0);
  border-color: var(--color-dark-brown-hover, #483333);
}

.sort-container {
  margin-left: auto;
}

.sort-container select {
  background-color: var(--color-dark-brown, #322323);
  color: var(--color-offwhite, #F8F5F0);
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.sort-container select:hover { 
  background-color: var(--color-dark-brown-hover, #483333); 
}

.sort-container select option {
  background-color: var(--color-dark-brown, #322323);
  color: var(--color-offwhite, #F8F5F0);
}

/* Footer Styles */
.site-footer {
  background-color: #322323;
  color: var(--color-offwhite, #F8F5F0);
  padding: 40px 20px 20px;
  margin-top: auto; /* Σπρώχνει το footer πάντα τέρμα κάτω */
  border-top: 3px solid #ff8a00;
  flex-shrink: 0; /* Αποτρέπει το footer από το να ζουλιέται */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  color: #f7941d;
  text-transform: uppercase;
}

.footer-section p, 
.footer-section li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d1c7bd;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section a {
  color: var(--color-offwhite, #F8F5F0);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #ff8a00;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #a89f95;
}

/* Image Modal & Get Deal Button inside Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  max-width: 85%;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#modal-caption {
  margin-top: 10px;
  color: #fff;
  font-size: 1.1rem;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #d4af37;
}

/* Στιλ για το Get deal κουμπί μέσα στο Modal */
.modal .get-deal-btn,
.modal-content .get-deal-btn,
.modal .deal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ff5722;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
}

.modal .get-deal-btn:hover,
.modal-content .get-deal-btn:hover,
.modal .deal-btn:hover {
  background-color: #e64a19;
}

.modal .get-deal-btn:active,
.modal-content .get-deal-btn:active,
.modal .deal-btn:active {
  transform: scale(0.98);
}

#image-modal a,
#modal-caption a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #322323;
  color: var(--color-offwhite, #F8F5F0) !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 12px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#image-modal a:hover,
#modal-caption a:hover {
  background-color: #483333;
  text-decoration: none;
}

#image-modal a:active,
#modal-caption a:active {
  transform: scale(0.98);
}

/* Στιλ για τα γράμματα-κουμπιά ώστε να μοιάζουν με το pagination */
.alpha-btn {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: bold;
  color: var(--color-offwhite, #F8F5F0);
  text-decoration: none;
  background-color: var(--color-dark-brown, #322323);
  border: 1px solid var(--color-dark-brown, #322323);
  border-radius: 3px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.alpha-btn:hover,
.alpha-btn.active {
  background-color: var(--color-dark-brown-hover, #483333);
  color: var(--color-offwhite, #F8F5F0);
  border-color: var(--color-dark-brown-hover, #483333);
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 15px;
  width: 100%;
}

.store-card {
  display: flex;
  align-items: center;
  background-color: #f7941d;
  border: 1px solid rgba(50, 35, 35, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  position: relative;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: #322323;
}

.store-logo-wrapper {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-right: 10px;
  border-radius: 3px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-info {
  flex: 1;
  min-width: 0;
}

.store-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #322323;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #322323;
  color: #F8F5F0;
  padding: 15px 20px;
  box-sizing: border-box;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-family: inherit;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  flex: 1;
  min-width: 280px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #F8F5F0;
  transition: opacity 0.2s;
}

.cookie-btn:hover {
  opacity: 0.85;
}

.cookie-btn-primary {
  background-color: #F8F5F0;
  color: #322323;
}

.cookie-btn-secondary {
  background-color: transparent;
  color: #F8F5F0;
}

.store-header-banner {
    width: 100%;
    text-align: center;
    padding: 20px 15px 10px 15px;
    box-sizing: border-box;
}

.store-header-title {
    margin: 0 auto;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-anthracite);
	font-family: 'Anton', sans-serif;
}
/* Mobile Responsive Architecture (768px) */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .main-container {
    grid-template-columns: 1fr;
    padding: 0 1rem 1.5rem 1rem;
    gap: 1.5rem;
  }

  .top-bar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
    text-align: center;
  }

  .top-col { justify-content: center; }
  .top-col:empty, .header-ad:empty { display: none; }

  .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .header-logo, .header-ad {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .switch-section {
    padding: 0.75rem 1rem;
    justify-content: flex-start;
  }

  .switch-btn {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
  }

  .sidebar-col {
    width: 100%;
    max-width: 100%;
    order: 2;
  }

  /* Προστασία banners στις μικρές οθόνες (κάθετη στοίχιση & περιορισμός μεγέθους) */
  .sidebar-ad {
    flex-direction: column !important;
  }

  .sidebar-ad img {
    max-height: 250px !important;
    width: 100% !important;
    max-width: 230px !important;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .card-info {
    padding: 0.75rem;
    gap: 0.3rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-subtitle {
    font-size: 0.8rem;
  }

  .card-price {
    font-size: 0.9rem;
    flex-wrap: wrap;
  }

  .old-price {
    font-size: 0.75rem;
  }

  .discount {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
  }

  .buy-btn {
    padding: 0.45rem;
    font-size: 0.82rem;
  }
  
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .pagination {
    justify-content: center;
  }

  .sort-container {
    margin-left: 0;
    width: 100%;
  }

  .sort-container select {
    width: 100%;
  }
  
.stores-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
  }
  
.store-header-title {
        font-size: 1.5rem;
    }  
}