.product-card {
  width: 180px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .2s ease;
  cursor: pointer;
}

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

.product-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.product-info {
  padding: 10px;
}

.product-title {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 4px;
  font-weight: 500;
}

.product-price {
  font-size: 1rem;
  color: #C52110; /* verde típico de Wallapop */
  font-weight: 700;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #222;
}

/* Centrado global */
.profile-container,
.products-grid,
.profile-tabs,
.products-toolbar {
    width: 100%;
    max-width: 1250px;
    margin: auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(20%) grayscale(100%); /* iconos más oscuros */
}

/* Fondo circular semitransparente para que destaquen */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 7px;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.55);
}

/* =============================
   CABECERA DE PERFIL
============================= */

.profile-header {
    display: flex;
    gap: 25px;
    padding: 35px 0;
    border-bottom: 1px solid #eaeaea;
}

/* Foto del usuario */
.profile-avatar img {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    object-fit: cover;
}

/* Bloque principal */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Nombre del usuario */
.profile-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

/* Valoraciones */
.profile-rating {
    font-size: 0.95rem;
    color: #444;
}

/* BADGES */
.profile-badges {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.badge {
    background-color: #C52110!important;
}

.badge strong {
    color: #00a77d;
    display: block;
}

/* META INFO */
.profile-meta {
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-meta a {
    color: #0077cc;
    text-decoration: none;
}

/* BIO */
.profile-bio {
    font-size: 0.95rem;
    max-width: 600px;
}

.profile-bio a {
    color: #0077cc;
    text-decoration: none;
}


/* =============================
   TABS
============================= */

.profile-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #eaeaea;
    margin-top: 20px;
}

.profile-tabs .tab {
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    text-decoration: none;
}

.profile-tabs .tab:hover {
    color: #000;
}

.profile-tabs .active {
    border-bottom: 3px solid #000;
    color: #000;
}


/* =============================
   TOOLBAR DE PRODUCTOS
============================= */

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eaeaea;
}

.products-count {
    font-size: 0.95rem;
    color: #444;
    font-weight: 500;
}

.products-filters {
    display: flex;
    gap: 20px;
}

.products-filters label {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    font-weight: 500;
    color: #444;
}

.products-filters select {
    padding: 6px 8px;
    margin-top: 4px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
}

.products-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 24px;
}

.product-card {
    text-decoration: none;
    color: #222;
    cursor: pointer;
    display: block;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #efefef;
    border-radius: 6px;
    transition: 0.15s ease;
}

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

/* Info */
.product-info {
    margin-top: 6px;
    font-size: 0.92rem;
}

.product-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.product-detail {
    color: #444;
    margin-bottom: 3px;
}

.product-price {
    font-weight: 600;
}
.profile-badges {
  display: flex;
  flex-wrap: wrap;       /* Permite que estén en la misma línea si caben */
  gap: 6px;              /* Separación entre badges */
}

.profile-badges .badge {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #C52110;
  padding: 4px 8px;      /* Más pequeño */
  border-radius: 6px;
  background: #fff;
  font-size: 0.75rem;    /* Muy compacto */
  max-width: 260px;      /* Para evitar que se estiren demasiado */
}

.profile-badges .badge i {
  font-size: 0.9rem;
  color: #C52110;        /* Color del icono */
}

.profile-badges .badge strong {
  font-size: 0.78rem;
  color: #222;
}

.profile-badges .badge span {
  font-size: 0.7rem;
  color: #555;
  display: block;
}



/* =============================
   RESPONSIVE
============================= */

@media (max-width: 768px) {

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-badges {
        justify-content: center;
    }

    .profile-tabs {
        justify-content: center;
        gap: 18px;
    }

    .products-toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .products-filters {
        width: 100%;
        justify-content: space-between;
    }
}

    /* =============================================
       PROFILE HEADER — mismo lenguaje que el banner
       ============================================= */
    .profile-container {
      margin: 1rem auto 0 auto;
      padding: 0 0.5rem;
      max-width: 1200px;
    }

    @media (min-width: 768px) {
      .profile-container {
        padding: 0 1.5rem;
      }
    }

    @media (max-width: 768px) {
      .profile-container {
        margin-top: 5rem;
      }
    }

    .profile-header {
      position: relative;
      border-radius: 16px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.35),
                  0 2px 8px color-mix(in srgb, var(--shop-secondary) 25%, transparent),
                  -5px 0 0 0 var(--shop-primary);
      overflow: hidden;
      min-height: 180px;
      padding: 0;
    }

    /* Sin fondo — la imagen se gestiona desde Django/template */
    .profile-header-bg {
      display: none;
    }

    /* Glow eliminado */

    /* Badge "Tienda" */
    .profile-header-badge {
      background: rgba(255,255,255,0.15);
      color: #fff;
      font-size: 0.7rem;
      padding: 3px 10px;
      border-radius: 8px;
      backdrop-filter: blur(4px);
      border: 1px solid rgba(255,255,255,0.2);
    }

    /* Contenido del header */
    .profile-header-inner {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: flex-start;
      gap: 1.25rem;
      padding: 1.5rem 1.5rem 1.25rem 1.5rem;
      flex-wrap: wrap;
    }

    /* Avatar */
    .profile-avatar {
      flex-shrink: 0;
      margin-top: -0.25rem;
    }

    .profile-avatar img {
      width: 110px;
      height: 110px;
      border-radius: 14px;
      object-fit: cover;
      border: 2px solid rgba(255,255,255,0.3);
      background: #ffffff;
      backdrop-filter: blur(4px);
      box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }

    /* Datos principales */
    .profile-main {
      flex: 1;
      min-width: 0;
    }

    .profile-name {
      color: #fff;
      font-weight: 700;
      font-size: 1.5rem;
      margin: 0 0 0.3rem 0;
      line-height: 1.2;
      text-shadow:
        1px  0   0 #333, -1px  0   0 #333,
        0    1px 0 #333,  0   -1px 0 #333,
        1px  1px 0 #333, -1px -1px 0 #333,
        1px -1px 0 #333, -1px  1px 0 #333;
    }

    .profile-rating {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      margin-bottom: 0.6rem;
    }

    .profile-rating span {
      font-size: 1.1rem;
      text-shadow:
        1px  0   0 #fff, -1px  0   0 #fff,
        0    1px 0 #fff,  0   -1px 0 #fff,
        1px  1px 0 #fff, -1px -1px 0 #fff,
        1px -1px 0 #fff, -1px  1px 0 #fff;
    }

    .profile-rating .rating-count {
      color: rgba(255,255,255,0.9);
      font-size: 0.75rem;
      margin-left: 4px;
      text-shadow:
        1px  0   0 #333, -1px  0   0 #333,
        0    1px 0 #333,  0   -1px 0 #333,
        1px  1px 0 #333, -1px -1px 0 #333;
    }

    /* Badges */
    .profile-badges {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      margin-bottom: 0.7rem;
    }

    .profile-badge-item {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: #333;
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 8px;
      padding: 4px 10px;
      color: #fff;
      font-size: 0.72rem;
      box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
    }

    .profile-badge-item i {
      font-size: 0.75rem;
      color: #FFD700;
    }

    .profile-badge-item.purple i {
      color: #b07aff;
    }

    .profile-badge-item strong {
      font-weight: 700;
      font-size: 0.72rem;
    }

    .profile-badge-item span {
      color: rgba(255,255,255,0.65);
      font-size: 0.66rem;
    }

    /* Meta info */
    .profile-meta {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .meta-block {
      color: rgba(255,255,255,0.75);
      font-size: 0.74rem;
    }

    .meta-block strong {
      color: #fff;
      font-weight: 600;
    }

    /* Breadcrumb dentro del header */
    .profile-breadcrumb {
      font-size: 0.78rem;
      margin-top: 0.75rem;
    }


    /* =============================================
       TABS — mismos colores que userStock
       ============================================= */
    .profile-tabs {
      display: flex;
      margin: 1.5rem 0.5rem 0 0.5rem;
      border-bottom: 2px solid #e9ecef;
      gap: 0;
    }

    @media (min-width: 768px) {
      .profile-tabs {
        margin: 1.5rem 1.5rem 0 1.5rem;
      }
    }

    .profile-tabs .tab {
      padding: 0.6rem 1.2rem;
      font-size: 0.85rem;
      font-weight: 600;
      color: #6c757d;
      text-decoration: none;
      border-bottom: 2px solid transparent;
      margin-bottom: -2px;
      cursor: pointer;
      transition: color 0.2s, border-color 0.2s;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .profile-tabs .tab img {
      width: 22px;
    }

    .profile-tabs .tab:hover {
      color: var(--shop-primary);
    }

    .profile-tabs .tab.active {
      color: var(--shop-primary);
      border-bottom-color: var(--shop-primary);
    }

    /* Tab content */
    .tab-content { display: none; }
    .tab-content.active { display: grid; }


    /* =============================================
       CARRUSEL STACK — efecto profundidad 3D
       ============================================= */
    .featured-section {
      margin: 1.5rem 0.5rem 0 0.5rem;
      overflow: visible; /* era hidden */
      padding: 0 0 1.5rem 0;
    }

    @media (min-width: 768px) {
      .featured-section {
        margin: 1.5rem 1.5rem 0 1.5rem;
      }
    }

    .featured-section h3 {
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.15rem;
      color: #6c757d;
      margin-bottom: 1.5rem;
    }

    /* =============================================
       CARRUSEL COVERFLOW — 3 items simétrico + autoplay
       ============================================= */
    .stack-carousel {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.5rem;
      padding: 1rem 0 0.5rem;
      overflow: hidden;
    }

    .stack-stage {
      position: relative;
      flex: 1;
      min-width: 0;
      max-width: 780px;
      height: 340px;
      perspective: 1200px;
      overflow: visible;
    }

    .stack-card {
      position: absolute;
      width: 220px;
      top: 0; bottom: 0;
      background: #fff;
      border-radius: 14px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.12);
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
                  opacity   0.55s ease,
                  box-shadow 0.35s ease,
                  filter    0.35s ease;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
      border-left: 5px solid transparent;
      border-image: linear-gradient(180deg, var(--shop-primary), var(--shop-secondary)) 1;
    }

    /* Central */
    .stack-card[data-pos="center"] {
      left: 50%;
      transform: translateX(-50%) scale(1) rotateY(0deg);
      opacity: 1;
      z-index: 10;
      box-shadow: 0 20px 56px rgba(0,0,0,0.22);
      filter: brightness(1);
    }

    /* Izquierda */
    .stack-card[data-pos="left"] {
      left: 50%;
      transform: translateX(calc(-50% - 240px)) scale(0.85) rotateY(18deg);
      opacity: 0.75;
      z-index: 9;
      filter: brightness(0.88);
    }

    /* Derecha */
    .stack-card[data-pos="right"] {
      left: 50%;
      transform: translateX(calc(-50% + 240px)) scale(0.85) rotateY(-18deg);
      opacity: 0.75;
      z-index: 9;
      filter: brightness(0.88);
    }

    /* Fuera de vista izquierda */
    .stack-card[data-pos="far-left"] {
      left: 50%;
      transform: translateX(calc(-50% - 440px)) scale(0.7) rotateY(28deg);
      opacity: 0;
      z-index: 7;
      pointer-events: none;
    }

    /* Fuera de vista derecha */
    .stack-card[data-pos="far-right"] {
      left: 50%;
      transform: translateX(calc(-50% + 440px)) scale(0.7) rotateY(-28deg);
      opacity: 0;
      z-index: 7;
      pointer-events: none;
    }

    .stack-card[data-pos="left"]:hover,
    .stack-card[data-pos="right"]:hover {
      filter: brightness(0.96);
      opacity: 0.9;
    }

    .stack-card[data-pos="center"]:hover .sc-img-wrap img {
      transform: scale(1.04);
    }

    .stack-card .sc-img-wrap {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f5f5f5;
      padding: 1.25rem;
      min-height: 0;
    }

    .stack-card .sc-img-wrap img {
      max-width: 100%;
      max-height: 190px;
      object-fit: contain;
      border-radius: 6px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
    }

    .stack-card .sc-info {
      padding: 0.8rem 1rem 0.8rem 1.1rem;
      border-top: 1px solid rgba(0,0,0,0.06);
      background: #fff;
    }

    .stack-card .sc-name {
      font-size: 0.76rem;
      font-weight: 700;
      color: #3a3a3a;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 0.15rem;
    }

    .stack-card .sc-price {
      font-size: 1rem;
      font-weight: 800;
      color: var(--shop-primary);
    }

    /* Fila compacta: precio a la izda, qty + cart a la derecha */
    .stack-card .sc-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.4rem;
      margin-top: 0.15rem;
    }
    .stack-card .sc-cart {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }
    .stack-card .sc-qty {
      width: 50px;
      height: 28px;
      padding: 0 0.3rem;
      border-radius: 6px;
      border: 1px solid rgba(0,0,0,0.12);
      font-size: 0.72rem;
      background: #fff;
      cursor: pointer;
    }
    .stack-card .sc-cart-btn {
      width: 30px;
      height: 28px;
      border: none;
      border-radius: 6px;
      background: linear-gradient(135deg, #C52110 0%, #000 50%, #5810c5 100%);
      color: #fff;
      font-size: 0.78rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.12s ease, opacity 0.12s ease;
      box-shadow: 0 2px 6px rgba(88,16,197,0.25);
    }
    .stack-card .sc-cart-btn:hover { transform: translateY(-1px); opacity: 0.92; }
    .stack-card .sc-cart-btn:disabled { opacity: 0.5; cursor: not-allowed; }

    .stack-btn {
      background: #fff;
      border: none;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 12px rgba(0,0,0,0.12),
                  0 0 0 2px #fff,
                  0 0 0 4px var(--shop-primary, #5810c5);
      color: var(--shop-primary, #5810c5);
      font-size: 1rem;
      transition: transform 0.2s, box-shadow 0.2s, color 0.2s;
      flex-shrink: 0;
      z-index: 20;
    }

    .stack-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 4px 20px color-mix(in srgb, var(--shop-primary) 25%, transparent),
                  0 0 0 2px #fff,
                  0 0 0 4px var(--shop-primary);
      color: var(--shop-primary);
    }

    /* Barra de progreso autoplay */
    .stack-progress {
      height: 3px;
      background: #e9ecef;
      border-radius: 999px;
      overflow: hidden;
      margin-top: 1rem;
    }

    .stack-progress-bar {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--shop-primary), var(--shop-secondary));
      border-radius: 999px;
    }

    .stack-dots {
      display: flex;
      justify-content: center;
      gap: 0.4rem;
      margin-top: 0.6rem;
    }

    .stack-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #ccc;
      transition: background 0.3s, transform 0.3s;
      cursor: pointer;
    }

    .stack-dot.active {
      background: var(--shop-primary);
      transform: scale(1.4);
    }

    /* --- Tablet (≤768px): cards más pequeñas, menos separación --- */
    @media (max-width: 768px) {
      .stack-stage {
        height: 300px;
      }
      .stack-card {
        width: 190px;
      }
      .stack-card[data-pos="left"]      { transform: translateX(calc(-50% - 205px)) scale(0.84) rotateY(16deg); }
      .stack-card[data-pos="right"]     { transform: translateX(calc(-50% + 205px)) scale(0.84) rotateY(-16deg); }
      .stack-card[data-pos="far-left"]  { transform: translateX(calc(-50% - 380px)) scale(0.7) rotateY(26deg); }
      .stack-card[data-pos="far-right"] { transform: translateX(calc(-50% + 380px)) scale(0.7) rotateY(-26deg); }

      .stack-card .sc-img-wrap img { max-height: 155px; }
      .stack-btn { width: 36px; height: 36px; font-size: 0.85rem; }
      .stack-carousel { gap: 0.75rem; }
    }

    /* --- Móvil grande (≤520px): solo 1 card visible, laterales apenas asoman --- */
    @media (max-width: 520px) {
      .stack-stage {
        height: 280px;
      }
      .stack-card {
        width: 155px;
      }
      /* Laterales con offset reducido para no desbordar el stage */
      .stack-card[data-pos="left"]      { transform: translateX(calc(-50% - 110px)) scale(0.72) rotateY(18deg); opacity: 0.35; }
      .stack-card[data-pos="right"]     { transform: translateX(calc(-50% + 110px)) scale(0.72) rotateY(-18deg); opacity: 0.35; }
      .stack-card[data-pos="far-left"]  { transform: translateX(calc(-50% - 260px)) scale(0.55) rotateY(28deg); opacity: 0; }
      .stack-card[data-pos="far-right"] { transform: translateX(calc(-50% + 260px)) scale(0.55) rotateY(-28deg); opacity: 0; }

      .stack-card .sc-img-wrap { padding: 0.75rem; }
      .stack-card .sc-img-wrap img { max-height: 125px; }
      .stack-card .sc-info { padding: 0.55rem 0.7rem 0.55rem 0.85rem; }
      .stack-card .sc-name { font-size: 0.68rem; }
      .stack-card .sc-price { font-size: 0.88rem; }
      .stack-card .sc-qty { width: 42px; height: 26px; font-size: 0.66rem; }
      .stack-card .sc-cart-btn { width: 26px; height: 26px; font-size: 0.7rem; }
      .stack-btn { width: 30px; height: 30px; font-size: 0.72rem; }
      .stack-carousel { gap: 0.4rem; }
    }

    /* --- Móvil pequeño (≤380px): 1 card totalmente sola --- */
    @media (max-width: 380px) {
      .stack-stage { height: 260px; }
      .stack-card  { width: 150px; }
      .stack-card[data-pos="left"],
      .stack-card[data-pos="right"] { opacity: 0; pointer-events: none; }
      .stack-btn { width: 30px; height: 30px; font-size: 0.7rem; }
    }

    /* =============================================
       PRODUCT CARD — réplica exacta de custom-stock-card
       ============================================= */
    .product-card {
      position: relative;
      background-color: #ffffff !important;
      border-radius: 0.5rem;
      overflow: hidden;
      transition: all 0.2s ease-in-out;
      box-shadow: 0 .15rem 1.75rem 0 rgba(33, 40, 50, 0.15) !important;
      border: none !important;
      display: flex !important;          /* flex en el propio elemento */
      flex-direction: column;
      text-decoration: none !important;
      color: inherit !important;
      width: 16rem;
      height: 16rem;
    }

    /* Borde lateral izquierdo degradado */
    .product-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; bottom: 0;
      width: 0.5rem;
      background: linear-gradient(180deg, var(--shop-primary) 0%, var(--shop-secondary) 100%);
      border-radius: 0.5rem 0 0 0.5rem;
      z-index: 1;
      pointer-events: none;
    }

    .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 .5rem 2rem rgba(0,0,0,0.2) !important;
    }

    /* Inner wrapper — evita conflictos con .card-body de Bootstrap */
    .product-card .pc-inner {
      position: relative;
      z-index: 2;
      padding: 1.5rem 1.25rem 1.25rem 2rem;
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
    }

    /* Sección superior: etiqueta + número + subtítulo */
    .product-card .pc-top {
      flex: 1;
    }

    .product-card .pc-label {
      color: #6c757d;
      font-weight: 700;
      font-size: 0.65rem;
      letter-spacing: 0.15rem;
      text-transform: uppercase;
      margin-bottom: 0.2rem;
      line-height: 1.2;
      display: block;
    }

    .product-card .pc-value {
      color: #3a3a3a;
      font-weight: 800;
      font-size: 2.1rem;
      line-height: 1;
      display: block;
      margin-bottom: 0;
    }

    .product-card .pc-sub {
      color: #8c8c8c;
      font-size: 0.8rem;
      font-weight: 600;
      margin-top: 0.25rem;
      margin-bottom: 0;
      display: block;
    }

    /* Sección inferior: imagen preview esquina inferior derecha */
    .product-card .pc-bottom {
      display: flex;
      justify-content: flex-end;
      align-items: flex-end;
      margin-top: auto;
    }

    .product-card .pc-img {
      max-width: 5.5rem;
      max-height: 5.5rem;
      object-fit: contain;
      border: 1px solid rgba(0,0,0,.075);
      padding: 0.2rem;
      background-color: rgba(255,255,255,0.9);
      border-radius: 4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      transition: transform 0.2s ease;
    }

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

    /* En el carrusel las cards llenan el slide en ancho */
    .carousel-slide .product-card {
      width: 100%;
    }

    /* Controles del carrusel */
    .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: linear-gradient(135deg, var(--shop-primary), var(--shop-secondary));
      border: none;
      color: #fff;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 10;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .carousel-btn:hover {
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 6px 20px rgba(88,16,197,0.35);
    }

    .carousel-btn.prev { left: -18px; }
    .carousel-btn.next { right: -18px; }


    /* =============================================
       GRID DE PRODUCTOS (tabs) — mismo que stock cards
       ============================================= */
    .products-grid {
      grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
      gap: 1.25rem;
      margin: 1.25rem 0.5rem 1.5rem 0.5rem;
    }

    @media (min-width: 768px) {
      .products-grid {
        margin: 1.25rem 1.5rem 1.5rem 1.5rem;
      }
    }

    @media (max-width: 767px) {
      .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        justify-content: center;
        gap: 0.75rem;
        padding: 0 0.75rem;
        box-sizing: border-box;
      }
      .products-grid .product-card {
        width: 100%;
      }
    }

    /* =============================================
       BOTONES DE OWNER — solo visibles para el dueño
       ============================================= */
    .owner-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.25);
      backdrop-filter: blur(6px);
      border-radius: 8px;
      padding: 5px 11px;
      color: #fff;
      font-size: 0.7rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
      white-space: nowrap;
    }

    .owner-btn:hover {
      background: rgba(255,255,255,0.28);
      color: #fff;
      transform: translateY(-1px);
    }

    .owner-btn i {
      font-size: 0.75rem;
    }

    /* Botón gestionar destacados — fuera del header */
    .featured-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.5rem;
    }

    .featured-header h3 {
      margin-bottom: 0;
    }

    .featured-manage-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      background: #fff;
      border: none;
      border-radius: 8px;
      padding: 5px 12px;
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--shop-primary);
      text-decoration: none;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1),
                  0 0 0 2px #fff,
                  0 0 0 4px var(--shop-primary);
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .featured-manage-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 16px color-mix(in srgb, var(--shop-primary) 25%, transparent),
                  0 0 0 2px #fff,
                  0 0 0 4px var(--shop-primary);
      color: var(--shop-primary);
    }

    .featured-manage-btn i {
      font-size: 0.75rem;
    }

    /* =============================================
       PROFILE HEADER INNER — responsive móvil
       ============================================= */

    /* Tablet (≤ 768px): avatar más pequeño, texto alineado */
    @media (max-width: 768px) {
      .profile-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 3rem 1rem 1rem 1rem;
        gap: 0.75rem;
      }

      .profile-avatar img {
        width: 86px;
        height: 86px;
        border-radius: 12px;
      }

      .profile-name {
        font-size: 1.25rem;
      }

      .profile-rating {
        justify-content: center;
        margin-bottom: 0.4rem;
      }

      .profile-badges {
        justify-content: center;
        gap: 0.4rem;
      }

      /* Oculta el texto descriptivo de los badges para ahorrar espacio */
      .profile-badge-item span {
        display: none;
      }

      .profile-badge-item {
        padding: 4px 8px;
        font-size: 0.7rem;
        box-shadow: none;
        border: 1px solid rgba(255,255,255,0.2);
      }
    }

    /* Móvil pequeño (≤ 480px): layout compacto */
    @media (max-width: 480px) {
      .profile-header-inner {
        padding: 3.25rem 0.75rem 0.85rem 0.75rem;
        gap: 0.6rem;
      }

      .profile-avatar img {
        width: 72px;
        height: 72px;
        border-radius: 10px;
      }

      .profile-name {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
      }

      .profile-rating span {
        font-size: 0.95rem;
      }

      .profile-rating .rating-count {
        font-size: 0.68rem;
      }

      /* Badges en fila horizontal compacta */
      .profile-badges {
        gap: 0.3rem;
      }

      .profile-badge-item {
        padding: 3px 7px;
        font-size: 0.66rem;
        border-radius: 6px;
      }

      .profile-badge-item i {
        font-size: 0.7rem;
      }

      .profile-badge-item strong {
        font-size: 0.66rem;
      }
    }

    /* Móvil muy pequeño (≤ 360px) */
    @media (max-width: 360px) {
      .profile-header-inner {
        padding: 3.5rem 0.5rem 0.75rem 0.5rem;
      }

      .profile-avatar img {
        width: 60px;
        height: 60px;
      }

      .profile-name {
        font-size: 1rem;
      }

      /* Muestra solo icono en badges */
      .profile-badge-item strong {
        display: none;
      }
    }