/* ===== ZiPiece976 Design System — restyle global pages natives Odoo ===== */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600;700&display=swap');

:root{
  --zp-red:#E31E24;
  --zp-red-dark:#B01519;
  --zp-dark:#1C1C1C;
  --zp-text:#2C2C2C;
  --zp-muted:#8A8984;
  --zp-body:#4A4946;
  --zp-bg:#F5F4F2;
  --zp-bg2:#F0EFED;
  --zp-border:#E4E3DF;
}

body{ font-family:'Barlow','Helvetica Neue',Arial,sans-serif !important; color:var(--zp-text); }
h1,h2,h3,h4,h5,h6{ font-family:'Barlow Condensed',sans-serif !important; font-weight:700; letter-spacing:-.01em; }

/* Boutons primaires (ajouter au panier, valider commande, etc.) */
.btn-primary, .o_wsale_product_btn_primary.btn-primary, .o_website_form_send, .s_website_form_send{
  background-color:var(--zp-red) !important;
  border-color:var(--zp-red) !important;
  font-weight:600;
  border-radius:6px !important;
  transition:background-color 150ms ease-out, box-shadow 150ms ease-out;
}
.btn-primary:hover, .o_wsale_product_btn_primary.btn-primary:hover{
  background-color:var(--zp-red-dark) !important;
  border-color:var(--zp-red-dark) !important;
  box-shadow:0 4px 16px rgba(227,30,36,.35);
}
.btn-outline-primary, .btn-secondary{
  color:var(--zp-red) !important;
  border-color:var(--zp-red) !important;
  border-radius:6px !important;
}
.btn-outline-primary:hover{ background-color:var(--zp-red) !important; color:#fff !important; }

/* Liens et éléments actifs */
a{ color:inherit; }
.text-primary, .oe_currency_value, .product_price{ color:var(--zp-text); }
.o_wsale_products_item_title, .o_wsale_products_item_title a{
  font-family:'Barlow',sans-serif !important;
  font-weight:600 !important;
  color:var(--zp-text) !important;
}

/* ===== Boutique / grille produits (/shop) ===== */
body.o_website_sale_products #products_grid{ font-family:'Barlow',sans-serif; }
.oe_product{
  border:1px solid var(--zp-border) !important;
  border-radius:8px !important;
  overflow:hidden;
  transition:box-shadow 150ms ease-out, transform 150ms ease-out;
}
.oe_product:hover{
  box-shadow:0 4px 16px rgba(0,0,0,.12);
  transform:translateY(-2px);
}
.oe_product .product_price .oe_currency_value{
  font-size:19px !important;
  font-weight:700 !important;
  color:var(--zp-dark) !important;
}
#o_wsale_products_header, .o_wsale_products_header_is_shop{
  font-family:'Barlow',sans-serif;
}
.o_wsale_apply_filter, .dropdown-item.active, .list-group-item.active{
  color:var(--zp-red) !important;
}

/* Pagination */
.pagination .page-item.active .page-link{
  background-color:var(--zp-red) !important;
  border-color:var(--zp-red) !important;
}
.pagination .page-link{ color:var(--zp-text); }
.pagination .page-link:hover{ color:var(--zp-red); }

/* ===== Fiche produit ===== */
#product_detail .product_price .oe_currency_value{
  color:var(--zp-red) !important;
  font-weight:700 !important;
}
#product_detail h1{ font-family:'Barlow Condensed',sans-serif !important; }

/* ===== Panier / Checkout ===== */
#cart_products .o_cart_product, .o_wsale_cart_line{ border-color:var(--zp-border) !important; }
.o_total_card, .oe_website_sale .o_total{ font-family:'Barlow',sans-serif; }
.o_website_sale_checkout .card, #payment_method{
  border-radius:8px !important;
  border-color:var(--zp-border) !important;
}

/* ===== Compte client / Portail ===== */
.o_portal_my_home .list-group-item.active, .o_portal_navbar .active{
  background-color:var(--zp-red) !important;
  border-color:var(--zp-red) !important;
}
.o_portal table thead{ background-color:var(--zp-bg2); }
.badge.bg-success, .badge.text-bg-success{ background-color:#27AE60 !important; }
.badge.bg-warning, .badge.text-bg-warning{ background-color:#F5A623 !important; }

/* ===== Formulaires (contact, login, checkout) ===== */
.form-control, .form-select, input.form-control, textarea.form-control{
  border-color:var(--zp-border) !important;
  border-radius:6px !important;
}
.form-control:focus, .form-select:focus{
  border-color:var(--zp-red) !important;
  box-shadow:0 0 0 .2rem rgba(227,30,36,.15) !important;
}

/* ===== Blog ===== */
.o_wblog_post_card, .blog_post{
  border-radius:8px !important;
  transition:box-shadow 150ms ease-out, transform 150ms ease-out;
}
.o_wblog_post_card:hover{ box-shadow:0 4px 16px rgba(0,0,0,.12); transform:translateY(-2px); }
