/*
Theme Name: Ediscounts Marketplace
Template: emallshop
Version: 1.8.0
Description: Theme enfant marketplace Ediscounts, bleu nuit et orange.
Text Domain: ediscounts-marketplace
*/
:root{--ed-navy:#10294c;--ed-orange:#f97316;--ed-light:#f4f6f9;--ed-ink:#172554}body{font-family:Arial,Helvetica,sans-serif;color:var(--ed-ink);background:#fff} .ed-shell{max-width:1600px;margin:auto;padding:0 24px}.ed-top{background:var(--ed-navy);color:white;font-size:14px}.ed-top .ed-shell,.ed-header .ed-shell,.ed-nav .ed-shell{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.ed-top a{color:white}.ed-header{background:white;border-bottom:1px solid #e5e7eb}.ed-logo{width:260px;max-width:100%;height:auto}.ed-search{display:flex;flex:1;min-width:220px;border:1px solid #cbd5e1;border-radius:8px;overflow:hidden}.ed-search input{flex:1;min-width:0;border:0;padding:13px;margin:0}.ed-search button,.ed-cta,.ed-cat-toggle{background:var(--ed-orange);color:#172554;font-weight:700;border:0;border-radius:6px;padding:13px 20px;cursor:pointer;text-decoration:none}.ed-search button{border-radius:0}.ed-actions{display:flex;gap:18px;align-items:center}.ed-actions a,.ed-nav a{color:var(--ed-navy);font-weight:700;text-decoration:none}.ed-nav{border-bottom:1px solid #e5e7eb;background:#fff}.ed-nav .ed-shell{justify-content:flex-start}.ed-nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0;flex-wrap:wrap}.ed-cat-wrap{position:relative}.ed-cat-panel{position:absolute;top:100%;left:0;z-index:1000;background:#fff;box-shadow:0 8px 24px #0002;padding:16px;min-width:240px;border-radius:8px}.ed-cat-panel ul{display:block}.ed-cat-panel li{padding:7px}.ed-cat-panel[hidden]{display:none}.ed-main{padding:22px 0 40px}.ed-hero{display:grid;grid-template-columns:55% 45%;overflow:hidden;border-radius:16px;background:linear-gradient(120deg,#10294c,#07539a);color:white}.ed-hero-copy{padding:clamp(24px,4vw,65px)}.ed-hero h1{color:white;font-size:clamp(28px,3.4vw,54px);line-height:1.12;margin:12px 0}.ed-hero p{color:white;font-size:19px}.ed-hero img{width:100%;height:100%;object-fit:cover;border-left:7px solid var(--ed-orange)}.ed-cta{display:inline-block;margin-top:12px}.ed-trust{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #e5e7eb;border-radius:12px;margin:14px 0 26px;padding:16px 0}.ed-trust div{padding:8px 14px;border-right:1px solid #e5e7eb;display:flex;gap:10px;align-items:center}.ed-trust div:last-child{border:0}.ed-trust svg{width:28px;height:28px;flex-shrink:0;stroke:var(--ed-navy);fill:none;stroke-width:1.8}.ed-trust small{display:block;color:#475569}.ed-section-title{font-size:30px;color:var(--ed-navy);margin:28px 0 20px}.ed-section-title:after{content:'';display:block;width:75px;height:3px;background:var(--ed-orange);margin-top:8px}.ed-univers{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}.ed-univers a{background:var(--ed-light);border:1px solid #e5e7eb;border-radius:12px;padding:12px;text-align:center;color:var(--ed-navy);font-weight:700;text-decoration:none}.ed-univers img{width:100%;height:100px;object-fit:contain;display:block;margin-bottom:8px}.ed-footer{background:var(--ed-navy);color:#fff;padding:36px 0 20px}.ed-footer a,.ed-footer h2{color:#fff}.ed-footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}.ed-footer ul{list-style:none;padding:0}.ed-footer li{margin:8px 0}.ed-footer h2{font-size:19px}.ed-footer-bottom{border-top:1px solid #ffffff40;margin-top:24px;padding-top:16px}.woocommerce ul.products li.product{border:1px solid #e5e7eb;border-radius:10px;padding:12px;box-sizing:border-box}.woocommerce ul.products li.product .price{color:var(--ed-navy);font-weight:700}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--ed-orange);color:#172554;border-radius:6px}.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--ed-orange);color:#172554}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #2563eb;outline-offset:3px}.ed-skip{position:absolute;left:-9999px}.ed-skip:focus{left:10px;top:10px;background:white;z-index:99999;padding:10px}@media(max-width:900px){.ed-univers{grid-template-columns:repeat(4,1fr)}.ed-trust{grid-template-columns:repeat(2,1fr)}.ed-footer-grid{grid-template-columns:repeat(2,1fr)}.ed-hero{grid-template-columns:1fr}.ed-hero img{height:240px;border-left:0;border-top:5px solid var(--ed-orange)}.ed-search{order:3;flex-basis:100%}}@media(max-width:480px){.ed-shell{padding-left:12px;padding-right:12px}.ed-logo{width:180px}.ed-actions{gap:10px;font-size:13px}.ed-univers{grid-template-columns:repeat(2,1fr)}.ed-nav ul{gap:12px;font-size:14px}.ed-footer-grid{grid-template-columns:1fr}.ed-top .ed-shell{gap:6px;font-size:12px}.ed-trust div{border:0}.ed-hero-copy{padding:24px}}

/* 1.1.0: light surfaces and responsive WooCommerce imagery. */
body,#ed-content{background:#fff;color:#243247}
.ed-top{background:#f1f5f9;color:#172554;border-bottom:1px solid #dbe3ee}
.ed-top a{color:#172554}
.ed-hero{background:#eef3f8;color:#172554;grid-template-columns:minmax(0,55fr) minmax(0,45fr)}
.ed-hero h1,.ed-hero p{color:#172554}
.ed-hero img{min-width:0;max-width:100%;object-fit:contain;background:#fff}
.ed-footer{background:#f1f5f9;color:#243247;border-top:1px solid #dbe3ee}
.ed-footer a,.ed-footer h2{color:#172554}.ed-footer-bottom{border-color:#cbd5e1}
.ed-search button,.ed-cta,.ed-cat-toggle,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:#f97316;color:#172554}
#ed-content img{max-width:100%;height:auto;box-sizing:border-box}
#ed-content .ed-univers img{height:100px;object-fit:contain}
#ed-content .ed-hero img{height:100%}
.woocommerce ul.products li.product{min-width:0;background:#fff;overflow-wrap:anywhere;box-sizing:border-box}
.woocommerce ul.products li.product a img,.woocommerce ul.products li.product .product-image img,.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;background:#fff;margin:0 auto 12px;box-sizing:border-box}
.woocommerce div.product div.images,.woocommerce div.product div.summary,.woocommerce-product-gallery,.woocommerce-product-gallery__wrapper{min-width:0;max-width:100%;box-sizing:border-box}
.woocommerce div.product div.images .woocommerce-product-gallery__image{min-width:0;box-sizing:border-box}
.woocommerce div.product div.images .woocommerce-product-gallery__image img:not(.zoomImg){display:block;width:100%;max-width:100%;height:auto;max-height:560px;object-fit:contain;background:#fff;margin:auto}
.woocommerce div.product div.images .flex-viewport{max-width:100%;overflow:hidden}
.woocommerce div.product div.images .flex-control-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:10px;padding:12px 0;margin:0;list-style:none}
.woocommerce div.product div.images .flex-control-thumbs li{float:none;width:auto;min-width:0;margin:0;padding:0;list-style:none}
.woocommerce div.product div.images .flex-control-thumbs img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;border:1px solid #dbe3ee;border-radius:6px;padding:4px;background:#fff;box-sizing:border-box}
.woocommerce div.product div.images .flex-control-thumbs img.flex-active{border:2px solid #e66b12}
.woocommerce div.product .summary{overflow-wrap:anywhere}
@media(max-width:900px){.ed-hero{grid-template-columns:minmax(0,1fr)}#ed-content .ed-hero img{height:240px}}
@media(max-width:767px){.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none!important;width:100%!important;max-width:100%;margin-left:0;margin-right:0}.woocommerce div.product div.images .woocommerce-product-gallery__image img:not(.zoomImg){max-height:420px}.woocommerce ul.products li.product{padding:8px}.ed-search{min-width:0}.ed-search button{padding:10px}.ed-header .ed-shell{gap:10px}}

/* 1.2.0: live WooCommerce universe cards and responsive category grid. */
.ed-universe-section{margin:0 0 32px}
.ed-universe-section .ed-univers{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;align-items:stretch}
.ed-universe-section .ed-universe-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-width:0;padding:14px 10px;background:#fff;border:1px solid #dbe3ee;border-radius:12px;color:#172554;text-decoration:none;box-shadow:0 2px 6px #10294c09;transition:border-color .15s,box-shadow .15s}
.ed-universe-section .ed-universe-card:hover,.ed-universe-section .ed-universe-card:focus-visible{border-color:#e66b12;box-shadow:0 3px 12px #10294c16;color:#172554}
.ed-universe-image{display:flex;width:100%;height:112px;align-items:center;justify-content:center;overflow:hidden;background:#fff;border-radius:8px;color:#64748b}
#ed-content .ed-universe-section .ed-universe-image img{width:100%;height:100%;max-width:100%;object-fit:contain;display:block;margin:0;padding:0;box-shadow:none}
.ed-universe-label{display:block;width:100%;font-size:14px;line-height:1.35;overflow-wrap:anywhere;white-space:normal;text-align:center}
@media(max-width:1050px){.ed-universe-section .ed-univers{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:680px){.ed-universe-section .ed-univers{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ed-universe-section .ed-universe-card{padding:10px 8px}.ed-universe-image{height:94px}}
@media(prefers-reduced-motion:reduce){.ed-universe-section .ed-universe-card{transition:none}}

/* 1.3.0: balanced homepage departments, native WooCommerce products. */
.ed-home-products{margin-top:32px}
.ed-product-intro{color:#475569;margin:-8px 0 24px;font-size:16px;line-height:1.55}
.ed-product-section{margin:0 0 28px;padding:20px;border:1px solid #dbe3ee;border-radius:14px;background:#fff;min-width:0}
.ed-product-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid #e5e7eb}
.ed-product-section-heading h3{margin:0;color:#10294c;font-size:clamp(20px,2.1vw,25px);line-height:1.3}
.ed-product-section-links{display:flex;flex-wrap:wrap;gap:7px 14px;align-items:center}
.ed-product-section-links a{font-size:13px;font-weight:700;color:#172554;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.ed-product-section-links a:hover{color:#9a3412}
.ed-product-section .woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch;margin:0!important;padding:0!important;list-style:none}
.ed-product-section .woocommerce ul.products::before,.ed-product-section .woocommerce ul.products::after{display:none!important;content:none!important}
.ed-product-section .woocommerce ul.products li.product{float:none!important;clear:none!important;width:auto!important;max-width:100%;margin:0!important;min-width:0;box-sizing:border-box;overflow-wrap:anywhere;position:relative}
.ed-product-section .woocommerce ul.products li.product a img{width:100%;max-width:100%;aspect-ratio:1/1;object-fit:contain;background:#fff}
.ed-home-shop-link{text-align:center;margin:12px 0 32px}
@media(max-width:850px){.ed-product-section .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ed-product-section{padding:14px}}
@media(max-width:480px){.ed-product-section{padding:10px}.ed-product-section-heading{gap:8px}.ed-product-section .woocommerce ul.products li.product{padding:8px}.ed-product-section-links a{font-size:12px}.ed-product-intro{font-size:14px}}

/* 1.4.0: all real catalogue departments visible, without artificial artwork. */
#ed-content .ed-universe-section .ed-universe-card{justify-content:space-between;gap:12px;padding:12px;background:#fff}
#ed-content .ed-universe-section .ed-universe-image{height:clamp(110px,11vw,160px);min-width:0;background:#fff}
#ed-content .ed-universe-section .ed-universe-image img{object-fit:contain;max-height:100%;width:100%;height:100%;margin:0}
#ed-content .ed-universe-section .ed-universe-card--no-image{justify-content:center;min-height:110px}
#ed-content .ed-universe-section .ed-universe-label{font-size:15px;line-height:1.35;min-height:2.7em;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}
@media(max-width:680px){#ed-content .ed-universe-section .ed-universe-card{padding:9px;gap:8px}#ed-content .ed-universe-section .ed-universe-image{height:112px}#ed-content .ed-universe-section .ed-universe-label{font-size:14px}}

/* 1.5.0: six curated universes, balanced rows at tablet width. */
@media (min-width:681px) and (max-width:1050px){.ed-universe-section .ed-univers{grid-template-columns:repeat(3,minmax(0,1fr));}}


/* 1.6.0 : homepage performance, responsive images, lightweight cards. */
#ed-content .ed-home-products .ed-home-card{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;background:#fff;padding:12px;border:1px solid #dbe3ee;border-radius:10px}
#ed-content .ed-home-card-link{display:block;color:#172554;text-decoration:none;min-width:0}
#ed-content .ed-home-card-link:hover .ed-home-card-title{text-decoration:underline;text-underline-offset:3px}
#ed-content .ed-home-card-media{display:block;width:100%;aspect-ratio:1/1;overflow:hidden;background:#fff;border-radius:6px}
#ed-content .ed-home-products .ed-home-card-media img{width:100%;height:100%;max-width:100%;aspect-ratio:1;object-fit:contain;display:block;margin:0;padding:0;box-shadow:none;background:#fff}
#ed-content .ed-home-card-title{font:700 clamp(13px,1.15vw,16px)/1.4 Arial,Helvetica,sans-serif;color:#172554;overflow-wrap:anywhere;margin:10px 0 0}
#ed-content .ed-home-card-price{font-size:clamp(15px,1.35vw,19px);font-weight:700;color:#172554;margin-top:auto;overflow-wrap:anywhere}
#ed-content .ed-home-card-price del{color:#475569;font-size:.82em;opacity:1}
#ed-content .ed-home-card-price ins{background:transparent;color:#172554;text-decoration:none}
#ed-content .ed-home-card-button{display:block;margin-top:3px;padding:10px 8px;border-radius:6px;text-align:center;background:#f97316;color:#172554;font:700 13px/1.3 Arial,Helvetica,sans-serif;text-decoration:none}
#ed-content .ed-home-card-button:hover,#ed-content .ed-home-card-button:focus-visible,.ed-cta:hover,.ed-cta:focus-visible,.ed-cat-toggle:hover,.ed-search button:hover{background:#10294c;color:#fff;text-decoration:none}
.ed-trust small a{color:#334155;text-decoration:underline;text-underline-offset:2px}
.ed-universe-label,.ed-product-intro{color:#243247}
.ed-main,.ed-header,.ed-footer{font-family:Arial,Helvetica,sans-serif}
@media(max-width:480px){#ed-content .ed-home-products .ed-home-card{padding:8px;gap:6px}#ed-content .ed-home-card-button{font-size:12px;padding:10px 5px}}


/* 1.8.0: lightweight, accessible purchase actions in homepage product cards. */
#ed-content .ed-home-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:stretch;margin-top:3px;min-width:0}
#ed-content .ed-home-card-actions .ed-home-card-details,#ed-content .ed-home-card-actions .ed-home-buy-button{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;width:100%;min-width:0;box-sizing:border-box;margin:0;padding:8px 6px;border:1px solid #10294c;border-radius:6px;white-space:normal;overflow-wrap:anywhere;font:700 13px/1.3 Arial,Helvetica,sans-serif;letter-spacing:normal;text-transform:none;text-decoration:none;box-shadow:none;cursor:pointer}
#ed-content .ed-home-card-actions .ed-home-card-details{background:#fff;color:#10294c}
#ed-content .ed-home-card-actions .ed-home-buy-button{background:#f97316;color:#172554;border-color:#f97316}
#ed-content .ed-home-card-actions .ed-home-card-details:hover,#ed-content .ed-home-card-actions .ed-home-buy-button:hover{background:#10294c;color:#fff;border-color:#10294c;text-decoration:none}
#ed-content .ed-home-card-actions a:focus-visible,#ed-content .ed-home-card-actions button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
#ed-content .ed-home-buy-form{display:flex;align-items:stretch;margin:0;padding:0;min-width:0;width:100%}
/* Two buttons remain side by side whenever the card has enough room. */
@media(max-width:620px){#ed-content .ed-home-card-actions{grid-template-columns:1fr;gap:6px}#ed-content .ed-home-card-actions .ed-home-card-details,#ed-content .ed-home-card-actions .ed-home-buy-button{font-size:13px}}
