/* Product suggestions in the cart (2026-12-02, cart-suggestions-options-2.html; inc/cart-suggestions.php). */

/* Side cart: one scroll area for suggestions + products (the products list no longer scrolls on its own). */
.dm-side-cart__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.dm-side-cart__scroll .dm-side-cart__items { flex: none; overflow: visible; }
@media (max-height: 460px) {
	.dm-side-cart__scroll { flex: none; overflow: visible; }
}

.dm-csugg { --cs-text: var(--dm-text, #444); --cs-muted: var(--dm-secondary, #666); --cs-primary: var(--dm-primary, #6F5876); --cs-border: #ece5e0; }
.dm-csugg__ttl { margin: 0 0 8px; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--cs-text); }
.dm-csugg__row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-right: 22px; }
.dm-csugg__row::-webkit-scrollbar { display: none; }

.dm-csugg__card { flex: 0 0 104px; display: flex; flex-direction: column; min-width: 0; padding: 6px; background: #fff; border: 1px solid var(--cs-border); border-radius: 10px; scroll-snap-align: start; font-size: 11.5px; }
.dm-csugg__img { display: block; }
.dm-csugg__img img { display: block; width: 100%; height: 72px; object-fit: contain; border-radius: 6px; margin: 0; }
.dm-csugg__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0; min-height: 2.5em; line-height: 1.25; color: var(--cs-text); text-decoration: none; }
.dm-csugg__name:hover { color: var(--cs-primary); text-decoration: none; }
.dm-csugg__bt { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; margin-top: auto; }
.dm-csugg__price { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 12px; color: var(--cs-text); }
.dm-csugg__price del { font-size: 10.5px; font-weight: 400; opacity: .55; }
.dm-csugg__price ins { text-decoration: none; }
.dm-csugg__price .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dm-csugg__add {
	flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
	background: var(--cs-primary); color: #fff; cursor: pointer;
}
.dm-csugg__add:hover { filter: brightness(1.1); }
.dm-csugg__add:disabled { opacity: .5; cursor: default; }
.dm-csugg__addtxt { display: none; }
.dm-csugg__card.is-adding { opacity: .55; }

/* Before free shipping: under the bar, soft peach band, full width */
.dm-side-cart .dm-csugg--top { margin: 12px 0 0; padding: 12px 0 14px 22px; background: var(--dm-peach-soft, #FBF0EA); border-top: 1px solid var(--dm-border, #e6e0dc); border-bottom: 1px solid var(--dm-border, #e6e0dc); }

/* After free shipping: under the products, quieter (smaller, no band, outline «+») */
.dm-side-cart .dm-csugg--bottom { margin: 26px 0 8px; padding: 0 0 0 22px; }
.dm-csugg--bottom .dm-csugg__ttl { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cs-muted); margin-bottom: 10px; }
.dm-csugg--bottom .dm-csugg__card { flex-basis: 92px; padding: 5px; border-color: #f0ebe7; font-size: 11px; }
.dm-csugg--bottom .dm-csugg__img img { height: 60px; }
.dm-csugg--bottom .dm-csugg__price { font-size: 11.5px; font-weight: 600; }
.dm-csugg--bottom .dm-csugg__add { width: 24px; height: 24px; background: #fff; color: var(--cs-primary); border: 1px solid var(--cs-primary); }

/* Cart page */
.dm-csugg--page { --cs-primary: var(--e-global-color-primary, #6F5876); --cs-text: var(--e-global-color-text, #444); --cs-muted: var(--e-global-color-secondary, #666); margin: 48px auto 0; }
.dm-csugg--page .dm-csugg__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 16px; }
.dm-csugg--page .dm-csugg__ttl { margin: 0; font-size: 22px; font-weight: 400; }
.dm-csugg__pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid var(--cs-border); border-radius: 30px; background: #faf6f3; color: var(--cs-muted); font-size: 14px; }
.dm-csugg__pill[hidden] { display: none; }
.dm-csugg__pill svg { flex: none; color: var(--cs-muted); }
.dm-csugg__pill b { color: var(--cs-text); }
.dm-csugg__mbar { flex: none; width: 80px; height: 4px; border-radius: 3px; background: #e9dfd9; overflow: hidden; }
.dm-csugg__mbar i { display: block; height: 100%; border-radius: 3px; background: var(--cs-primary); transition: width .4s ease; }
.dm-csugg__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dm-csugg--page .dm-csugg__card { padding: 10px; border-radius: 12px; font-size: 14px; }
.dm-csugg--page .dm-csugg__img img { width: 100%; height: auto; aspect-ratio: 1; }
.dm-csugg--page .dm-csugg__name { margin: 8px 0 8px; }
.dm-csugg--page .dm-csugg__price { font-size: 14.5px; }
.dm-csugg--page .dm-csugg__price del { font-size: 12.5px; }
.dm-csugg--page .dm-csugg__add { width: auto; height: auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 30px; background: #fff; color: var(--cs-primary); border: 1px solid var(--cs-primary); font-size: 13px; font-weight: 600; }
.dm-csugg--page .dm-csugg__add:hover { background: var(--cs-primary); color: #fff; filter: none; }
.dm-csugg--page .dm-csugg__addtxt { display: inline; }
.dm-csugg--page .dm-csugg__card.is-added { opacity: 0; transform: scale(.96); transition: opacity .3s ease, transform .3s ease; }
@media (max-width: 767.98px) {
	.dm-csugg--page { margin-top: 32px; }
	.dm-csugg--page .dm-csugg__ttl { font-size: 19px; }
	.dm-csugg__pill { font-size: 13px; padding: 6px 12px; gap: 8px; }
	.dm-csugg__mbar { width: 50px; }
	.dm-csugg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.dm-csugg--page .dm-csugg__bt { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* «Μπορεί επίσης να σας αρέσουν» sits at the bottom of the side cart, right above the subtotal, even with few products
   (2026-12-02); with many products it simply follows them at the end of the scroll. */
.dm-side-cart__scroll { display: flex; flex-direction: column; }
.dm-side-cart__scroll > * { flex-shrink: 0; }
.dm-side-cart .dm-csugg--bottom { margin-top: auto; padding-top: 26px; margin-bottom: 14px; }

/* Cart page: same width as the cart above (it spread across the whole screen on wide desktops), smaller photos. */
.dm-csugg--page { width: auto; max-width: 100%; margin-left: 0; margin-right: 0; }
.dm-csugg--page .dm-csugg__img img { aspect-ratio: auto; height: 170px; object-fit: contain; }
@media (max-width: 767.98px) {
	.dm-csugg--page .dm-csugg__img img { height: 130px; }
}

/* Side cart footer (2026-12-02, side-cart-footer-options.html «Σήμερα»): «Ολοκλήρωση παραγγελίας» on the last row,
   «Συνέχεια αγορών» / «Προβολή καλαθιού» above it; the «+» of «Μπορεί επίσης να σας αρέσουν» filled purple. */
.dm-side-cart__foot .dm-side-cart__pair { margin: 0 0 8px; }
.dm-csugg--bottom .dm-csugg__add { background: var(--cs-primary); color: #fff; border: 0; }

/* «Συνέχεια αγορών» / «Προβολή καλαθιού»: darker purple, white text (2026-12-02, side-cart-buttons-options.html Γ3).
   A touch lighter than «Ολοκλήρωση παραγγελίας» (#6F5876) so that one stays the main button. Same hover/press effect as it
   (css/side-cart.css «Ολοκλήρωση»): a darker shade sweeps in from the left, the button lifts with a soft shadow, presses in. */
body .dm-side-cart .dm-side-cart__pair .dm-btn.dm-btn--ghost {
	--dm-pair: #7D6984;
	background: linear-gradient(color-mix(in srgb, var(--dm-pair) 80%, #000), color-mix(in srgb, var(--dm-pair) 80%, #000)) no-repeat left center / 0% 100% var(--dm-pair);
	color: #fff; border-color: transparent;
	transition: background-size .4s cubic-bezier(.2,.7,.2,1), transform .15s, box-shadow .3s;
}
body .dm-side-cart .dm-side-cart__pair .dm-btn.dm-btn--ghost:hover,
body .dm-side-cart .dm-side-cart__pair .dm-btn.dm-btn--ghost:focus-visible {
	background-image: linear-gradient(color-mix(in srgb, var(--dm-pair) 80%, #000), color-mix(in srgb, var(--dm-pair) 80%, #000));
	background-color: var(--dm-pair); border-color: transparent; /* the older body .dm-side-cart .dm-btn--ghost:hover sets a pink background */
	background-size: 100% 100%; color: #fff; box-shadow: 0 8px 18px rgba(111, 88, 118, .28); transform: translateY(-1px);
}
body .dm-side-cart .dm-side-cart__pair .dm-btn.dm-btn--ghost:active { transform: scale(.98); box-shadow: none; }

/* Side-cart cards: arrows ‹ › at the ends + drag with finger or mouse (2026-12-02; js/cart-suggestions.js).
   The row has no visible scrollbar, so without these a mouse could not move it at all. */
.dm-csugg__track { position: relative; }
.dm-csugg__row { scroll-snap-type: none; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.dm-csugg__row.is-dragging { cursor: grabbing; }
.dm-csugg__row.is-dragging a { pointer-events: none; }
.dm-csugg__row img { -webkit-user-drag: none; user-select: none; }
.dm-csugg__nav {
	position: absolute; top: 30px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
	border: 1px solid var(--cs-border); border-radius: 50%; background: #fff; color: var(--cs-primary); cursor: pointer;
	box-shadow: 0 2px 8px rgba(40, 30, 35, .16); transition: transform .15s, background .2s, color .2s;
}
.dm-csugg__nav[hidden] { display: none; }
.dm-csugg__nav:hover { background: var(--cs-primary); color: #fff; transform: scale(1.06); }
.dm-csugg__nav--prev { left: -6px; }
.dm-csugg__nav--next { right: 8px; }
.dm-csugg--bottom .dm-csugg__nav { top: 24px; width: 28px; height: 28px; }

/* Arrows centred vertically on the cards (2026-12-02) */
.dm-csugg__nav, .dm-csugg--bottom .dm-csugg__nav { top: 50%; transform: translateY(-50%); }
.dm-csugg__nav:hover { transform: translateY(-50%) scale(1.06); }
