/* ==========================================================================
   L&D Visual - Exact PrestaShop / Medicare Original Theme Replica
   ========================================================================== */

:root {
  --theme-font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --theme-primary: #1e293b;
  --theme-accent: #2fb5d2;
  --theme-dark: #232323;
  --theme-gray-light: #f6f6f6;
  --theme-border: #e5e5e5;
  --theme-text: #555555;
  --theme-text-dark: #222222;
  --theme-gold: #c5a880;
  --theme-whatsapp: #25d366;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--theme-font);
  color: var(--theme-text);
  background-color: #ffffff;
  line-height: 1.5;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--theme-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 1. Header Nav Top */
.header-nav {
  background: #232323;
  color: #c0c0c0;
  font-size: 12px;
  border-bottom: 1px solid #333;
}

.header-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item-contact svg {
  fill: #c0c0c0;
}

/* 2. Main Header (Logo & Search) */
.header-top {
  padding: 20px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--theme-border);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.header-logo img {
  max-height: 60px;
  width: auto;
}

.header-search {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 45px 10px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  background: #fdfdfd;
}

.header-search input:focus {
  border-color: #232323;
  background: #fff;
}

.header-search button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 45px;
  background: #232323;
  border: 1px solid #232323;
  border-radius: 0 4px 4px 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--theme-whatsapp);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

.btn-header-wa:hover {
  background: #1eb956;
  color: #fff;
}

/* 3. Main Navigation Menu */
.main-nav-bar {
  background: #232323;
}

.main-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav-menu > li > a {
  display: block;
  padding: 14px 20px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-right: 1px solid #333333;
}

.main-nav-menu > li:first-child > a {
  border-left: 1px solid #333333;
}

.main-nav-menu > li > a:hover,
.main-nav-menu > li.active > a {
  background: #000000;
  color: #ffffff;
}

/* 4. Full Width Banner Slider */
.slider-section {
  position: relative;
  background: #000;
  overflow: hidden;
  max-height: 480px;
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.slide-item {
  min-width: 100%;
  position: relative;
}

.slide-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

.slider-dot.active {
  background: #ffffff;
}

/* 5. Categories Quadrant Banners */
.quadrants-section {
  padding: 40px 0 20px;
}

.quadrants-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.quadrant-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  background: #f8f8f8;
}

.quadrant-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.quadrant-card:hover img {
  transform: scale(1.03);
}

.quadrants-grid-brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 6. Products PrestaShop Tab Section */
.hometabs-section {
  padding: 50px 0 40px;
  background: #ffffff;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 30px;
}

.section-title-wrap h2 {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--theme-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title-wrap h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #232323;
}

.presta-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
  list-style: none;
}

.presta-tab-btn {
  padding: 8px 18px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.presta-tab-btn:hover,
.presta-tab-btn.active {
  background: #232323;
  color: #fff;
  border-color: #232323;
}

.filter-bar-presta {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  padding: 12px 20px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-bar-presta input {
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
  width: 280px;
}

/* Products Grid PrestaShop Style */
.presta-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.presta-product-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}

.presta-product-card:hover {
  border-color: #b0b0b0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.presta-product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  cursor: pointer;
  overflow: hidden;
}

.presta-product-img img {
  max-height: 150px;
  object-fit: contain;
  transition: transform 0.3s;
}

.presta-product-card:hover .presta-product-img img {
  transform: scale(1.05);
}

.presta-product-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #232323;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
}

.presta-product-flag.sol {
  background: #e67e22;
}

.presta-product-flag.receta {
  background: #2980b9;
}

.presta-product-brand {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.presta-product-title {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

.presta-product-colors {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 15px;
}

.presta-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #555;
}

.presta-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-presta-detail {
  background: #f0f0f0;
  border: 1px solid #ddd;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-presta-detail:hover {
  background: #232323;
  color: #fff;
  border-color: #232323;
}

.btn-presta-wa {
  background: var(--theme-whatsapp);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-presta-wa:hover {
  background: #1eb956;
}

/* 7. Pilares de Confianza Section */
.pilares-section {
  padding: 40px 0;
  background: #fbfbfb;
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.pilar-item img {
  max-height: 90px;
  margin: 0 auto 15px;
}

.pilar-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: #232323;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pilar-item p {
  font-size: 13px;
  color: #777;
}

/* 8. Prefooter Contact Bar */
.prefooter-bar {
  background: #232323;
  color: #ffffff;
  padding: 30px 0;
}

.prefooter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}

.prefooter-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.prefooter-item img {
  width: 45px;
  height: 45px;
  border-radius: 4px;
}

.prefooter-text h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.prefooter-text p {
  font-size: 12px;
  color: #bbb;
}

/* 9. PrestaShop Footer */
.presta-footer {
  background: #1a1a1a;
  color: #999;
  padding: 50px 0 20px;
  border-top: 1px solid #333;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #2fb5d2;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  font-size: 13px;
  color: #aaa;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom-copy {
  border-top: 1px solid #282828;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #777;
}

/* Modal Lightbox */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 880px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f0f0f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-img-col {
  padding: 30px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #eee;
}

.modal-main-img {
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
}

.modal-thumbs-row {
  display: flex;
  gap: 10px;
}

.modal-thumb-btn {
  width: 55px;
  height: 45px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  padding: 2px;
}

.modal-thumb-btn.active {
  border-color: #232323;
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-info-col {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.modal-info-col h3 {
  font-size: 20px;
  color: #222;
  margin-bottom: 5px;
}

.modal-info-col .brand-tag {
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13px;
}

.modal-specs-table td {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.modal-specs-table td:first-child {
  color: #777;
}

.modal-specs-table td:last-child {
  font-weight: 600;
  color: #222;
  text-align: right;
}

.btn-modal-wa {
  background: var(--theme-whatsapp);
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  border: none;
  cursor: pointer;
}

.btn-modal-wa:hover {
  background: #1eb956;
}

/* Responsive */
@media (max-width: 992px) {
  .presta-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quadrants-grid-top,
  .quadrants-grid-brands,
  .pilares-grid,
  .prefooter-grid,
  .footer-columns-grid,
  .modal-body-grid {
    grid-template-columns: 1fr;
  }
  .modal-img-col {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
}

@media (max-width: 600px) {
  .presta-products-grid {
    grid-template-columns: 1fr;
  }
  .header-top .container {
    flex-direction: column;
  }
  .header-search {
    width: 100%;
  }
}
