/*
Theme Name: MAD Fine Jewellery
Description: Bilingual MAD Jewelry storefront for Elementor and WooCommerce.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: mad-fine-jewellery
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
  --mad-black: #080808;
  --mad-red: #9e070e;
  --mad-font: "Inter", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--mad-black);
  background: white;
  font-family: var(--mad-font);
  line-height: 1.5;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
}
:focus-visible {
  outline: 2px solid var(--mad-red);
  outline-offset: 3px;
}
.mad-header :focus-visible,
.mad-hero :focus-visible {
  outline-color: white;
}
.mad-skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0.5rem;
  z-index: 10;
  background: white;
  color: black;
  padding: 0.7rem;
  transform: translateY(-160%);
}
.mad-skip:focus {
  transform: none;
}
.entry-content {
  overflow-wrap: anywhere;
}
.mad-standard,
.mad-wrap {
  width: min(100% - 2rem, 1400px);
  margin-inline: auto;
}
.mad-standard {
  min-height: 48vh;
  padding-block: 3.5rem;
}
.mad-wrap {
  padding-block: clamp(2.6rem, 5vw, 5.5rem);
}
.mad-wrap > .elementor-container,
.mad-header-row > .elementor-container,
.mad-hero > .elementor-container {
  max-width: none !important;
}
.mad-header,
.mad-footer {
  background: var(--mad-black);
  color: white;
}
.mad-header {
  position: relative;
  z-index: 3;
}
.mad-header-row {
  padding-inline: clamp(0.7rem, 4vw, 4rem);
  min-height: 76px;
  display: grid;
  align-items: center;
}
.mad-header-row > .elementor-container {
  width: 100%;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.mad-header-row .elementor-column {
  width: auto !important;
  min-width: 0;
}
.mad-header-row .elementor-column > .elementor-element-populated,
.mad-hero .elementor-column > .elementor-element-populated,
.mad-wrap .elementor-column > .elementor-element-populated {
  padding: 0 !important;
}
.mad-header-row .elementor-widget {
  margin: 0 !important;
}
.mad-brand {
  display: block;
  width: clamp(95px, 11vw, 166px);
  line-height: 0;
  margin: auto;
}
.mad-brand img {
  display: block;
  width: 100%;
}
.mad-nav,
.mad-actions,
.mad-lang,
.mad-footer-links {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2.5vw, 2.4rem);
}
.mad-nav a,
.mad-actions a,
.mad-footer a {
  text-decoration: none;
}
.mad-nav a:hover,
.mad-footer a:hover,
.mad-actions a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}
.mad-nav,
.mad-lang,
.mad-footer-links {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.mad-actions {
  justify-content: flex-end;
  gap: clamp(0.36rem, 1.8vw, 1.7rem);
}
.mad-lang {
  gap: 0.48rem;
  direction: ltr;
}
.mad-lang [aria-current="true"] {
  font-weight: 750;
}
.mad-icon {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 36px;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}
.mad-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mad-bag {
  position: relative;
}
.mad-bag-count {
  position: absolute;
  top: 1px;
  inset-inline-end: -7px;
  background: var(--mad-red);
  color: white;
  border-radius: 20px;
  min-width: 15px;
  text-align: center;
  font-size: 10px;
}
.mad-bag-count:empty {
  display: none;
}
.mad-menu-toggle {
  display: none;
}
.mad-search {
  position: relative;
}
.mad-search summary {
  list-style: none;
}
.mad-search summary::-webkit-details-marker {
  display: none;
}
.mad-search-form {
  position: absolute;
  z-index: 4;
  top: 100%;
  inset-inline-end: 0;
  display: flex;
  width: min(310px, 78vw);
  background: black;
  color: white;
  padding: 0.75rem;
  border: 1px solid #444;
  gap: 0.5rem;
}
.mad-search-form input {
  width: 100%;
  min-width: 0;
  padding: 0.4rem;
}
.mad-search-form button {
  background: var(--mad-red);
  color: white;
  border: 0;
  padding: 0.4rem 0.55rem;
}
.mad-footer .mad-wrap {
  padding-block: 2.3rem;
}
.mad-footer-links {
  flex-wrap: wrap;
  letter-spacing: 0.06em;
}
.mad-footer .mad-brand {
  margin-inline: 0;
  margin-bottom: 1.6rem;
  width: 106px;
}
.mad-hero {
  background: var(--mad-black);
  color: white;
}
.mad-hero > .elementor-container {
  min-height: clamp(355px, 44vw, 690px);
  display: grid !important;
  grid-template-columns: 37.5fr 42.5fr 20fr;
}
.mad-hero > .elementor-container > .elementor-column {
  width: auto !important;
  min-width: 0;
}
.mad-hero-copy {
  position: relative;
  background: var(--mad-black) url(assets/silk.webp) center bottom / 100% auto
    no-repeat;
}
.mad-hero .mad-hero-copy > .elementor-element-populated.elementor-widget-wrap {
  align-content: center;
  align-items: center;
  padding: clamp(1rem, 5vw, 5rem) !important;
  padding-bottom: clamp(3rem, 8vw, 9rem) !important;
}
.mad-hero .mad-hero-title.elementor-widget-heading .elementor-heading-title,
.mad-wrap .mad-section-title.elementor-widget-heading .elementor-heading-title {
  font-family: var(--mad-font);
  font-weight: 610;
  letter-spacing: -0.038em;
  color: inherit;
  font-size: clamp(2.2rem, 5.2vw, 6.2rem);
  line-height: 0.94;
  text-transform: uppercase;
}
.mad-wrap .mad-section-title.elementor-widget-heading .elementor-heading-title {
  font-size: clamp(1.7rem, 3.8vw, 4.1rem);
  line-height: 1.03;
}
.mad-hero .mad-hero-title.elementor-widget-heading .elementor-heading-title {
  color: white;
}
.mad-hero .elementor-widget-button a.elementor-button {
  border: 1px solid white;
  background: black;
  color: white;
  border-radius: 0;
  font-size: clamp(0.72rem, 1.1vw, 1rem);
  font-family: inherit;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 1rem clamp(0.8rem, 2vw, 1.8rem);
}
.mad-hero .elementor-widget-button a.elementor-button:hover {
  background: white;
  color: black;
}
.mad-hero-photo .elementor-widget-wrap,
.mad-hero-inset .elementor-widget-wrap,
.mad-hero-photo .elementor-widget-image,
.mad-hero-inset .elementor-widget-image,
.mad-hero .elementor-widget-image .elementor-widget-container {
  height: 100%;
}
.mad-hero .elementor-widget-image img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.mad-hero-inset {
  background: white;
  padding: clamp(0.55rem, 1.3vw, 1.4rem);
  padding-block: clamp(1rem, 3vw, 3rem);
}
.mad-hero-inset img {
  object-position: center;
}
.mad-hero-photo img {
  object-position: center center;
}
.mad-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 0.6rem 0 1.7rem;
  font-weight: 550;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mad-categories a {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}
.mad-categories a:hover {
  color: var(--mad-red);
}
.mad-page-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.mad-woocommerce::after {
  content: "";
  display: table;
  clear: both;
}
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.45vw, 1.6rem);
  margin: 0 0 1.5rem;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}
.woocommerce ul.products[class] li.product,
.woocommerce-page ul.products[class] li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.woocommerce ul.products li.product a img {
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #efefef;
  margin-bottom: 0.65rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: clamp(0.79rem, 1.12vw, 1.03rem);
  color: var(--mad-black);
  font-weight: 650;
  letter-spacing: 0.072em;
  text-transform: uppercase;
  padding: 0.3rem 0;
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #282828;
}
.woocommerce ul.products li.product .price {
  font-size: 0.86rem;
  margin-bottom: 0.75rem;
}
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: block;
  margin-bottom: auto;
}
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.mad-preview-button {
  color: white;
  background: var(--mad-black);
  border-radius: 0;
  border: 1px solid var(--mad-black);
  padding: 0.75rem 0.65rem;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  color: white;
  background: var(--mad-red);
  border-color: var(--mad-red);
}
.woocommerce ul.products li.product .button,
.mad-preview-button {
  display: block;
  margin: 0.3rem 8% 0;
  white-space: normal;
}
.woocommerce ul.products li.product a.added_to_cart {
  text-decoration: underline;
  padding: 0.45rem 0;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 1.5rem;
}
.woocommerce nav.woocommerce-pagination {
  margin: 2rem 0;
}
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  border-top-color: var(--mad-black);
}
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before {
  color: var(--mad-black);
}
.woocommerce input.input-text,
.woocommerce select,
.woocommerce textarea {
  border: 1px solid #b5b5b5;
  border-radius: 0;
  padding: 0.7rem;
}
.woocommerce div.product form.cart .variations select {
  width: auto;
}
.woocommerce div.product .product_title {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}
.woocommerce .quantity .qty {
  min-width: 3.6rem;
}
.woocommerce table.shop_table {
  border-radius: 0;
}
.mad-preview-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
}
.mad-preview-products img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.mad-preview-products span {
  display: block;
}
.mad-preview-note {
  font-size: 0.8rem;
  color: #444;
}
.mad-body-copy {
  max-width: 52rem;
}
@media (max-width: 760px) {
  .mad-header-row {
    min-height: 62px;
    padding-inline: 0.65rem;
  }
  .mad-header-row > .elementor-container {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .mad-header-row .mad-brand {
    width: 80px;
  }
  .mad-menu-toggle {
    display: inline-grid;
  }
  .mad-menu-toggle[aria-expanded="false"] + .mad-nav {
    display: none;
  }
  .mad-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: black;
    display: grid;
    gap: 0;
    padding: 0.5rem 1rem;
    border-top: 1px solid #303030;
  }
  .mad-nav a {
    display: block;
    padding: 0.75rem 0.4rem;
  }
  .mad-menu-shell {
    display: flex;
    align-items: center;
    gap: 0.28rem;
  }
  .mad-actions .mad-lang {
    display: none;
  }
  .mad-hero > .elementor-container {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mad-hero > .elementor-container > .mad-hero-photo {
    grid-row: 1;
    height: clamp(245px, 69vw, 510px);
  }
  .mad-hero > .elementor-container > .mad-hero-copy {
    grid-row: 2;
  }
  .mad-hero-photo img {
    object-position: center 43%;
  }
  .mad-hero
    .mad-hero-copy
    > .elementor-element-populated.elementor-widget-wrap {
    padding: 1.65rem 1.2rem 3.5rem !important;
  }
  .mad-hero .mad-hero-title.elementor-widget-heading .elementor-heading-title {
    font-size: clamp(2.35rem, 8.7vw, 4rem);
  }
  .mad-hero-inset {
    display: none !important;
  }
  .mad-preview-products,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .woocommerce ul.products li.product .button,
  .mad-preview-button {
    margin-inline: 0;
  }
  .mad-wrap {
    width: calc(100% - 1.35rem);
  }
  .mad-footer .mad-wrap {
    padding-inline: 0.35rem;
  }
}
@media (min-width: 761px) {
  .mad-menu-shell .mad-lang {
    display: none;
  }
}
html[dir="rtl"] body {
  font-family: Tahoma, Arial, sans-serif;
}
html[dir="rtl"] .mad-nav,
html[dir="rtl"] .mad-categories,
html[dir="rtl"]
  .mad-hero
  .mad-hero-title.elementor-widget-heading
  .elementor-heading-title,
html[dir="rtl"]
  .mad-wrap
  .mad-section-title.elementor-widget-heading
  .elementor-heading-title,
html[dir="rtl"] .mad-page-title,
html[dir="rtl"] .woocommerce-loop-product__title {
  letter-spacing: 0;
}
html[dir="rtl"]
  .mad-hero
  .mad-hero-title.elementor-widget-heading
  .elementor-heading-title,
html[dir="rtl"]
  .mad-wrap
  .mad-section-title.elementor-widget-heading
  .elementor-heading-title {
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.15;
}
.mad-product-top {
  padding-bottom: 1rem;
}
.mad-product-top .elementor-container {
  gap: clamp(1rem, 4vw, 4rem);
}
.mad-product-info {
  flex: 1;
}
.mad-product-photos .woocommerce-product-gallery,
.woocommerce .mad-product-info .summary {
  float: none !important;
  width: 100% !important;
}
.mad-product-extra {
  padding-top: 1.5rem;
}
.mad-woocommerce > .product {
  margin-bottom: 0;
}
.mad-menu-list {
  display: flex;
  align-items: center;
  gap: inherit;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mad-menu-list .sub-menu {
  display: none;
  position: absolute;
  z-index: 5;
  background: black;
  padding: 0.65rem 1rem;
  list-style: none;
  min-width: 9rem;
}
.mad-menu-list li:hover > .sub-menu,
.mad-menu-list li:focus-within > .sub-menu {
  display: grid;
  gap: 0.5rem;
}
@media (max-width: 760px) {
  .mad-menu-list {
    display: block;
  }
  .mad-menu-list .sub-menu {
    position: static;
    padding-inline-start: 1rem;
  }
  .mad-menu-list .menu-item-has-children > .sub-menu {
    display: block;
  }
}
@font-face {
  font-family: Inter;
  src: url(assets/inter-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.mad-wrap .wc-block-components-button:not(.is-link) {
  color: white;
  background: var(--mad-black);
  border: 1px solid var(--mad-black);
  border-radius: 0;
}
.mad-wrap .wc-block-components-button:not(.is-link):hover {
  background: var(--mad-red);
  border-color: var(--mad-red);
}
