/* =========================
   Base
   ========================= */
html{ scroll-behavior:smooth; }

*,*::before,*::after{ box-sizing:border-box; }

body{
  margin:0;
  font-family:system-ui, sans-serif;
  color:#333;

  /* Fondo general (home). Article lo sobrescribe en Style_Article.css */
  background-image:url("./img/DSC_6639.JPG");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;
}

/* =========================
   Menu (reutilizado)
   ========================= */
.menu{
  position:fixed;
  top:0; left:0;
  width:100%;
  z-index:9999;

  display:flex;
  justify-content:space-between;
  padding:5px 15px;

  color:#fff;
}

.opcions{
  display:flex;
  gap:32px;
  align-items:center;
}

#title{ 
  margin:0; 
  padding:10px 0;

  display:inline-block;
  border-radius:14px;

  background: linear-gradient(
  180deg,
  rgba(0,0,0,0),
  rgba(0, 0, 0, 0)
);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 10px 30px rgba(0,0,0,0);
  text-shadow: 0 2px 10px rgba(0,0,0,0);
}

#menu-opcions1,#menu-opcions2,#menu-opcions3,#menu-opcions4{
  margin:0;
  padding:10px 0;
  cursor:pointer;

}

.menu-perfil{
  padding:1px 30px;
  display:flex;
  flex-direction: column; 

  align-items:center;
  gap:10px;
}

#menu-perfel-text{
  margin:0;
  padding:0;
  cursor:pointer;
}

.menu-perfil img{
  width:30px;
  height:30px;
  border-radius:50%;
  background-color:#fff;
}

/* Buscador */
.menu-buscador{
  display:flex;
  align-items:center;
}

.menu-buscador input{
  width:460px;
  padding:8px 14px;

  background:rgba(255,255,255,0.15);
  border:1px solid rgba(255,255,255,0.80);
  border-radius:999px;

  color:#fff;
  font-size:14px;

  backdrop-filter:blur(6px);
  outline:none;

  transition: background .2s ease, border .2s ease;
}

.menu-buscador input::placeholder{
  color:rgba(255,255,255,0.52);
  font-weight:500;
}

/* Estado "menu-hidden": ocultamos solo algunas opciones */
.menu-hidden #menu-opcions1,
.menu-hidden #menu-opcions2,
.menu-hidden #menu-opcions3,
.menu-hidden #menu-opcions4{
  color:rgba(255,255,255,0);
  pointer-events:none;
  background: transparent;
}

.menu:not(.menu-hidden) #menu-opcions1,
.menu:not(.menu-hidden) #menu-opcions2,
.menu:not(.menu-hidden) #menu-opcions3,
.menu:not(.menu-hidden)#menu-opcions4{
  display:inline-block;          
  border-radius:14px;

  background: linear-gradient(
    180deg,
    rgba(0,0,0,0),
    rgba(0, 0, 0, 0)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 10px 30px rgba(0,0,0,0);
  text-shadow: 0 2px 10px rgba(0,0,0,0);}

/* =========================
   Header / Hero
   ========================= */
.header{
  /*background-image:url("./img/img4.jfif");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  min-height:100vh;

  display:flex;
  flex-direction:column;*/
  min-height: auto;
}


/* HERO */
.hero{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  display:flex;
  align-items:center;

  padding:110px 6vw 70px;
  color:#F2F6FF;
}

.hero-bg{
  position:absolute;
  inset:-30%;
  background:
    radial-gradient(40% 45% at 20% 30%, rgba(31,214,194,0.45), transparent 60%),
    radial-gradient(45% 55% at 70% 35%, rgba(77,163,255,0.42), transparent 60%),
    radial-gradient(50% 60% at 55% 80%, rgba(139,92,246,0.28), transparent 60%),
    linear-gradient(120deg, #0b2742, #146aa0);
  filter:saturate(120%) brightness(1.12);
  animation: heroFloat 9s ease-in-out infinite;
  will-change: transform, filter;
}
.hero-bg::after{
  content:"";
  position:absolute;
  inset:-10%;
  background:
    radial-gradient(45% 55% at 35% 35%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(40% 45% at 70% 60%, rgba(31,214,194,0.18), transparent 62%);
  opacity:0.65;
  pointer-events:none;
  animation: heroFloat2 7s ease-in-out infinite;
  will-change: transform;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.40) 20%,
    rgba(0,0,0,0.16) 55%,
    rgba(0,0,0,0.40) 100%);
  pointer-events:none;
}

@keyframes heroFloat{
  0%{
    transform: translate(-4%, -3%) scale(1.06) rotate(-1.2deg);
    filter: saturate(120%) brightness(1.12);
  }
  50%{
    transform: translate(4%, 3%) scale(1.12) rotate(1.2deg);
    filter: saturate(135%) brightness(1.18);
  }
  100%{
    transform: translate(-4%, -3%) scale(1.06) rotate(-1.2deg);
    filter: saturate(120%) brightness(1.12);
  }
}
@keyframes heroFloat2{
  0%{ transform: translate(2%, -2%) scale(1.03); }
  50%{ transform: translate(-2%, 2%) scale(1.07); }
  100%{ transform: translate(2%, -2%) scale(1.03); }
}

@media (prefers-reduced-motion: reduce){
  .hero-bg, .hero-bg::after{ animation: none !important; }
}

.hero-content{
  position:relative;
  width:100%;
  max-width:1200px;
  margin:0 auto;
}

.hero-content-text{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.hero-pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.14);
  backdrop-filter:blur(8px);
  font-size:14px;
}

.hero-title{
  margin:22px 0 14px;
  font-size:clamp(38px, 5vw, 64px);
  line-height:1.05;
  letter-spacing:-0.02em;
  text-shadow:0 8px 30px rgba(0,0,0,0.45);
}

/* Slider / Cards en el hero */
.slider-row{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:22px;
  margin-top:3%;
}

.slider-opcions{
  flex:1;
  display:flex;
  justify-content:space-evenly;
  align-items:center;
  gap:20px;
}

.slider-opcions h3{
  color:#fff;
  background:rgba(0,0,0,0.55);
  padding:12px 20px;
  border-radius:10px;
}

.slider-card{
  width:280px;
  min-height:350px;

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-decoration:none;

  background:rgba(255, 255, 255, 0.177);
  border:1px solid rgba(255,255,255,0.73);
  border-radius:18px;

  backdrop-filter:blur(10px);
  box-shadow:0 18px 45px rgba(0,0,0,0.35);

  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.slider-card:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,0.10);
  border-color:rgba(255,255,255,0.85);
}

.slider-card h2{
  color:#fff;
  margin:15px 3% 10px;
  text-align:center;
}

.slider-card h4{
  color:rgba(255,255,255,0.78);
  margin:0 3% 15px;
  text-align:center;
}

.btn-primary,
.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height:44px;
  padding:0 18px;
  border-radius:12px;

  font-weight:700;
  text-decoration:none;

  transition: transform .15s ease, filter .15s ease, background .15s ease;
}

.btn-primary{
  background:rgba(31,214,194,0.95);
  color:#07121F;
  box-shadow:0 10px 30px rgba(31,214,194,0.25);
}

.btn-secondary{
  background:rgba(255,255,255,0.10);
  color:#F2F6FF;
  border:1px solid rgba(255,255,255,0.18);
  backdrop-filter:blur(10px);
}

.btn-primary:hover,
.btn-secondary:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}

.card-btn{
  margin-top:auto;
  margin-bottom:20px;

  padding:10px 20px;
  border-radius:8px;

  background:rgba(255,255,255,0.9);
  color:#000;
  border:none;

  font-weight:600;
  cursor:pointer;

  transition:background .2s ease, transform .2s ease;
}

.card-btn:hover{
  background:#fff;
  transform:translateY(-2px);
}

/* =========================
   Sección compra (filtros + resultados)
   ========================= */
.barra-compra-container{
  width:100%;
  border-top:1px solid #000;
  padding:10px 20px;

  box-shadow:0 -2px 5px rgba(0,0,0,0.72);
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,0.90),
    rgba(0,0,0,0.79)
  );
  color:#fff;
}

#barra-compra{
  color:#fff;
  font-weight:700;
  text-shadow:0 2px 6px rgba(0,0,0,0.70);
  scroll-margin-top:86px;
}

.shop-layout{
  display:flex;
  gap:20px;
  align-items:flex-start;
  width:100%;
  height:900px;
}

.filter-compra{
  position:sticky;
  top:8%;
  margin:5px 0 0 10px;

  padding:20px;
  min-width:20%;
  min-height:60%;

  background:rgba(18,18,18,0.31);
  backdrop-filter:blur(5px);

  border:2px solid rgba(255,255,255,0.55);
  border-radius:16px;

  box-shadow:
    0 8px 25px rgba(0,0,0,0.73),
    inset 0 1px 0 rgba(255,255,255,0.30);

  color:rgba(255,255,255,0.92);
}

.filter-compra h3{
  margin:0 0 15px;
  color:#fff;
  font-weight:700;
  text-shadow:0 1px 4px rgba(0,0,0,0.60);
}

.shop-placeholder{
  flex:1;
  margin:10px 15px 10px 10px;

  padding:20px;
  height:inherit;
  min-width:240px;

  background:rgba(18,18,18,0.31);
  backdrop-filter:blur(5px);

  border:2px solid rgba(255,255,255,0.45);
  border-radius:16px;

  box-shadow:
    0 8px 25px rgba(0,0,0,0.73),
    inset 0 1px 0 rgba(255,255,255,0.30);

  color:rgba(255,255,255,0.90);
}

.shop-placeholder h3{
  color:#fff;
  font-weight:700;
  text-shadow:0 1px 4px rgba(0,0,0,0.60);
}

.shop-placeholder p{
  color:rgba(255,255,255,0.80);
}

/* Bloques filtros */
.filter-block{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,0.14);
}

.filter-block:first-of-type{
  border-top:none;
  padding-top:0;
  margin-top:0;
}

.filter-block h4{
  margin:0 0 10px;
  color:rgba(255,255,255,0.92);
  font-size:13px;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.filter-compra label{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0;
  color:rgba(255,255,255,0.88);
  user-select:none;
}

.filter-acc{ margin:8px 0; }

.filter-acc summary{
  cursor:pointer;
  color:rgba(255,255,255,0.92);
  font-weight:650;
  list-style:none;
}

.filter-acc summary::-webkit-details-marker{ display:none; }

.filter-acc summary::before{
  content:"▸";
  display:inline-block;
  margin-right:10px;
  opacity:0.9;
  transform:translateY(-1px);
}

.filter-acc[open] summary::before{ content:"▾"; }

.filter-parent-row{
    display:grid;
    grid-template-columns:auto minmax(0, 1fr) 20px;
    align-items:center;
    gap:8px;
}

.filter-parent-row::before{
    grid-column:1;
}

.filter-parent-name{
    grid-column:2;
    min-width:0;
}

.filter-parent-check{
    grid-column:3;
    width:18px;
    height:18px;
    margin:0;
    cursor:pointer;
    justify-self:end;
    appearance:none;
    -webkit-appearance:none;
    display:grid;
    place-items:center;
    border:2px solid rgba(255,255,255,0.76);
    border-radius:3px;
    background:rgba(255,255,255,0.08);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.16),
      0 0 0 1px rgba(0,0,0,0.08);
    transition:background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.filter-parent-check::after{
    content:"";
    width:8px;
    height:12px;
    border:solid #07121F;
    border-width:0 3px 3px 0;
    opacity:0;
    transform:rotate(45deg) scale(0.65);
    transition:opacity .12s ease, transform .16s ease;
}

.filter-parent-check:hover{
    border-color:#22d3c5;
    box-shadow:0 0 0 3px rgba(34,211,197,0.14);
}

.filter-parent-check:checked{
    border-color:#22d3c5;
    background:#22d3c5;
    box-shadow:
      0 0 0 3px rgba(34,211,197,0.18),
      0 8px 20px rgba(34,211,197,0.18);
}

.filter-parent-check:checked::after{
    opacity:1;
    transform:rotate(45deg) scale(1);
}

.filter-parent-check:focus-visible{
    outline:2px solid rgba(255,255,255,0.9);
    outline-offset:3px;
}

.subitems{
  margin:10px 0 2px 8px;
  padding-left:14px;
  border-left:1px solid rgba(255,255,255,0.18);
}

.price-range{
    position:relative;
    height:28px;
    margin-top:4px;
}

.price-range__track,
.price-range__fill{
    position:absolute;
    left:0;
    right:0;
    top:50%;
    height:8px;
    border-radius:999px;
    transform:translateY(-50%);
}

.price-range__track{
    background:rgba(255,255,255,0.18);
    box-shadow:inset 0 1px 2px rgba(0,0,0,0.28);
}

.price-range__fill{
    left:0;
    right:auto;
    width:100%;
    background:linear-gradient(90deg, #22d3c5, #3b82f6);
    box-shadow:0 0 16px rgba(34,211,197,0.24);
}

.price-range input[type="range"]{
    position:absolute;
    inset:0;
    width:100%;
    margin:0;
    pointer-events:none;
    appearance:none;
    -webkit-appearance:none;
    background:transparent;
}

.price-range input[type="range"]::-webkit-slider-thumb{
    width:18px;
    height:18px;
    border:2px solid rgba(255,255,255,0.9);
    border-radius:50%;
    background:#22d3c5;
    box-shadow:0 5px 16px rgba(0,0,0,0.28);
    cursor:pointer;
    pointer-events:auto;
    appearance:none;
    -webkit-appearance:none;
}

.price-range input[type="range"]::-moz-range-thumb{
    width:18px;
    height:18px;
    border:2px solid rgba(255,255,255,0.9);
    border-radius:50%;
    background:#22d3c5;
    box-shadow:0 5px 16px rgba(0,0,0,0.28);
    cursor:pointer;
    pointer-events:auto;
}

#priceMin{
    z-index:3;
}

#priceMax{
    z-index:4;
}

.price-values{
  margin-top:8px;
  color:rgba(255,255,255,0.85);
  font-size:14px;
}

.currency-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:12px;
}

.filter-label{
  color:rgba(255,255,255,0.85);
  font-size:14px;
}

/* ---------- GLASS SELECT (Moneda) ---------- */
.glass-select{
  position:relative;
  width:100%;
}

.glass-select__btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:10px 12px;
  border-radius:12px;

  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.30);
  backdrop-filter:blur(6px);

  color:rgba(255,255,255,0.92);
  font-weight:600;

  cursor:pointer;
  outline:none;
}

.glass-select__btn:hover{
  background:rgba(255,255,255,0.14);
  border-color:rgba(255,255,255,0.38);
}

.glass-select__chev{
  opacity:.85;
  transform:translateY(-1px);
}

.glass-select__list{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  width:100%;
  z-index:9999;

  margin:0;
  padding:6px;
  list-style:none;

  border-radius:14px;
  border:1px solid rgba(255,255,255,0.25);

  background:rgba(10,14,18,0.65);
  backdrop-filter:blur(10px);

  box-shadow:0 14px 40px rgba(0,0,0,0.45);

  max-height:220px;
  overflow:auto;

  display:none;
}

.glass-select.is-open .glass-select__list{ display:block; }

.glass-select__option{
  display:grid;
  grid-template-columns:52px 1fr 18px;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:10px;

  color:rgba(255,255,255,0.90);
  cursor:pointer;
}

.glass-select__code{
  font-weight:750;
  color:rgba(255,255,255,0.95);
}

.glass-select__name{
  color:rgba(255,255,255,0.66);
}

.glass-select__option:hover{ background:rgba(255,255,255,0.12); }

.glass-select__option.is-selected{ background:rgba(255,255,255,0.16); }

.glass-select__option.is-selected::after{
  content:"✓";
  opacity:.9;
  justify-self:end;
}

/* =========================
   RESULTS: product cards
   ========================= */
.results-head{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:14px;
}

.results-sub{
  margin:0;
  color:rgba(255,255,255,0.78);
}

.results-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  gap:16px;

  padding-top:10px;
  border-top:1px solid rgba(255,255,255,0.12);
}

.product-card{
  overflow:hidden;
  height:auto;
  border-radius:16px;
  text-decoration:none;

  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.20);

  backdrop-filter:blur(10px);
  box-shadow:0 18px 45px rgba(0,0,0,0.30);

  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.product-card *{
  text-decoration:none;
}

.product-card:hover{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,0.32);
  background:rgba(255,255,255,0.10);
}

.product-card--featured{
  border-color:rgba(34,211,197,0.45);
  box-shadow:0 20px 54px rgba(12,190,180,0.18), 0 18px 45px rgba(0,0,0,0.30);
}

.product-media{
  position:relative;
  width:100%;
  aspect-ratio:4 / 3;
  background:rgba(0,0,0,0.25);
}

.product-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:0;
}

.product-status-badge{
  position:absolute;
  top:10px;
  right:10px;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(7,18,31,0.78);
  border:1px solid rgba(255,255,255,0.22);
  color:#fff;
  font-size:12px;
  font-weight:900;
  backdrop-filter:blur(10px);
}

.product-featured-badge{
  position:absolute;
  top:10px;
  left:10px;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(34,211,197,0.82);
  border:1px solid rgba(255,255,255,0.32);
  color:#fff;
  font-size:12px;
  font-weight:900;
  backdrop-filter:blur(10px);
}

.product-card--sold .product-media img,
.product-card--archived .product-media img{
  filter:saturate(0.65) brightness(0.76);
}

.media-count{
  position:absolute;
  left:10px;
  bottom:10px;

  font-size:12px;
  font-weight:700;
  color:rgba(255,255,255,0.92);

  padding:6px 10px;
  border-radius:999px;

  background:rgba(0,0,0,0.45);
  border:1px solid rgba(255,255,255,0.18);
  backdrop-filter:blur(6px);
}

.product-body{
  padding:14px 14px 12px;
  color:rgba(255,255,255,0.92);
}

.product-price{
  font-size:18px;
  font-weight:800;
  letter-spacing:-0.01em;
  margin-bottom:6px;
}

.product-title{
  margin:0 0 8px;
  font-size:15px;
  font-weight:750;
  line-height:1.25;
}

.product-desc{
  margin:0 0 10px;
  font-size:13px;
  line-height:1.35;
  color:rgba(255,255,255,0.75);

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.product-tags{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.tag{
  font-size:12px;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;

  background:rgba(31,214,194,0.18);
  border:1px solid rgba(31,214,194,0.35);
  color:rgba(242,246,255,0.95);
}

.tag-soft{
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.18);
}

.tag-status{
  background:rgba(255,255,255,0.10);
  border-color:rgba(255,255,255,0.20);
}

.tag-status--active{
  background:rgba(31,214,194,0.18);
  border-color:rgba(31,214,194,0.35);
}

.tag-status--reserved{
  background:rgba(255,216,74,0.16);
  border-color:rgba(255,216,74,0.30);
}

.tag-status--sold,
.tag-status--archived{
  background:rgba(255,120,120,0.14);
  border-color:rgba(255,120,120,0.28);
}

.product-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  padding-top:10px;
  border-top:1px solid rgba(255,255,255,0.12);
}

.seller{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.seller-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(255,255,255,0.75);
  border:1px solid rgba(255,255,255,0.35);
}

.seller-name{
  font-size:12px;
  color:rgba(255,255,255,0.80);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:140px;
}

.seller-name[data-seller-url]{
  cursor:pointer;
  border-bottom:1px solid rgba(34,211,197,0.40);
}

.rating{
  font-size:12px;
  font-weight:800;
  color:rgba(255,255,255,0.85);
}


/* Links del menú */
.opcions a{
  color:#fff;
  text-decoration:none;
  margin:0;
  padding:10px 0;
}

.opcions a:hover{
  text-decoration:underline;
}

/* Perfil como link */
.menu-perfil{
  color:#fff;
  text-decoration:none;
}


/* =========================
   perfil
   ========================= */

  .profile-dropdown{
  position: relative;
  display: flex;
  align-items: center;
}

.profile-btn{
  display: flex;
  align-items: center;
  gap: 10px;
  background:linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
  border:1px solid rgba(255,255,255,0.16);
  cursor: pointer;
  color: inherit;
  padding: 5px 10px;

  min-width: max-content;
  border-radius: 14px;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 10px 30px rgba(0,0,0,0.12);
}

.profile-btn img{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.08);
}

.profile-login-btn{
  padding: 8px 20px;
}

.lang-dropdown{
  position:relative;
  color:#fff;
  z-index:10000;
}

.lang-dropdown summary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  cursor:pointer;
  font-weight:600;
  list-style:none;
  line-height:1;
}

.lang-dropdown summary::-webkit-details-marker{
  display:none;
}

.lang-dropdown summary::after{
  content:"";
  width:0;
  height:0;
  margin-left:7px;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid rgba(255,255,255,0.82);
}

.lang-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:180px;
  padding:10px;
  border:1px solid rgba(255,255,255,0.16);
  border-radius:16px;
  background:rgba(7,18,31,0.92);
  box-shadow:0 18px 50px rgba(0,0,0,0.35);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.lang-dropdown:not([open]) .lang-menu{
  display:none;
}

.lang-menu a{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:8px;
  align-items:center;
  padding:10px;
  border-radius:10px;
  color:#fff;
  text-decoration:none;
}

.lang-menu a:hover,
.lang-menu a.is-active{
  background:rgba(255,255,255,0.12);
}

.lang-menu span{
  font-weight:900;
}

.lang-menu small{
  color:rgba(255,255,255,0.68);
  font-size:12px;
}

.profile-name{
  font-weight: 600;
}

.profile-unread{
  min-width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 6px;
  border-radius:999px;
  background:#22d3c5;
  color:#062033;
  font-size:12px;
  font-weight:900;
  line-height:1;
  box-shadow:0 0 0 2px rgba(255,255,255,0.18);
}

.profile-menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10, 25, 45, 0.95);
  backdrop-filter: blur(10px);

  display: none;
  z-index: 9999;
}

.profile-dropdown.open .profile-menu{
  display: block;
}

.profile-menu a{
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
}

.profile-menu a:hover{
  background: rgba(255,255,255,0.08);
}

.profile-menu hr{
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 8px 0;
}

.login-btn{
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.login-btn:hover{
  background: rgba(255,255,255,0.18);
}

/* --- Scroll intern per a Resultats --- */
.shop-placeholder{
  display:flex;
  flex-direction:column;
}

/* aquesta zona serà la que fa scroll */
.results-scroll{
  flex:1;
  overflow:auto;
  padding-right:6px;
}

/* opcional: una mica d'aire al final per al loader */
.results-grid{
  padding-bottom:14px;
}

/* opcional: scrollbar més discreta (Chrome/Edge) */
.results-scroll::-webkit-scrollbar{ width:10px; }
.results-scroll::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

/*-----mida cortas---*/

/* Imagen arriba fija */
.product-media{
  flex:0 0 auto;
}

/* Cuerpo rellena y empuja footer abajo */
.product-body{
  flex:1;
  display:flex;
  flex-direction:column;
}

/* Título también recortado (evita crecer en altura) */
.product-title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Footer siempre abajo */
.product-footer{
  margin-top:auto;
}

.logo {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo:hover {
    opacity: 0.85;
}

.header{
  min-height: auto !important;
  background-image: none !important;
}

.menu,
.opcions,
.profile-dropdown{
  overflow: visible !important;
}

.profile-dropdown{
  position: relative;
  z-index: 10000;
}

.profile-menu{
  z-index: 10001;
}

@media (max-width: 820px){
  .menu{
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:start;
    gap:8px 12px;
    padding:10px 14px;
  }

  .menu #title{
    font-size:20px;
    line-height:1.05;
    max-width:96px;
    white-space:normal;
  }

  .menu-buscador{
    min-width:0;
  }

  .menu-buscador input{
    width:100%;
    min-width:0;
  }

  .opcions{
    grid-column:1 / -1;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:nowrap;
    font-size:14px;
    min-width:0;
  }

  .profile-login-btn{
    padding:8px 14px;
    max-width:none;
  }

  .profile-btn{
    max-width:126px;
    padding:5px 8px;
  }

  .profile-btn img{
    flex:0 0 auto;
  }

  .profile-name{
    min-width:0;
    max-width:72px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .profile-login-btn .profile-name{
    max-width:none;
  }

  .profile-dropdown .profile-name{
    display:none;
  }

  .lang-menu,
  .profile-menu{
    max-width:calc(100vw - 28px);
  }

  .hero{
    min-height:auto;
    padding:154px 0 44px;
    overflow:hidden;
  }

  .hero-content{
    width:100%;
    padding:0 20px;
  }

  .hero-title{
    font-size:clamp(34px, 12vw, 46px);
    line-height:1.05;
  }

  .slider-opcions{
    width:100%;
    flex-direction:column;
    gap:18px;
  }

  .slider-card{
    width:100%;
    max-width:330px;
    min-height:270px;
  }

  .barra-compra-container{
    padding-top:74px;
  }

  #barra-compra{
    scroll-margin-top:154px;
  }

  .shop-layout{
    height:auto;
    flex-direction:column;
    padding:0 12px 28px;
  }

  .filter-compra,
  .shop-placeholder{
    position:static;
    width:100%;
    min-width:0;
    margin:0;
  }

  .shop-placeholder{
    min-height:620px;
  }

  .results-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .product-card{
    border-radius:12px;
  }

  .product-media{
    aspect-ratio:1 / 1;
  }

  .product-body{
    padding:10px;
  }

  .product-price{
    font-size:15px;
    margin-bottom:4px;
  }

  .product-title{
    font-size:13px;
    margin-bottom:4px;
    -webkit-line-clamp:1;
  }

  .product-desc{
    font-size:12px;
    margin-bottom:8px;
    -webkit-line-clamp:1;
  }

  .product-tags{
    gap:5px;
    margin-bottom:8px;
  }

  .tag{
    font-size:11px;
    padding:5px 7px;
  }

  .product-footer{
    font-size:12px;
  }
}
