/**
 * GoldMaster — Elementor overrides
 * Keeps Elementor-built pages aligned with the boutique jewelry look.
 */

.gm-main--elementor {
  padding: 0;
}

.gm-main--canvas {
  min-height: 100vh;
}

/* Header Footer Elementor (free plugin) */
.gm-el-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 17, 14, 0.08);
}

#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.gm-el-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.gm-el-nav a {
  font-family: Outfit, sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a241e;
  text-decoration: none;
}

.gm-el-nav a:hover {
  color: #8a6d28;
}

/* Hamburger — fixed on viewport so Elementor cannot trap it */
.gm-el-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(247, 246, 243, 0.95);
  box-shadow: 0 2px 12px rgba(20, 17, 14, 0.12);
  cursor: pointer;
  color: #14110e;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.gm-el-burger__box {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
  pointer-events: none;
}

.gm-el-burger__box span,
.gm-el-burger__box span::before,
.gm-el-burger__box span::after {
  display: block;
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), top 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
}

.gm-el-burger__box span {
  top: 7px;
}

.gm-el-burger__box span::before,
.gm-el-burger__box span::after {
  content: "";
}

.gm-el-burger__box span::before {
  top: -7px;
}

.gm-el-burger__box span::after {
  top: 7px;
}

.gm-el-burger.is-open .gm-el-burger__box span,
.gm-el-burger[aria-expanded="true"] .gm-el-burger__box span {
  background: transparent;
}

.gm-el-burger.is-open .gm-el-burger__box span::before,
.gm-el-burger[aria-expanded="true"] .gm-el-burger__box span::before {
  top: 0;
  transform: rotate(45deg);
}

.gm-el-burger.is-open .gm-el-burger__box span::after,
.gm-el-burger[aria-expanded="true"] .gm-el-burger__box span::after {
  top: 0;
  transform: rotate(-45deg);
}

.gm-el-nav-backdrop {
  display: none;
}

@media (max-width: 991px) {
  /* One header row: [menu] [logo] [cart], vertically centered */
  #masthead .elementor-13 > .elementor-section > .elementor-container {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 64px;
    gap: 0.5rem;
    position: relative;
  }

  #masthead .elementor-13 > .elementor-section {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  /* Logo column — center */
  #masthead .elementor-element-6e625b87 {
    order: 2;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  #masthead .elementor-element-6e625b87 .elementor-widget-wrap,
  #masthead .elementor-element-6e625b87 .elementor-widget-image {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
  }

  #masthead .elementor-element-9705696 img {
    width: auto !important;
    max-width: min(58vw, 200px) !important;
    max-height: 44px !important;
    height: auto !important;
    object-fit: contain;
  }

  /* Nav column — collapsed (drawer lives on body) */
  #masthead .elementor-element-1277cfa8,
  .elementor-column:has(.gm-el-nav),
  .elementor-column.gm-el-nav-col {
    order: 99;
    width: 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    flex: 0 0 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .elementor-column:has(.gm-el-nav) > .elementor-widget-wrap,
  .elementor-column.gm-el-nav-col > .elementor-widget-wrap {
    padding: 0 !important;
  }

  /* Actions / cart — right, vertically centered */
  #masthead .elementor-element-2d5a27c4 {
    order: 3;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  #masthead .elementor-element-2d5a27c4 > .elementor-widget-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
  }

  #masthead .gm-el-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    padding: 0 !important;
    min-height: 48px;
  }

  /* Keep cart on the right; hide account on small screens */
  #masthead .gm-el-actions a[aria-label="Mi cuenta"] {
    display: none !important;
  }

  #masthead .gm-el-actions a[aria-label="Carrito"],
  #masthead .gm-el-actions a.gm-el-cart {
    display: grid !important;
    place-items: center;
    width: 44px;
    height: 44px;
  }

  /* Hamburger — left, vertically centered with header */
  .gm-el-burger {
    display: inline-flex !important;
    position: fixed !important;
    top: var(--gm-burger-top, 20px);
    left: 10px !important;
    right: auto !important;
    z-index: 10060 !important;
    width: 44px;
    height: 44px;
    background: transparent;
    box-shadow: none;
  }

  /* Spacer so logo doesn't collide with fixed burger */
  #masthead .elementor-13 > .elementor-section > .elementor-container::before {
    content: "";
    order: 1;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  /* Hide inline header nav; drawer is body-level */
  #masthead .gm-el-nav:not(.gm-el-nav--drawer) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
  }

  /* Slide-in drawer from the left (menu icon is on the left) */
  body > .gm-el-nav,
  body > .gm-el-nav--drawer,
  .gm-el-nav--drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: min(86vw, 320px) !important;
    max-width: 320px !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 5.5rem 1.5rem 2rem !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    background: #f7f6f3 !important;
    box-shadow: 16px 0 40px rgba(20, 17, 14, 0.18) !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
    z-index: 10050 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body > .gm-el-nav.is-open,
  body > .gm-el-nav--drawer.is-open,
  .gm-el-nav--drawer.is-open {
    transform: translate3d(0, 0, 0) !important;
  }

  body > .gm-el-nav a,
  body > .gm-el-nav--drawer a,
  .gm-el-nav--drawer a {
    display: block !important;
    width: 100% !important;
    padding: 0.95rem 0 !important;
    border-bottom: 1px solid rgba(20, 17, 14, 0.1) !important;
    font-size: 0.95rem !important;
    color: #2a241e !important;
  }

  .gm-el-nav-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(20, 17, 14, 0.45) !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10040 !important;
  }

  .gm-el-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.gm-nav-lock {
    overflow: hidden !important;
  }
}

@media (min-width: 992px) {
  .gm-el-burger {
    display: none !important;
  }

  .gm-el-nav-backdrop {
    display: none !important;
  }

  body > .gm-el-nav--drawer {
    position: static !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex-direction: row !important;
    gap: 1.5rem !important;
    background: transparent !important;
    overflow: visible !important;
    z-index: auto !important;
  }
}

/* Match theme fonts inside Elementor */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-button .elementor-button {
  font-family: inherit;
}

.gm-el-hero .elementor-widget-button .elementor-button {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.gm-el-btn--gold .elementor-button {
  background: linear-gradient(135deg, #d4b45a, #b8953d, #8a6d28) !important;
  color: #1a1408 !important;
  border: 0 !important;
}

.gm-el-btn--ghost .elementor-button {
  background: transparent !important;
  color: #f7f6f3 !important;
}

.gm-el-btn--outline .elementor-button {
  background: transparent !important;
  color: #14110e !important;
  border: 1px solid #14110e !important;
}

.gm-el-btn--outline .elementor-button:hover {
  background: #14110e !important;
  color: #f7f6f3 !important;
}

.gm-el-cat,
.gm-el-product {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gm-el-cat:hover,
.gm-el-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(20, 17, 14, 0.12);
}

.gm-el-cat-img img,
.gm-el-product img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Trust bar: icons + 4-across desktop / 2x2 mobile */
.elementor-element-6d0499c8.gm-el-trust,
.elementor-element-6d0499c8 {
  --gm-trust-fg: #f7f6f3;
  --gm-trust-gold: #d4b45a;
}

.elementor-element-6d0499c8 > .elementor-container {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.elementor-element-6d0499c8 > .elementor-container > .elementor-column {
  width: 25% !important;
  max-width: 25% !important;
  flex: 0 0 25% !important;
  margin: 0 !important;
}

.elementor-element-6d0499c8 > .elementor-container > .elementor-column > .elementor-widget-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.35rem 0.5rem !important;
}

.gm-trust-item,
.elementor-element-6d0499c8 .elementor-heading-title {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
  color: var(--gm-trust-fg, #f7f6f3) !important;
  min-height: 4.5rem;
  padding: 0.35rem 0.4rem;
  margin: 0 !important;
  font-family: Outfit, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  line-height: 1.35 !important;
}

.gm-trust-item__icon,
.elementor-element-6d0499c8 .elementor-heading-title .gm-trust-item__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--gm-trust-gold, #d4b45a);
  flex: 0 0 auto;
}

.gm-trust-item__icon svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.gm-trust-item__text {
  display: block;
  color: inherit;
}

@media (max-width: 767px) {
  .elementor-element-6d0499c8 > .elementor-container > .elementor-column {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }

  .elementor-element-6d0499c8 > .elementor-container > .elementor-column:nth-child(1),
  .elementor-element-6d0499c8 > .elementor-container > .elementor-column:nth-child(2) {
    border-bottom: 1px solid rgba(247, 246, 243, 0.12);
  }

  .elementor-element-6d0499c8 > .elementor-container > .elementor-column:nth-child(odd) {
    border-right: 1px solid rgba(247, 246, 243, 0.12);
  }

  .gm-trust-item,
  .elementor-element-6d0499c8 .elementor-heading-title {
    min-height: 5.25rem;
    gap: 0.45rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.68rem !important;
    letter-spacing: 0.1em !important;
  }
}

/* Collections grid: 2 cols mobile, 3 cols desktop */
.gm-collections-grid,
.elementor-element-2df6556 > .elementor-container,
.elementor-element-2daf3d22 > .elementor-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  align-items: stretch !important;
}

.gm-collections-grid > .elementor-column,
.elementor-element-2df6556 > .elementor-container > .elementor-column,
.elementor-element-2daf3d22 > .elementor-container > .elementor-column {
  width: calc(33.333% - 0.67rem) !important;
  max-width: calc(33.333% - 0.67rem) !important;
  flex: 0 0 calc(33.333% - 0.67rem) !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .gm-collections-grid > .elementor-column,
  .elementor-element-2df6556 > .elementor-container > .elementor-column,
  .elementor-element-2daf3d22 > .elementor-container > .elementor-column {
    width: calc(50% - 0.5rem) !important;
    max-width: calc(50% - 0.5rem) !important;
    flex: 0 0 calc(50% - 0.5rem) !important;
  }
}

.elementor-section.gm-collections-source-hidden {
  display: none !important;
}

/* Favorites horizontal carousel */
.gm-favorites-carousel {
  position: relative;
  margin: 0 auto 2rem;
  max-width: 1180px;
  padding: 0 1.25rem;
}

.gm-favorites-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.15rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: #b8953d transparent;
}

.gm-favorites-carousel__track::-webkit-scrollbar {
  height: 6px;
}

.gm-favorites-carousel__track::-webkit-scrollbar-thumb {
  background: #b8953d;
  border-radius: 999px;
}

.gm-favorites-carousel__item {
  flex: 0 0 min(78vw, 280px) !important;
  width: min(78vw, 280px) !important;
  max-width: min(78vw, 280px) !important;
  margin: 0 !important;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .gm-favorites-carousel__item {
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
  }
}

.gm-favorites-carousel__nav {
  display: none;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(20, 17, 14, 0.14);
  background: rgba(247, 246, 243, 0.95);
  color: #14110e;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gm-favorites-carousel__nav--prev {
  left: 0.35rem;
}

.gm-favorites-carousel__nav--next {
  right: 0.35rem;
}

@media (min-width: 992px) {
  .gm-favorites-carousel__nav {
    display: inline-flex;
  }

  .gm-favorites-carousel {
    padding: 0 2.5rem;
  }
}

.elementor-section.gm-favorites-source-hidden {
  display: none !important;
}

/* Hide default page title when Elementor owns the page */
.elementor-page .gm-page-head:first-child {
  display: none;
}

/* WooCommerce widgets inside Elementor */
.elementor-widget-woocommerce-products ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

@media (max-width: 1024px) {
  .elementor-widget-woocommerce-products ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .elementor-widget-woocommerce-products ul.products {
    grid-template-columns: 1fr;
  }
}

/**
 * Home dual-video hero — always 2 columns, one row, zero gaps.
 * Mobile: 9:16 | Desktop: 1:1
 */
.elementor-12 .elementor-element-5afbef73,
.elementor-element-5afbef73 {
  margin: 0 !important;
  padding: 0 !important;
}

.elementor-12 .elementor-element-5afbef73 > .elementor-background-overlay,
.elementor-element-5afbef73 > .elementor-background-overlay {
  display: none !important;
}

.elementor-12 .elementor-element-5afbef73 > .elementor-container,
.elementor-element-5afbef73 > .elementor-container {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.elementor-12 .elementor-element-5afbef73 > .elementor-container > .elementor-column,
.elementor-element-5afbef73 > .elementor-container > .elementor-column {
  width: 50% !important;
  max-width: 50% !important;
  min-width: 0 !important;
  flex: 0 0 50% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.elementor-12 .elementor-element-5afbef73 .elementor-widget-wrap,
.elementor-12 .elementor-element-5afbef73 .elementor-element-populated,
.elementor-element-5afbef73 .elementor-widget-wrap,
.elementor-element-5afbef73 .elementor-element-populated {
  margin: 0 !important;
  padding: 0 !important;
}

.elementor-12 .elementor-element-5afbef73 .elementor-widget-video,
.elementor-12 .elementor-element-5afbef73 .elementor-widget,
.elementor-element-5afbef73 .elementor-widget-video,
.elementor-element-5afbef73 .elementor-widget {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.elementor-12 .elementor-element-5afbef73 .elementor-wrapper,
.elementor-12 .elementor-element-5afbef73 .e-hosted-video,
.elementor-element-5afbef73 .elementor-wrapper,
.elementor-element-5afbef73 .e-hosted-video {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 1 / 1 !important;
  --video-aspect-ratio: 1 !important;
  position: relative !important;
  overflow: hidden !important;
}

.elementor-12 .elementor-element-5afbef73 .elementor-wrapper::before,
.elementor-element-5afbef73 .elementor-wrapper::before {
  display: none !important;
  padding: 0 !important;
  content: none !important;
}

.elementor-12 .elementor-element-5afbef73 .elementor-video,
.elementor-12 .elementor-element-5afbef73 video,
.elementor-element-5afbef73 .elementor-video,
.elementor-element-5afbef73 video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 767px) {
  .elementor-12 .elementor-element-5afbef73 > .elementor-container > .elementor-column,
  .elementor-element-5afbef73 > .elementor-container > .elementor-column {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }

  .elementor-12 .elementor-element-5afbef73 .elementor-wrapper,
  .elementor-12 .elementor-element-5afbef73 .e-hosted-video,
  .elementor-element-5afbef73 .elementor-wrapper,
  .elementor-element-5afbef73 .e-hosted-video {
    aspect-ratio: 9 / 16 !important;
    --video-aspect-ratio: 0.5625 !important;
  }
}
