/* ========================================
   ADAMIA CART – MOBILE
   /assets/cart-mobile.css
======================================== */


/* ========================================
   CART CARD FRAME
======================================== */

#cartSection{

  position:relative;   /* <-- αυτό που σου είπα */

  border:2px solid var(--ad-gold);

  border-radius:20px;

  box-shadow:
  0 12px 40px rgba(0,0,0,.25),
  0 0 0 1px rgba(191,168,105,.25);

  backdrop-filter:blur(10px);
}


/* ========================================
   CART BACKGROUND BY THEME
======================================== */

html[data-theme="light"] #cartSection{
  background:#fffef8;
}

html[data-theme="dark"] #cartSection{
  background:#0f2a26;
  color:#f2e6c9;
}


/* ========================================
   CLOSE CART BUTTON (Χ)
======================================== */

#cartSection button[onclick="closeCart()"]{

  width:34px;
  height:34px;

  border-radius:999px;

  border:2px solid var(--ad-gold);

  background:rgba(191,168,105,.12);

  color:var(--ad-gold);

  font-size:20px;
  font-weight:900;

  display:flex;
  align-items:center;
  justify-content:center;

  transition:.15s;
}

#cartSection button[onclick="closeCart()"]:hover{

  background:var(--ad-gold);
  color:var(--ad-primary-bg);
}


/* ========================================
   MOBILE CART LAYOUT
======================================== */

@media (max-width:600px){

/* CART CONTAINER */

#cartSection{
  padding:14px 12px 12px;
  width:100%;
  background:var(--ad-ivory);
  color:var(--ad-text);
}

#cartSection button[onclick="closeCart()"]{

  position:absolute;
  top:12px;
  right:12px;

  width:34px;
  height:34px;

  border-radius:999px;

  border:2px solid var(--ad-gold);

  background:rgba(191,168,105,.12);

  color:var(--ad-gold);

  font-size:20px;
  font-weight:900;

  display:flex;
  align-items:center;
  justify-content:center;

  z-index:5;
}

/* CART ITEM CARD — card/flex layout (matches new HTML structure) */

#cartSection #cartContainer .summary-table-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px;
  margin-bottom:10px;
  border-radius:14px;
  border:1.5px solid rgba(191,168,105,.35);
  box-shadow:0 4px 18px rgba(0,0,0,.28);
  position:relative;
}


/* PHOTO */

#cartSection .cart-item-photo{
  width:60px !important;
  height:60px !important;
  min-width:60px;
  border-radius:12px !important;
  object-fit:cover;
  border:1.5px solid rgba(244,228,177,.7);
  flex-shrink:0;
  display:block;
  cursor:zoom-in;
}


/* BODY */

#cartSection .cart-item-body{
  flex:1;
  min-width:0;
  padding-right:24px;
}


/* SUMMARY CELLS inside body */

#cartSection #cartContainer .summary-cell{
  display:block;
  padding:0;
  text-align:left;
  font-size:14px;
  color:inherit;
  min-width:0;
  flex:unset;
}

#cartSection #cartContainer .summary-cell::before{
  display:none;
}


/* PRODUCT CODE */

#cartSection .summary-cell[data-label="Κωδικός"]{
  font-size:12px;
  color:rgba(242,230,201,.82);
  overflow:hidden;
  text-overflow:ellipsis;
}

#cartSection .summary-cell[data-label="Κωδικός"] strong{
  font-weight:800;
  letter-spacing:.2px;
  color:#f4e4b1;
}


/* DESCRIPTION */

#cartSection .summary-cell[data-label="Περιγραφή"]{
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  word-break:break-word;
  white-space:normal;
  margin-bottom:2px;
}


/* FOOT: qty + price */

#cartSection .cart-item-foot{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:6px;
}

#cartSection .summary-cell[data-label="Ποσότητα"]{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(244,228,177,.08);
  flex:unset;
}


/* QTY BUTTONS */

#cartSection .qty-btn{
  width:32px;
  height:32px;
  border-radius:999px;
  border:1.5px solid rgba(191,168,105,.7);
  background:rgba(20,60,53,.85);
  color:#f4e4b1;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  -webkit-tap-highlight-color:transparent;
  appearance:none;
}

#cartSection .qty-btn:hover{
  background:rgba(27,77,68,.95);
  color:#fffbe9;
}

#cartSection .summary-cell[data-label="Ποσότητα"] span[id^="qty_"]{
  min-width:20px;
  text-align:center;
  font-weight:800;
}


/* PRICE */

#cartSection .summary-cell[data-label="Τιμή"]{
  text-align:right;
  white-space:nowrap;
  margin-left:auto;
  flex:unset;
}


/* REMOVE BUTTON */

#cartSection .cart-remove-btn{
  position:absolute;
  top:8px;
  right:8px;
  width:24px;
  height:24px;
  border-radius:999px;
  border:1px solid rgba(191,168,105,.5);
  background:rgba(191,168,105,.1);
  color:var(--ad-gold);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  flex-shrink:0;
}


/* PRICE STACK */

#cartSection .price-stack{

  display:flex;

  flex-direction:column;

  align-items:flex-end;

  gap:2px;
}

#cartSection .price-original{

  text-decoration:line-through;

  color:#9aa0a6;

  font-size:.92em;
}

#cartSection .price-final{
  color:#2e7d32;
  font-weight:900;
  font-size:1.08em;
}

#cartSection .price-discount{

  color:#d9001b;

  font-weight:800;

  font-size:.9em;
}

}


/* ========================================
   PROMO PANEL (Coupon / Campaign)
======================================== */

.promo-panel{

  width:100%;

  max-width:860px;

  margin:14px auto 10px;

  padding:14px;

  background:var(--ad-surface-2);

  border:2px solid var(--ad-border);

  border-radius:22px;

  box-shadow:0 8px 28px rgba(49,67,56,.08);
}

.promo-row{
  display:flex;
  gap:10px;
}


/* INPUT */

.promo-input{

  border:2px solid var(--ad-border);

  background:var(--ad-input-bg);

  border-radius:999px;

  padding:10px 16px;
}


/* APPLY BUTTON */

.promo-apply{

  padding:8px 18px;

  border-radius:999px;

  font-weight:800;

  font-size:13px;

  border:2px solid var(--ad-gold);

  background:var(--ad-surface);

  color:var(--ad-text);

  transition:.15s;
}

.promo-apply:hover{

  background:var(--ad-gold);

  color:var(--ad-primary-bg);
}


/* REMOVE BUTTON */

.promo-remove{

  width:42px;

  border-radius:999px;

  border:2px solid #d9001b;

  background:var(--ad-surface);

  color:#d9001b;
}

.promo-remove:hover{

  background:#d9001b;

  color:#fff;
}

.promo-status{

  margin-top:6px;

  font-weight:700;

  color:var(--ad-text);
}

#cartSection .promo-panel{
border-radius:999px;
}

#cartSection .promo-input{
border-radius:999px;
}

#cartSection .promo-apply{
border-radius:999px;
}

