/*============================================================
  PLAZBUY UI ENHANCEMENTS — plazbuy-ui.css
  Mejoras visuales sobre Bootstrap 4 + my_styles.css existente.
  NO modifica meta tags SEO ni componentes Vue.
  Color primario: #FF8000 | Secundario: #1E1F29
==============================================================*/

/* ─── CSS Custom Properties (Design Tokens) ─── */
:root {
    --pb-primary: #ff8000;
    --pb-primary-dark: #e05a00;
    --pb-primary-light: #ff9a33;
    --pb-dark: #1e1f29;
    --pb-dark-surface: #272836;
    --pb-text: #333333;
    --pb-muted: #8d99ae;
    --pb-light-bg: #f8f9fa;
    --pb-border: #e4e7ed;
    --pb-radius: 10px;
    --pb-radius-lg: 18px;
    --pb-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.07);
    --pb-shadow-md: 0 6px 24px rgba(0, 0, 0, 0.12);
    --pb-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Typography ─── */
body {
    font-family: "Inter", "Montserrat", sans-serif;
}

/* ─── NAVBAR IMPROVEMENTS ─── */
.navbar.fixed-top {
    background: #fff !important;
    border-bottom: 2px solid var(--pb-border);
    box-shadow: var(--pb-shadow-sm) !important;
    padding: 0.5rem 1rem;
    transition: box-shadow var(--pb-transition);
}
.navbar.fixed-top:hover {
    box-shadow: var(--pb-shadow-md) !important;
}

/* Brand / Logo */
.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--pb-primary) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity var(--pb-transition);
}
.navbar-brand::before {
    content: "🛒";
    font-size: 1.2rem;
}
.navbar-brand:hover {
    opacity: 0.85;
    text-decoration: none !important;
}

/* Toggler */
.navbar-toggler {
    border: 2px solid var(--pb-primary);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF8000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Nav links */
.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--pb-text) !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition:
        background var(--pb-transition),
        color var(--pb-transition);
}
.navbar-nav .nav-link:hover {
    background: rgba(255, 128, 0, 0.08);
    color: var(--pb-primary) !important;
}

/* Dropdown user menu */
.navbar .dropdown-menu {
    border: none;
    border-radius: var(--pb-radius);
    box-shadow: var(--pb-shadow-md);
    padding: 0.5rem;
    min-width: 180px;
}
.navbar .dropdown-item {
    border-radius: 7px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: background var(--pb-transition);
}
.navbar .dropdown-item:hover {
    background: rgba(255, 128, 0, 0.1);
    color: var(--pb-primary);
}

/* Cart ion-button in navbar */
.navbar ion-button {
    --background: var(--pb-primary);
    --border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ─── HERO SECTION (welcome.blade.php) ─── */
.pb-hero {
    background: linear-gradient(
        135deg,
        var(--pb-dark) 0%,
        #2d2e42 50%,
        #3a2000 100%
    );
    color: #fff;
    padding: 3.5rem 0 2.5rem;
    margin-top: 56px; /* compensa navbar fixed */
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}
.pb-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 70% 50%,
        rgba(255, 128, 0, 0.18) 0%,
        transparent 65%
    );
    pointer-events: none;
}
.pb-hero h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}
.pb-hero h1 span {
    color: var(--pb-primary);
}
.pb-hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 480px;
}
.pb-hero .pb-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pb-primary);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    transition:
        background var(--pb-transition),
        transform var(--pb-transition),
        box-shadow var(--pb-transition);
    box-shadow: 0 4px 18px rgba(255, 128, 0, 0.35);
}
.pb-hero .pb-hero-cta:hover {
    background: var(--pb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 128, 0, 0.45);
    color: #fff;
    text-decoration: none;
}
.pb-hero .pb-hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 600;
    padding: 0.72rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    margin-left: 0.75rem;
    transition:
        border-color var(--pb-transition),
        background var(--pb-transition);
}
.pb-hero .pb-hero-cta-secondary:hover {
    border-color: var(--pb-primary);
    background: rgba(255, 128, 0, 0.1);
    color: #fff;
    text-decoration: none;
}

/* Hero stats badges */
.pb-hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.pb-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}
.pb-hero-stat strong {
    color: var(--pb-primary);
    font-size: 1.1rem;
}

/* ─── SHOP CARDS — mejoradas ─── */
.shop {
    border-radius: var(--pb-radius-lg);
    box-shadow: var(--pb-shadow-sm);
    transition:
        box-shadow var(--pb-transition),
        transform var(--pb-transition);
    overflow: hidden;
}
.shop:hover {
    box-shadow: var(--pb-shadow-md);
    transform: translateY(-5px);
}
.shop .shop-body {
    padding: 24px;
}
.shop .shop-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.shop .shop-body .cta-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    transition: background var(--pb-transition);
}
.shop .shop-body .cta-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* Section cards wrapper */
.pb-cards-section {
    padding: 2rem 0 1.5rem;
    background: var(--pb-light-bg);
}
.pb-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pb-primary);
    margin-bottom: 0.4rem;
}
.pb-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pb-dark);
    margin-bottom: 1.5rem;
}

/* ─── CAROUSEL IMPROVEMENTS ─── */
#myCarousel {
    border-radius: var(--pb-radius-lg);
    overflow: hidden;
    box-shadow: var(--pb-shadow-md);
}
#myCarousel .carousel-caption h1 {
    font-size: 1.15rem;
    border-radius: 8px;
    padding: 4px 12px;
    background-color: rgba(255, 128, 0, 0.85) !important;
    color: #fff;
}

/* ─── MODAL IMPROVEMENTS ─── */
.modal-header {
    background: linear-gradient(
        90deg,
        var(--pb-dark) 0%,
        var(--pb-dark-surface) 100%
    );
    color: #fff;
    border-radius: 0;
    border-bottom: 2px solid var(--pb-primary);
    padding: 1rem 1.25rem;
}
.modal-header .modal-title {
    color: #fff;
    font-weight: 700;
}
.modal-header .close {
    color: #fff;
    opacity: 0.7;
    text-shadow: none;
    font-size: 1.5rem;
}
.modal-header .close:hover {
    opacity: 1;
    color: var(--pb-primary);
}
.modal-content {
    border-radius: var(--pb-radius-lg);
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.modal-footer {
    background: var(--pb-light-bg);
    border-top: 1px solid var(--pb-border);
}
.modal-footer .btn-primary {
    background: var(--pb-primary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    transition:
        background var(--pb-transition),
        transform var(--pb-transition);
}
.modal-footer .btn-primary:hover {
    background: var(--pb-primary-dark);
    transform: translateY(-1px);
}
.modal-footer .btn-secondary {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}

/* ─── NEWSLETTER / FOOTER ─── */
#newsletter {
    background: linear-gradient(135deg, var(--pb-dark) 0%, #2a2b3d 100%);
    padding: 3rem 0;
    color: #fff;
}
#newsletter .newsletter p {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}
#newsletter .newsletter p strong {
    color: var(--pb-primary);
}
#newsletter .newsletter .form-control,
#newsletter .newsletter .input {
    border-radius: 10px 0 0 10px;
    border: none;
    height: 44px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
#newsletter .newsletter .form-control::placeholder,
#newsletter .newsletter .input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
#newsletter .newsletter-btn {
    background: var(--pb-primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 0.75rem;
    transition:
        background var(--pb-transition),
        transform var(--pb-transition);
    cursor: pointer;
}
#newsletter .newsletter-btn:hover {
    background: var(--pb-primary-dark);
    transform: translateY(-1px);
}
#newsletter .newsletter-follow {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
}
#newsletter .newsletter-follow li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition:
        background var(--pb-transition),
        transform var(--pb-transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
#newsletter .newsletter-follow li a:hover {
    background: var(--pb-primary);
    transform: translateY(-2px);
    color: #fff;
}
#newsletter .newsletter-follow li img {
    height: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity var(--pb-transition);
}
#newsletter .newsletter-follow li img:hover {
    opacity: 1;
}

/* ─── FOOTER ─── */
footer.container {
    background: transparent;
    padding-top: 2.5rem !important;
    padding-bottom: 2rem !important;
    border-top: 1px solid var(--pb-border);
}
footer h5 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--pb-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pb-primary);
    display: inline-block;
}
footer .text-muted {
    color: var(--pb-muted) !important;
    font-size: 0.88rem;
    transition: color var(--pb-transition);
}
footer .text-muted:hover {
    color: var(--pb-primary) !important;
    text-decoration: none;
}
footer .list-unstyled li {
    margin-bottom: 0.4rem;
}
footer .fa-whatsapp {
    color: #25d366;
}
footer .fab.fa-whatsapp + * {
    color: var(--pb-text);
}
footer small.text-muted {
    font-size: 0.78rem;
}

/* ─── ALERT FLASHES ─── */
.alert-success {
    border-left: 4px solid #38c172;
    border-radius: var(--pb-radius);
}

/* ─── REGISTER MODAL FORM ─── */
#exampleModal .modal-body .form-control {
    border-radius: 8px;
    border: 1px solid var(--pb-border);
    transition:
        border-color var(--pb-transition),
        box-shadow var(--pb-transition);
}
#exampleModal .modal-body .form-control:focus {
    border-color: var(--pb-primary);
    box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.15);
}
#exampleModal .modal-body .btn-primary {
    background: var(--pb-primary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    padding: 0.5rem 2rem;
    transition: background var(--pb-transition);
}
#exampleModal .modal-body .btn-primary:hover {
    background: var(--pb-primary-dark);
}

/* ─── LOCATIONS MODAL ─── */
#modalLocations ion-button {
    --background: rgba(255, 128, 0, 0.08);
    --color: var(--pb-primary);
    --border-radius: 10px;
    margin: 4px;
    font-weight: 600;
}

/* ─── RESPONSIVE ADJUSTMENTS ─── */
@media (max-width: 767px) {
    .pb-hero {
        padding: 2.5rem 0 1.5rem;
        text-align: center;
    }
    .pb-hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .pb-hero-cta-secondary {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
    .pb-hero-stats {
        justify-content: center;
    }
    #newsletter .newsletter-btn {
        width: 100%;
    }
}

/* ─── UTILITY ─── */
.pb-main-content {
    margin-top: 56px; /* navbar fixed offset */
    min-height: calc(100vh - 56px);
}

/* ═══════════════════════════════════════════════════════
   TRUST BADGES — eslogan de confianza en hero
═══════════════════════════════════════════════════════ */
.pb-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.75rem;
}
.pb-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    padding: 0.38rem 0.9rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: background var(--pb-transition);
}
.pb-trust-badge i { color: var(--pb-primary); }
.pb-trust-badge:hover { background: rgba(255,128,0,.2); }
@media (max-width: 767px) {
    .pb-trust-badges { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════
   PAGE HEADER — banner superior de pantallas internas
   Uso: añadir <div class="pb-page-header"> en cualquier vista
═══════════════════════════════════════════════════════ */
.pb-page-header {
    background: linear-gradient(135deg, var(--pb-dark) 0%, #2d2e42 100%);
    color: #fff;
    padding: 2.5rem 0 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.pb-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(255,128,0,.12) 0%, transparent 70%);
    pointer-events: none;
}
.pb-page-header h1, .pb-page-header h2 {
    color: #fff;
    font-weight: 700;
    margin: 0 0 .4rem;
}
.pb-page-header p { color: rgba(255,255,255,.7); margin: 0; }

/* ═══════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════ */
.container > section.container,
section.container:first-child {
    padding-top: 1rem;
}
section.container a {
    color: var(--pb-muted);
    font-size: .875rem;
    font-weight: 500;
    transition: color var(--pb-transition);
}
section.container a:hover { color: var(--pb-primary); text-decoration: none; }
section.container .fa-angle-right { color: var(--pb-border); margin: 0 .35rem; font-size: .75rem; }

/* ═══════════════════════════════════════════════════════
   TIENDAS — stores.blade.php
   Reemplaza el fondo oscuro genérico con cards modernas
═══════════════════════════════════════════════════════ */
/* Banner de tiendas */
.col-md-12.position-relative.overflow-hidden.bg-light {
    background: linear-gradient(135deg, var(--pb-light-bg) 0%, #fff 100%) !important;
    border-radius: var(--pb-radius-lg);
    box-shadow: var(--pb-shadow-sm);
    padding: 2rem !important;
    margin-bottom: 2rem;
}
.col-md-12.position-relative .display-4 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--pb-dark);
    font-weight: 800;
}
.col-md-12.position-relative .lead { color: var(--pb-muted); }

/* Filtro de búsqueda */
.col-md-12.position-relative .form-inline .form-control,
.col-md-12.position-relative .form-inline .input {
    border-radius: 10px;
    border: 1px solid var(--pb-border);
    height: 42px;
    font-size: .9rem;
    transition: border-color var(--pb-transition), box-shadow var(--pb-transition);
}
.col-md-12.position-relative .form-inline .form-control:focus,
.col-md-12.position-relative .form-inline .input:focus {
    border-color: var(--pb-primary);
    box-shadow: 0 0 0 3px rgba(255,128,0,.12);
}
.col-md-12.position-relative .form-inline select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF8000' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    appearance: none;
}

/* Tarjetas de Tiendas */
.col-md-3.bg-dark {
    background: #fff !important;
    border-radius: var(--pb-radius-lg);
    overflow: hidden;
    box-shadow: var(--pb-shadow-sm);
    transition: transform var(--pb-transition), box-shadow var(--pb-transition);
    margin-bottom: 1.5rem;
    padding: 0 !important;
}
.col-md-3.bg-dark:hover {
    transform: translateY(-5px);
    box-shadow: var(--pb-shadow-md);
}
.col-md-3.bg-dark h2.display-5 {
    color: var(--pb-dark) !important;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem 1rem 0;
}
.col-md-3.bg-dark h2.display-5 a { color: var(--pb-dark); }
.col-md-3.bg-dark .bg-light {
    background: var(--pb-light-bg) !important;
    border-radius: 0 0 var(--pb-radius-lg) var(--pb-radius-lg) !important;
}
.col-md-3.bg-dark p { font-size: .82rem; color: var(--pb-muted) !important; }
.col-md-3.bg-dark img {
    border-radius: 10px;
    padding: .5rem;
    object-fit: contain;
}

/* ═══════════════════════════════════════════════════════
   CATEGORÍAS — categories.blade.php
═══════════════════════════════════════════════════════ */
.album.py-5.bg-light {
    background: var(--pb-light-bg) !important;
    padding: 1.5rem 0 !important;
}
.album .card {
    border: none;
    border-radius: var(--pb-radius-lg);
    box-shadow: var(--pb-shadow-sm);
    transition: transform var(--pb-transition), box-shadow var(--pb-transition);
    overflow: hidden;
}
.album .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pb-shadow-md);
}
.album .card-img-top img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.album .card-body {
    padding: 1rem 1.1rem;
}
.album .card-body .card-text {
    font-weight: 600;
    color: var(--pb-dark);
    font-size: .95rem;
}
.album .card-body .fa {
    color: var(--pb-primary);
    margin-right: .35rem;
}
.album .btn-outline-secondary {
    border-color: var(--pb-primary);
    color: var(--pb-primary);
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem .9rem;
    transition: all var(--pb-transition);
}
.album .btn-outline-secondary:hover {
    background: var(--pb-primary);
    color: #fff;
    border-color: var(--pb-primary);
}

/* ═══════════════════════════════════════════════════════
   DETALLE PRODUCTO — producto.blade.php
═══════════════════════════════════════════════════════ */
.product-details {
    padding: 1rem 0;
}
.product-name {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 800;
    color: var(--pb-dark);
    margin-bottom: .5rem;
}
.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pb-primary);
    margin-bottom: .25rem;
}
.product-old-price {
    font-size: 1rem;
    color: var(--pb-muted);
    margin-left: .5rem;
}
.product-available {
    display: inline-block;
    background: rgba(56,193,114,.1);
    color: #2e9455;
    font-weight: 600;
    font-size: .82rem;
    padding: .25rem .75rem;
    border-radius: 20px;
    border: 1px solid rgba(56,193,114,.3);
}
.badge-danger {
    background: rgba(227,52,47,.1);
    color: #e3342f;
    border: 1px solid rgba(227,52,47,.3);
    border-radius: 20px;
    padding: .3rem .8rem;
    font-size: .82rem;
}
.product-links { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; padding: 0; list-style: none; }
.product-links li { font-size: .875rem; color: var(--pb-muted); }
.product-links li a { color: var(--pb-primary); font-weight: 600; }
.product-links .btn-info { background: #0088cc; border: none; border-radius: 20px; }
.product-links .btn-success { background: #25D366; border: none; border-radius: 20px; }

/* ═══════════════════════════════════════════════════════
   CARRITO / MY CART — myCart.blade.php
   Los estilos de modales ya aplican; esto añade contexto de página
═══════════════════════════════════════════════════════ */
.btn-primary {
    background: var(--pb-primary);
    border-color: var(--pb-primary);
    border-radius: 8px;
    font-weight: 600;
    transition: background var(--pb-transition), transform var(--pb-transition);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--pb-primary-dark);
    border-color: var(--pb-primary-dark);
    transform: translateY(-1px);
}
.btn-outline-primary {
    color: var(--pb-primary);
    border-color: var(--pb-primary);
    border-radius: 8px;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background: var(--pb-primary);
    color: #fff;
    border-color: var(--pb-primary);
}
table thead th {
    background: var(--pb-dark);
    color: #fff;
    font-weight: 600;
    border: none;
    font-size: .85rem;
}
table.table { border-radius: var(--pb-radius); overflow: hidden; box-shadow: var(--pb-shadow-sm); }
table tbody tr:hover { background: rgba(255,128,0,.04); }

/* ═══════════════════════════════════════════════════════
   HOME / PERFIL — home.blade.php (panel del usuario)
═══════════════════════════════════════════════════════ */
.card {
    border: none;
    border-radius: var(--pb-radius);
    box-shadow: var(--pb-shadow-sm);
    transition: box-shadow var(--pb-transition);
}
.card:hover { box-shadow: var(--pb-shadow-md); }
.card-header {
    background: linear-gradient(135deg, var(--pb-dark) 0%, var(--pb-dark-surface) 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid var(--pb-primary);
}
.card-header h5, .card-header h6 { color: #fff; margin: 0; }

/* ═══════════════════════════════════════════════════════
   SEARCH FORM GLOBAL
═══════════════════════════════════════════════════════ */
.form-control:focus {
    border-color: var(--pb-primary);
    box-shadow: 0 0 0 3px rgba(255,128,0,.12);
}
select.form-control {
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════
   ION-BUTTON GLOBAL
═══════════════════════════════════════════════════════ */
ion-button {
    --background: var(--pb-primary);
    --background-hover: var(--pb-primary-dark);
    --border-radius: 8px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   STORE HEADER — tienda.blade.php
   Banner premium con perfil de la tienda
═══════════════════════════════════════════════════════ */
.pb-store-header {
    background: linear-gradient(135deg, var(--pb-dark) 0%, #2d2e42 60%, #3a2000 100%);
    padding: 2rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}
.pb-store-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(255,128,0,.15) 0%, transparent 65%);
    pointer-events: none;
}

/* Breadcrumb dentro del store header */
.pb-store-breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.pb-store-breadcrumb a {
    color: rgba(255,255,255,.6) !important;
    font-size: .82rem;
    font-weight: 500;
    transition: color var(--pb-transition);
    text-decoration: none;
}
.pb-store-breadcrumb a:hover { color: var(--pb-primary) !important; }
.pb-store-breadcrumb span { color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 600; }
.pb-store-breadcrumb .fa-angle-right { color: rgba(255,255,255,.3); font-size: .75rem; }

/* Store profile row */
.pb-store-profile {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    flex-wrap: wrap;
}

/* Logo circular */
.pb-store-logo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--pb-primary);
    box-shadow: 0 4px 20px rgba(255,128,0,.35);
}
.pb-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.pb-store-logo-placeholder {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pb-primary);
}

/* Store info */
.pb-store-info { flex: 1; min-width: 200px; }
.pb-store-info h1 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 .5rem;
    line-height: 1.2;
}
.pb-store-info p {
    color: rgba(255,255,255,.7);
    font-size: .95rem;
    margin-bottom: .75rem;
    max-width: 500px;
}
.pb-store-badges { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Store actions */
.pb-store-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: flex-end;
}

/* Products section below header */
.pb-store-products { padding-bottom: 2rem; }
.pb-products-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--pb-border);
}
.pb-products-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pb-dark);
    margin: 0;
}
.pb-products-title i { color: var(--pb-primary); margin-right: .4rem; }

/* ═══════════════════════════════════════════════════════
   PRODUCTS PAGE HEADER — productos.blade.php
   Banner para la página de listado de productos
═══════════════════════════════════════════════════════ */
.pb-products-header {
    background: linear-gradient(135deg, var(--pb-dark) 0%, #2d2e42 50%, #3a2000 100%);
    padding: 2rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}
.pb-products-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,128,0,.15) 0%, transparent 65%);
    pointer-events: none;
}
.pb-products-hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.pb-products-hero-content h1 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 .5rem;
}
.pb-products-hero-content h1 i { color: var(--pb-primary); }
.pb-products-hero-content p {
    color: rgba(255,255,255,.72);
    font-size: 1rem;
    margin: 0;
    max-width: 520px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — store & products headers
═══════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .pb-store-profile { flex-direction: column; align-items: center; text-align: center; }
    .pb-store-logo { width: 80px; height: 80px; }
    .pb-store-info h1 { font-size: 1.4rem; }
    .pb-store-badges, .pb-trust-badges { justify-content: center; }
    .pb-store-actions { align-items: center; width: 100%; }
    .pb-products-hero-content { flex-direction: column; text-align: center; }
    .pb-products-topbar { flex-direction: column; gap: .75rem; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════
   STORE SIDEBAR — store.blade.php
═══════════════════════════════════════════════════════ */
.pb-store-sidebar { padding-right: 1.25rem; }
.pb-sidebar-card {
    background: #fff;
    border-radius: var(--pb-radius);
    box-shadow: var(--pb-shadow-sm);
    padding: .85rem 1rem;
    border: 1px solid var(--pb-border);
}
.pb-sidebar-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--pb-dark);
    margin-bottom: .65rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--pb-primary);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.pb-sidebar-title i { color: var(--pb-primary); }

/* ═══════════════════════════════════════════════════════
   FIX RATING STARS — rankingCom.vue (estrellas muy grandes)
═══════════════════════════════════════════════════════ */
#rating { font-size: .88rem; }
#rating .rating-avg {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .65rem;
}
#rating .rating-avg > span {
    font-size: 1.5rem !important;
    font-weight: 800;
    color: var(--pb-dark);
    line-height: 1;
}
#rating .rating-stars { display: flex; gap: 2px; }
#rating .rating-stars .fa-star,
#rating .rating-stars .far.fa-star {
    font-size: .78rem !important;
    color: var(--pb-primary);
}
#rating .rating-stars .far.fa-star { color: #ddd !important; }
#rating ul.rating {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
#rating ul.rating li {
    display: flex;
    align-items: center;
    gap: .4rem;
}
#rating ul.rating .rating-stars .fa-star,
#rating ul.rating .rating-stars .far.fa-star {
    font-size: .65rem !important;
}
#rating ul.rating .rating-progress {
    flex: 1;
    height: 5px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}
#rating ul.rating .rating-progress > div {
    height: 100%;
    background: linear-gradient(90deg, var(--pb-primary), var(--pb-primary-light));
    border-radius: 3px;
}
#rating ul.rating .sum {
    font-size: .7rem;
    color: var(--pb-muted);
    min-width: 12px;
    text-align: right;
}

/* Estrellas en card de producto */
.product-rating .fa-star,
.product-rating .far.fa-star {
    font-size: .78rem !important;
    color: var(--pb-primary);
}
.product-rating .far.fa-star { color: #ddd !important; }

/* ═══════════════════════════════════════════════════════
   LOGIN BUTTON — login-popper en el navbar
   El componente emite un trigger con clase dinámica.
   Aplicamos estilos al wrapper y a cualquier <a>/<button> hijo
═══════════════════════════════════════════════════════ */
.navbar login-popper > *,
.navbar .v-popper--theme-dropdown .v-popper__reference-node > * {
    background: var(--pb-primary) !important;
    color: #fff !important;
    border-radius: 50px;
    padding: .42rem 1.1rem;
    font-weight: 700;
    font-size: .88rem;
    border: none;
    cursor: pointer;
    transition: background var(--pb-transition);
}

/* ═══════════════════════════════════════════════════════
   PRODUCT IMAGE — fallback imagen por defecto
═══════════════════════════════════════════════════════ */
.product-img img {
    object-fit: contain;
    background: var(--pb-light-bg);
    border-radius: var(--pb-radius);
    display: block;
    transition: transform var(--pb-transition);
}
.product-img img[src$="logo_plazbuy.png"],
.product-img img[src*="logo_plazbuy"] {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
    border: 2px dashed rgba(255,128,0,.2);
    opacity: .9;
}
.product:hover .product-img img { transform: scale(1.04); }

/* ═══════════════════════════════════════════════════════
   COMMENT LIST — compactar texto de comentarios
═══════════════════════════════════════════════════════ */
.pb-sidebar-card comment-list { display: block; max-height: 320px; overflow-y: auto; }

/* ═══════════════════════════════════════════════════════
   PRODUCT CARD FIXES (Z-INDEX OVERFLOW ON HOVER)
═══════════════════════════════════════════════════════ */
.product {
    position: relative;
    transition: transform var(--pb-transition), box-shadow var(--pb-transition) !important;
}
.product:hover {
    z-index: 100 !important;
}
.product-body {
    position: relative;
    z-index: 2;
    background: #fff;
}
.add-to-cart {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    padding: 15px;
    background: #1e1f29;
    text-align: center;
    transform: translateY(100%);
    transition: 0.2s all;
    z-index: 10;
}
.product:hover .add-to-cart {
    transform: translateY(0%);
}
.product-details .add-to-cart {
    position: static;
    transform: none;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 25px 20px;
    border-radius: 8px;
}
.product-details .add-to-cart .qty-label {
    margin-bottom: 15px;
}
.product-details .add-to-cart .qty-label h3 {
    margin-bottom: 12px;
}
.product-details .add-to-cart .add-to-cart-btn {
    margin-top: 15px;
}
