@import url("./theme.css");

/* Front storefront styles */

body {
  background: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ================= HEADER ================= */
header {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5vw;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-weight: 800;
  color: var(--primary);
  font-size: 26px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

header .logo i {
  font-size: 24px;
  background: var(--df-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header nav {
  display: flex;
  align-items: center;
}

header nav a {
  margin-left: 35px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
}

header nav a:hover,
header nav a.active {
  color: var(--text-main);
}

header nav a::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transition: var(--transition);
}

header nav a:hover::after {
  transform: translateX(-50%) scale(1);
}

/* ================= LAYOUT & CONTAINERS ================= */
.container {
  width: 100%;
  max-width: 1300px;
  margin: auto;
  padding: 30px 5vw;
}

.section {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  margin-bottom: 60px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  width: 100%;
}

.section-header h2 {
  color: var(--text-main);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}

.section-header span {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.section-header span:hover {
  color: var(--primary-hover);
  transform: translateX(4px);
}

/* ================= BUTTONS & INPUTS ================= */
button,
.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

button:hover::before {
  opacity: 1;
}

button:hover,
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(154, 205, 50, 0.45);
}

button:active {
  transform: translateY(0);
}

button.full-width {
  width: 100%;
  margin-top: 15px;
}

button.outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}
button.outline:hover {
  background: var(--primary-light);
}

input,
select,
textarea {
  padding: 14px 20px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: #fff;
  width: 100%;
  transition: var(--transition);
  font-size: 15px;
  color: var(--text-main);
  outline: none;
  font-family: "Outfit";
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(154, 205, 50, 0.1);
}

/* ================= CARDS GLOBAL (GLASSMORPHISM) ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: #fff;
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--primary), var(--df-accent));
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card img.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover img.card-img-top {
  transform: scale(1.08);
}

.img-container {
  overflow: hidden;
  position: relative;
}
.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  z-index: 1;
}

.info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  z-index: 2;
  background: #fff;
}

.info h3 {
  font-size: 20px;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.info p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.price {
  color: var(--text-main);
  font-weight: 800;
  font-size: 22px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price span {
  color: var(--primary);
}

.stars {
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 12px;
  display: inline-flex;
  gap: 3px;
}

/* ================= GRID ESPECÍFICO DE PAGINAS ================= */
.grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary);
}

.item-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.cart {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 140px;
  border: 1px solid var(--border-color);
}

/* ================= MODAL / OVERLAY ================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 14, 20, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-hover);
  transform: scale(0.9);
  opacity: 0;
  animation: modalIn 0.4s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================= HERO SECTIONS ================= */
.banner {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

.banner img.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  animation: zoomInOut 20s infinite alternate;
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

.banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(11, 14, 20, 0.1) 0%,
    rgba(11, 14, 20, 0.8) 100%
  );
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.banner-content h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.banner-content p {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.9;
}

.search-bar-hero {
  display: flex;
  background: #fff;
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
}
.search-bar-hero input {
  border: none;
  box-shadow: none;
  flex-grow: 1;
  font-size: 18px;
  padding: 10px 20px;
  background: transparent;
}
.search-bar-hero button {
  border-radius: 40px;
  padding: 15px 35px;
  font-size: 18px;
}

/* ================= FEATURES ================= */
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.feature {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 30px 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  flex: 1;
  max-width: 320px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 1);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary), var(--df-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 700;
}
.feature p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ================= CATEGORIES & PROMOS & FOOTER ================= */
.categories-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: none;
}
.categories-wrapper::-webkit-scrollbar {
  display: none;
}
.category-card {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.category-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.category-card:hover img {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}
.category-card span {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
}

.promo-banner {
  background: linear-gradient(135deg, var(--primary), var(--df-accent));
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-primary);
}
.promo-banner h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}
.promo-banner p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 20px;
}
.promo-banner .btn {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

.footer {
  background: #ffffff;
  color: var(--df-text);
  border-top: 1px solid var(--df-border);
  padding: 60px 5vw 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--primary);
}
.footer-col a {
  display: block;
  color: var(--df-text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-col a:hover {
  color: var(--primary);
  transform: translateX(5px);
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--df-border);
  color: var(--df-text-muted);
  font-size: 14px;
}

.hamburger {
  display: none !important;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-main);
}

/* ================= HOW IT WORKS, APP, TESTIMONIALS ================= */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.step-card {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.step-card .icon-wrap {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.step-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.app-dl {
  background: linear-gradient(135deg, #ffffff, #F8F8FF);
  border: 1px solid var(--df-border);
  border-radius: var(--radius-lg);
  padding: 60px;
  color: var(--df-text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.app-dl-content {
  flex: 1;
  min-width: 300px;
  z-index: 2;
}
.app-dl-content h2 {
  font-size: 36px;
  margin-bottom: 15px;
  line-height: 1.2;
}
.app-dl-content p {
  font-size: 18px;
  color: var(--df-text-muted);
  margin-bottom: 30px;
}
.app-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.app-btn {
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 12px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}
.app-btn:hover {
  background: #1e293b;
  transform: translateY(-3px);
}
.app-btn i {
  font-size: 24px;
}
.app-btn span {
  font-size: 14px;
  font-weight: 500;
  display: block;
  line-height: 1.1;
}
.app-btn strong {
  font-size: 18px;
  display: block;
}
.app-dl img {
  max-width: 300px;
  border-radius: 20px;
  z-index: 2;
  transform: rotate(-5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.testimonial-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
}
.testimonial-user img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-user span {
  font-weight: 700;
  color: var(--text-main);
  display: block;
}
.testimonial-user small {
  color: var(--text-muted);
  font-size: 13px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .features {
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
  }
  .feature {
    min-width: 250px;
  }
}

@media (max-width: 1150px) {
  header {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  header .logo {
    order: 1;
  }
  .hamburger {
    display: block !important;
    order: 2;
  }
  header nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0px;
    margin-top: 0px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.4s ease,
      opacity 0.3s ease,
      margin-top 0.4s ease;
    align-items: flex-start;
  }
  header nav.nav-open {
    max-height: 400px;
    opacity: 1;
    margin-top: 15px;
  }
  header nav a {
    margin-left: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .banner {
    height: 60vh;
    min-height: 500px;
    border-radius: 0 0 20px 20px;
  }
  .banner-content h1 {
    font-size: 32px;
  }
  .banner-content p {
    font-size: 16px;
  }

  .search-bar-hero {
    flex-direction: column;
    border-radius: 20px;
    padding: 15px;
  }
  .search-bar-hero button {
    width: 100%;
    border-radius: 12px;
    margin-top: 10px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .promo-banner {
    padding: 25px;
    text-align: center;
    justify-content: center;
  }
}

@import url("./layout-enhancements.css");
