/*
Theme Name: DM24 Child
Description: Motyw potomny Blocksy dla Digitalmarket24
Author: Digitalmarket24
Template: blocksy
Version: 1.0.0
Text Domain: dm24-child
*/

/*  ukrycie natywnej stopki Blocksy */DM24 
body > footer#footer:not(.dm24-site-footer),
body > footer.site-footer:not(.dm24-site-footer),
body > .ct-footer:not(.dm24-site-footer),
body > #footer:not(.dm24-site-footer) {
display: none !important;
}

/* DM24 - jasna stopka */
.dm24-site-footer {
    background: #F1F5FA !important;
    color: #596579 !important;
    border-top: 1px solid #DDE5F0 !important;
}

.dm24-site-footer h1,
.dm24-site-footer h2,
.dm24-site-footer h3,
.dm24-site-footer h4 {
    color: #0B245C !important;
}

.dm24-site-footer p,
.dm24-site-footer li,
.dm24-site-footer address {
    color: #596579 !important;
}

.dm24-site-footer a {
    color: #263B62 !important;
}

.dm24-site-footer a:hover {
    color: #FF5A1F !important;
}

.dm24-site-footer img {
    filter: none !important;
}

.dm24-site-footer img[src*="logo"] {
    max-width: 290px !important;
    height: auto !important;
}


/* DM24 PRODUCT GRID FIX V5 START */

@media (min-width: 1200px) {
  body.term-twarde-dyski-ssd-zewnetrzne
  ul.products[data-products="type-1"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px 26px !important;
  }
}

@media (min-width: 701px) and (max-width: 1199px) {
  body.term-twarde-dyski-ssd-zewnetrzne
  ul.products[data-products="type-1"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

@media (max-width: 700px) {
  body.term-twarde-dyski-ssd-zewnetrzne
  ul.products[data-products="type-1"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 12px !important;
  }
}

/* DM24 PRODUCT GRID FIX V5 END */


/* DM24 CARDS V7 START */
body.term-twarde-dyski-ssd-zewnetrzne ul.products[data-products="type-1"] {
  --dm24-card-image-height: 220px;
  --dm24-card-title-lines: 2;
  --product-element-spacing: 12px;
}
body.term-twarde-dyski-ssd-zewnetrzne ul.products[data-products="type-1"] .product figure {
  --product-element-spacing: 12px;
}
/* DM24 CARDS V7 END */

/* DM24 V8 START */
body.term-twarde-dyski-ssd-zewnetrzne ul.products[data-products="type-1"] {
  --dm24-card-image-height: 210px !important;
  --dm24-card-title-lines: 2 !important;
}
body.term-twarde-dyski-ssd-zewnetrzne ul.products[data-products="type-1"] .product figure {
  --product-element-spacing: 10px !important;
}
/* DM24 V8 END */

/* DM24 GLOBAL GRID V9 START */

/* Wszystkie archiwa produktów WooCommerce */
body.woocommerce-archive ul.products[data-products="type-1"],
body.post-type-archive-product ul.products[data-products="type-1"],
body.tax-product_cat ul.products[data-products="type-1"],
body.tax-product_tag ul.products[data-products="type-1"] {
  --dm24-card-columns: 3;
  --dm24-card-image-height: 210px;
  --dm24-card-title-lines: 2;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 30px 26px !important;
}

/* Prawidlowa szerokosc kart */
body.woocommerce-archive ul.products[data-products="type-1"] > li.product,
body.post-type-archive-product ul.products[data-products="type-1"] > li.product,
body.tax-product_cat ul.products[data-products="type-1"] > li.product,
body.tax-product_tag ul.products[data-products="type-1"] > li.product {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

/* Odstep pod zdjeciem */
body.woocommerce-archive ul.products[data-products="type-1"] .product figure,
body.tax-product_cat ul.products[data-products="type-1"] .product figure {
  --product-element-spacing: 10px;
}

/* Tablet */
@media (max-width: 1199px) {
  body.woocommerce-archive ul.products[data-products="type-1"],
  body.post-type-archive-product ul.products[data-products="type-1"],
  body.tax-product_cat ul.products[data-products="type-1"],
  body.tax-product_tag ul.products[data-products="type-1"] {
    --dm24-card-columns: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 20px !important;
  }
}

/* Mobile */
@media (max-width: 700px) {
  body.woocommerce-archive ul.products[data-products="type-1"],
  body.post-type-archive-product ul.products[data-products="type-1"],
  body.tax-product_cat ul.products[data-products="type-1"],
  body.tax-product_tag ul.products[data-products="type-1"] {
    --dm24-card-columns: 2;
    --dm24-card-image-height: 165px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 12px !important;
  }
}

/* DM24 GLOBAL GRID V9 END */




/* DM24 MEGA MENU UX V2 START */

@media (min-width: 901px) {

body .dm24-site-header .dm24-mm > .dm24-mm__panels > .dm24-mm__panel {
  width: min(1160px, calc(100vw - 32px)) !important;
  max-width: 1160px !important;
  margin-inline: auto !important;
  padding: 26px 30px 30px !important;
  border: 1px solid #e4e9f0 !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: 0 20px 50px rgba(11,35,65,.14) !important;
}

body .dm24-site-header .dm24-mm .dm24-mm__grid {
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 24px 28px !important;
}

body .dm24-site-header .dm24-mm__panel:has(.dm24-mm__section:nth-child(1):last-child) {
  width: min(340px,calc(100vw - 32px)) !important;
}

body .dm24-site-header .dm24-mm__panel:has(.dm24-mm__section:nth-child(2):last-child) {
  width: min(650px,calc(100vw - 32px)) !important;
}

body .dm24-site-header .dm24-mm__panel:has(.dm24-mm__section:nth-child(3):last-child) {
  width: min(900px,calc(100vw - 32px)) !important;
}

body .dm24-site-header .dm24-mm__panel:has(.dm24-mm__section:nth-child(1):last-child) .dm24-mm__grid {
  grid-template-columns: minmax(0,1fr) !important;
}

body .dm24-site-header .dm24-mm__panel:has(.dm24-mm__section:nth-child(2):last-child) .dm24-mm__grid {
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
}

body .dm24-site-header .dm24-mm__panel:has(.dm24-mm__section:nth-child(3):last-child) .dm24-mm__grid {
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
}

body .dm24-site-header .dm24-mm__panel-head {
  margin-bottom: 20px !important;
  padding-bottom: 16px !important;
}

body .dm24-site-header .dm24-mm__section h3 {
  margin-bottom: 10px !important;
}

body .dm24-site-header .dm24-mm__section a {
  padding: 6px 0 !important;
  line-height: 1.45 !important;
}

}

/* DM24 MEGA MENU UX V2 END */
