/*
Theme Name: Razzi Child
Theme URI: https://elnafas.com/
Description: Child theme for Razzi customized for Elnafas.
Author: Elnafas
Template: razzi
Version: 1.0.0
Text Domain: razzi-child
*/

/* Custom footer */
.site-footer .footer-custom {
  position: relative;
  padding: 84px 0 28px;
  background:
    radial-gradient(circle at top left, rgba(221, 51, 51, 0.08) 0%, transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0) 100%);
}

.site-footer .footer-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(221, 51, 51, 0.32) 48%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-50%);
}

.site-footer .footer-custom__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 54px;
  align-items: start;
}

.site-footer .footer-custom__brand {
  max-width: 520px;
}

.site-footer .footer-custom__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #dd3333;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.site-footer .footer-custom__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.site-footer .footer-custom__text {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.9;
}

.site-footer .footer-custom__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.site-footer .footer-custom__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.site-footer .footer-custom__button:hover {
  transform: translateY(-1px);
}

.site-footer .footer-custom__button--primary {
  background: #dd3333;
  color: #ffffff;
}

.site-footer .footer-custom__button--primary:hover {
  background: #c62828;
  color: #ffffff;
}

.site-footer .footer-custom__button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.site-footer .footer-custom__button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.site-footer .footer-custom__heading {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer .footer-custom__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-custom__links--columns {
  columns: 2;
  column-gap: 18px;
}

.site-footer .footer-custom__links li {
  margin-bottom: 12px;
  break-inside: avoid;
}

.site-footer .footer-custom__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.65;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer .footer-custom__links a::before {
  content: "";
  width: 15px;
  height: 1px;
  background: rgba(221, 51, 51, 0.45);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.site-footer .footer-custom__links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.site-footer .footer-custom__links a:hover::before {
  width: 22px;
  background: #dd3333;
}

.site-footer .footer-custom__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer .footer-custom__copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer .footer-custom--layout4 {
  background:
    radial-gradient(circle at top left, rgba(221, 51, 51, 0.08) 0%, transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.04) 0%, transparent 20%),
    #050505;
}

.site-footer .footer-custom--layout4::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(221, 51, 51, 0.42) 50%, rgba(255, 255, 255, 0) 100%);
}

.site-footer .footer-custom--layout4 .footer-custom__layout4-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.site-footer .footer-custom--layout4 .footer-custom__layout4-brand,
.site-footer .footer-custom--layout4 .footer-custom__layout4-block {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.01) 100%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.site-footer .footer-custom--layout4 .footer-custom__layout4-brand {
  padding: 42px 40px;
  border-radius: 30px;
}

.site-footer .footer-custom--layout4 .footer-custom__layout4-brand .footer-custom__title {
  max-width: 620px;
  font-size: clamp(40px, 5vw, 74px);
  line-height: 0.92;
}

.site-footer .footer-custom--layout4 .footer-custom__layout4-side {
  display: grid;
  gap: 18px;
}

.site-footer .footer-custom--layout4 .footer-custom__layout4-block {
  padding: 26px 24px;
  border-radius: 22px;
}

.site-footer .footer-custom--layout4 .footer-custom__links--columns {
  columns: 1;
}

@media (max-width: 767px) {
  .catalog-toolbar.layout-v1 {
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .catalog-toolbar.layout-v1 .product-toolbar-breadcrumb {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .catalog-toolbar.layout-v1 .woocommerce-ordering {
    display: block !important;
    order: 3;
    flex: 0 0 auto !important;
    width: fit-content !important;
    min-width: 240px;
    margin-left: auto !important;
    margin-right: 0 !important;
    align-self: flex-end;
    justify-self: end;
  }

  .catalog-toolbar.layout-v1 .woocommerce-ordering select {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 16px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background-color: #fff;
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 500;
  }

  .single-product div.product form.variations_form .wcboost-variation-swatches--button .wcboost-variation-swatches__item:hover,
  .single-product div.product form.variations_form .wcboost-variation-swatches--button .wcboost-variation-swatches__item.selected {
    background: #dd3333 !important;
    border-color: #dd3333 !important;
    color: #ffffff !important;
  }

  #mobile-menu-modal.ra-menu-mobile-modal ul.nav-menu > li.current-menu-item > a,
  #mobile-menu-modal.ra-menu-mobile-modal ul.nav-menu > li.current_page_item > a,
  #mobile-menu-modal.ra-menu-mobile-modal ul.nav-menu > li:hover > a,
  #mobile-menu-modal.ra-menu-mobile-modal ul.nav-menu > li:focus-within > a {
    background: #dd3333 !important;
    border-color: #dd3333 !important;
    color: #ffffff !important;
  }

  .site-footer .footer-custom {
    padding: 56px 0 24px;
  }

  .site-footer .footer-custom__actions {
    flex-direction: column;
  }

  .site-footer .footer-custom__button {
    width: 100%;
  }

  .site-footer .footer-custom__bottom {
    justify-content: center;
    text-align: center;
  }

  .site-footer .footer-custom--layout4 .footer-custom__layout4-grid,
  .site-footer .footer-custom--layout4 .footer-custom__layout4-side {
    grid-template-columns: 1fr;
  }
}