/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
:root {
    --product-gallery-width: 100%;
    --theme-button-font-weight: 400;
    --description-max-width: 740px;
    --product-element-spacing: 0px;
    --thumbs-spacing: 100px
}
#header [data-row*="bottom"] {
  margin-bottom: 30px;
}
.button.bouton-contact {
  width: 100%;
  --product-element-spacing: 30px;
}
.stock.out-of-stock {
  display: none;
}
.custom-image-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* largeur mini */
    gap: 10px;
}
.custom-image-grid figure:first-child {
    grid-column-start: 2; 
}
.custom-image-grid .grid-item {
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* cases carrées */
    overflow: hidden;
    border: 1px solid #ddd;
}
.ct-header-search.ct-toggle svg path, .ct-header-search.ct-toggle svg line, .ct-cart-item.ct-offcanvas-trigger svg rect, .ct-cart-item.ct-offcanvas-trigger svg path {
  stroke: var(--theme-palette-color-2);
}
.ct-header-search.ct-toggle:hover svg path, .ct-cart-item.ct-offcanvas-trigger:hover svg rect {
  fill: var(--theme-palette-color-5);
}
#search-modal form .ct-search-form-controls button {
  --theme-icon-size: 50% !important;
}
#search-modal form .ct-search-form-controls button:hover svg path {
  fill: var(--theme-palette-color-5);
}
.custom-image-grid .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wc-block-product-filter-chips__count {
  display: none;
}
.wc-block-product-filter-chips__item {
  border-color: transparent !important;
}
.wc-block-product-filter-chips__item:focus {
  outline: none !important;
}
[data-footer*="type-1"] .ct-footer [data-row*="middle"] .widget-title {
  margin-bottom: 5px;
}
.ct-default-gallery .product-entry-wrapper, .ct-stacked-gallery .product-entry-wrapper {
  margin-bottom: 60px;
}
.custom-image-grid .grid-item.empty {
    background: #eee; /* Couleur ou visuel pour la case vide */
}
.custom-image-grid .description {
  display: flex;
  align-items: center;
}
.ct-back-to-top {
  padding: 8px !important;
  border: 1px solid var(--theme-palette-color-2);
}
.ct-media-container [class*="gallery__trigger"], .ct-columns-top-gallery .ct-media-container [class*="gallery__trigger"] {
  opacity: 0;
  transition: opacity .12s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.ct-media-container:hover [class*="gallery__trigger"] {
  opacity: 1;
}
.ct-language-switcher {
  font-style: italic !important;
}
.ct-header .ct-cart-item .ct-dynamic-count-cart {
  top: 12px;
  width: 6px;
  height: 6px;
  min-width: 6px;
}
.ct-header-trigger .ct-icon {
  width: 60px;
  height: 16px;
}
.ct-header-trigger .ct-icon > rect {
  height: 0.5px;
  rx: 0 !important;
  transform: scaleX(2.5);
}
#offcanvas .ct-toggle-close {
  margin-right: auto;
  margin-left: 0;
  display: none;
}
#offcanvas .ct-panel-actions {
    display: none;
}
#offcanvas .ct-button-ghost.ct-toggle-close {
  display: block;
}
nav[class*="menu"] li:hover > .ct-menu-link {
  /* text-decoration: underline; */
}
.wc-block-product-filters__open-overlay {
  border: 1px solid color-mix(in srgb,currentColor 40%,transparent) !important;
  display: flex;
  flex: 1;
}
.woocommerce-MyAccount-content header h2 {
  margin-bottom: 0 !important;
}
.single-product .price:empty, .post-type-archive-product .price:empty {
  display: block;
  width: 6px;
  height: 6px;
  background: transparent;
  border-radius: 50%;
}
.post-type-archive-product .price:empty {
  margin-top: 10px;
}
.wc-block-product-filter-chips__items [data-wp-context*='"selected":true'] span {
    color: var(--theme-palette-color-1);
}
.wc-block-product-filter-chips__item:hover {
  color: var(--theme-palette-color-1);
}
.single_add_to_cart_button.added {
  display: none !important;
}
.swiper-button-prev:after {
  transition: filter 0.3s ease;
  filter: brightness(0) saturate(100%) invert(100%);
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28.1' height='75.9' viewBox='0 0 18.1 35.9'%3E%3Cpolyline points='17.9 .2 .4 18.1 17.9 35.8' fill='none' stroke='%23010101' stroke-miterlimit='10' stroke-width='.5'/%3E%3C/svg%3E") !important;
}
.swiper-button-next:after {
  transition: filter 0.3s ease;
  filter: brightness(0) saturate(100%) invert(100%);
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28.1' height='75.9' viewBox='0 0 18.1 35.9'%3E%3Cpolyline points='.2 35.8 17.7 17.9 .2 .2' fill='none' stroke='%23010101' stroke-miterlimit='10' stroke-width='.5'/%3E%3C/svg%3E") !important;
}
.swiper-button-prev:hover:after, .swiper-button-next:hover:after {
    filter: brightness(0) saturate(100%); /* Noir */
}
.site-logo-container:hover svg circle {
  fill: var(--theme-palette-color-5);
}
[data-products] .product > :last-child {
  margin-top: 10px;
}

nav[class*="menu"] .current-product_cat-ancestor  .ct-menu-link {
  color: var(--wp--preset--color--palette-color-1);
}
.form-message.error {
  grid-area: 2 / 1 / 3 / 3;
}
.arteo-form {
  display: grid;
  max-width: 700px;
  margin: 0 auto;
  gap: 20px;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(2, 1fr);
}
.arteo-contact-form-wrapper h3 {
  font-size: 24px;
  text-align: center;
}
.ct-header-content-block p {
  margin-block-end: 0;
}
.carousel-home {
  width: 100%;
  height: 100%;
  text-align: center;
}
.carousel-home img {
  height: 100%;
  object-position: center;
  object-fit: contain;
}
.flickity-slider.home {
  height: calc(100vh - 300px);
}
.flickity-slider.home .flickity-button {
  background-color: transparent;
}
.flickity-slider.home  .flickity-button:focus {
  box-shadow: none;
}
.flickity-slider.home .flickity-button-icon {
  fill: none;
  stroke-width: 1;
  stroke: var(--theme-palette-color-2);
}
.flickity-slider.home .flickity-prev-next-button {
  width: 64px;
  height: 64px;
}
.flickity-slider.home .flickity-prev-next-button .flickity-button-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
@media (min-width: 1000px) {
   .ct-default-gallery .product-entry-wrapper {
    gap: 60px;
   }
}
/* 📱 Sur mobile : 1 colonne */
@media (max-width: 768px) {
    .custom-image-grid {
        grid-template-columns: 1fr !important;
    }
    .custom-image-grid figure:first-child {
        grid-column-start: 1; 
    }
}

.carousel {
  background: #FAFAFA;
}
.hero-section.is-width-constrained {
    /* --theme-block-max-width: 780px; */
}
.flickity-slider {
    margin: 0 auto;
}
.carousel-cell {
    width: 120px;
    height: 165px;
    margin-right: 40px;
}
.carousel-cell a {
  color: #000;
  font-size: 0.75rem;
}
.carousel-cell span {
  display: inline-block;
  line-height: 1;
  margin-top: 10px;
}
.carousel-cell.current-cat a img, .carousel-cell a:hover img {
  border: 1px solid var(--theme-palette-color-1);
}
.round-poster {
  border-radius: 50%;
  min-width: 130px;
  height: 130px;
  object-fit: cover;
  border: 1px solid #2a597557;
}
.post-navigation .item-label {
  display: none;
}
.post-navigation .item-title {
  font-weight: 300 !important;
}
.ct-dynamic-count-cart {
  text-indent: -30px;
  color: transparent;
  overflow: hidden;
  min-width: 5px;
  height: 5px;
  top: 12px;
  left: 8px;
  width: 5px;
}
.single_add_to_cart_button.button.alt {
  border: none;
}
#gspb_container-id-gsbp-1ae4c2a.gspb_container > * {
  flex: 1;
}
#search-modal form .ct-search-form-controls .wp-element-button {
  border: none;
}
.wc-block-product-filter-chips__item {
  color:  var(--theme-palette-color-2) !important;
}
:where(.wc-block-product-filters),
:where(.wc-block-product-filters).is-overlay-opened {
  display:flex !important;
}
:where(.wc-block-product-filters) .wc-block-product-filters__open-overlay,
:where(.wc-block-product-filters) .wc-block-product-filters__overlay-footer,
:where(.wc-block-product-filters) .wc-block-product-filters__overlay-header,
:where(.wc-block-product-filters).is-overlay-opened .wc-block-product-filters__open-overlay,
:where(.wc-block-product-filters).is-overlay-opened .wc-block-product-filters__overlay-footer,
:where(.wc-block-product-filters).is-overlay-opened .wc-block-product-filters__overlay-header {
  display:none !important;
}
:where(.wc-block-product-filters) .wc-block-product-filters__overlay,
:where(.wc-block-product-filters).is-overlay-opened .wc-block-product-filters__overlay {
  background:inherit !important;
  color:inherit !important;
  inset:0 !important;
  pointer-events:auto !important;
  position:relative !important;
  transition:none !important;
}
:where(.wc-block-product-filters) .wc-block-product-filters__overlay-wrapper,
:where(.wc-block-product-filters).is-overlay-opened .wc-block-product-filters__overlay-wrapper {
  background:inherit !important;
  color:inherit !important;
  height:auto !important;
  width:auto !important;
}
:where(.wc-block-product-filters) .wc-block-product-filters__overlay-dialog,
:where(.wc-block-product-filters).is-overlay-opened .wc-block-product-filters__overlay-dialog {
  background:inherit !important;
  color:inherit !important;
  position:relative !important;
  transform:none !important;
}
:where(.wc-block-product-filters) .wc-block-product-filters__overlay-content,
:where(.wc-block-product-filters).is-overlay-opened .wc-block-product-filters__overlay-content {
  background:inherit !important;
  color:inherit !important;
  flex-grow:1 !important;
  overflow:visible !important;
  padding:0 !important;
}
div.tnp-profile {
  min-width: 30vw;
}
.artist-link a {
  color: var(--theme-palette-color-2) !important;
}
.artist-link a:hover {
  color: var(--theme-palette-color-1) !important;
}
@media screen and (max-width: 600px) {
  .ct-header-trigger .ct-icon {
    width: 30px;
  }
  [data-column*="copyright"] {
    order: 2;
  }
  .arteo-form {
    	grid-template-rows: repeat(3, 1fr);
	grid-template-columns: 1fr;
	gap: 20px;
   }
   div.tnp-profile {
    min-width: 100%;
  }
  .flickity-slider.home {
    height: calc(100vh - 300px); 
    height: calc(100dvh - 400px);
  }
  .tnp-subscription-minimal input.tnp-email {
    width: 100%;
  }
  .tnp-subscription-minimal form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* li.product:not(.cm-no-action) span.price {
  display: inline-flex;
  padding: 0.15rem 0.25rem;
  background: #eee;
  margin-top: 5px;
  width: fit-content;
  color: #5b5b5b;
} */