*{
margin:0;
padding:0;
box-sizing:border-box;
font-family: 'Segoe UI', sans-serif;
}

body{
background:#f4f4f4;
color:#333;
}

/* ===============================
   NAVBAR
=============================== */

nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 40px;
background:white;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.logo{
font-size:22px;
font-weight:bold;
color:#ff6a00;
}

nav ul{
display:flex;
gap:25px;
list-style:none;
}

nav a{
text-decoration:none;
color:#333;
font-weight:500;
}

.btn{
background:#ff6a00;
color:white;
padding:10px 18px;
border-radius:25px;
}

/* ===============================
   HERO
=============================== */

.hero{
height:80vh;
background:linear-gradient(to right, rgba(255,106,0,0.9), rgba(255,106,0,0.4)),
url('https://source.unsplash.com/1600x900/?city,map');
background-size:cover;
background-position:center;
display:flex;
align-items:center;
padding:60px;
color:white;
}

.hero-content{
max-width:600px;
}

.hero h1{
font-size:48px;
margin-bottom:20px;
}

.search-box{
margin-top:20px;
display:flex;
}

.search-box input{
flex:1;
padding:15px;
border:none;
border-radius:30px 0 0 30px;
outline:none;
}

.search-box button{
padding:15px 25px;
border:none;
background:#1f1f1f;
color:white;
border-radius:0 30px 30px 0;
cursor:pointer;
}

/* ===============================
   MAP
=============================== */

#map{
height:450px;
margin:40px;
border-radius:15px;
}

/* ===============================
   SECTION
=============================== */

.section{
padding:40px;
}

.section h2{
margin-bottom:30px;
color:#ff6a00;
}

/* ===============================
   SLIDER PROFESIONAL
=============================== */

.slider-wrapper{
position:relative;
display:flex;
align-items:center;
}

.cards{
display:flex;
gap:20px;
overflow:hidden;
scroll-behavior:smooth;
padding:0 60px; /* espacio para botones */
}

.slider-btn{
position:absolute;
top:50%;
transform:translateY(-50%);
background:#ff6a00;
color:white;
border:none;
width:45px;
height:45px;
border-radius:50%;
cursor:pointer;
font-size:18px;
z-index:10;
box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.slider-btn.left{
left:10px;
}

.slider-btn.right{
right:10px;
}

/* ===============================
   CARD
=============================== */

.card{
min-width:280px;
flex-shrink:0;
background:white;
border-radius:15px;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
padding:15px;
transition:0.3s;
}

.card:hover{
transform:translateY(-6px);
}

.card img{
width:100%;
height:180px;
object-fit:cover;
border-radius:10px;
margin-bottom:10px;
}

.card-buttons{
display:flex;
gap:10px;
margin-top:10px;
flex-wrap:wrap;
}

.card button{
background:#ff6a00;
border:none;
color:white;
padding:8px 15px;
border-radius:20px;
cursor:pointer;
transition:0.2s;
}

.card button:hover{
opacity:0.85;
}

.map-btn{
background:#1f1f1f !important;
}
html {
scroll-behavior: smooth;
}

#productsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.product-image {
  width: 100%;
  height: 180px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 ESTO ARREGLA TODO */
}
.product-info {
  padding: 12px;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

.product-price {
  font-size: 16px;
  font-weight: bold;
  color: #ff6a00;
  margin-bottom: 4px;
}

.product-store {
  font-size: 13px;
  color: #777;
}

.products-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  background: #fff;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 15px;
}
.products-title h1 {
  margin: 0;
  font-size: 26px;
  color: #222;
}

.products-title span {
  font-size: 14px;
  color: #777;
}
.products-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-box {
  position: relative;
}

.products-actions .search-box {
  display: flex;
  align-items: center;
  position: relative;
}

.products-actions .search-box input,
.products-actions .filter-select {
  height: 42px;
  box-sizing: border-box;
}

.products-actions .search-box input {
  padding: 0 35px 0 12px;
}

.search-box input:focus {
  border-color: #ff6a00;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.filter-select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  cursor: pointer;
  background: #fff;
  transition: 0.2s;
}

.filter-select:hover {
  border-color: #ff6a00;
}

.back-btn {
  display: inline-block;
  margin-bottom: 10px;
  color: #ff6a00;
  text-decoration: none;
  font-weight: 500;
}

.back-btn:hover {
  opacity: 0.7;
}   

/* ===============================
   FOLLOWING STORES (DASHBOARD)
=============================== */

#followingStores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.follow-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.follow-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.follow-card img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  background: #eee;
}

.follow-card div {
  flex: 1;
}

.follow-card strong {
  font-size: 14px;
  color: #222;
}

.follow-card span {
  font-size: 12px;
  color: #777;
}

.follow-card a {
  background: #ff6a00;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  transition: 0.2s;
}

.follow-card a:hover {
  opacity: 0.85;
}