/*
 * v0.17 layer, loaded after main.css, woocommerce.css and arabic.css.
 * Written with logical properties (inline-start / inline-end) so the same rules work in French (LTR)
 * and Arabic (RTL) — no separate -rtl file is needed.
 *
 * 1. Product photos: no magnifier icon, the photo itself opens the enlarged view
 * 2. Single product page: bigger main photo
 * 3. Featured product card (« Produit vedette »): bigger photo
 * 4. « Nos Incontournables » circles
 * 5. Side / narrow product lists (Top 4, best sellers, search, widgets, mini-cart)
 * 6. « Nos marques partenaires »
 * 7. Phones: product grid with two products per row (reference: twoProduct.png)
 */

/* 1. Gallery: the WooCommerce magnifier button is hidden; clicking or tapping the photo opens the
      lightbox (assets/js/v17.js). Hover zoom on desktop is unchanged. */
.woocommerce-product-gallery__trigger{display:none!important}
.woocommerce-product-gallery__image,.woocommerce-product-gallery__image a,.woocommerce-product-gallery__image .zoomImg{cursor:zoom-in}

/* 2. Single product page: the photo column takes more room (about 56 % instead of 50 %). */
.se-product-overview{grid-template-columns:minmax(0,1.28fr) minmax(0,1fr);gap:44px}
.woocommerce div.product .se-product-gallery .woocommerce-product-gallery__wrapper{border-radius:var(--se-radius-card);overflow:hidden;background:#fff}
.woocommerce div.product .se-product-gallery .woocommerce-product-gallery__image img{width:100%;aspect-ratio:1;object-fit:contain;background:#fff}
.woocommerce div.product .se-product-gallery .flex-control-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px!important;padding:0}
.woocommerce div.product .se-product-gallery .flex-control-thumbs li{width:auto!important;float:none!important;margin:0!important}
.woocommerce div.product .se-product-gallery .flex-control-thumbs img{aspect-ratio:1;object-fit:contain;background:#fff;border:1px solid var(--se-color-border);border-radius:10px;opacity:.75;transition:opacity var(--se-transition-duration),border-color var(--se-transition-duration)}
.woocommerce div.product .se-product-gallery .flex-control-thumbs img.flex-active,.woocommerce div.product .se-product-gallery .flex-control-thumbs img:hover{opacity:1;border-color:var(--se-color-primary)}
@media (max-width:1023px){
	.se-product-overview{grid-template-columns:minmax(0,1fr);gap:26px}
	.se-product-gallery{max-width:760px;width:100%}
}
@media (max-width:600px){
	/* Phone: the photo uses the full screen width. */
	.se-product-gallery{max-width:none;margin-inline:calc(var(--se-page-gutter) * -1);width:auto}
	.woocommerce div.product .se-product-gallery .woocommerce-product-gallery__wrapper{border-radius:0}
	.woocommerce div.product .se-product-gallery .flex-control-thumbs{padding-inline:var(--se-page-gutter);gap:8px}
}

/* 3. « Produit vedette »: the photo gets as much room as the text. */
.se-promo-product{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center}
.se-promo-product .se-promo-media{width:100%;max-width:none!important;max-height:none!important;aspect-ratio:1;padding:10px!important;background:#fff;border:1px solid var(--se-color-border);border-radius:16px;display:flex;align-items:center;justify-content:center;justify-self:stretch!important}
.se-promo-product .se-promo-media img{width:100%;height:100%;object-fit:contain;border-radius:10px}
@media (max-width:1023px){
	.se-promo-product{grid-template-columns:minmax(0,1fr)}
	.se-promo-product .se-promo-media{order:-1;max-width:320px!important;justify-self:center!important}
}
@media (max-width:640px){
	.se-promo-product{grid-template-columns:minmax(0,1fr)!important;padding:18px!important;gap:16px}
	.se-promo-product .se-promo-media{order:-1;width:100%;max-width:100%!important;aspect-ratio:4/3}
}

/* 4. « Nos Incontournables »: photos fill more of the circle (no important part cut off). */
.se-category-tiles img{padding:9%!important;object-fit:contain;background:var(--se-color-circle)}
.se-category-tiles .se-tile-ico{background:var(--se-color-circle)}
@media (max-width:1023px){
	.se-musts .se-category-tiles{display:flex!important;flex-wrap:wrap;justify-content:center;gap:16px 10px}
	.se-musts .se-category-tiles>a{flex:0 0 calc((100% - 30px) / 4);max-width:130px;font-size:13px}
	.se-musts .se-category-tiles img,.se-musts .se-category-tiles .se-tile-ico{width:100%!important;height:auto!important;aspect-ratio:1;max-width:120px;margin:0 auto 8px!important}
}
@media (max-width:600px){
	.se-musts .se-category-tiles{gap:14px 8px}
	.se-musts .se-category-tiles>a{flex-basis:calc((100% - 24px) / 4);font-size:12.5px;line-height:1.25}
	.se-musts .se-category-tiles img,.se-musts .se-category-tiles .se-tile-ico{max-width:none;padding:7%!important}
	.se-musts .se-category-tiles .se-tile-ico .se-cat-ico{width:42%;height:42%}
}

/* 5. Side and narrow product lists: clear, uncropped thumbnails. */
.se-home .se-rated .se-product-card{grid-template-columns:76px minmax(0,1fr)!important;gap:4px 12px!important;align-items:center}
.se-home .se-bestsellers .se-product-card{grid-template-columns:72px minmax(0,1fr)!important;gap:4px 12px!important;align-items:center}
.se-rated .se-product-picture,.se-bestsellers .se-product-picture{aspect-ratio:1;background:#fff;border:1px solid var(--se-color-border);border-radius:10px;padding:4px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.se-rated .se-product-picture img,.se-bestsellers .se-product-picture img{width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important;margin:0!important}
.se-rated .se-card-actions,.se-bestsellers .se-card-actions,.se-rated .se-price-ask,.se-bestsellers .se-price-ask{display:none!important}
.se-search-results img{width:56px;height:56px;padding:3px;background:#fff;border:1px solid var(--se-color-border)}
.product_list_widget li img,.woocommerce ul.product_list_widget li img,.woocommerce-mini-cart-item img,.woocommerce ul.cart_list li img{width:64px!important;height:64px!important;object-fit:contain;background:#fff;border:1px solid var(--se-color-border);border-radius:8px;padding:3px}
@media (max-width:1400px) and (min-width:1024px){
	.se-home .se-rated .se-product-card{grid-template-columns:64px minmax(0,1fr)!important}
}

/* 6. « Nos marques partenaires » */
.se-partners{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px;padding:8px 0 24px}
.se-partner{display:flex;align-items:center;justify-content:center;min-width:0;height:100px;padding:16px 18px;background:var(--se-color-surface);border:1px solid var(--se-color-border);border-radius:var(--se-radius-card);color:var(--se-color-navigation);transition:border-color var(--se-transition-duration),box-shadow var(--se-transition-duration),transform var(--se-transition-duration)}
a.se-partner:hover{border-color:var(--se-color-primary);box-shadow:var(--se-shadow-md);transform:translateY(-2px);color:var(--se-color-navigation)}
.se-partner-logo{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.se-partner-logo img{display:block;max-width:100%;max-height:58px;width:auto;height:auto;object-fit:contain}
.se-partner-logo.is-word{font-size:18px;font-weight:var(--se-font-weight-bold);letter-spacing:.04em;text-transform:uppercase;text-align:center;line-height:1.15}
@media (max-width:1023px){.se-partners{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}}
@media (max-width:600px){
	.se-partners{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding-bottom:10px}
	.se-partner{flex:0 0 calc((100% - 20px) / 3);height:74px;padding:10px}
	.se-partner-logo img{max-height:40px}
	.se-partner-logo.is-word{font-size:14px}
}

/* Shop / category pages on phones: filters behind a « Filtrer les produits » button, products first. */
.se-filter-toggle{display:none}
@media (max-width:600px){
	.se-filter-toggle{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:0 0 14px;padding:11px 16px;border:1px solid var(--se-color-border)!important;border-radius:var(--se-radius-control);background:var(--se-color-surface)!important;color:var(--se-color-text)!important;font-weight:var(--se-font-weight-semibold);box-shadow:none!important}
	.se-filter-toggle::before{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:var(--se-filter-icon) center/contain no-repeat;mask:var(--se-filter-icon) center/contain no-repeat}
	.se-filter-toggle[aria-expanded=true]{border-color:var(--se-color-primary)!important;color:var(--se-color-primary)!important}
	.se-catalog-layout .se-filter-sidebar{display:none}
	.se-catalog-layout .se-filter-sidebar.is-open{display:block}
}

/* 7. Phones: two products per row, card like the reference (photo, heart top corner, cart / WhatsApp
      button on the photo's bottom corner, centred name, category and price). */
.se-product-card .se-price-ask,.woocommerce ul.products li.product .se-price-ask{display:none!important}
@media (max-width:600px){
	ul.products,.products.se-products,.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-inline:0!important}
	.se-carousel ul.products{display:flex!important}
	.se-carousel .se-product-card{flex:0 0 calc((100% - 10px) / 2)!important}
	.woocommerce ul.products li.product.se-product-card,.products .se-product-card,.se-home .se-rated .se-product-card,.se-home .se-bestsellers .se-product-card{
		display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"pic" "opt" "title" "cat" "price";align-content:start;gap:0!important;
		position:relative;padding:9px 9px 14px!important;margin:0!important;border:0!important;border-radius:16px!important;background:var(--se-color-card)!important;box-shadow:none!important;text-align:center!important;min-width:0}
	.se-product-card .se-product-picture{grid-area:pic!important;position:relative;display:flex!important;align-items:center;justify-content:center;aspect-ratio:1;width:100%;margin:0!important;padding:0!important;background:#fff;border:0!important;border-radius:12px;overflow:hidden}
	.se-product-card .se-product-picture>a{display:flex!important;align-items:center;justify-content:center;width:100%;height:100%}
	.woocommerce ul.products li.product .se-product-picture img,.se-product-card .se-product-picture img{width:var(--se-m-img,100%)!important;height:var(--se-m-img,100%)!important;max-width:100%!important;object-fit:contain!important;padding:0!important;margin:0 auto!important;border-radius:0!important;aspect-ratio:auto!important}
	/* Heart only, in the top corner (quick view / compare stay on computers and on the product page). */
	.se-product-card .se-card-actions{display:flex!important;position:absolute;top:6px;inset-inline-end:6px;inset-inline-start:auto;flex-direction:column;gap:6px;opacity:1!important;transform:none!important;z-index:3}
	.se-product-card .se-card-actions [data-se-quick],.se-product-card .se-card-actions [data-se-save=compare]{display:none!important}
	.se-product-card .se-card-actions [data-se-save=wishlist]{display:grid!important;place-items:center;width:32px!important;height:32px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#fff!important;color:var(--se-color-text)!important;box-shadow:0 2px 8px rgb(0 0 0 / 12%)!important}
	.se-product-card .se-card-actions [data-se-save=wishlist][aria-pressed=true]{color:#e0442f!important}
	.se-product-card .se-card-actions .se-icon{width:16px;height:16px}
	.se-product-card .se-product-badge{inset-inline-start:6px;inset-inline-end:auto;top:6px;z-index:3}
	.se-product-card .se-choose-option{grid-area:opt;margin:8px 0 0!important;font-size:12px!important;padding:6px!important}
	.se-product-card .woocommerce-loop-product__title,.se-home .se-rated .woocommerce-loop-product__title,.se-home .se-bestsellers .woocommerce-loop-product__title{grid-area:title;margin:12px 2px 4px!important;padding:0!important;font-size:13px!important;font-weight:var(--se-font-weight-semibold)!important;line-height:1.3!important;color:var(--se-color-text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:0}
	.se-product-card .woocommerce-loop-product__title a{color:inherit}
	.se-product-card .se-product-categories{grid-area:cat;display:block!important;margin:0 0 6px!important;font-size:12px!important;line-height:1.3;color:var(--se-color-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
	.se-product-card .se-product-categories a{color:inherit}
	.se-product-card .price,.woocommerce ul.products li.product .price{grid-area:price;display:block!important;margin:0!important;font-size:13.5px!important;font-weight:var(--se-font-weight-semibold)!important;color:var(--se-color-price)!important}
	.se-product-card .price del{font-size:12px;opacity:.7}
	.se-product-card .se-price-ask,.woocommerce ul.products li.product .se-price-ask{display:block!important}
	/* Cart / WhatsApp button: a square on the photo's bottom corner. */
	.se-product-card .se-card-cart{grid-area:pic!important;display:block!important;align-self:end;justify-self:start;z-index:3;width:auto!important;margin:0!important;padding:0!important}
	.se-product-card .se-card-cart .button,.se-product-card .se-card-cart .se-ask-price.button{display:grid!important;place-items:center;width:38px!important;min-width:0!important;height:38px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;border-start-end-radius:12px!important;background:var(--se-color-card-action)!important;color:var(--se-color-button-text)!important;font-size:0!important;line-height:0!important;box-shadow:none!important;overflow:hidden}
	.se-product-card .se-card-cart .se-ask-price span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
	.se-product-card .se-card-cart .se-ask-price svg,.se-product-card .se-card-cart .se-ask-price .se-brand-icon{display:block!important;width:20px!important;height:20px!important;min-width:20px;margin:0!important;fill:currentColor}
	.se-product-card .se-card-cart a.button:not(.se-ask-price)::before{content:"";width:20px;height:20px;background:currentColor;-webkit-mask:var(--se-cart-icon) center/contain no-repeat;mask:var(--se-cart-icon) center/contain no-repeat}
	.se-product-card .se-card-cart a.button.loading::before{opacity:.4}
	.se-product-card .se-card-cart a.button.added::before{-webkit-mask-image:var(--se-check-icon);mask-image:var(--se-check-icon)}
	.se-product-card .se-card-cart a.button::after{display:none!important}
	.se-product-card .se-card-cart .added_to_cart{display:none!important}

	/* Section tabs above product grids: plain text tabs, one line, swipeable. */
	.se-selection-heading{display:block}
	.se-tab-buttons{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:22px!important;padding:2px 0 10px;scrollbar-width:none;margin-inline:calc(var(--se-page-gutter) * -1);padding-inline:var(--se-page-gutter)}
	.se-tab-buttons::-webkit-scrollbar{display:none}
	.se-tab-buttons button{flex:0 0 auto;padding:4px 0!important;border:0!important;border-radius:0!important;background:none!important;color:var(--se-color-text)!important;font-size:17px!important;font-weight:var(--se-font-weight-semibold)!important;white-space:nowrap;box-shadow:none!important}
	.se-tab-buttons [aria-pressed=true]{color:var(--se-color-primary)!important;background:none!important}
}
:root{
	--se-filter-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E");
	--se-cart-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.6'/%3E%3Ccircle cx='18' cy='20' r='1.6'/%3E%3Cpath d='M2 3h3l2.6 11.6a1.6 1.6 0 0 0 1.6 1.3h8.6a1.6 1.6 0 0 0 1.6-1.2L21 7H6.2'/%3E%3Cpath d='M12 9.5h5M14.5 7v5'/%3E%3C/svg%3E");
	--se-check-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E");
}
