/* L&R Ingeniería — main stylesheet */

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

body {
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
  background-image: url('/images/bg743.gif');
  background-repeat: repeat;
  color: #000000;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  background-color: #FFFFFF;
  background-image: url('/images/bg743.gif');
  background-repeat: repeat;
  padding: 8px 10px 4px;
}


.header-inner {
  max-width: 659px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-logos {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.header-logos a {
  display: inline-block;
  line-height: 0;
}

.header-banner {
  margin-left: 2px;
}

/* ── Two-column page wrapper ─────────────────────────── */

.page-wrapper {
  display: flex;
  gap: 20px;
  max-width: 659px;
  margin: 10px auto;
  padding: 0 10px;
}

.sidebar {
  width: 154px;
  flex-shrink: 0;
}

.main-content {
  flex: 1;
  max-width: 465px;
}

/* ── Sidebar navigation ──────────────────────────────── */

.sidebar-menu {
  width: 150px;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 2px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #CCE5FF;
  color: #000000;
  text-decoration: none;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
  height: 32px;
}

.sidebar-menu a:hover {
  background-color: #004C99;
  color: #FFFFFF;
}

.sidebar-menu a:active,
.sidebar-menu a.active {
  background-color: #003366;
  color: #FFFFFF;
}

.sidebar-menu a i {
  margin-right: 8px;
  font-size: 14px;
  flex-shrink: 0;
}

/* Language switcher item — slightly distinct */
.sidebar-menu li:first-child a {
  background-color: #B3D4F5;
  font-weight: bold;
}

.sidebar-menu li:first-child a:hover {
  background-color: #004C99;
  color: #FFFFFF;
}

/* ── Main content area ───────────────────────────────── */

.main-content h1 {
  font-size: 15px;
  color: #003366;
  border-bottom: 1px solid #CCE5FF;
  padding-bottom: 4px;
  margin-top: 0;
}

.main-content h2 {
  font-size: 13px;
  color: #004C99;
}

.main-content a {
  color: #004C99;
}

.main-content a:hover {
  color: #003366;
}

.main-content img {
  max-width: 100%;
  height: auto;
}

.page-list {
  padding-left: 16px;
}

.page-list li {
  margin-bottom: 4px;
}

/* ── Footer ──────────────────────────────────────────── */

.site-footer {
  margin: 20px auto;
  max-width: 659px;
  padding: 8px 10px;
  border-top: 1px solid #CCE5FF;
  font-size: 11px;
  color: #333333;
  text-align: center;
}

/* ── Home page carousel (pure CSS, no JS) ───────────── */

.carousel {
  width: 100%;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid #CCE5FF;
  border-radius: 4px;
}

.carousel-strip {
  display: flex;
  width: 300%;
  animation: carousel-slide 12s linear infinite;
}

.carousel-strip img {
  width: 33.333%;
  height: 215px;
  object-fit: contain;
  object-position: center;
  display: block;
  background-image: url('/images/bg743.gif');
  background-repeat: repeat;
}

@keyframes carousel-slide {
  0%      { transform: translateX(0); }
  25%     { transform: translateX(0); }
  33.33%  { transform: translateX(-33.333%); }
  58.33%  { transform: translateX(-33.333%); }
  66.66%  { transform: translateX(-66.666%); }
  91.66%  { transform: translateX(-66.666%); }
  100%    { transform: translateX(0); }
}

/* ── Store product cards ─────────────────────────────── */

.store-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.product-card {
  border: 1px solid #CCE5FF;
  border-radius: 4px;
  padding: 12px;
  background: #FFFFFF;
}

.product-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.product-name {
  font-size: 13px;
  font-weight: bold;
  color: #003366;
  margin-bottom: 6px;
}

.product-description {
  font-size: 12px;
  color: #333333;
  margin-bottom: 8px;
}

.product-meta {
  font-size: 12px;
  margin-bottom: 8px;
  color: #333333;
}

/* Condition badges */
.condition-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 8px;
}

.badge-new {
  background-color: #28a745;
  color: #FFFFFF;
}

.badge-surplus {
  background-color: #ffc107;
  color: #333333;
}

.badge-refurbished {
  background-color: #3a86d4;
  color: #FFFFFF;
}

/* Buy buttons */
.buy-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.buy-btn {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  color: #FFFFFF;
}

.buy-btn:hover {
  opacity: 0.85;
  color: #FFFFFF;
}

.buy-btn-mp {
  background-color: #009ee3;
}

.buy-btn-stripe {
  background-color: #635bff;
}

.store-contact {
  font-size: 12px;
  color: #666666;
  font-style: italic;
}

/* ── Responsive — narrow screens ────────────────────── */

@media (max-width: 560px) {
  .page-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar-menu {
    width: 100%;
  }

  .sidebar-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .sidebar-menu li {
    flex: 1 1 140px;
    margin-bottom: 0;
  }
}
