/* Shop specific resets */
body {
  background-color: var(--c-gray);
  padding-top: 100px; /* Offset for navbar */
}

/* Navbar modifiers */
.shop-navbar {
  border-bottom: 2px solid var(--c-navy);
}
.shop-badge {
  font-size: 0.7rem;
  background: var(--c-navy);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  vertical-align: super;
  margin-left: 0.5rem;
  letter-spacing: 1px;
}
.cart-icon {
  position: relative;
  cursor: pointer;
  color: var(--c-navy);
  display: flex;
  align-items: center;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--c-orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-mono);
}

/* Shop Layout */
.shop-container {
  display: flex;
  gap: 2rem;
  padding-bottom: 4rem;
}

/* Sidebar */
.shop-sidebar {
  width: 280px;
  flex-shrink: 0;
}
.sidebar-widget {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-gray-metallic);
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--c-gray);
  padding-bottom: 0.5rem;
  font-family: var(--font-mono);
}
.category-list {
  list-style: none;
}
.category-list li {
  margin-bottom: 0.5rem;
}
.cat-btn {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
}
.cat-btn:hover {
  color: var(--c-orange);
  padding-left: 5px;
}
.cat-btn.active {
  color: var(--c-navy);
  font-weight: 600;
}
.cat-btn.active::before {
  content: '>';
  color: var(--c-orange);
  margin-right: 8px;
  font-family: var(--font-mono);
  font-weight: bold;
}

/* Main Content */
.shop-main {
  flex-grow: 1;
}
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-gray-metallic);
}
.shop-header h2 {
  font-size: 1.5rem;
  margin: 0;
}
#sort-select {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-gray-metallic);
  font-family: var(--font-sans);
  outline: none;
  color: var(--text-main);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-gray-metallic);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.product-card:hover {
  border-color: var(--c-navy);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}
.product-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--c-gray);
}
.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-sku {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-gray-metallic);
  margin-bottom: 0.5rem;
}
.product-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--c-navy);
  line-height: 1.3;
}
.product-specs {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.product-specs ul {
  list-style-type: none;
  padding-left: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.product-specs li {
  margin-bottom: 0.25rem;
  display: flex;
  align-items: flex-start;
}
.product-specs li::before {
  content: '•';
  color: var(--c-orange);
  margin-right: 0.5rem;
}
.product-price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 1.5rem;
  border-top: 1px dashed var(--c-gray-metallic);
  padding-top: 1rem;
}
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.btn-tech-sheet {
  font-size: 0.85rem;
  padding: 0.5rem;
}
.btn-add-cart {
  width: 100%;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--c-navy);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: var(--font-sans);
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 2000;
  border-left: 4px solid var(--c-orange);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Checkbox */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  user-select: none;
}
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--c-gray);
  border: 1px solid var(--c-gray-metallic);
  border-radius: 4px;
}
.checkbox-container input:checked ~ .checkmark {
  background-color: var(--c-orange);
  border-color: var(--c-orange);
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
  display: block;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* WhatsApp Custom Quote Button for Shop */
.btn-whatsapp-quote {
  background-color: #25D366;
  color: white;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.2);
  transition: all 0.3s ease;
  padding: 0.85rem;
  border: none;
  cursor: pointer;
}
.btn-whatsapp-quote:hover {
  background-color: #718096; /* Gris Acero Industrial */
  box-shadow: 0 4px 12px rgba(113, 128, 150, 0.4);
  transform: translateY(-2px);
}
.btn-whatsapp-quote svg {
  fill: currentColor;
}

@media (max-width: 900px) {
  .shop-container {
    flex-direction: column;
  }
  .shop-sidebar {
    width: 100%;
  }
}
