body {
  background-color: #f6f7f9;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}


.top-bar {
  background: white;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  font-weight: 700;
  font-size: 1.4rem;
}

.search-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.search-box {
  position: relative;
  width: 420px;
}

.search-box input {
  width: 100%;
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
  border: 1px solid #ddd;
  background: #f8f9fa;
}

.search-box i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.auth-buttons {
  display: flex;
  gap: 12px;
}

.btn-login {
  background: #000;
  color: white;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.9rem;
}

.btn-login:hover {
  background: #111;
  color: white;
}


.category-bar {
  background: white;
  padding: 12px 24px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
}

.category-item {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  background: #f1f3f5;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-item.active {
  background: #000;
  color: white;
}


.product-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #eee;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
}

.product-image {
  height: 240px;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #f8f9fa;
}
.product-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb; /* azul más moderno */
    margin-bottom: 8px;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-image:hover img {
  transform: scale(1.06);
}

.product-title {
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 500;
}

.product-price-container {
  color: #495057;
}

.btn-add-cart {
    background: linear-gradient(90deg, #1a73e8, #1557b0);
    border: none;
    border-radius: 12px;

    padding: 10px 16px;      /* 🔥 más pequeño */
    font-size: 0.9rem;       /* 🔥 más compacto */
    font-weight: 600;

    color: white;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(26,115,232,0.25);

    white-space: nowrap;     /* 🔥 evita salto de línea */
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(26,115,232,0.35);
}


.action-icons .btn-link {
  color: #adb5bd;
  transition: color 0.2s;
}

.action-icons .btn-link:hover {
  color: #495057;
}


.cart-img-wrapper {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.cart-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-dropdown {
    min-width: 360px;
    max-width: 400px;
}

.cart-item .text-end {
    min-width: 80px;
    text-align: right;
    white-space: nowrap;
}



.btn-favorite i {
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-favorite.animate i {
    animation: heart-pop 0.35s ease;
}

@keyframes heart-pop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.35);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}


#id_phone {
        display: none;
    }

.iti {
    width: 100%;
}


.iti__country-list {
    z-index: 1055 !important;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.main-image {
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    border: 1px solid #f0f0f0;
    position: relative;
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-thumb {
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    border-radius: 8px;
    border: 2px solid transparent;
}

.product-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.product-thumb.active-thumb {
    opacity: 1;
    border: 2px solid #1a73e8;
}

.thumb img {
    cursor: pointer;
    max-width: 70px;
    height: auto;
}

.product-thumb {
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.product-thumb.active-thumb {
    opacity: 1;
    border: 2px solid #0d6efd;
}

@media (max-width: 767.98px) {
    .thumb {
        flex-direction: row !important;
        justify-content: center;
    }

    .thumb img {
        max-width: 60px;
    }

    .main-image {
        margin-bottom: 1rem;
    }
}

html {
    scroll-behavior: smooth;
}

.rating-star {
    cursor: pointer;
    transition: 0.2s ease;
    color: #ccc;
}
.rating-card-modern {
    margin-top: 10px !important;
}

.rating-star.hovered,
.rating-star.selected {
    color: #000;
    transform: scale(1.1);
}

.avatar-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.select2-container--bootstrap-5.select2-container--open .select2-selection {
    box-shadow: none !important;
    border-color: #ced4da !important;
}

.btn-favorite-circle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #f1f3f5;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;

    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;

    padding: 6px 14px;
    cursor: pointer;

    font-size: 14px;
    font-weight: 500;
    color: #212529;

    transition: all 0.2s ease;
}


.user-dropdown-btn:hover {
    background: #ffffff;
    border-color: #dcdfe3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.user-chevron {
    transition: transform 0.25s ease;
}


.user-dropdown-btn[aria-expanded="true"] .user-chevron {
    transform: rotate(180deg);
}

.category-badge-modern {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
}

.product-title-modern {
    font-size: 26px; /* antes 40px */
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 6px;
}

.product-actions {
    margin-top: auto;
}

.price-card-modern {
    background: #eef2f7;
    border-radius: 14px;
    padding: 18px 22px;
    margin-top: 14px;

    width: 100%;
    display: block;
    border: 1px solid #e5e7eb;
}

.price-value-modern {
    font-size: 2rem;
    font-weight: 700;
    color: #1c1c1c;
}

.qty-modern {
    display: inline-flex;
    align-items: center;
    background: #eef2f7;
    border-radius: 12px;
    overflow: hidden;
}

.qty-modern input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    padding: 8px;
}

.qty-modern input:focus {
    outline: none;
}

.qty-modern button {
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qty-modern button:hover {
    background: #dde3ea;
}

/* ================= BOTONES PRODUCT DETAIL ================= */

.action-buttons-modern {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
}

.btn-add-modern {
    flex: 1;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.btn-add-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.btn-buy-modern {
    flex: 1;
    background: #198754;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: all 0.25s ease;
}

.btn-buy-modern:hover {
    background: #157347;
    transform: translateY(-2px);
}

.btn-favorite-overlay {
    all: unset; /* 🔥 limpia estilos Bootstrap */

    position: absolute;
    top: 18px;
    right: 18px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);

    box-shadow: 0 8px 20px rgba(0,0,0,0.18);

    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.btn-favorite-overlay i {
    font-size: 20px;
}

.btn-favorite-overlay:hover {
    transform: scale(1.12);
}

.buy-now-form {
    flex: 1;
}

.buy-now-form button {
    width: 100%;
}

.product-link {
    color: #212529;
    text-decoration: none;
}

.product-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Reduce el espacio del contenedor de la cabecera */
.app-content-header {
    padding: 0.5rem 0 !important; /* Ajusta el 0.5rem a tu gusto */
}

/* Elimina el espacio extra que Main genera a veces */
.app-main {
    padding-top: 0 !important;
}

/* Ajuste específico para el título si sigue muy abajo */
h3.mb-2.mt-1 {
    margin-top: 0 !important;
}

.card {
    border-radius: 10px;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transition: 0.2s ease;
}

/* Ajuste cuando hay error */
.iti {
    width: 100%;
}

.iti input {
    width: 100%;
}

.is-invalid-wrapper {
    border: 1px solid #dc3545;
    border-radius: 0.375rem;
}

.is-invalid-wrapper .iti__flag-container {
    height: 100%;
}