/*
	Theme Name: Hello Elementor
	Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
	Description: Hello Elementor is a lightweight and minimalist WordPress theme that works seamlessly with Elementor.
	Author: Elementor Team
	Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
	Version: 3.3.0
	License: GNU GPL v3 or later.
	Text Domain: hello-elementor
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
 */

/* Global Styles */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Body */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main {
  max-width: 1440px;
  padding: 24px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin-block-start: 0.5rem;
  margin-block-end: 1rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-block-start: 0;
  margin-block-end: 0.9rem;
}

/* Links */
a {
  background-color: transparent;
  text-decoration: none;
  color: #CC3366;
}

a:hover, a:active {
  color: #333366;
}

a:not([href]):not([tabindex]) {
  color: inherit;
  text-decoration: none;
}

a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus {
  color: inherit;
  text-decoration: none;
}

a:not([href]):not([tabindex]):focus {
  outline: 0;
}

/* Text-level Semantics */
abbr[title] {
  border-block-end: none;
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

/* Embedded Content */
img {
  border-style: none;
  height: auto;
  max-width: 100%;
}

/* Interactive Content */
details {
  display: block;
}

summary {
  display: list-item;
}

figcaption {
  font-size: 16px;
  color: #333;
  line-height: 1.4;
  font-style: italic;
  font-weight: 400;
}

/* Miscellaneous */
template {
  display: none;
}

[hidden] {
  display: none;
}

/* Print */
@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    break-inside: avoid;
    border: 1px solid #cccccc;
  }
  thead {
    display: table-header-group;
  }
  tr,
  img {
    break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    break-after: avoid;
  }
}

/* Form Styling */
label {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  border: solid 1px #666;
  border-radius: 3px;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: #333;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  width: auto;
  -webkit-appearance: button;
}

button,
[type="submit"],
[type="button"] {
  display: inline-block;
  font-weight: 400;
  color: #CC3366;
  text-align: center;
  white-space: nowrap;
  background-color: transparent;
  border: 1px solid #CC3366;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 3px;
  transition: all 0.3s;
}

button:focus:not(:focus-visible),
[type="submit"]:focus:not(:focus-visible),
[type="button"]:focus:not(:focus-visible) {
  outline: none;
}

button:hover,
button:focus,
[type="submit"]:hover,
[type="submit"]:focus,
[type="button"]:hover,
[type="button"]:focus {
  color: #fff;
  background-color: #CC3366;
  text-decoration: none;
}

button:not(:disabled),
[type="submit"]:not(:disabled),
[type="button"]:not(:disabled) {
  cursor: pointer;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

select {
  display: block;
}


/**
 * Table styling
 */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Almarai', sans-serif;
  color: var(--e-global-color-secondary);
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  font-size: 0.9em;
}

/* En-tête des tableaux */
table caption+thead tr:first-child td,
table caption+thead tr:first-child th,
table colgroup+thead tr:first-child td,
table colgroup+thead tr:first-child th,
table thead:first-child tr:first-child td,
table thead:first-child tr:first-child th,
table thead th {
  background-color: var(--e-global-color-primary);
  color: var(--e-global-color-secondary);
  font-family: 'Cairo', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 14px 10px;
  border-top: 1px solid var(--e-global-color-primary);
}

/* Cellules du tableau */
table td,
table th {
  padding: 14px 10px;
  font-size: 16px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid rgba(128, 128, 128, 0.3);
}

/* Lignes du corps */
table tbody tr {
  border-bottom: 1px solid #e9d9b6;
}

/* Lien dans les cellules */
table td a {
  color: var(--e-global-color-secondary);
  text-decoration: none;
  font-weight: 600;
}
table td a:hover {
  text-decoration: underline;
  color: #a57c43;
}

/* Pied de tableau */
table tfoot th,
table tfoot td {
  background-color: #f9f4ec;
  border-top: 1px solid var(--e-global-color-primary);
  font-weight: bold;
  font-family: 'Cairo', sans-serif;
  padding: 12px;
  font-size: 16px;
  text-align: center;
}

table tbody tr:hover {
  background-color: #fafafa;
}

/**
 * List styling
 */
dl,
dt,
dd,
ol,
ul,
li {
  margin-block-start: 0;
  margin-block-end: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

/* ======================= */
/*      LANGUE / SWITCH    */
/* ======================= */
li.trp-language-switcher-container a {
  flex-direction: row-reverse;
  display: flex;
  gap: 8px;
  align-items: center;
}

#trp-floater-ls.trp-bottom-right {
  display: none;
}

.trp-language-switcher-container ul {
  top: 30px !important;
  max-width: 50px !important;
  right: 10px;
}

/* ======================= */
/*        GLOBAL RTL       */
/* ======================= */
html[lang="fr-FR"] {
  direction: ltr;
  text-align: left;
}
html[lang="fr-FR"] .home,
html[lang="fr-FR"] header.elementor-98,
html[lang="fr-FR"] footer {
  direction: rtl;
  text-align: right;
}
html[lang="fr-FR"] nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
  direction: ltr;
}
html[lang="fr-FR"] .top-page p,
html[lang="fr-FR"] .elementor-12 .elementor-element.elementor-element-6aaa8c85 .woocommerce,
html[lang="fr-FR"] .my-account .elementor-icon-box-wrapper {
  direction: ltr;
  flex-direction: row !important;
}

/* ======================= */
/*     MENU ET HEADER      */
/* ======================= */
header .elementor-nav-menu__container.elementor-nav-menu--dropdown {
  top: 40px !important;
}
html[lang="fr-FR"] header .elementor-nav-menu__container.elementor-nav-menu--dropdown {
  right: -24px;
}
.elementor-menu-cart__toggle .elementor-button {
  flex-direction: row-reverse !important;
  border: none !important;
  padding: 0 !important;
  font-family: var(--e-global-typography-secondary-font-family);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}
.elementor-menu-cart__toggle .elementor-button .elementor-button-text {
  position: relative;
  display: inline-block;
  background-color: var(--e-global-color-primary);
  border-radius: 11px;
  padding: 3px 8px;
  top: 16px;
  left: 16px;
  z-index: 2;
}
.btn-slider svg path{
  fill:#fff;
}
html[lang="fr-FR"] span.elementor-button-content-wrapper {
  flex-direction: row !important;
  display: flex;
}
html[lang="fr-FR"] .button-link svg {
  margin-right: 0 !important;
  margin-left: 19px;
  transform: rotate(180deg);
}
html[lang="fr-FR"] .woocommerce div.product {
  display: flex;
  justify-content: center;
}
html[lang="fr-FR"] .woocommerce div.product .product_title {
  text-align: left;
}
html[lang="fr-FR"]  .woocommerce div.product div.summary .price bdi {
  display: flex;
  flex-direction: row;
}
.elementor-menu-cart__container {
  left: 0 !important;
  right: auto !important;
}
.elementor-menu-cart__main {
  direction: ltr !important;
  padding: 24px !important;
}
.elementor-menu-cart__footer-buttons {
  display: block !important;
}
.elementor-menu-cart__close-button {
  align-self: flex-start !important;
}
.elementor-menu-cart__product-remove {
  bottom: 66px !important;
  left: 12px !important;
  right: auto !important;
  border: 1px solid red !important;
}
html[lang="fr-FR"] .elementor-menu-cart__product-remove {
  left: auto !important;
  right: 12px !important;
}
.elementor-menu-cart__product-remove:after,
.elementor-menu-cart__product-remove:before {
  background: red !important;
}

.elementor-menu-cart__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ======================= */
/*   RECHERCHE HEADER      */
/* ======================= */
#searchIcon {
  cursor: pointer;
}
#searchWidget {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#searchWidget.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ======================= */
/*     FOOTER ET LIENS     */
/* ======================= */
html[lang="fr-FR"] .footer-links .elementor-nav-menu--main ul {
  direction: ltr;
  margin-left: 60px;
}
html[lang="ar"] .footer-links .elementor-nav-menu--main ul {
  margin-right: 12%;
}
html[lang="fr-FR"] .footer-contact li,
html[lang="fr-FR"] .footer-contact li a {
  justify-content: flex-end !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger{
  right:auto !important;
}
/* ======================= */
/*     PAGES PRODUITS      */
/* ======================= */
html[lang="fr-FR"] .woocommerce-mini-cart__empty-message::after {
  content: "Il n'y a aucun produit dans le panier.";
  visibility: visible;
  position: absolute;
  top: 0;
  right: 0;
  color: inherit;
  font-size: inherit;
}
html[lang="fr-FR"] .woocommerce div.product form.cart {
  display: flex;
  flex-direction: row;
}
a.yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--anchor.yith-wcwl-add-to-wishlist-button--added.yith-wcwl-add-to-wishlist-button--single {
  display: inline-flex;
  width: 100%;
  padding: 12px;
}
html[lang="fr-FR"] .product_meta {
  text-align: left;
}
html[lang="fr-FR"] .woocommerce-product-attributes-ar {
  direction: ltr !important;
}
html[lang="fr-FR"] .woocommerce-product-attributes-ar h3,
html[lang="fr-FR"] .woocommerce-product-attributes-ar li{
  text-align: left;
}
span.woocommerce-Price-amount.amount {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}
span.woocommerce-Price-amount.amount:hover {
  color: var(--e-global-color-secondary);
}

/* ======================= */
/*         PANIER          */
/* ======================= */
html[lang="fr-FR"] .woocommerce-order,
html[lang="fr-FR"] .woocommerce .woocommerce-ordering {
  direction: ltr;
  margin: 0 0 1em;
}
html[lang="fr-FR"] aside.shop-filters {
  position: absolute;
  float: left;
  top: -91px;
  right: 0;
  left: auto;
}
html[lang="fr-FR"] .wp-block-woocommerce-checkout.is-loading {
  display: flex;
  flex-direction: row-reverse;
}
html[lang="fr-FR"] .wp-block-woocommerce-checkout-totals-block,
html[lang="fr-FR"] .is-large.wc-block-cart .wc-block-components-sidebar {
  direction: ltr;
}

.wp-block-woocommerce-checkout-totals-block,
.is-large.wc-block-cart .wc-block-components-sidebar {
  border: 1px solid var(--e-global-color-primary);
  border-radius: 10px !important;
  padding: 20px;
}

html[lang="fr-FR"]  .is-large.wc-block-cart {
  direction: ltr;
  text-align: left;
}

.is-large.wc-block-cart .wc-block-cart__totals-title {
  font-size: 1.2em !important;
}
span.wc-block-formatted-money-amount.wc-block-components-totals-item__value {
  margin-bottom: 0 !important;
  font-weight: 700;
}
.wp-block-woocommerce-checkout-order-summary-block {
  border: none !important;
}
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
  color: red !important;
  font-size: 14px !important;
}
input.wc-block-components-quantity-selector__input {
  padding: 8px !important;
}
input#radio-control-0-free_shipping\:1 {
  padding: 0 !important;
}
.wc-block-components-totals-shipping .wc-block-components-totals-shipping__via{
  display: none;
}
/* =============================== */
/*   GLOBAL PRODUITS ET CARDS     */
/* =============================== */
header.woocommerce-products-header {
  padding: 2rem 0;
}
.elementor-loop-container {
  overflow: hidden;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
body.woocommerce-cart {
  direction: rtl;
  font-family: var(--e-global-typography-text-font-family, 'Cairo', sans-serif);
}
.product-card-inner,
.woocommerce ul.products li.product .inner-wrap {
  position: relative;
  align-items: center;
  min-height: 350px;
  overflow: hidden;
  direction: rtl;
  text-align: right;
}
.product-info {
  max-width: 424px;
  min-height: 330px;
  box-shadow: -30px 45px 70px #0000001A;
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  margin: 8px;
}
.product-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.product-image img {
  box-shadow: -20px 20px 40px #83838340,-30px 45px 70px #0000001A,-20px 20px 40px #83838340,-30px 45px 70px #0000001A;
  transition: transform 0.3s ease, filter 0.3s ease;
  max-width: 257px;
  max-height: 357px;
}

.product-image:hover img {
  transform: scale(1.05);
  filter: brightness(1.05) contrast(1.05) saturate(1.1);
}

/* =============================== */
/*           TITRES               */
/* =============================== */
.woocommerce-loop-product__title,
.woocommerce div.product .product_title {
  font-family: var(--e-global-typography-primary-font-family);
  font-weight: 700;
  color: var(--e-global-color-secondary);
  text-align: right;
}
.woocommerce-loop-product__title {
  font-size: 28px;
  max-width: 226px;
  line-height: 34px;
  margin-bottom: 0;
  height: 72px;
  overflow: hidden;
}

.woocommerce div.product .product_title {
  font-size: 2rem;
  line-height: 44px;
  margin-bottom: 12px;
}

/* =============================== */
/*   DIVERS / DÉCORATION          */
/* =============================== */
a.product-img-before {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  transform: rotate(10deg);
}
.elementor-element-60a7c6b .elementor-heading-title,
.elementor-element-f0c3251 .elementor-heading-title {
  text-decoration: underline;
}
.btn-slider svg,
.button-link svg {
  fill: var(--e-global-color-secondary) !important;
  font-size: 8px;
  margin-right: 19px;
}
.btn-slider svg {
  fill: #fff;
  font-size: 10px;
  margin-right: 20px;
}
.avantages,
.bloc-bg {
  max-width: 1120px;
  margin: 0 auto;
}
.avantages {
  position: relative;
  top: 70px;
  z-index: 2;
}

/* ===============================
 AUTEUR / MÉTADONNÉES
=================================*/

.product_meta span a {
  font-family: var(--e-global-typography-primary-font-family);
  font-weight: 700;
  color: var(--e-global-color-secondary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 1px solid var(--e-global-color-primary);
  background-color: var(--e-global-color-primary);
  color: var(--e-global-color-secondary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  border-bottom: 2px solid var(--e-global-color-primary);
}

/* ===============================
 PRIX
=================================*/

.price span.woocommerce-Price-amount.amount,
.wc-block-components-formatted-money-amount {
  font-size: 28px;
  line-height: 34px;
  color: var(--e-global-color-primary);
  font-weight: 900;
  margin-bottom: 1rem;
  display: block;
  text-align: right;
}

.price bdi {
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
}

.woocommerce .quantity .qty {
  width: 3.631em;
  text-align: center;
  padding: 11px !important;
}

/* ===============================
 BOUTON PANIER
=================================*/

.woocommerce a.button,
.woocommerce div.product form.cart .button {
  position: relative;
  background-color: transparent !important;
  color: var(--e-global-color-secondary);
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 40px 16px 24px;
  transition: all 0.3s ease;
  display: inline-block;
  overflow: hidden;
  z-index: 1;
}
html[lang="fr-FR"] .woocommerce a.button {
    font-size: 15px;
    padding: 16px 40px 16px 12px;
}
.woocommerce a.button::before,
.woocommerce div.product form.cart .button::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: url(https://ahlulbaytbookstore.tn/wp-content/uploads/2025/04/panier.png) no-repeat;
  background-size: contain;
  z-index: 2;
}

.woocommerce a.button::after,
.woocommerce div.product form.cart .button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--e-global-color-primary);
  transition: width 0.4s ease;
  z-index: -1;
}

.woocommerce a.button:hover,
.woocommerce div.product form.cart .button:hover {
  color: #fff !important;
  border-color: var(--e-global-color-primary);
}

.woocommerce a.button:hover::before,
.woocommerce div.product form.cart .button:hover::before {
  background: url(https://ahlulbaytbookstore.tn/wp-content/uploads/2025/05/panier-blanc.png) no-repeat;
  background-size: contain !important;
}

.woocommerce a.button:hover::after,
.woocommerce div.product form.cart .button:hover::after {
  width: 100%;
}

a.added_to_cart.wc-forward {
  display: none;
}

/* ===============================
 ACTIONS & FAVORIS
=================================*/

.product-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

a.add-to-favorites {
  display: flex;
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 8px;
  padding: 8px;
  width: 50px;
  height: 50px;
  justify-content: center;
}

a.yith-wcwl-add-to-wishlist-button--anchor {
  display: flex ;
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 8px;
  justify-content: center;
  width: 50px;
  height: 50px;
}

a.yith-wcwl-add-to-wishlist-button--anchor:hover{
  border: 1px solid var( --e-global-color-primary );
}

svg.yith-wcwl-add-to-wishlist-button-icon{
  fill:var( --e-global-color-secondary );
  color: var(--e-global-color-secondary) !important;
}

a.yith-wcwl-add-to-wishlist-button--anchor:hover svg path,
.yith-wcwl-add-to-wishlist-button--added svg {
  fill:var( --e-global-color-primary );
  color: var(--e-global-color-primary) !important;
}

/* ===============================
 PRODUITS RÉCENTS
=================================*/

.new-products {
  position: relative;
  z-index: 2;
}

.new-products::before {
  content: "";
  background: url('https://ahlulbaytbookstore.tn/wp-content/uploads/2025/04/inclinision-2.png') no-repeat;
  background-size: cover;
  position: absolute;
  width: 100%;
  height: 500px;
  top: 0;
  left: 0;
  z-index: -1;
}

.woocommerce ul.products::before {
  display: none;
}

/* ===============================
 PANIER (CART)
=================================*/

.wp-block-woocommerce-cart.alignwide {
  max-width: 1440px;
  margin: auto;
}

.wc-block-cart-items__header {
  background-color: var(--e-global-color-primary);
  color: var(--e-global-color-secondary);
  font-weight: bold;
  text-align: center;
}

.wc-block-cart-items__row {
  border-bottom: 1px solid var(--e-global-color-primary);
  transition: background-color 0.2s ease-in-out;
}

.wc-block-cart-items__row:hover {
  background-color: var(--e-global-color-primary)14;
}

table.wc-block-cart-items .wc-block-components-product-name {
  font-family: 'Cairo', sans-serif;
  color: var(--e-global-color-secondary);
  text-decoration: none;
  font-weight: bold;
  font-size: 22px;
}

.wc-block-components-product-metadata__description p {
  color: #000;
  font-size: 16px;
}

.wc-block-components-product-price__value {
  font-family: 'Cairo', sans-serif;
  font-weight: bold;
  font-size: 20px;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.7em !important;
}

.wp-block-woocommerce-cart-order-summary-totals-block,
.wc-block-components-totals-wrapper {
  border-top: 1px solid var(--e-global-color-primary) !important;
}

.wc-block-cart__sidebar {
  padding: 20px !important;
  border-radius: 10px;
  border: 1px solid var(--e-global-color-primary);
  margin-top: 30px;
}

.wc-block-cart__totals-title {
  font-family: 'Cairo', sans-serif;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--e-global-color-primary);
  padding-bottom: 10px;
}

.wc-block-components-totals-item {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 16px;
}

.wc-block-components-button:not(.is-link){
  background-color: transparent;
  color: var(--e-global-color-secondary);
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 10px;
}
.wc-block-components-button:not(.is-link):hover{
    color: var(--e-global-color-primary);
  border: 1px solid var(--e-global-color-primary);
}

/* === Messages de validation === */
.woocommerce-error, .woocommerce-info, .woocommerce-message {
  border-top-color: var(--e-global-color-primary);
  background-color: #fff8f0;
  color: var(--e-global-color-secondary);
  font-family: 'Cairo', sans-serif;
}

/* === Boutons de checkout et généraux === */
.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row a {
  background-color: transparent;
  color: var(--e-global-color-secondary);
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 10px;
  padding: 8px 24px;
}

.wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row a {
  padding: 8px 50px 8px 24px;
}

html[lang="fr-FR"] .wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row a {
  padding: 8px 24px 8px 50px;
}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row a:hover {
  color: var(--e-global-color-primary);
  border: 1px solid var(--e-global-color-primary);
}

html[lang="fr-FR"] .wc-block-components-checkout-return-to-cart-button svg {
  left: 20px;
}

.rtl .wc-block-components-checkout-return-to-cart-button svg {
  margin-right: 1rem;
}

/* === Checkout layout === */
.wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row {
  align-items: center;
  display: flex;
  justify-content: center !important;
  gap: 24px;
}

/* === RTL Layout === */
.elementor-12 .elementor-element.elementor-element-6aaa8c85 .woocommerce {
  display: flex;
  gap: 24px;
  direction: rtl;
  font-family: var(--e-global-typography-primary-font-family);
}

/* === Navigation Mon Compte === */
.woocommerce-MyAccount-navigation {
  padding: 20px;
  max-width: 250px;
  float: right;
}

.woocommerce-MyAccount-navigation ul {
  display: grid;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 24px;
}

.woocommerce-MyAccount-navigation a {
  font-family: var(--e-global-typography-primary-font-family);
  display: block;
  padding: 12px 20px;
  background: linear-gradient(to right, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
  background-size: 200% 100%;
  background-position: left center;
  color: #ffffff;
  border: 1px solid var(--e-global-color-secondary);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 400;
  text-align: center;
  transition: all 0.4s ease, background-position 0.4s ease;
}

.woocommerce-MyAccount-navigation a:hover {
  background-position: right center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* === Contenu Mon Compte === */
.woocommerce-MyAccount-content {
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.woocommerce-MyAccount-content p {
  color: #000;
}

.woocommerce-account .addresses .title .edit,
.woocommerce-MyAccount-content a {
  color: var(--e-global-color-primary);
  font-weight: 700;
  text-decoration: underline;
}

.woocommerce-MyAccount-content a:hover {
  opacity: 0.7;
}

/* === Fiche produit === */
.woocommerce div.product form.cart {
  margin: 2rem 0;
}

.woocommerce div.product form.cart div.quantity {
  float: right;
  margin-left: 12px;
}

span.woocommerce-Price-amount.amount:hover {
  color: var(--e-global-color-secondary);
}

.elementor-loop-container {
  overflow: hidden;
}

/* === Panier (cart) === */
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
  font-family: 'Cairo', sans-serif;
  color: var(--e-global-color-secondary);
  text-decoration: none;
  font-weight: bold;
  font-size: 22px;
}

.wc-block-components-product-metadata__description p {
  color: #000;
  font-size: 16px;
}

.wc-block-components-product-price__value {
  font-family: 'Cairo', sans-serif;
  font-weight: bold;
  font-size: 20px;
}

.wc-block-components-formatted-money-amount {
  color: var(--e-global-color-primary);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.7em !important;
}

.wp-block-woocommerce-cart-order-summary-totals-block,
.wc-block-components-totals-wrapper {
  border-top: 1px solid var(--e-global-color-primary) !important;
}

.wc-block-cart__sidebar {
  padding: 20px !important;
  border-radius: 10px;
  border: 1px solid var(--e-global-color-primary);
  margin-top: 30px;
}

.wc-block-cart__totals-title {
  font-family: 'Cairo', sans-serif;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--e-global-color-primary);
  padding-bottom: 10px;
}

.wc-block-components-totals-item {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 16px;
}

/* === Filtres & Popup === */
.filter-icon {
  color: #fff;
  background-color: var(--e-global-color-primary);
  padding: 12px 24px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.filter-icon:hover {
  background-color: var(--e-global-color-primary) !important;
  color: #ffffffe3;
}

.filter-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  height: 500px;
  overflow-y: scroll;
  top: 50px;
  background-color: #fff;
  padding: 24px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.popup-content label {
  margin-bottom: 12px;
}

.popup-content button.btn.btn-primary {
  background-color: transparent;
  border: 1px solid var(--e-global-color-secondary);
  color: var(--e-global-color-secondary);
}

.popup-content button.btn.btn-primary:hover {
  border: 1px solid var(--e-global-color-primary);
  color: var(--e-global-color-primary);
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked,
input#checkbox-control-1 {
  padding: 0 !important;
}

.livre-details ul > li {
  margin-bottom: 8px;
}

/* === WooCommerce Checkout Styling RTL === */

/* === Structure générale du checkout === */
.woocommerce-checkout .woocommerce {
  max-width: 1440px;
  margin: auto;
  padding: 20px;
}

/* === Titres === */
.woocommerce-checkout h2,
.woocommerce-checkout h3,
.wc-block-components-checkout-order-summary__title-text {
  color: var(--e-global-color-secondary) !important;
  font-weight: bold !important;
  font-size: 20px;
}

/* === Formulaires (facturation, livraison, commentaires) === */
.woocommerce-checkout input,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  padding: 8px 24px !important;
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.wc-block-checkout__add-note .wc-block-components-checkbox {
  margin-bottom: 12px !important;
}

/* === Bouton Commander / Connexion / Inscription === */
#place_order,
.woocommerce-checkout .button,
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit,
button.woocommerce-Button,
button.woocommerce-button {
  background-color: transparent !important;
  color: var(--e-global-color-secondary);
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 10px;
  padding: 12px 20px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 12px 0;
}

#place_order:hover,
.woocommerce-checkout .button:hover,
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit:hover,
button.woocommerce-Button:hover {
  color: var(--e-global-color-primary);
  border-color: var(--e-global-color-primary);
}

/* === Résumé de commande === */
.wc-block-components-order-summary .wc-block-components-order-summary-item {
  display: block !important;
  padding-bottom: 20px !important;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--e-global-color-primary);
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image > img {
  max-width: 100px !important;
  width: 100px !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__total-price {
  display: none;
  margin-top: 1rem;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
  top: 120px !important;
  right: 35%;
  left: auto !important;
}

html[lang="fr-FR"] .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
  left: 35% !important;
  right: auto;
}

/* Nom du produit dans le résumé */
.wc-block-checkout__sidebar .wc-block-components-product-name {
  height: 52px;
  overflow: hidden;
}

/* Totaux / tableau de révision commande */
.wp-block-woocommerce-checkout-totals-block,
.wc-block-components-totals-wrapper,
.wc-block-checkout__terms.wc-block-checkout__terms--with-separator {
  border-top: 1px solid var(--e-global-color-primary) !important;
}

.woocommerce-checkout-review-order-table {
  border-top: 1px solid var(--e-global-color-primary);
  margin-top: 30px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  color: var(--e-global-color-secondary);
  font-size: 16px;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
  font-weight: bold;
}

/* === Paiement === */
.woocommerce-checkout .wc_payment_methods {
  border: 1px solid var(--e-global-color-primary);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  background: #fff;
}

.woocommerce-checkout .wc_payment_method label {
  color: var(--e-global-color-secondary);
  font-weight: 600;
}

.woocommerce-checkout .payment_box {
  background: #f9f9f9;
  border: 1px dashed var(--e-global-color-primary);
  padding: 15px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 15px;
}

/* === Connexion / mot de passe === */
p.woocommerce-LostPassword.lost_password a {
  color: var(--e-global-color-primary);
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme {
  display: inline-flex !important;
  gap: 8px;
}

/* === Pagination === */
.woocommerce nav.woocommerce-pagination ul {
  border: 1px solid transparent !important;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
  padding-top: 5px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  font-family: var(--e-global-typography-primary-font-family);
  display: block;
  padding: .75em 1em !important;
  background: linear-gradient(to right, var(--e-global-color-secondary) 0%, var(--e-global-color-primary) 100%);
  background-size: 200% 100%;
  background-position: left center;
  color: #ffffff;
  border: 1px solid var(--e-global-color-secondary);
  border-radius: 10px;
  font-weight: 400;
  text-align: center;
  margin-left: 5px;
  text-decoration: none;
  transition: all 0.4s ease, background-position 0.4s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background-position: right center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* === Galerie produit === */
.woocommerce-product-gallery img {
  max-height: 427px;
  object-fit: contain;
}

/* === Filtres et divers === */
.product-card-inner .yith-wcwl-add-to-wishlist-button__label {
  display: none;
  margin-left: 5px;
  transition: opacity 0.3s ease;
}

.custom-woocommerce-grid {
  position: relative;
}

aside.shop-filters {
  position: absolute;
  float: left;
  top: -91px;
  left: 0;
  right: auto;
}

input#radio-control-0-flat_rate\:2,
input#checkbox-control-5,
input#checkbox-control-3,
input#checkbox-control-4 {
  padding: 0 !important;
}

.woocommerce-MyAccount-navigation a br {
  display: none;
}


/********** FOOTER ************/
.footer-links{
  margin:0 auto;
}
.footer-links .elementor-nav-menu--main ul {
  display: grid;
  grid-template-columns: repeat(3, 3fr);
  gap: 0 16px;
}
.footer-links .elementor-nav-menu--main ul li{
  width: fit-content;
  justify-content: flex-start;
}

/**
 * RESPONSIVE
 */

 /*** Desktop */
 @media (min-width: 1024px) {
  .product-card-inner, 
  .woocommerce ul.products li.product .inner-wrap {
    display: grid;
    grid-template-columns: 34% 66%;
    align-items: self-start;
    gap: 0;
  }

  .product-info {
    padding: 30px 50px 30px 10px;
}

  .product-image img {
    max-width: 150px;
  }

  .elementor-element.elementor-element-19d4d01.e-con-full.product-info.e-flex.e-con.e-child {
    position: relative;
    z-index: 1;
  }
}

@media (min-width:1200px){
  .product-image {
    position: relative;
    right: 40px;
    top: 37px;
  }
  
  .product-image img{
    max-width: 200px;
  }

  .product-info {
    padding: 30px 100px 30px 43px;
    margin: 52px 40px 110px 5px;
  }

  }

    @media (min-width:1356px) {
 .product-image img{
    max-width: 257px;
  }

  }

  @media (min-width:767px) {
    .woocommerce ul.products{
      display: grid;
      grid-template-columns: repeat(2,1fr);
      gap: 32px;
    }
  }

 /*** Tablette */
 @media (max-width: 1200px){
  .main-menu .elementor-nav-menu--main .elementor-item {
    padding-left: 8px !important;
    padding-right: 7px !important;
    font-size: 0.9rem !important;
  }

  .top-header .elementor-heading-title {
    font-size: 11px !important;
  }

  .elementor-nav-menu .elementor-item {
    font-size: 14px;
  }

.wc-block-components-order-summary-item__description {
  padding: 0 !important;
}

.is-medium .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
  padding-top: 36px;
  display: none;
}

.woocommerce-checkout h2, .woocommerce-checkout h3 {
  font-size: 16px;
}

.wc-block-components-product-metadata {
  font-size: 14px !important;
}

.wc-block-components-order-summary-item__description {
  padding: 0 !important;
}
.is-medium .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
  padding-top: 36px;
  display: none;
}

 .woocommerce-checkout h2, .woocommerce-checkout h3 {
    font-size: 16px;
  }

  .wc-block-components-product-metadata {
    font-size: 14px !important;
  }
  .product-image {
    position: relative;
    right: 30px;
    top: 80px;
}
}

@media  screen and (min-width:1200px) and (max-width:1356px) {
  
  .product-image img {
    max-width: 200px;
  }
  .product-info {
    padding: 30px 60px 30px 0;
    margin-bottom: 50px;
}
}

 @media (max-width:1024px) {
  .brand {
    margin-right: 50px;
  }

  .wc-block-components-sidebar-layout {
    display: flex;
    flex-direction: column-reverse;
  }

  .wc-block-components-sidebar-layout .wc-block-components-main {
    width: 100% !important;
  }

  .woocommerce-checkout .form-row {
    width: 100% !important;
    margin-bottom: 15px;
  }

  .is-large .wc-block-checkout__sidebar.is-sticky {
    position: relative !important;
  }

  .wc-block-components-sidebar.wc-block-checkout__sidebar.wp-block-woocommerce-checkout-totals-block {
    display: block !important;
  }

  .wc-block-components-sidebar {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 4rem !important;
  }

  .wp-block-woocommerce-checkout {
    padding-top: 0 !important;
  }

  #place_order,
  .woocommerce-checkout .button {
    font-size: 16px;
    padding: 10px 16px;
  }

  .woocommerce-checkout-review-order-table th,
  .woocommerce-checkout-review-order-table td {
    font-size: 14px;
  }

  .is-mobile .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
    display: none !important;
  }

  .menu-container {
    position: absolute;
    right: 12px;
    top: 24px;
    width: fit-content;
  }

  .my-account span.elementor-icon-box-title {
    display: none;
  }

  .footer-links .elementor-nav-menu--main ul li {
    width: 100%;
    justify-content: center;
  }

  html[lang="fr-FR"] .footer-links .elementor-nav-menu--main ul {
    direction: rtl;
    margin-left: 0;
  }

  html[lang="ar"] .footer-links .elementor-nav-menu--main ul {
    margin-right: 0;
  }

  .elementor-icon-list-text {
    text-align: center;
  }

  html[lang="fr-FR"] .footer-contact li,
  html[lang="fr-FR"] .footer-contact li a {
    justify-content: center !important;
  }

  .product-card-inner,
  .woocommerce ul.products li.product .inner-wrap {
    max-width: 375px;
    margin: auto;
    display: block;
  }

  .product-image img {
    max-width: 200px;
  }

  .product-info {
    min-height: 315px;
    margin-top: 80px;
    padding: 30px;
  }

  .product-image {
    margin: auto;
    display: flex;
    text-align: center;
    padding-bottom: 2rem;
  }

  .woocommerce-loop-product__title {
    font-size: 20px;
    line-height: 24px;
    height: auto;
  }

  .woocommerce ul.products li.product .price {
    font-size: 18px;
  }

  .woocommerce ul.products li.product a.button {
    font-size: 14px;
    padding: 6px 12px;
  }
}

@media (max-width: 767px) {
  table table {
    font-size: 0.8em;
  }
  table table th,
  table table td {
    padding: 7px;
    line-height: 1.3;
  }
  table table th {
    font-weight: 400;
  }

  .wc-block-cart-items__row {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto;
    width: 100%;
    }

    .elementor-12 .elementor-element.elementor-element-6aaa8c85 .woocommerce {
      display: block;
    
    }
    .woocommerce-MyAccount-navigation ul {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
    }
    .woocommerce-MyAccount-navigation {
      float: none;
      max-width: 100%;
      margin-bottom: 20px;
    }
    
    .woocommerce-MyAccount-content {
      margin-right: 0;
    }

    .woocommerce ul.products {
      display: block;
    }

    .product-info {
      min-height: auto;
      padding: 16px;
  }

    .wc-block-cart-item__image {
    grid-column: 1;
    grid-row: 1;
    }
    
    .wc-block-cart-item__product {
    grid-column: 2;
    grid-row: 1;
    }
    
    .wc-block-cart-item__total {
    grid-column: 2 / span 2;
    grid-row: 2;
    align-self: end;
    }
    table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
      font-size: 15px;
    }
    .wc-block-components-product-price__value {
      font-size: 16px;
    }
    .wc-block-components-product-metadata__description p {
      font-size: 13px;
    }
    .wc-block-components-sidebar {
      margin-top: 2rem !important;
    }
    
    .product-card-inner, 
    .woocommerce ul.products li.product .inner-wrap {
      display: block;
    }
  
    .product-card-inner, .woocommerce ul.products li.product .inner-wrap {
      margin-bottom: 24px;
  }
  
    .elementor-12 .elementor-element.elementor-element-6aaa8c85 .woocommerce {
    display: block;
  
  }

  .woocommerce-MyAccount-navigation {
    float: none;
    max-width: 100%;
    margin-bottom: 20px;
  }
  
  .woocommerce-MyAccount-content {
    margin-right: 0;
  }

  .product-image {
    margin-bottom: 4rem;
    right: 7px;
}

}

@media (max-width:601px){
html[lang="fr-FR"] .footer-links .elementor-nav-menu--main ul {
  display: grid;
  grid-template-columns: repeat(2, 3fr);
}
.elementor-main-swiper .swiper-slide {
  padding: 0 !important;
}

.woocommerce-MyAccount-navigation ul {
display: grid;
grid-template-columns: repeat(2, 2fr);
}

}

/*** Mobile */

@media (max-width: 440px) {
  .woocommerce-MyAccount-navigation ul {
    display: block;
   }
   .woocommerce-MyAccount-navigation ul li{
    margin-bottom: 24px;
   }
}
.yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--single.yith-wcwl-add-to-wishlist-button--anchor {
    width: 100%;
    padding: 10px;
}