/* ==========================================================================
   bezabeauty.gr — custom theme για το v3 (port του loadGeneralCustomCssPlg του v2)
   ========================================================================== */

/* === Inter (self-hosted, variable 100–900) ================================
   Στο v2 δηλωνόταν font-family "Inter" χωρίς να φορτώνεται webfont. Εδώ το
   φορτώνουμε κανονικά ώστε να φαίνεται σε όλες τις συσκευές. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/plugins/bezabeautyCustomPlg/fonts/inter-greek-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/plugins/bezabeautyCustomPlg/fonts/inter-greek-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/plugins/bezabeautyCustomPlg/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/plugins/bezabeautyCustomPlg/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tailwind/daisyUI διαβάζουν το font από αυτές τις μεταβλητές· τα παιδιά κληρονομούν
   από html/body. Τα icons (Font Awesome) ορίζουν δικό τους font στο ίδιο το element. */
:root {
  --default-font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}
html,
body,
button,
input,
select,
textarea,
optgroup {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
}

/* === Footer: ανοιχτόχρωμο (#f1f1f1) με μαύρα κείμενα, όπως στο v2 ========= */
[data-beasy-footer-shell] {
  background-color: #f1f1f1 !important;
  color: #000 !important;
}
[data-beasy-footer-shell] h1,
[data-beasy-footer-shell] h2,
[data-beasy-footer-shell] h3,
[data-beasy-footer-shell] h4,
[data-beasy-footer-shell] h5,
[data-beasy-footer-shell] h6,
[data-beasy-footer-shell] p,
[data-beasy-footer-shell] span,
[data-beasy-footer-shell] li,
[data-beasy-footer-shell] div,
[data-beasy-footer-shell] a,
[data-beasy-footer-shell] i {
  color: #000 !important;
}
[data-beasy-footer-shell] a:hover,
[data-beasy-footer-shell] a:hover i {
  color: rgb(167, 167, 167) !important;
}
/* περιγράμματα (social κύκλοι, γραμμή copyright) — από σκούρο slate σε ανοιχτό γκρι */
[data-beasy-footer-shell] .border-t,
[data-beasy-footer-shell] #socialMediaLinks a {
  border-color: #d4d4d4 !important;
}
[data-beasy-footer-shell] #socialMediaLinks a:hover {
  border-color: #000 !important;
}

/* === Λογότυπο header λίγο μεγαλύτερο ===================================== */
[data-beasy-desktop-header-row] > a > img {
  height: 4rem !important;      /* core: h-12 (3rem) */
  max-width: 14rem !important;  /* core: max-w-44 */
}
[data-beasy-mobile-logo] img {
  height: 3rem !important;      /* core: h-10 (2.5rem) */
  max-width: 11rem !important;  /* core: max-w-36 */
}

/* === Desktop menu: το Inter είναι πιο φαρδύ από το system font → τα labels έσπαγαν
   σε 2 γραμμές. Κρατάμε κάθε στοιχείο σε μία γραμμή· σε στενές οθόνες αναδιπλώνεται
   ολόκληρο το στοιχείο αντί για το κείμενο. */
[data-beasy-nav-desktop] {
  flex-wrap: wrap;
}
[data-beasy-nav-desktop] > a,
[data-beasy-nav-desktop] > button {
  white-space: nowrap;
  padding-left: 0.6rem !important;
  padding-right: 0.6rem !important;
}

/* === Περιγραφές προϊόντων (2026-10-29) ======================================
   Το Tailwind preflight μηδενίζει λίστες/επικεφαλίδες/περιθώρια → επαναφέρουμε
   τυπογραφία στο περιεχόμενο της περιγραφής. Οι ενότητες (Περιγραφή/Συστατικά/
   Τρόπος χρήσης/Προφυλάξεις) έγιναν native <details> accordion από το cutover script
   docs/v3-cutover/scripts/001-descr-accordion.php (πριν: Bootstrap collapse που δεν
   δούλευε στο v3). Χωρίς JS· άνοιγμα με animation όπου το υποστηρίζει ο browser. */
[data-beasy-product-full-description] {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.7;
}
[data-beasy-product-full-description] p { margin: 0 0 0.75em; }
[data-beasy-product-full-description] h1,
[data-beasy-product-full-description] h2,
[data-beasy-product-full-description] h3,
[data-beasy-product-full-description] h4,
[data-beasy-product-full-description] h5,
[data-beasy-product-full-description] h6 {
  color: #111827;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.1em 0 0.5em;
}
[data-beasy-product-full-description] h1 { font-size: 1.375rem; }
[data-beasy-product-full-description] h2 { font-size: 1.25rem; }
[data-beasy-product-full-description] h3 { font-size: 1.0625rem; }
[data-beasy-product-full-description] h4 { font-size: 1rem; }
[data-beasy-product-full-description] h5 { font-size: 0.875rem; letter-spacing: 0.02em; }
[data-beasy-product-full-description] h6 { font-size: 0.8125rem; }
[data-beasy-product-full-description] ul,
[data-beasy-product-full-description] ol { margin: 0 0 0.9em; padding-left: 1.25rem; }
[data-beasy-product-full-description] ul { list-style: disc; }
[data-beasy-product-full-description] ol { list-style: decimal; }
[data-beasy-product-full-description] li { margin: 0.25em 0; padding-left: 0.15rem; }
[data-beasy-product-full-description] li::marker { color: #9ca3af; }
[data-beasy-product-full-description] strong,
[data-beasy-product-full-description] b { font-weight: 600; color: #111827; }
[data-beasy-product-full-description] a { text-decoration: underline; text-underline-offset: 2px; }
[data-beasy-product-full-description] img,
[data-beasy-product-full-description] video,
[data-beasy-product-full-description] iframe { max-width: 100%; height: auto; border-radius: 0.5rem; }
[data-beasy-product-full-description] video { display: block; margin: 0 0 1rem; }
[data-beasy-product-full-description] table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 0.875rem; }
[data-beasy-product-full-description] td,
[data-beasy-product-full-description] th { border: 1px solid #e5e7eb; padding: 0.4rem 0.6rem; }
[data-beasy-product-full-description] > :first-child,
.beasy-acc__body > :first-child { margin-top: 0; }
.beasy-acc__body > :last-child { margin-bottom: 0; }

/* accordion */
.beasy-acc { interpolate-size: allow-keywords; }
.beasy-acc__item { border-bottom: 1px solid #e5e7eb; }
.beasy-acc__item:first-of-type { border-top: 1px solid #e5e7eb; }
.beasy-acc__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.25rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
  transition: color 0.15s ease;
}
.beasy-acc__summary::-webkit-details-marker { display: none; }
.beasy-acc__summary::marker { content: ""; }
.beasy-acc__summary:hover { color: #6b7280; }
.beasy-acc__summary:focus-visible { outline: 2px solid #111827; outline-offset: 2px; border-radius: 2px; }
/* «+» που γίνεται «−» όταν ανοίγει */
.beasy-acc__summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: background-size 0.25s ease, transform 0.25s ease;
}
.beasy-acc__item[open] > .beasy-acc__summary::after {
  background-size: 100% 1.5px, 1.5px 0;
  transform: rotate(180deg);
}
.beasy-acc__body { padding: 0 0.25rem 1.25rem; }
.beasy-acc__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
}
.beasy-acc__item[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) {
  .beasy-acc__item::details-content,
  .beasy-acc__summary::after { transition: none; }
}

/* === CMS σελίδες: παλιό rich text (2026-10-29) ===============================
   company, purchases-returns, payments, privacy, terms: TinyMCE κείμενο του v2, τυλιγμένο σε
   .beasy-richtext από το cutover script docs/v3-cutover/scripts/003-cms-richtext.php.
   Το Tailwind preflight μηδένιζε επικεφαλίδες/λίστες/περιθώρια και έκανε το img block
   (→ η εικόνα της /company δεν κεντραριζόταν με text-align). */
.beasy-richtext {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.beasy-richtext p { margin: 0 0 0.85em; }
.beasy-richtext h1, .beasy-richtext h2, .beasy-richtext h3,
.beasy-richtext h4, .beasy-richtext h5, .beasy-richtext h6 {
  color: #111827;
  font-weight: 700;
  line-height: 1.35;
  margin: 1.6em 0 0.6em;
}
.beasy-richtext > :first-child { margin-top: 0; }
.beasy-richtext h1 { font-size: 1.75rem; }
.beasy-richtext h2 { font-size: 1.5rem; }
.beasy-richtext h3 { font-size: 1.25rem; }
.beasy-richtext h4 { font-size: 1.25rem; letter-spacing: 0.01em; }
.beasy-richtext h5 { font-size: 1rem; letter-spacing: 0.02em; }
.beasy-richtext h6 { font-size: 0.875rem; }
.beasy-richtext ul, .beasy-richtext ol { margin: 0.25em 0 1em; padding-left: 1.4rem; }
.beasy-richtext ul { list-style: disc; }
.beasy-richtext ol { list-style: decimal; }
.beasy-richtext li { margin: 0.3em 0; padding-left: 0.15rem; }
.beasy-richtext li::marker { color: #9ca3af; }
/* λίστα μέσα σε κεντραρισμένο μπλοκ (π.χ. /company, όπου κάθε στοιχείο είναι δικό του <ul>):
   κεντραρισμένα στοιχεία με την κουκκίδα δίπλα στο κείμενο */
.beasy-richtext [style*="text-align: center"] > ul,
.beasy-richtext [style*="text-align: center"] > ol { padding-left: 0; margin: 0.15em 0; list-style-position: inside; }
.beasy-richtext [style*="text-align: center"] > ul > li,
.beasy-richtext [style*="text-align: center"] > ol > li { text-align: center !important; margin: 0.15em 0; }
.beasy-richtext strong, .beasy-richtext b { font-weight: 600; color: #111827; }
.beasy-richtext a { color: #111827; text-decoration: underline; text-underline-offset: 2px; }
.beasy-richtext a:hover { color: #6b7280; }
/* inline όπως στο Bootstrap → το text-align:center του γονέα κεντράρει την εικόνα */
.beasy-richtext img { display: inline-block; max-width: 100%; height: auto; border-radius: 0.5rem; vertical-align: middle; }
.beasy-richtext table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 0.875rem; }
.beasy-richtext td, .beasy-richtext th { border: 1px solid #e5e7eb; padding: 0.4rem 0.6rem; }

/* ===== Mobile (#87772, 30/10) ===== */
/* Λίστες προϊόντων (κατηγορία / αναζήτηση / προσφορές): 2 ανά σειρά στο κινητό όπως στο v2 (col-6).
   Μόνο σε προβολή πλέγματος: η προβολή λίστας αφαιρεί το .grid από το container. */
@media (max-width: 639.98px) {
  .shop_container.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
  .shop_container.grid item-card article[data-beasy-product-card] { padding: 0.625rem; }
  .shop_container.grid item-card article[data-beasy-product-card] > .relative { height: 9.5rem; }
  .shop_container.grid item-card article[data-beasy-product-card] > .flex-1 { padding-top: 0.625rem; }
  .shop_container.grid item-card .product_title { min-height: 2.6rem; font-size: 0.8125rem; line-height: 1.25; }
  .shop_container.grid item-card .product_title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .shop_container.grid item-card .space-y-1 > p { font-size: 0.6875rem; }
  .shop_container.grid item-card .product_price { margin: 0.5rem 0 0.625rem; }
  .shop_container.grid item-card .product_price .price { font-size: 1rem; }
  /* κουμπιά σε μία σειρά: καλάθι μόνο με εικονίδιο (όπως το v2) + αγαπημένα + σύγκριση */
  .shop_container.grid item-card [data-beasy-card-actions] { flex-direction: row; gap: 0.375rem; }
  .shop_container.grid item-card [data-beasy-card-actions] .beasy-primary-action { flex: 1 1 auto; min-width: 0; height: 2.25rem; padding: 0; font-size: 0; }
  .shop_container.grid item-card [data-beasy-card-actions] .beasy-primary-action i { font-size: 0.9375rem; margin: 0; }
  .shop_container.grid item-card [data-beasy-card-secondary-actions] { gap: 0.375rem; }
  .shop_container.grid item-card [data-beasy-card-secondary-actions] button { width: 2.25rem; height: 2.25rem; }
}

/* Πλαϊνό μενού + υπομενού και «Φίλτρα» κατηγορίας: στο iOS Safari το 100vh (h-screen) είναι πιο ψηλό από την ορατή
   περιοχή (μπάρα Safari) → το τέλος της λίστας κρυβόταν και δεν κυλούσε ως εκεί. 100dvh = το πραγματικά ορατό ύψος.
   Ίδια διόρθωση και στον core (dev): NavMenuMobile.php h-dvh, category/index.php panel h-full. */
#beasy-mobile-navbar, .beasy-mobile-menu-panel { height: 100vh; height: 100dvh; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#mobile-filters:modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
#mobile-filters > div { height: 100%; }
#mobile-filters el-dialog-panel { height: 100%; min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html:has(#mobile-filters[open]) { overflow: hidden; }

/* Σελίδα προϊόντος: κενό ανάμεσα στην τιμή και τη σύντομη περιγραφή (#87772· και στον core dev: pr_desc mt-6) */
#pr_desc[data-beasy-product-description] { margin-top: 1.5rem; }

/* Product carousels (αρχική, σχετικά προϊόντα) στο κινητό: 2 ολόκληρες κάρτες (#87772). Ο core βάζει σταθερό
   !w-[18rem] στο slide (για να μην τεντώνονται λίγα σχετικά προϊόντα) που υπερισχύει του πλάτους του Swiper → 1,3 κάρτες.
   Εδώ το slide παίρνει ακριβώς το πλάτος του Swiper για slidesPerView 2 (spaceBetween 12px <576, 14px 576–767, util.js). */
@media (max-width: 575.98px) {
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] > .swiper-wrapper > .swiper-slide { width: calc((100% - 12px) / 2) !important; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] > .swiper-wrapper > .swiper-slide { width: calc((100% - 14px) / 2) !important; }
}
@media (max-width: 767.98px) {
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card article[data-beasy-product-card] { padding: 0.625rem; }
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card article[data-beasy-product-card] > .relative { height: 9.5rem; }
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card article[data-beasy-product-card] > .flex-1 { padding-top: 0.625rem; }
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card .product_title { min-height: 2.6rem; font-size: 0.8125rem; line-height: 1.25; }
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card .product_title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card .space-y-1 > p { font-size: 0.6875rem; }
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card .product_price { margin: 0.5rem 0 0.625rem; }
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card .product_price .price { font-size: 1rem; }
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card [data-beasy-card-actions] { flex-direction: row; gap: 0.375rem; }
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card [data-beasy-card-actions] .beasy-primary-action { flex: 1 1 auto; min-width: 0; height: 2.25rem; padding: 0; font-size: 0; }
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card [data-beasy-card-actions] .beasy-primary-action i { font-size: 0.9375rem; margin: 0; }
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card [data-beasy-card-secondary-actions] { gap: 0.375rem; }
  [data-beasy-carousel-kind="product"][data-beasy-mobile-slides="2"] item-card [data-beasy-card-secondary-actions] button { width: 2.25rem; height: 2.25rem; }
}
