body {
  background-color: rgb(247, 236, 214)!important;
}
.logo {
    width: 300px;
    height: auto;
    margin: 3rem 0 0 3rem;
}

.only-logo-link {
  display: inline-block !important;
  width: 350px !important;
  height: auto !important;
  margin: 3rem;
}
.promocode{
    position:absolute;
    right:1rem;
}

.promocode .promo-form{
    display:flex;
    align-items:center;
    gap:0.5rem;
}

.promocode .promo-input{
    height:40px;
    width:220px;
    padding:0 14px;
    border:1px solid #d6d6d6;
    border-radius:8px;
    outline:none;
    font-size:14px;
    box-sizing:border-box;
    transition:0.2s;
    margin-right: 0.5rem;
    margin-top: 2rem;
}

.promocode .promo-input:focus{
    border-color:#b08a5a;
}

.promocode .promo-btn{
    height:40px;
    padding:0 16px;
    border:none;
    border-radius:8px;
    background:#92652e;
    color:white;
    font-size:14px;
    cursor:pointer;
    box-sizing:border-box;
    transition:0.2s;
    margin-right: 2rem;
    margin-top: 2rem;
}

.promocode .promo-btn:hover{
    background:#b08a5a;
}

.basket-wrapper {
    position: absolute;
    right: 6vw;   /* αντί για rem — κλιμακώνεται */
    top: 6vw;     /* ίδιο σε κινητά/desktop */
    display: inline-block;
}

.basket {
    width: 18vw;   /* αναλογικό μέγεθος καλαθιού */
    max-width: 80px; /* μην υπερβαίνει μεγάλα desktop */
    height: auto;
    display: block;
}

.basket-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 12px;      /* μικρό και καθαρό */
    font-weight: bold;
    padding: 2px 6px;     /* μικρό bubble */
    border-radius: 50%;
    border: 2px solid white;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;      /* διατηρεί το στρογγυλό */
    height:20px;
}


.cart-notification { 
    position: fixed; 
    top: 14rem; 
    right: 3rem; 
    background-color: #4CAF50; /* πράσινο */ 
    color: white; 
    padding: 12px 20px; 
    border-radius: 8px; 
    font-size: 16px; 
    font-weight: 600; 
    box-shadow: 0 4px 14px rgba(0,0,0,0.2); 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.4s ease; 
    z-index: 9999; 
}

.buy-btn {
    position: absolute;
    top: 12vw;
    right:5.2vw;
    display: inline-block;
    background: linear-gradient(135deg, #ff7a18, #ff3c00);
    color: white;
    padding: 6px 12px;     /* μικρότερο */
    font-size: 14px;       /* μικρό μέγεθος */
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    width: auto;           /* ΔΕΝ μεγαλώνει */
    white-space: nowrap;   /* δεν κάνει wrap */
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: all 0.25s ease;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

.buy-btn:active {
    transform: scale(0.96);
}
/* ==== Cart Notification Popup ==== */
/* --- Django Messages Container --- */
.django-messages {
    position: fixed;
    top: 15rem;
    right: 3rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Βασικό style για messages --- */
.msg {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: fadeIn 0.4s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* --- Colors ανάλογα με tags --- */
.msg.error {
    background-color: #d9534f; /* κόκκινο */
}

.msg.success {
    background-color: #5cb85c; /* πράσινο */
}

.msg.warning {
    background-color: #f0ad4e; /* πορτοκαλί */
}

.msg.info {
    background-color: #5bc0de; /* γαλάζιο */
}

/* --- Fade animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Auto-hide after 4 seconds */
.msg.hide {
    animation: fadeOut 0.6s forwards;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    padding: 10px 14px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    z-index: 1000;
}

.back-to-top:hover {
    background: #444;
}


@media only screen and (min-width: 240px) and (max-width: 600px) and (orientation: portrait) {
  /* Καλάθι πιο κοντά στην άκρη & λίγο μεγαλύτερο */
  .only-logo-link {
    margin: 0;                 /* ✅ αφαιρεί το offset */
    width: auto !important;    /* ✅ αφήνει το logo να ορίσει πλάτος */
    display: block;
  }

  .logo {
    width: 180px;
    margin: 1.5rem 0 4rem 1rem;      /* ✅ τέρμα αριστερά */
    display: block;
  }

  .promocode .promo-input{
      position: absolute;
      padding: 2px;
      width:80px;
      height:30px;
      right: 0rem;
      top: 0rem;
      font-size: 13px;
  }

  .promocode .promo-btn{
      margin-right: 0.5rem;
      margin-top: 4.3rem;
      padding:8px;
      line-height:0.5;
      height:25px;
  }

  .basket-wrapper {
    right: 3rem;
    top: 8rem;
  }

  .basket {
    width: 20vw;
    max-width: 50px;
    height: auto;
  }

  .basket-count {
    font-size: 12px;
    min-width: auto;
    height: auto;
    top: 0px;
    right: -8px;
  }

  /* Buy button χαμηλώνει και γίνεται λίγο πιο μεγάλο */
  .buy-btn {
    top: 11rem;
    right: 2rem;
    padding: 7px 14px;
    font-size: 14px;
  }

  /* Notifications - πιο κοντά στην άκρη */
  .django-messages {
    top: 13.5rem;
    right: 2rem;
    gap: 8px;
  }
  .msg {
    padding: 10px 14px;
  }
}

@media only screen and (min-width: 481px) and (max-width: 950px) and (orientation: landscape) {

  /* Logo πιο μικρό για landscape οθόνη */
  .logo {
    width: 35vw;
    margin: 1.5rem 0 1rem 1rem;
    display: block;
  }

  /* Καλάθι – σε landscape μετακινείται πιο δεξιά και πιο ψηλά */
  .basket-wrapper {
    right: 8vw;
    top: 8rem;
  }

  .basket {
    width: 10vw;
    max-width: 60px;
    height: auto;
  }

  .basket-count {
    font-size: 14px;
    min-width: auto;
    height: auto;
    top: -8px;
    right: -8px;
  }

  /* Buy button – σε landscape οθόνες ανεβαίνει */
  .buy-btn {
    top: 12rem;
    right: 3.5rem;
    padding: 7px 14px;
    font-size: 16px;
  }

  /* Notifications – λίγο ψηλότερα στο landscape */
  .django-messages {
    top: 15rem;
    right: 3.5rem;
    gap: 8px;
  }
}

@media only screen and (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
  /* Basket πιο δεξιά και λίγο μεγαλύτερο */
  .basket-wrapper {
    right: 4rem;
    top: 8rem;
  }

  .basket {
    width: 14vw;
    max-width: 90px;
    height: auto;
  }

  .basket-count {
    font-size: 16px;
    min-width: 20px;
    top: -10px;
    right: -10px;
  }

  /* Buy button ψηλότερα & πιο σταθερό */
  .buy-btn {
    top: 15rem;
    right: 3rem;
    padding: 8px 16px;
    font-size: 18px;
  }

  /* Notifications */
  .django-messages {
    top: 18.5rem;
    right: 3rem;
    gap: 10px;
  }
}

@media only screen and (min-width: 951px) and (max-width: 1366px) and (orientation: landscape) {


  .basket-wrapper {
    right: 6rem;
    top: 5rem;
  }

  .basket {
    width: 8vw;
    max-width: 95px;
  }

  .basket-count {
    font-size: 16px;
    min-width: 22px;
    top: -10px;
    right: -10px;
  }

  .buy-btn {
    top: 12rem;
    right: 5rem;
    padding: 10px 18px;
    font-size: 18px;
  }

  .django-messages {
    top: 15rem;
    right: 5.5rem;
    gap: 10px;
  }


}

@media only screen and (min-width: 1367px) and (max-width: 1599px) and (orientation: landscape) {

  .basket-wrapper {
    right: 7rem;
    top: 7rem;
  }

  .basket {
    width: 7vw;
    max-width: 50px;
  }

  .basket-count {
    font-size: 16px;
    min-width: auto;
    height: auto;
    top: -10px;
    right: -10px;
  }

  .buy-btn {
    top: 10.5rem;
    right: 6rem;
    padding: 6px 12px;
    font-size: 16px;
  }

  .django-messages {
    top: 14rem;
    right: 6rem;
    gap: 10px;
  }
}

@media only screen and (min-width: 1600px) and (max-width: 1920px) and (orientation: landscape) {

  .basket-wrapper {
    right: 10rem;
    top: 5rem;
  }

  .basket {
    width: 6vw;
    max-width: 110px;
  }

  .basket-count {
    font-size: 18px;
    min-width: 26px;
  }

  .buy-btn {
    top: 14rem;
    right: 8.5rem;
    padding: 12px 22px;
    font-size: 20px;
  }

  .django-messages {
    top: 17.5rem;
    right: 8.5rem;
    gap: 12px;
  }
}

@media only screen and (min-width: 1921px) {

  .basket-wrapper {
    right: 8rem;
    top: 6rem;
  }

  .basket {
    width: 5.5vw;
    max-width: 120px;
  }

  .basket-count {
    font-size: 20px;
    min-width: 28px;
  }

  .buy-btn {
    top: 15rem;
    right: 6rem;
    padding: 14px 26px;
    font-size: 22px;
  }

  .django-messages {
    top: 19rem;
    right: 6rem;
    gap: 14px;
  }
}

