
/* =========================================================
   AQUABAR — BLUE CATEGORY EXPERIENCE
   ========================================================= */

.sf-shortcode.sf-shortcode-categories {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 10px 0 35px;
}

/* Remove background atmosphere */
.sf-shortcode-categories::before,
.sf-shortcode-categories::after {
  display: none !important;
}


/* =========================================================
   GRID
   ========================================================= */

.sf-shortcode-categories > section {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.sf-shortcode-categories > section > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}


/* =========================================================
   CARDS — UNIFORM BLUE
   ========================================================= */

.sf-shortcode-categories a {
  position: relative;
  min-height: 125px;

  display: flex !important;
  flex-direction: column;
  justify-content: space-between;

  padding: 22px 22px 19px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 22px !important;

  background: linear-gradient(
    145deg,
    #4385ba 0%,
    #3475a9 100%
  ) !important;

  box-shadow:
    0 8px 24px rgba(30,68,110,.12),
    inset 0 1px 0 rgba(255,255,255,.12) !important;

  text-decoration: none !important;

  transform: translateY(0);

  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    box-shadow .45s ease,
    border-color .35s ease,
    background .35s ease;
}


/* Decorative circle */
.sf-shortcode-categories a::before {
  content: "";
  position: absolute;

  width: 95px;
  height: 95px;

  right: -32px;
  top: -32px;

  border-radius: 50%;
  background: rgba(255,255,255,.10);

  transition:
    transform .55s cubic-bezier(.2,.8,.2,1),
    background .35s ease;
}


/* Decorative dot */
.sf-shortcode-categories a::after {
  content: "";
  position: absolute;

  width: 9px;
  height: 9px;

  right: 23px;
  bottom: 22px;

  border-radius: 50%;
  background: #c9e4ff;

  box-shadow:
    0 0 0 5px rgba(255,255,255,.12);

  transition:
    transform .4s ease,
    box-shadow .4s ease,
    background .4s ease;
}


/* =========================================================
   HOVER — WHITE
   ========================================================= */

.sf-shortcode-categories a:hover {
  transform: translateY(-8px) rotate(-.4deg);

  background: linear-gradient(
    145deg,
    #ffffff 0%,
    #f5f9fd 100%
  ) !important;

  border-color: rgba(37,99,166,.22) !important;

  box-shadow:
    0 18px 40px rgba(30,68,110,.13),
    0 4px 8px rgba(30,68,110,.05) !important;
}

.sf-shortcode-categories a:hover::before {
  transform: scale(2.1);
  background: #e0edfa;
}

.sf-shortcode-categories a:hover::after {
  transform: scale(1.45);
  background: #2563a6;

  box-shadow:
    0 0 0 7px rgba(37,99,166,.10);
}


/* =========================================================
   TITLE
   ========================================================= */

.sf-shortcode-categories a strong {
  position: relative;
  z-index: 3;

  max-width: 80%;

  color: #ffffff !important;

  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;

  letter-spacing: -.3px;

  transition:
    transform .35s ease,
    color .3s ease;
}

.sf-shortcode-categories a:hover strong {
  transform: translateX(3px);
  color: #172f49 !important;
}


/* =========================================================
   PRODUCT COUNT
   ========================================================= */

.sf-shortcode-categories a span {
  position: relative;
  z-index: 3;

  color: rgba(255,255,255,.75) !important;

  font-size: 12px;
  font-weight: 500;

  transition:
    transform .35s ease,
    color .3s ease;
}

.sf-shortcode-categories a:hover span {
  transform: translateX(3px);
  color: #74869a !important;
}


/* =========================================================
   CATEGORY NUMBERS
   ========================================================= */

.sf-shortcode-categories a:nth-child(1) {
  --cat-number: "01";
}

.sf-shortcode-categories a:nth-child(2) {
  --cat-number: "02";
}

.sf-shortcode-categories a:nth-child(3) {
  --cat-number: "03";
}

.sf-shortcode-categories a:nth-child(4) {
  --cat-number: "04";
}

.sf-shortcode-categories a:nth-child(5) {
  --cat-number: "05";
}

.sf-shortcode-categories a:nth-child(6) {
  --cat-number: "06";
}

.sf-shortcode-categories a:nth-child(7) {
  --cat-number: "07";
}

.sf-shortcode-categories a:nth-child(8) {
  --cat-number: "08";
}

.sf-shortcode-categories a strong::before {
  content: var(--cat-number);

  display: block;
  margin-bottom: 10px;

  color: rgba(255,255,255,.55);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.5px;
  opacity: .8;

  transition: color .3s ease;
}

.sf-shortcode-categories a:hover strong::before {
  color: #91abc5;
}


/* =========================================================
   UNIFORM FIRST CARD — ALL PRODUCTS
   ========================================================= */

.sf-shortcode-categories a:first-child {
  background: linear-gradient(
    145deg,
    #4385ba 0%,
    #3475a9 100%
  ) !important;

  border-color: rgba(255,255,255,.16) !important;

  box-shadow:
    0 8px 24px rgba(30,68,110,.12),
    inset 0 1px 0 rgba(255,255,255,.12) !important;
}

.sf-shortcode-categories a:first-child strong,
.sf-shortcode-categories a:first-child span {
  color: #ffffff !important;
}

.sf-shortcode-categories a:first-child strong::before {
  color: rgba(255,255,255,.55);
}

.sf-shortcode-categories a:first-child::before {
  background: rgba(255,255,255,.10);
}

.sf-shortcode-categories a:first-child::after {
  background: #c9e4ff;

  box-shadow:
    0 0 0 5px rgba(255,255,255,.12);
}

.sf-shortcode-categories a:first-child:hover {
  background: linear-gradient(
    145deg,
    #ffffff 0%,
    #f5f9fd 100%
  ) !important;

  border-color: rgba(37,99,166,.22) !important;

  box-shadow:
    0 18px 40px rgba(30,68,110,.13),
    0 4px 8px rgba(30,68,110,.05) !important;
}

.sf-shortcode-categories a:first-child:hover strong {
  color: #172f49 !important;
}

.sf-shortcode-categories a:first-child:hover span {
  color: #74869a !important;
}

.sf-shortcode-categories a:first-child:hover strong::before {
  color: #91abc5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .sf-shortcode-categories > section > div {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .sf-shortcode-categories {
    padding: 5px 0 25px;
  }

  .sf-shortcode-categories > section {
    padding: 0 16px;
  }

  .sf-shortcode-categories > section > div {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .sf-shortcode-categories a {
    min-height: 105px;
    padding: 19px;
    border-radius: 19px !important;
  }

  .sf-shortcode-categories a strong {
    font-size: 15px;
  }

  .sf-shortcode-categories a:hover {
    transform: translateY(-4px);
  }
}
