/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/






/* =========================================================
   SHOP GRID BORDERS
   4 cols desktop / 3 cols tablet / 2 cols mobile
========================================================= */

/* =========================================================
   DESKTOP — 4 columns
========================================================= */
@media (min-width: 1025px) {

  /* kas 4-tam nuimti dešinį border */
  .artx__product-card-GRID > article:nth-child(4n) .artx__product-card {
    border-right-color: transparent !important;
  }

  /* paskutinė eilė — veikia ir kai eilė nepilna */
  .artx__product-card-GRID > article:nth-child(4n+1):nth-last-child(-n+4) .artx__product-card,
  .artx__product-card-GRID > article:nth-child(4n+1):nth-last-child(-n+4) ~ article .artx__product-card,

  .artx__product-card-GRID > article:nth-child(4n+2):nth-last-child(-n+3) .artx__product-card,
  .artx__product-card-GRID > article:nth-child(4n+2):nth-last-child(-n+3) ~ article .artx__product-card,

  .artx__product-card-GRID > article:nth-child(4n+3):nth-last-child(-n+2) .artx__product-card,
  .artx__product-card-GRID > article:nth-child(4n+3):nth-last-child(-n+2) ~ article .artx__product-card,

  .artx__product-card-GRID > article:nth-child(4n):nth-last-child(1) .artx__product-card,
  .artx__product-card-GRID > article:nth-child(4n):nth-last-child(1) ~ article .artx__product-card {
    border-bottom-color: transparent !important;
  }

  /* hover metu nuimti borderius */
  .artx__product-card-GRID > article:hover .artx__product-card,
  .artx__product-card-GRID > article .artx__product-card:hover {
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
  }
}


/* =========================================================
   TABLET — 3 columns
========================================================= */
@media (min-width: 701px) and (max-width: 1024px) {

  /* kas 3-čiam nuimti dešinį border */
  .artx__product-card-GRID > article:nth-child(3n) .artx__product-card {
    border-right-color: transparent !important;
  }

  /* paskutinė eilė — veikia ir kai eilė nepilna */
  .artx__product-card-GRID > article:nth-child(3n+1):nth-last-child(-n+3) .artx__product-card,
  .artx__product-card-GRID > article:nth-child(3n+1):nth-last-child(-n+3) ~ article .artx__product-card,

  .artx__product-card-GRID > article:nth-child(3n+2):nth-last-child(-n+2) .artx__product-card,
  .artx__product-card-GRID > article:nth-child(3n+2):nth-last-child(-n+2) ~ article .artx__product-card,

  .artx__product-card-GRID > article:nth-child(3n):nth-last-child(1) .artx__product-card,
  .artx__product-card-GRID > article:nth-child(3n):nth-last-child(1) ~ article .artx__product-card {
    border-bottom-color: transparent !important;
  }

  /* hover metu nuimti borderius */
  .artx__product-card-GRID > article:hover .artx__product-card,
  .artx__product-card-GRID > article .artx__product-card:hover {
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
  }
}


/* =========================================================
   MOBILE — 2 columns
========================================================= */
@media (max-width: 700px) {

  /* kas 2-ram nuimti dešinį border */
  .artx__product-card-GRID > article:nth-child(2n) .artx__product-card {
    border-right-color: transparent !important;
  }

  /* paskutinė eilė — veikia ir kai eilė nepilna */
  .artx__product-card-GRID > article:nth-child(2n+1):nth-last-child(-n+2) .artx__product-card,
  .artx__product-card-GRID > article:nth-child(2n+1):nth-last-child(-n+2) ~ article .artx__product-card,

  .artx__product-card-GRID > article:nth-child(2n):nth-last-child(1) .artx__product-card,
  .artx__product-card-GRID > article:nth-child(2n):nth-last-child(1) ~ article .artx__product-card {
    border-bottom-color: transparent !important;
  }

  /* hover metu nuimti borderius */
  .artx__product-card-GRID > article:hover .artx__product-card,
  .artx__product-card-GRID > article .artx__product-card:hover {
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
  }
}


















/* =========================================================
   PRODUCT CARD HOVER
========================================================= */
.artx__product-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.artx__product-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}


/* =========================================================
   FULL WIDTH GRID ONLY
   5 cols ≥1251
   4 cols 1025–1250
   3 cols 701–1024
   2 cols ≤700
========================================================= */


/* =========================
   DESKTOP XL — 5 columns
========================= */
@media (min-width: 1251px) {

  .artx__product-card-GRID--5col > article:nth-child(5n) .artx__product-card {
    border-right-color: transparent !important;
  }

  .artx__product-card-GRID--5col > article:nth-child(5n+1):nth-last-child(-n+5) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(5n+1):nth-last-child(-n+5) ~ article .artx__product-card,

  .artx__product-card-GRID--5col > article:nth-child(5n+2):nth-last-child(-n+4) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(5n+2):nth-last-child(-n+4) ~ article .artx__product-card,

  .artx__product-card-GRID--5col > article:nth-child(5n+3):nth-last-child(-n+3) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(5n+3):nth-last-child(-n+3) ~ article .artx__product-card,

  .artx__product-card-GRID--5col > article:nth-child(5n+4):nth-last-child(-n+2) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(5n+4):nth-last-child(-n+2) ~ article .artx__product-card,

  .artx__product-card-GRID--5col > article:nth-child(5n):nth-last-child(1) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(5n):nth-last-child(1) ~ article .artx__product-card {
    border-bottom-color: transparent !important;
  }

  .artx__product-card-GRID--5col > article:hover .artx__product-card,
  .artx__product-card-GRID--5col > article .artx__product-card:hover {
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
  }
}


/* =========================
   DESKTOP — 4 columns
========================= */
@media (min-width: 1025px) and (max-width: 1250px) {

  .artx__product-card-GRID--5col > article:nth-child(4n) .artx__product-card {
    border-right-color: transparent !important;
  }

  .artx__product-card-GRID--5col > article:nth-child(4n+1):nth-last-child(-n+4) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(4n+1):nth-last-child(-n+4) ~ article .artx__product-card,

  .artx__product-card-GRID--5col > article:nth-child(4n+2):nth-last-child(-n+3) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(4n+2):nth-last-child(-n+3) ~ article .artx__product-card,

  .artx__product-card-GRID--5col > article:nth-child(4n+3):nth-last-child(-n+2) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(4n+3):nth-last-child(-n+2) ~ article .artx__product-card,

  .artx__product-card-GRID--5col > article:nth-child(4n):nth-last-child(1) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(4n):nth-last-child(1) ~ article .artx__product-card {
    border-bottom-color: transparent !important;
  }

  .artx__product-card-GRID--5col > article:hover .artx__product-card,
  .artx__product-card-GRID--5col > article .artx__product-card:hover {
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
  }
}


/* =========================
   TABLET — 3 columns
========================= */
@media (min-width: 701px) and (max-width: 1024px) {

  .artx__product-card-GRID--5col > article:nth-child(3n) .artx__product-card {
    border-right-color: transparent !important;
  }

  .artx__product-card-GRID--5col > article:nth-child(3n+1):nth-last-child(-n+3) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(3n+1):nth-last-child(-n+3) ~ article .artx__product-card,

  .artx__product-card-GRID--5col > article:nth-child(3n+2):nth-last-child(-n+2) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(3n+2):nth-last-child(-n+2) ~ article .artx__product-card,

  .artx__product-card-GRID--5col > article:nth-child(3n):nth-last-child(1) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(3n):nth-last-child(1) ~ article .artx__product-card {
    border-bottom-color: transparent !important;
  }

  .artx__product-card-GRID--5col > article:hover .artx__product-card,
  .artx__product-card-GRID--5col > article .artx__product-card:hover {
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
  }
}


/* =========================
   MOBILE — 2 columns
========================= */
@media (max-width: 700px) {

  .artx__product-card-GRID--5col > article:nth-child(2n) .artx__product-card {
    border-right-color: transparent !important;
  }

  .artx__product-card-GRID--5col > article:nth-child(2n+1):nth-last-child(-n+2) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(2n+1):nth-last-child(-n+2) ~ article .artx__product-card,

  .artx__product-card-GRID--5col > article:nth-child(2n):nth-last-child(1) .artx__product-card,
  .artx__product-card-GRID--5col > article:nth-child(2n):nth-last-child(1) ~ article .artx__product-card {
    border-bottom-color: transparent !important;
  }

  .artx__product-card-GRID--5col > article:hover .artx__product-card,
  .artx__product-card-GRID--5col > article .artx__product-card:hover {
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
  }
}