/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
Description: Child theme for LunaBelleza
*/

/* ===== CARDS GRID ===== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px;
  margin: 35px 0;
}

.category-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #222;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(0,0,0,0.05) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

.category-card:hover::before {
  opacity: 1;
}

.category-card-image {
  overflow: hidden;
  background: #fff;
}

.category-card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card-image img {
  transform: scale(1.06);
}

.category-card-title {
  position: relative;
  z-index: 2;
  padding: 16px 14px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), #ffffff);
}

.category-card-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 10px;
  background: #e6007e;
  opacity: 0.9;
}

/* ===== CATEGORY FULL WIDTH ===== */

body.category #primary.category-full-width {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

body.category .site-content {
  display: block !important;
}

body.category #right-sidebar,
body.category #left-sidebar,
body.category .widget-area {
  display: none !important;
}

body.category .site-main {
  margin: 0 auto !important;
  max-width: 1400px !important;
  padding: 20px !important;
}

/* ===== H1 CATEGORY ===== */

body.category .page-title {
  position: relative;
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 auto 35px;
  color: #111;
  letter-spacing: -0.5px;
  max-width: 900px;
}

body.category .page-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 20px;
  background: #e6007e;
  opacity: 0.95;
}

/* ===== SINGLE FULL WIDTH ===== */

body.single .site-content {
  display: block !important;
}

body.single #primary,
body.single .content-area,
body.single .single-full-width {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

body.single #right-sidebar,
body.single #left-sidebar,
body.single .widget-area {
  display: none !important;
}

body.single .site-main {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 20px !important;
}

body.single .single-premium-header {
  text-align: center;
  margin-bottom: 40px;
}

/* ===== H1 SINGLE ===== */

body.single .entry-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 20px;
  background: #e6007e;
  opacity: 0.95;
}

body.single .single-bottom-text {
  max-width: 1100px;
  margin: 50px auto;
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

body.single .section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin: 60px 0 30px;
}

body.single .catalog-frame-wrap {
  max-width: 1100px;
  margin: 0 auto 50px;
  text-align: center;
}

/* ===== HOME ===== */

body.home #primary.home-full-width {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

body.home .site-content {
  display: block !important;
}

body.home #right-sidebar,
body.home #left-sidebar,
body.home .widget-area {
  display: none !important;
}

body.home .site-main {
  margin: 0 auto !important;
  max-width: 1400px !important;
  padding: 20px !important;
}

body.home .home-page-header {
  text-align: center;
  margin: 30px auto 40px;
}

body.home .page-title {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
}

/* ===== PREMIUM FOOTER ===== */

.site-info {
  display: none;
}

.lb-footer {
  margin-top: 70px;
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, #fffaf4 0%, #fdf7ef 40%, #ffffff 100%);
  border-top: 1px solid rgba(200,155,74,0.12);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.03);
}

.lb-footer-countries {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 34px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.lb-footer-countries a {
  text-decoration: none;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s ease;
  min-width: 70px;
}

.lb-footer-countries a span {
  display: block;
  font-size: 34px;
  margin-bottom: 10px;
}

.lb-footer-countries a:hover {
  color: #c89b4a;
  transform: translateY(-4px);
}

/* ===== MOBILE OFF-CANVAS MENU ===== */

@media (max-width: 768px) {

  .main-navigation {
    position: static !important;
  }

  .menu-toggle {
    position: relative;
    z-index: 10060;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border-radius: 50%;
    background: #f8f3ea !important;
    color: #222 !important;
    font-size: 0 !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
  }

  .menu-toggle::before {
    content: "☰";
    font-size: 22px;
    font-weight: 800;
    line-height: 44px;
  }

  .main-navigation.toggled .menu-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .main-navigation .main-nav {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
    z-index: 10040;
    padding: 90px 28px 36px;
    box-shadow: -18px 0 45px rgba(0,0,0,0.16);
    transition: right 0.35s ease;
    overflow-y: auto;
  }

  .main-navigation.toggled .main-nav {
    right: 0;
  }

  .main-navigation.toggled .main-nav > ul {
    display: block !important;
    margin: 0;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
  }

  .main-navigation .main-nav ul li {
    display: block;
    width: 100%;
    margin: 0;
  }

  .main-navigation .main-nav ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    font-size: 19px;
    font-weight: 800;
    color: #222;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    text-decoration: none;
  }

  .main-navigation .main-nav ul li a:hover {
    color: #c89b4a;
  }

  .main-navigation ul ul {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 4px 0 10px !important;
    padding: 0 0 0 18px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .main-navigation ul ul li a {
    padding: 11px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #666 !important;
    border-bottom: none !important;
  }

  .main-navigation ul ul li a:hover {
    color: #c89b4a !important;
  }
}

/* ===== MOBILE CLOSE BUTTON ===== */

.lb-mobile-menu-close {
  display: none;
  pointer-events: auto !important;
  cursor: pointer !important;
}

@media (max-width: 768px) {
  .main-navigation.toggled .lb-mobile-menu-close {
    display: flex !important;
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 10080;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #222;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.14);
    cursor: pointer;
  }
}

/* ===== SCROLL FIX ===== */

html {
  scrollbar-gutter: stable;
}

@media (max-width: 768px) {
  body {
    overflow-y: scroll;
  }
}

/* ===== MOBILE CARDS ===== */

@media (max-width: 768px) {

  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
    margin: 25px 0;
  }

  .category-card {
    border-radius: 16px;
  }

  .category-card-image img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #fff;
  }

  .category-card:hover .category-card-image img {
    transform: none;
  }

  .category-card-title {
    font-size: 14px;
    padding: 12px 10px;
    line-height: 1.4;
  }

  .category-card-title::after {
    width: 28px;
    margin-top: 8px;
  }

  body.category .page-title,
  body.single .entry-title,
  body.home .page-title {
    font-size: 30px;
  }

  body.category .page-title::after,
  body.single .entry-title::after {
    width: 56px;
    height: 3px;
    margin-top: 14px;
  }
}
/* ===== FOTORAMA CUSTOM STYLE ===== */

.fotorama {
  margin: 0 auto;
}

.fotorama__nav-wrap {
  margin-top: 16px;
}

.fotorama__thumb {
  border-radius: 4px;
  background: #fff;
}

.fotorama__thumb-border {
  border-color: #e6007e !important;
  border-width: 3px !important;
  border-radius: 4px;
}

.fotorama__fullscreen-icon {
  width: 32px !important;
  height: 32px !important;
  top: 2px !important;
  right: 2px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.fotorama__arr {
  width: 32px !important;
  height: 32px !important;
  margin-top: -16px !important;
  transform: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.fotorama__arr--prev {
  left: 2px !important;
}

.fotorama__arr--next {
  right: 2px !important;
}
/* ===== FOTORAMA THUMB NUMBERS ===== */

.fotorama__nav--thumbs {
  counter-reset: fotorama-thumb;
}

.fotorama__nav--thumbs .fotorama__nav__frame {
  counter-increment: fotorama-thumb;
}

.fotorama__nav--thumbs .fotorama__nav__frame::after {
  content: counter(fotorama-thumb);
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 20;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.fotorama {
    min-height: 850px;
}

@media (max-width: 768px) {
    .fotorama {
        min-height: 500px;
    }
}