* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 25%),
    linear-gradient(180deg, #0b0d18 0%, #0f1020 45%, #090b14 100%);
  color: #fff;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* HEADER */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 12, 24, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 84px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: #ddddf3;
  transition: color 0.25s ease;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav a:hover {
  color: #d6b8ff;
}

/* BUTTONS */
.main-btn {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.28);
}

.main-btn:hover {
  transform: translateY(-2px);
  opacity: 0.96;
  box-shadow: 0 16px 34px rgba(139, 92, 246, 0.34);
}

/* HERO */
.hero-showcase {
  padding: 28px 5% 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.hero-big-slider {
  position: relative;
  height: 610px;
  border-radius: 30px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.68) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    rgba(0, 0, 0, 0.52) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 560px;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.02;
  font-weight: 800;
  margin: 18px 0 16px;
  color: #fff;
}

.hero-content p {
  font-size: 1rem;
  color: #ececec;
  max-width: 480px;
  margin-bottom: 26px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(148, 102, 255, 0.18);
  border: 1px solid rgba(196, 165, 255, 0.28);
  color: #eadcff;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-badge.small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.hero-nav {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  gap: 12px;
}

.hero-nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-nav-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.hero-side-cards {
  height: 610px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.side-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.22) 55%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.side-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.side-content h3 {
  font-size: 1.15rem;
  line-height: 1.15;
  margin: 14px 0 8px;
  max-width: 320px;
  color: #fff;
}

.side-content p {
  color: #f0f0f0;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 320px;
}

/* CATALOGUE */
.catalogue {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  padding: 24px 5% 50px;
}

.sidebar {
  background: rgba(23, 24, 45, 0.92);
  padding: 20px;
  border-radius: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.sidebar h2 {
  margin-bottom: 16px;
  color: #ffffff;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #101224;
  transition: transform 0.25s ease, background 0.25s ease;
}

.sidebar li:hover,
.sidebar li.active {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  transform: translateX(2px);
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.products-header h2 {
  color: #fff;
}

.products-header input {
  min-width: 260px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(23, 24, 45, 0.9);
  color: #fff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.products-header input:focus {
  border-color: rgba(192, 156, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: rgba(23, 24, 45, 0.94);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
  border-color: rgba(192, 156, 255, 0.24);
}

.card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-content {
  padding: 14px;
}

.card-category {
  font-size: 0.82rem;
  color: #b8b8b8;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #fff;
}

.card-prices {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.card-old-price {
  color: #9ca3af;
  font-size: 0.95rem;
  text-decoration: line-through;
  opacity: 0.9;
}

.card-price {
  color: #ff7bc3;
  font-size: 1.05rem;
  font-weight: 800;
}

.card-desc {
  color: #d1d1d1;
  font-size: 0.92rem;
  margin-bottom: 12px;
  min-height: 58px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.details-btn,
.wtsp-btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.details-btn:hover,
.wtsp-btn:hover {
  transform: translateY(-2px);
}

.details-btn {
  background: #2a2d4d;
  color: #fff;
}

.wtsp-btn {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.22);
}

/* ADMIN */
.admin-card-top {
  position: relative;
}

.delete-icon-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.delete-icon-btn:hover {
  background: #b91c1c;
  transform: scale(1.08);
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 2000;
}

.modal.show {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 1120px;
  max-height: 92vh;
  background: #0f1430;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 74px rgba(0, 0, 0, 0.46);
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-top {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  min-height: 520px;
}

.modal-gallery {
  position: relative;
  background: #111735;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  min-height: 420px;
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 18px;
  background: #0c1128;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 3;
  transition: 0.25s ease;
}

.gallery-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.gallery-btn.left {
  left: 18px;
}

.gallery-btn.right {
  right: 18px;
}

.modal-text {
  padding: 42px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  overflow-y: auto;
}

.modal-category {
  color: #bfc5e3;
  font-size: 1rem;
  margin: 0;
}

.modal-text h3 {
  font-size: 2.2rem;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  font-weight: 800;
}

.modal-prices {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

.modal-old-price {
  color: #9ca3af;
  font-size: 1.1rem;
  text-decoration: line-through;
}

.modal-price {
  color: #ff7bc3;
  font-size: 2rem;
  font-weight: 900;
}

.modal-desc {
  color: #d9dcef;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 8px;
}

.modal-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  min-width: 190px;
  max-width: 240px;
  padding: 14px 20px;
  border-radius: 14px;
  margin-top: 6px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 0 auto;
}

.modal-thumbs {
  display: flex;
  gap: 12px;
  padding: 18px 22px 22px;
  flex-wrap: wrap;
  background: #161c3d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-thumbs img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.25s ease;
}

.modal-thumbs img:hover {
  transform: translateY(-2px);
}

.modal-thumbs img.active-thumb {
  border-color: #8b5cf6;
}

/* ADMIN PAGE */
.admin-page {
  padding: 30px 5% 50px;
}

.admin-box {
  background: rgba(23, 24, 45, 0.94);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  margin-bottom: 24px;
}

.admin-box h1 {
  margin-bottom: 10px;
}

.admin-box p {
  color: #d3d3d3;
  margin-bottom: 18px;
}

.admin-products h2 {
  color: #fff;
  margin-bottom: 16px;
}

.admin-form-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 3000;
}

.admin-form-modal.show {
  display: flex;
}

.admin-form-card {
  width: 100%;
  max-width: 760px;
  background: #17182d;
  border-radius: 26px;
  padding: 26px;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 90vh;
  overflow-y: auto;
}

.admin-form-card h2 {
  margin-bottom: 18px;
}

.admin-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 8px;
  color: #e7e7e7;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #101224;
  color: #fff;
  outline: none;
}

.form-group small {
  margin-top: 8px;
  color: #aaaaaa;
}

.preview-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
}

.preview-box img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
}

/* FOOTER */
.footer {
  padding: 24px 5%;
  text-align: center;
  color: #8f8f9d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 10px;
}

/* FLOATING WHATSAPP */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 99999;
  text-decoration: none;
  background: #25d366;
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.45);
}

.whatsapp-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .hero-big-slider {
    height: 480px;
  }

  .hero-side-cards {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px;
  }

  .catalogue {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .modal-top {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    min-height: 320px;
  }

  .modal-gallery img {
    max-height: 380px;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 72px;
    padding: 12px 5%;
  }

  .logo img {
    height: 64px;
  }

  .nav {
    display: none;
  }

  .hero-showcase {
    gap: 16px;
  }

  .hero-big-slider {
    height: 340px;
    border-radius: 22px;
  }

  .hero-side-cards {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 200px);
    gap: 16px;
  }

  .side-card {
    border-radius: 22px;
  }

  .form-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 24px;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }

  .products-header input {
    width: 100%;
    min-width: auto;
  }

  .modal {
    padding: 14px;
  }

  .modal-content {
    border-radius: 22px;
    max-height: 94vh;
  }

  .modal-gallery {
    min-height: 240px;
    padding: 18px;
  }

  .modal-gallery img {
    max-height: 280px;
  }

  .modal-text {
    padding: 24px 18px 22px;
    gap: 12px;
  }

  .modal-text h3 {
    font-size: 1.7rem;
  }

  .modal-price {
    font-size: 1.6rem;
  }

  .modal-desc {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .modal-whatsapp-btn {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: 14px 18px;
    white-space: normal;
  }

  .modal-thumbs {
    padding: 14px 14px 18px;
    gap: 10px;
  }

  .modal-thumbs img {
    width: 66px;
    height: 66px;
  }

  .admin-form-card {
    padding: 20px;
    border-radius: 20px;
  }

  .hero-nav-btn {
    width: 46px;
    height: 46px;
  }

  .gallery-btn {
    width: 44px;
    height: 44px;
  }

  .close-modal {
    width: 42px;
    height: 42px;
    top: 12px;
    right: 12px;
  }

  .floating-whatsapp {
    width: 50px;
    height: 50px;
    right: 14px;
    bottom: 16px;
  }

  .whatsapp-icon-img {
    width: 26px;
    height: 26px;
  }
}