   * {
       margin: 0;
       padding: 0;
       box-sizing: border-box;
       font-family: Arial, Helvetica, sans-serif;
   }

   body {
       background: #f6f6f6;
       color: #333;
       padding-top: 140px;
       /* espacio para top-bar + header fijo */
   }

   .swal2-container {
       z-index: 999999 !important;
   }

   .swal2-popup {
       z-index: 999999 !important;
   }

   /* ===== TOP BAR ===== */
   .top-bar {
       background: #3b0036;
       color: #fff;
       padding: 15px 60px;
       display: flex;
       justify-content: space-between;
       align-items: center;
       font-size: 14px;

       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       z-index: 1000;
   }

   .top-left a {
       color: #fff;
       text-decoration: none;
       margin-right: 20px;
       opacity: .9;
   }

   .top-left i {
       margin-right: 6px;
   }

   .top-right {
       display: flex;
       align-items: center;
       gap: 12px;
       
   }

   .top-btn {
       background: transparent;
       border: 1px solid rgba(255, 255, 255, .4);
       color: #fff;
       padding: 6px 14px;
       border-radius: 4px;
       cursor: pointer;
       font-size: 13px;
   }

   .top-btn.primary {
       background: #ff006e;
       border-color: #ff006e;
   }

   /* ===== NAVBAR ===== */
   header {
       background: #fff;
       padding: 22px 60px;
       display: flex;
       align-items: center;
       justify-content: space-between;
       box-shadow: 0 2px 8px rgba(0, 0, 0, .08);

       position: fixed;
       top: 52px;
       /* altura del top-bar */
       left: 0;
       width: 100%;
       z-index: 999;
   }

   /* LOGO (IMAGEN + TEXTO) */
   .logo {
       display: flex;
       align-items: center;
       gap: 8px;
       font-size: 24px;
       font-weight: bold;
       color: #e60073;
   }

   .logo img {
       width: 40px;
       height: 40px;
       object-fit: contain;
   }


   /* ===== SEARCH HEADER ===== */

   .header-search {
       display: flex;
       align-items: center;
       background: #fff;

       padding: 12px 18px;
       border-radius: 30px;
       width: 260px;
       margin: 0 30px;
       border: 1px solid #ddd;
       transition: all .2s ease;
   }

   .header-search i {
       color: #ff006e;
       font-size: 14px;
       margin-right: 8px;
   }

   .header-search input {
       border: none;
       background: transparent;
       outline: none;
       font-size: 14px;
      
   }

   .header-search:focus-within {
       border-color: #ff006e;
       box-shadow: 0 0 0 3px rgba(255, 0, 110, .15);
   }
   @media (max-width: 768px) {
    .header-search input {
        max-width: 100px;
    }
}


   nav a {
       margin-left: 30px;
       text-decoration: none;
       color: #333;
       font-weight: 600;
       font-size: 15px;
       cursor: pointer;
   }
   .top-left a{
   cursor: pointer;
   }
   .top-left a:hover {
    background: #3b0036;
    color: #ff006e;
   }
   nav a i {
       margin-right: 6px;
       color: #ff006e;
   }

   nav a:hover {
       color: #e60073;
   }

   /* ===== HERO ===== */
   .hero {
       height: 420px;
       background: linear-gradient(rgba(50, 0, 40, .85),
               rgba(200, 0, 120, .85)),
           url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f');
       background-size: cover;
       background-position: center;
       display: flex;
       align-items: center;
       justify-content: center;
       text-align: center;
       color: #fff;
       padding: 20px;
   }

   .hero h1 {
       font-size: 44px;
       margin-bottom: 10px;
   }

   .hero p {
       margin-bottom: 25px;
       opacity: .9;
   }

   .hero button {
       padding: 12px 22px;
       border: none;
       cursor: pointer;
       border-radius: 4px;
       margin: 0 5px;
       font-weight: bold;
   }

   .btn-primary {
       background: #3b0036;
       
       color: #fff;
         padding: 8px 14px;
       border-radius: 4px;
       cursor: pointer;
   }

  
   .btn-secondary {
     background: #6a1b5d;
    color: #fff;
      padding: 8px 14px;
       border-radius: 4px;
       cursor: pointer;
       border: none;
}

.btn-secondary:hover {
    background: #e60073;
   
}

   /* ===== MAIN PRODUCTS ===== */
   /*main {
       padding: 50px 40px;
       max-width: 1200px;
       margin: auto;
   }

   main h2 {
       margin-bottom: 25px;
       font-size: 28px;
   }*/

   .products {
       display: grid;
       grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
       gap: 25px;
   }

   .product {
       background: #fff;
       border-radius: 8px;
       overflow: hidden;
       box-shadow: 0 6px 15px rgba(0, 0, 0, .08);
       transition: transform .2s;
   }

   .product:hover {
       transform: translateY(-5px);
   }

   .product-img {
       height: 150px;
       background: linear-gradient(135deg, #ff4d8d, #9b0f5f);
       display: flex;
       align-items: center;
       justify-content: center;
       color: #fff;
       font-size: 40px;
   }

   .product-body {
       padding: 15px;
   }

   .product-body h3 {
       font-size: 18px;
       margin-bottom: 8px;
   }

   .product-body p {
       font-size: 14px;
       opacity: .8;
       margin-bottom: 10px;
   }

   .product-footer {
       display: flex;
       justify-content: space-between;
       align-items: center;
   }

   .price {
       font-weight: bold;
       color: #e60073;
   }

   .buy {
       background: #ff006e;
       color: #fff;
       border: none;
       padding: 8px 14px;
       border-radius: 4px;
       cursor: pointer;
   }

   /* ===============================
   RESPONSIVE - PANTALLAS PEQUEÑAS*/
   @media (max-width: 768px) {

       /* AJUSTE GLOBAL */
       body {
           padding-top: 240px;
           /* más alto para top-bar + header mobile */
       }

       /* TOP BAR MOBILE */
       .top-bar {
           flex-direction: column;
           gap: 10px;
           padding: 12px 20px;
           text-align: center;
       }

       .top-left,
       .top-right {
           display: flex;
           justify-content: center;
           gap: 14px;
           width: 100%;
       }

       .top-left a {
           font-size: 13px;
           white-space: nowrap;
       }

       .top-right span {
           display: none;
       }

       /* HEADER MOBILE */
       header {
           top: 75px;
           /* 🔥 CLAVE: baja el header debajo del top-bar */
           flex-direction: column;
           align-items: stretch;
           padding: 16px 20px;
           gap: 12px;
       }

       /* LOGO + SEARCH */
       header>div:first-child {
           display: flex;
           align-items: center;
           gap: 8px;
       }

       .logo {
           font-size: 20px;
           white-space: nowrap;
           margin-right: 55px;
       }

       @media (min-width: 769px) {
           .logo {
               margin-right: 55px;
           }
       }

       .header-search {
           width: 100%;
           margin: 0;
       }

       /* NAV SCROLL */
       nav {
           display: flex;
           /*overflow-x: auto;*/
           white-space: nowrap;
           padding-bottom: 6px;
       }

       nav a {
           margin-right: 18px;
           flex-shrink: 0;
           font-size: 14px;
       }
   }


   /* ===== AUTH MODAL ===== */

   .modal-overlay {
       position: fixed;
       inset: 0;
       background: rgba(0, 0, 0, .65);
       z-index: 999;
   }
   /*
   .top-bar, header {
    z-index: 998 !important;  
}*/

   .auth-modal {
       position: fixed;
       top: 50%;
       left: 50%;
       transform: translate(-50%, -50%);
       background: #fff;
       width: 380px;
       padding: 28px;
       border-radius: 12px;
       z-index: 2001;
   }

   .auth-group {
       position: relative;
       margin-bottom: 14px;
   }

   .auth-group i {
       position: absolute;
       top: 65%;
       left: 12px;
       transform: translateY(-50%);
       color: #3b0036;
   }

   .auth-group input {
       width: 100%;
       padding: 11px 40px;
       border-radius: 6px;
       border: 1px solid #ddd;

       
   }

   /* ===== AUTH BUTTON ===== */
   .auth-btn {
       width: 100%;
       margin-top: 10px;
       padding: 12px;
       background: #3b0036;
       color: #fff;
       border: none;
       border-radius: 6px;
       font-weight: bold;
       cursor: pointer;
   }

   .auth-btn:hover {
       background: #ff006e;
   }

   /* ===== CLOSE BUTTON ===== */
   .auth-close {
       background: none;
       border: none;
       font-size: 22px;
       position: absolute;
       top: 14px;
       right: 16px;
       cursor: pointer;
   }

   /* ===== PHOTO WRAPPER ===== */
   .auth-photo {
       display: flex;
       flex-direction: column;
       align-items: center;
       text-align: center;
       gap: 10px;
       margin-bottom: 20px;
       position: relative;
   }

   /* ===== PHOTO PREVIEW (CÍRCULO REAL) ===== */
   .photo-preview {
       width: 100px;
       height: 100px;
       border-radius: 50%;
       object-fit: cover;
       border: 3px solid #ff006e;
       /* 🔥 círculo visible */
   }

   /* ===== PHOTO ACTIONS ===== */
   .photo-btn,
   .photo-remove {
       display: inline-flex;
       align-items: center;
       gap: 6px;
       font-size: 13px;
       cursor: pointer;
   }

   .photo-btn {
       color: #3b0036;
   }

   .photo-remove {
       position: absolute;
       top: 0;
       right: 0;
       background: #000;
       color: #fff;
       border: none;
       border-radius: 50%;
       width: 22px;
       height: 22px;
       justify-content: center;
   }

   /*login modal*/
 
   /* ===== SOLO PRODUCTO - NO afecta otros modals ===== */

.product-section {
    padding: 40px 20px; /* ← MENOS padding section */
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    min-height: 100vh;
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(25px);
    border-radius: 14px;
    padding: 40px; /* ← MENOS padding container */
    box-shadow: 0 30px 100px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.4);
}

.product-section {
    padding: 40px 20px; /* ← MENOS espacio */
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    min-height: 100vh;
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(25px);
    border-radius: 14px;
    padding: 40px; /* ← MENOS padding */
    box-shadow: 0 30px 100px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.4);
}
.product-container select,
   .product-container textarea {
       display: block !important;
       width: 100% !important;
       padding: 11px 12px 11px 45px !important;
       border: 1px solid #ddd !important;
       border-radius: 6px !important;
       background: white !important;
       box-sizing: border-box !important;
       font-family: inherit !important;
       line-height: normal !important;
       -webkit-appearance: none !important;
       -moz-appearance: none !important;
       appearance: none !important;
   }

   .product-container select {
       height: 48px !important;
   }

   .product-container textarea {
       height: 90px !important;
       resize: vertical !important;
   }


/* HEADER + BOTÓN ALINEADOS */
.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.product-section .section-header {
    flex: 1;
    text-align: center;
    margin: 0;
}

.product-section .section-header h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b0036;
    margin-bottom: 8px;
}

/* BOTÓN VOLVER */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(255,255,255,0.9);
    color: #3b0036;
    border: 2px solid #e8e8f0;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.back-btn:hover {
    background: #ff006e;
    color: white;
    border-color: #ff006e;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,0,110,0.3);
}

/* FORMULARIO 3 COLUMNAS */
.product-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.product-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* SECCIÓN IMÁGENES */
.product-images-section {
    background: rgba(255,255,255,1);
    padding: 35px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid #e8e8f0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    grid-column: 1 / -1;
}

/* BOTÓN CREATE */
.auth-btn.primary {
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .product-container {
        padding: 35px 25px;
        margin: 0 15px;
    }
    .product-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .product-section {
        padding: 30px 15px;
    }
    .product-container {
        padding: 30px 20px;
        margin: 0 10px;
        border-radius: 12px;
    }
    .product-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .product-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-images-section {
        padding: 25px 15px;
        margin: 25px 0;
    }
}

@media (max-width: 480px) {
    .product-section {
        padding: 20px 10px;
    }
    .product-container {
        padding: 25px 15px;
    }
    .product-section .section-header h3 {
        font-size: 1.8rem;
    }
}


   /*
   #productModal {
       width: 840px !important;
       max-width: 90vw !important;
   }

   #productModal .product-form-grid {
       display: grid;
       grid-template-columns: 1fr 1fr;
       gap: 25px;
       margin: 20px 0;
   }

   #productModal .product-column {
       display: flex;
       flex-direction: column;
   }


   .auth-group select,
   .auth-group textarea {
       display: block !important;
       width: 100% !important;
       padding: 11px 12px 11px 45px !important;
       border: 1px solid #ddd !important;
       border-radius: 6px !important;
       background: white !important;
       box-sizing: border-box !important;
       font-family: inherit !important;
       line-height: normal !important;
       -webkit-appearance: none !important;
       -moz-appearance: none !important;
       appearance: none !important;
   }

   .auth-group select {
       height: 48px !important;
   }

   .auth-group textarea {
       height: 90px !important;
       resize: vertical !important;
   }

   .product-form-grid {
       display: grid !important;
       grid-template-columns: 1fr 1fr !important;
       gap: 25px !important;
       margin: 20px 0 !important;
   }



   .images-preview-container .image-preview {
       position: relative;
       width: 80px;
       height: 80px;
       border-radius: 8px;
       object-fit: cover;
       border: 2px solid #ddd;
   }

   .images-preview-container .remove-image {
       position: absolute;
       top: -8px;
       right: -8px;
       width: 20px;
       height: 20px;
       background: #ff4444;
       color: white;
       border: none;
       border-radius: 50%;
       cursor: pointer;
       display: flex;
       align-items: center;
       justify-content: center;
       font-size: 12px;
   }

   .checkbox-group {
       display: flex;
       align-items: center;
       gap: 8px;
       font-size: 14px;
       cursor: pointer;
   }

   @media (max-width: 768px) {
       #productModal .product-form-grid {
           grid-template-columns: 1fr !important;
     
           gap: 15px !important;
       }

       #productModal .auth-group {
           margin-bottom: 16px !important;
       }
         #loginForm {
  
    max-width: 90vw !important;
}
   }*/
   @media (max-width: 768px) {
       #productModal .product-form-grid {
           grid-template-columns: 1fr !important;
     
           gap: 15px !important;
       }

       #productModal .auth-group {
           margin-bottom: 16px !important;
       }
         #loginForm {
  
    max-width: 90vw !important;
}
   }

   /* ===== MODAL REGISTRO COMPACTO ===== */
   #registerForm {
       padding: 20px !important;
       /* ← De 28px a 20px */
   }

   #registerForm .auth-group {
       margin-bottom: 12px !important;
       /* ← De 14px a 12px */
   }

   #registerForm .auth-photo {
       margin-bottom: 16px !important;
       /* ← Más compacto */
   }

   #registerForm h3 {
       margin: 0 0 4px 0 !important;
       /* ← Título más cerca */
   }

   #registerForm .auth-sub {
       margin: 0 0 16px 0 !important;
       /* ← Subtítulo más cerca */
   }

   /* ===== RESPONSIVE MÓVIL ===== */
   @media (max-width: 480px) {
       #registerForm {
           width: 92vw !important;
           padding: 16px !important;
           margin: 2% auto !important;
           /* ← Margen móvil */
       }

       #registerForm .auth-group {
           margin-bottom: 10px !important;
       }
   }

   /* ================= FEATURED ================= */
   .featured {
       padding: 40px;
       /*max-width: 1200px;
       margin: auto;*/
   }

   /* HEADER + FILTERS */
   .featured-top {
       display: flex;
       align-items: center;
       justify-content: space-between;
       gap: 10px;

       margin-bottom: 25px;
   }

   /* HEADER */
   .featured-header h2 {
       margin: 0;
 
       font-size: 26px;
       font-weight: 700;
       color: #222;
       white-space: nowrap;
   }

   /* FILTERS */
   .product-filters {
       display: flex;
       align-items: center;
  
       gap: 10px;
   }

   .product-filters select {
       padding: 9px 14px;
       border-radius: 8px;
       border: 1px solid #ddd;
       background: #fff;
       font-size: 14px;
       cursor: pointer;
       transition: .2s;
   }

   .product-filters select:hover {
       border-color: #ff006e;
   }


   /* GRID */
   .featured-products {
       display: grid;
       grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
       gap: 25px;
   }

   /* CARD */
   .product-card {
       position: relative;
       background: #fff;
       border-radius: 16px;
       overflow: hidden;
       box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
       transition: .25s;
   }

   .product-card:hover {
       transform: translateY(-6px);
       box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
   }

   /* BADGE */
   .product-badge {
       position: absolute;
       top: 14px;
       left: 14px;
       background: #3b0036;
       color: #fff;
       padding: 5px 10px;
       font-size: 12px;
       border-radius: 20px;
       z-index: 2;
   }

   /* IMAGE – CATALOGO */
   .product-image {
       width: 100%;
       height: 220px;
       /* puedes ajustar */
       overflow: hidden;
       border-radius: 16px 16px 0 0;
       /* SOLO ARRIBA */
       background: #f2f2f2;
   }

   .product-image img {
       width: 100%;
       height: 100%;
       object-fit: cover;
       display: block;
   }



   /* CONTENT */
   .product-content {
       padding: 18px;
   }

   .product-content h3 {
       font-size: 18px;
       margin-bottom: 6px;
   }

   .product-content p {
       font-size: 14px;
       opacity: .75;
       margin-bottom: 12px;
   }


.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.product-amout {
    font-size: 20px;
    font-weight: bold;
    color: #ff006e;
    margin: 0 !important; /* Elimina margen anterior */
    flex-shrink: 0;
}

.product-admin-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.admin-edit, .admin-delete {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.admin-edit {
    background: #696d71;
}

.admin-edit:hover {
    background: #0056b3;
    transform: translateY(-1px);
}
 /*.buy {
            background: #ff006e;
            color: #fff;
            border: none;
            padding: 8px 14px;
            border-radius: 4px;
            cursor: pointer;
        }*/

.admin-delete {
    background: #dc3545;
}

.admin-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

   /* ACTIONS */
   /* ACTIONS BASE */
   .product-actions {
       display: flex;
       justify-content: space-between;
       gap: 6px;
   }

   .product-actions button {
       background: none;
       border: none;
       font-size: 15px;
       cursor: pointer;
       display: flex;
       align-items: center;
       gap: 6px;
       transition: transform .25s, color .25s;
   }

   .product-actions button:nth-child(1) i {
       color: #3b82f6;
   }

   .product-actions button:nth-child(2) i {
       color: #ef4444;
   }

   .product-actions button:nth-child(3) i {
       color: #64748b;
   }

   .product-actions button:nth-child(4) i {
       color: #f97316;
   }

   .product-actions button:nth-child(5) i {
       color: #10b981;
   }

   .product-actions button:hover {
       transform: scale(1.15) rotate(-3deg);
   }

   /* PAGINATION */

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.pagination {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    min-width: 42px;
    height: 42px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-link:hover:not(.disabled) {
    background: linear-gradient(135deg, #ff006e, #e60073);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,0,110,0.4);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #ff006e, #e60073);
    color: white;
    box-shadow: 0 4px 16px rgba(255,0,110,0.4);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive */
@media (max-width: 480px) {
    .pagination-wrapper {
        flex-direction: column;
        gap: 16px;
        padding: 0 10px;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 38px;
        height: 38px;
    }
}



/* ========================================
   BOTONES FLOTANTES - NUEVO ORDEN
   ======================================= */

/* 1️⃣ HOME (MÁS ARRIBA) */
#floatingHome {
    position: fixed !important;
    bottom: 95px !important;      
    right: 25px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #3b0036, #ff006e) !important;
    color: white !important;
    font-size: 20px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(59,0,54,0.4) !important;
    transition: all 0.3s ease !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10003 !important;    /* ← MÁS ALTO */
}

#floatingHome:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 10px 30px rgba(59,0,54,0.5) !important;
}

/* 2️⃣ CARRITO (MEDIO) */
.floating-cart {
    position: fixed !important;
    bottom:165px   !important;      /* ← POSICIÓN 2 */
    right: 25px !important;
    z-index: 10002 !important;
}

.floating-cart-toggle {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ff006e, #e60073) !important;
    border: none !important;
    color: white !important;
    font-size: 20px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(255,0,110,0.4) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.floating-cart-toggle:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 10px 30px rgba(255,0,110,0.5) !important;
}

/* 3️⃣ SCROLLTOP (ABAJO) */
#scrollTop {
    position: fixed !important;
    bottom: 25px !important;     /* ← POSICIÓN 3 */
    right: 25px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #ff006e !important;
    color: #fff !important;
    cursor: pointer !important;
    font-size: 20px !important;
    display: none;                /* ← Tu JS lo controla */
    align-items: center !important;
    justify-content: center !important;
    z-index: 10001 !important;
    box-shadow: 0 6px 20px rgba(255,0,110,0.4) !important;
    transition: all 0.3s ease !important;
}

#scrollTop:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 10px 30px rgba(255,0,110,0.5) !important;
}

/* MÓVIL */
@media (max-width: 480px) {
    #floatingHome { bottom: 85px !important; right: 20px !important; }
    .floating-cart { bottom: 145px !important; right: 20px !important; }
    #scrollTop { 
        bottom: 20px  !important; 
        right: 20px !important; 
        width: 46px !important; 
        height: 46px !important; 
        font-size: 18px !important;
    }
}


/* ================= MOBILE ================= */
   @media (max-width: 768px) {

       .featured-top {
           flex-direction: column;
           align-items: flex-start;
           gap: 12px;
       }

       .featured-header h2 {
           font-size: 20px;
       }

       /* filtros scrolleables */
       .product-filters {
           overflow-x: auto;
           white-space: nowrap;
           width: 100%;
           padding-bottom: 14px;
           /* ⬅ MÁS ESPACIO */
           margin-bottom: 6px;
           /* ⬅ separa del contenido */
       }


       .product-filters select {
           flex: 0 0 auto;
           min-width: 120px;
           /* ⬅ antes 160 */
           padding: 7px 10px;
           /* ⬅ más compacto */
           font-size: 13px;
           /* ⬅ más pequeño */
           border-radius: 6px;
       }
   }

   /* ================= FOOTER ================= */
   .footer {
       background: #0f0f14;
       color: #ccc;
       margin-top: 80px;
       
   }

   .footer-container {
       max-width: 1200px;
       margin: auto;
       padding: 60px 40px;
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
       gap: 40px;
   }

   /* BRAND */
   .footer-brand img {
       width: 42px;
       margin-bottom: 10px;
   }

   .footer-brand h3 {
       color: #fff;
       margin-bottom: 10px;
   }

   .footer-brand p {
       font-size: 14px;
       line-height: 1.6;
       opacity: .8;
   }

   /* LINKS */
   .footer-links h4,
   .footer-social h4 {
       color: #fff;
       margin-bottom: 15px;
       font-size: 16px;
   }

   .footer-links a {
       display: flex;
       align-items: center;
       gap: 8px;
       color: #bbb;
       text-decoration: none;
       font-size: 14px;
       margin-bottom: 8px;
       transition: .2s;
       font-size: 17px;
       cursor: pointer;
   }

   .footer-links a:hover {
       color: #ff006e;
   }

   .footer-links a:hover {
       color: #ff006e;
       transform: translateX(4px);
   }

   /* SOCIAL */
   .social-icons {
       display: flex;
       gap: 12px;
   }

   .social-icons a {
       width: 38px;
       height: 38px;
       border-radius: 50%;
       background: rgba(255, 255, 255, .08);
       display: flex;
       align-items: center;
       justify-content: center;
       color: #fff;
       transition: .3s;
   }

   .social-icons a:hover {
       background: #ff006e;
       transform: translateY(-3px);
   }

   /* BOTTOM */
   .footer-bottom {
       border-top: 1px solid rgba(255, 255, 255, .08);
       text-align: center;
       padding: 18px;
       font-size: 13px;
       color: #aaa;
   }

   /* ================= MOBILE ================= */
   @media (max-width: 768px) {
.footer {
       
       margin-top: -30px;
   }
       .footer-container {
           grid-template-columns: repeat(2, 1fr);
           gap: 30px;
           text-align: left;
       }

       /* la marca ocupa toda la fila */
       .footer-brand {
           grid-column: span 2;
           text-align: center;
       }

       /* redes centradas */
       .footer-social {
           grid-column: span 2;
           text-align: center;
       }

       .social-icons {
           justify-content: center;
       }
   }

      /* SECCCION DE DETALLES DEL PRODUCTO //*/
   .product-detail {
       max-width: 1200px;
       /* max-width: 1320px; */
       margin: 40px auto;
       padding: 20px;
       display: grid;
       grid-template-columns: 1.2fr 1fr;
       gap: 40px;
       border: 3px solid red;
   }

   /* ===== GALLERY ===== */
   .product-gallery {
       position: relative;
   }

   .back-btn {
       position: absolute;
       top: 15px;
       left: 15px;
       background: rgba(0, 0, 0, .6);
       color: #fff;
       border: none;
       padding: 8px 14px;
       border-radius: 20px;
       cursor: pointer;
       z-index: 2;
   }

   .gallery-thumbs {
       position: absolute;
       bottom: 20px;
       left: 50%;
       transform: translateX(-50%);
       display: flex;
       gap: 10px;
       z-index: 2;
   }

   .gallery-thumbs img {
       width: 60px;
       height: 60px;
       object-fit: cover;
       border-radius: 10px;
       cursor: pointer;
       opacity: .7;
       border: 2px solid transparent;
   }

   .gallery-thumbs img.active {
       opacity: 1;
       border-color: #ff006e;
   }

 .gallery-main {
    border-radius: 16px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 420px;
    object-fit: contain;  /* ✅ MUESTRA COMPLETA */
}

   /* ===== INFO ===== */
   .product-info h1 {
       font-size: 28px;
       margin-bottom: 10px;
   }

   .product-amout-detail {
       font-size: 26px;
       font-weight: bold;
       color: #ff006e;
       margin-bottom: 6px;
   }

   .product-status {
       display: inline-block;
       background: #ffedd5;
       color: #c2410c;
       padding: 5px 12px;
       border-radius: 20px;
       font-size: 13px;
       margin-bottom: 14px;
   }

   .short-desc {
       font-size: 15px;
       opacity: .85;
       margin-bottom: 20px;
   }

   .product-metrics {
       display: flex;
       gap: 18px;
       font-size: 14px;
       margin-bottom: 25px;
   }

   .product-metrics i {
       margin-right: 6px;
       color: #ff006e;
   }

   /* ===== ACTIONS ===== */
   .product-actions-main {
       display: flex;
       gap: 12px;
       margin-bottom: 20px;
   }

   .buy-btn {
       flex: 1;
       background: #ff006e;
       color: #fff;
       border: none;
       padding: 14px;
       border-radius: 10px;
       font-weight: bold;
       cursor: pointer;
   }

   .whatsapp-btn {
       background: #25D366;
       color: #fff;
       border: none;
       padding: 14px 18px;
       border-radius: 10px;
       cursor: pointer;
   }

   /* ===== PAYMENTS ===== */
   .payment-methods {
       display: flex;
       gap: 12px;
       align-items: center;
   }

   .payment-methods img {
       height: 22px;
       /*opacity: .8;*/
   }
   /* ===== MOBILE ===== */
   @media (max-width: 768px) {
       .product-detail {
           grid-template-columns: 1fr;
           margin-top: -27px;
       }

        .gallery-main img {
        height: 300px;
        object-fit: contain;  
    }
   }
 
   /* DETAILS */
   .product-details h3 {
       font-size: 20px;
       margin-bottom: 16px;
   }

   .product-details p {
       color: #555;
       line-height: 1.6;
       margin-bottom: 14px;
   }

   /* COMMENTS */
   .market-comments {
       display: flex;
       flex-direction: column;
       gap: 18px;
   }

   .market-comments h3 {
       font-size: 20px;
       margin-bottom: 6px;
   }

   /* COMMENT CARD */
   .comment-card {
       background: #fafafa;
       border: 1px solid #eee;
       border-radius: 16px;
       padding: 16px;
       box-shadow: 0 6px 14px rgba(0, 0, 0, .04);
   }

   /* HEADER */
   .comment-header {
       display: flex;
       align-items: center;
       gap: 12px;
       margin-bottom: 8px;
   }

   .comment-header strong {
       font-size: 14px;
   }

   .comment-header small {
       display: block;
       font-size: 12px;
       opacity: .6;
   }

   /* AVATAR */
   .avatar {
       width: 40px;
       height: 40px;
       border-radius: 50%;
       background: linear-gradient(135deg, #ff006e, #ff7aa8);
       color: #fff;
       font-weight: bold;
       display: flex;
       align-items: center;
       justify-content: center;
       flex-shrink: 0;
   }

   .avatar.small {
       width: 30px;
       height: 30px;
       font-size: 12px;
   }

   /* MESSAGE */
   .comment-card p {
       font-size: 14px;
       line-height: 1.5;
       margin-bottom: 10px;
   }

   /* ACTIONS */
   .comment-actions {
       margin-top: 6px;
   }

   .reply-btn {
       background: transparent;
       border: none;
       color: #ff006e;
       font-size: 13px;
       cursor: pointer;
       padding: 0;
   }

   .reply-btn:hover {
       text-decoration: underline;
   }

   /* REPLY */
   .comment-reply {
       margin-top: 14px;
       padding: 12px 14px;
       background: #fff;
       border-radius: 12px;
       margin-left: 40px;

   }

   /* DELETE BUTTON */
   .delete-btn {
       background: transparent;
       border: none;
       color: #ff3b7e;
       font-size: 13px;
       cursor: pointer;
       padding: 0 6px;
       margin-left: 10px;
       transition: color 0.2s ease;
   }

   .delete-btn i {
       margin-right: 4px;
   }

   .delete-btn:hover {
       color: #ff006e;
       text-decoration: underline;
   }

   /* ACTIONS: para alinear botones horizontalmente */
   .comment-actions {
       margin-top: 6px;
       display: flex;
       gap: 6px;
       align-items: center;
   }

   /* ADAPTACIÓN PARA RESPUESTAS */
   .comment-reply .comment-actions {
       justify-content: flex-start;
   }


   /* INPUT PRINCIPAL */
   .comment-input {
       display: flex;
       margin-top: 10px;
       border: 1px solid #ddd;
       border-radius: 999px;
       overflow: hidden;
       background: #fff;
   }

   .comment-input input {
       flex: 1;
       border: none;
       padding: 12px 16px;
       font-size: 14px;
       outline: none;
   }

   .comment-input button {
       background: #ff006e;
       color: #fff;
       border: none;
       padding: 0 18px;
       font-size: 16px;
       cursor: pointer;
   }

   /* REPLY INPUT (DINÁMICO) */
   .reply-input {
       display: flex;
       margin-top: 12px;
       border: 1px solid #ddd;
       border-radius: 999px;
       overflow: hidden;
       background: #fff;
   }

   .reply-input input {
       flex: 1;
       border: none;
       padding: 10px 14px;
       font-size: 14px;
       outline: none;
   }

   .reply-input button {
       background: #ff006e;
       border: none;
       padding: 0 16px;
       color: #fff;
       cursor: pointer;
   }

   /* MOBILE */
   @media (max-width: 768px) {
       .product-extra {
           grid-template-columns: 1fr;
       }

       .comment-reply {
           margin-left: 20px;
       }
   }

       /* FIXED: Modal NO desborda pantalla */
.auth-modal {
    max-height: 95vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Scrollbar custom (opcional, más bonita) */
.auth-modal::-webkit-scrollbar {
    width: 6px;
}

.auth-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.auth-modal::-webkit-scrollbar-thumb {
    background: #ff006e;
    border-radius: 3px;
}
/* === MODAL SESIÓN EXPIRADA === */
 @media (max-width: 480px) {
        #modalSession {
            width: 95vw !important;
            left: 2.5% !important;
           top: 28% !important;
            transform: none !important;
            margin: 0 !important;
        }
       
    }
.loading-container {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state i {
    opacity: 0.5;
}

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.share-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e1e5e9;
}

.share-btn i {
    font-size: 20px;
    width: 24px;
}

.share-btn.whatsapp { background: #25D366; color: white; }
.share-btn.facebook { background: #1877F2; color: white; }
.share-btn.twitter { background: #1DA1F2; color: white; }
.share-btn.copy { background: #f8f9fa; color: #333; }
/* Colores oficiales de las redes */
.share-btn.tiktok { 
    background: black; 
    color: white !important; 
}

.share-btn.instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    color: white !important; 
}

/* Iconos también blancos */
.share-btn.tiktok i,
.share-btn.instagram i {
    color: white !important;
    -webkit-text-fill-color: white;
}

.share-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* CONTADOR NAV - NO rompe diseño */
.cart-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-nav-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff006e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255,0,110,0.4);
    animation: bounce 0.6s ease-out;
}

/* Animación entrada */
@keyframes bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Móvil */
@media (max-width: 768px) {
    .cart-nav-badge {
        top: -6px;
        right: -10px;
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

.cartShop {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.cart-header h2 {
    margin: 0;
    color: #3b0036;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-item-details h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.cart-price {
    color: #3b0036;
    font-weight: bold;
    font-size: 16px;
}
@media (max-width: 576px) {
    .cart-price {
        font-size: 14px;
    }
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #ff006e;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.qty {
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.remove-btn {
    background: #dc3545;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.cart-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
    color: #ff006e;
}

.cart-footer {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
/* ========================================
   CARRITO MÓVIL - DISEÑO GRANDE MANTENIDO
   ======================================== */

@media (max-width: 768px) {
    .cart-item {
        position: relative;
        grid-template-areas: 
            "image details remove"
            "image quantity total";
        grid-template-columns: 80px 1fr auto;
        gap: 10px;
        padding: 16px;
    }
    
    .cart-item-image { grid-area: image; }
    .cart-item-details { grid-area: details; }
    .cart-quantity { grid-area: quantity; }
    .cart-total { 

        margin-top: 88px;
    }
    .remove-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
    }
    
    .cart-item-details h4 {
        font-size: 14px;
        margin-bottom: 5px;
    }
}
/* ========================================
   CARRITO FLOTANTE - FIJO DERECHA
   ======================================== */

.floating-cart-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff006e, #e60073);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255,0,110,0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 35px rgba(255,0,110,0.5);
}

.floating-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #19191a;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PANEL CARRITO */
.floating-cart-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 16px 16px 4px 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 10000;
}
.floating-close-btn {
    background: #f0f0f0 !important;
    color: #666 !important;
    width: 24px !important;
    height: 24px !important;
    justify-content: center !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border: 2px solid #3b0036 !important;
}

.floating-close-btn:hover {
    background: #f0f0f0 !important;
    color: #ff006e !important;
    transform: rotate(90deg) !important;
}

.floating-cart-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-cart-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-cart-header h4 {
    margin: 0;
    color: #3b0036;
    font-size: 18px;
}

.floating-cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.floating-cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    align-items: center;
}

.floating-cart-item:last-child {
    border-bottom: none;
}

.floating-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.floating-cart-item-info h5 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #333;
}

.floating-cart-item-info .price {
    font-weight: bold;
    color: #ff006e;
    font-size: 14px;
}

.floating-cart-item-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.floating-cart-footer {
    padding: 15px 20px 20px;
    border-top: 1px solid #eee;
}

.floating-cart-footer button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.paypal-btn {
    background: linear-gradient(135deg, #003087, #0070ba);
    color: white;
}

/* SCROLLBAR */
.floating-cart-items::-webkit-scrollbar {
    width: 4px;
}

.floating-cart-items::-webkit-scrollbar-thumb {
    background: #ff006e;
    border-radius: 2px;
}

/* MÓVIL */
@media (max-width: 480px) {
    .floating-cart {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-cart-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .floatingCartTotal{
    width: 17px;
    height: 17px;
    }
    
    .floating-cart-panel {
        width: 320px;
        right: -10px;
    }
}

.paypal-buttons {
    width: 100%;
    margin: 20px 0;
}

.paypal-button {
    width: 100% !important;
    border-radius: 12px !important;
    padding: 16px !important;
}
.cart-total-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px;
    padding: 15px 0;
}

@media (max-width: 768px) {
    .cart-total-row {
        flex-direction: column !important;         
    }
    .cart-total-row button {
        width: 100% !important;
        margin: 2px;
    }
}


.total-left {
    flex: 1;
}

.total-right {
    flex-shrink: 0;
}
/*
.total-right button {
    margin: 0 !important;
    padding: 12px 20px !important;
}*/

#paypal-buttons-container {
    margin-top: 15px;
}

.orders {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}
.receipts {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}
.order-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.order-id {
    font-weight: bold;
    color: #3b0036;
}

.status-badge.paid {
    background: #12b13c;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total strong {
    color: #3b0036;
    font-size: 20px;
}

.order-actions {
    display: flex;
    gap: 10px;
}
.receipt-card.order-card {
    margin-bottom: 20px;
}

.receipt-header.order-header .order-date {
    font-size: 14px;
}

.receipt-items.cart-items {
    margin: 15px 0;
}

.receipt-item.cart-item {
   /* padding: 15px 0;*/
    border-bottom: 1px solid #eee;
}

.receipt-total.order-details {
    border-top: 2px solid #ff006e;
    padding-top: 15px;
    margin-top: 15px;
}


.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.payment-btn {
    border: none;
    padding: 20px 10px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    height: 100px;
}

.payment-btn i {
    font-size: 24px;
}

/*.yape-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}
.plin-btn {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: white;
}

.qr-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.cash-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}*/

.payment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.amount {
    font-size: 16px;
    font-weight: bold;
}
@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 12px;
        padding: 0 10px;
    }
    
    .payment-btn {
        padding: 18px 8px;
        height: 90px;
        min-height: 90px;
    }
    
    .payment-btn i {
        font-size: 22px;
    }
    
    .payment-btn span {
        font-size: 14px;
    }
    
    .amount {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .payment-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0 5px;
    }
    
    .payment-btn {
        padding: 16px 6px;
        height: 85px;
        min-height: 85px;
    }
    
    .payment-btn i {
        font-size: 20px;
    }
    
    .payment-btn span {
        font-size: 13px;
    }
    
    .amount {
        font-size: 14px;
    }
    
    .payment-oters h4 {
        font-size: 1.3rem !important;
        margin: 15px 0 8px 0 !important;
    }
}

@media (max-width: 360px) {
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .payment-btn {
        height: 80px;
        padding: 14px 5px;
    }
}
/* LOADING..*/
.dms-loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 0, 54, 0.2);
    border-top: 4px solid #3b0036;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 1s linear infinite;
}

.dms-loader span {
    font-weight: bold;
    color: #ff006e;
    font-size: 8px;
    animation: counter-spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes counter-spin {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}
/* FINLOADING*/

/* TU CSS ORIGINAL - SOLO CAMBIOS MÍNIMOS */
/* CONTACTO - VERSIÓN FINAL LIMPIA */
.contact-top { 
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}
.contact-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #3b0036;
    margin-bottom: 15px;
}
.contact-header h2 i { 
    color: #ff006e !important;
    margin-right: 15px;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: nowrap;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 22px 18px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(59, 0, 54, 0.08);
    flex: 1;
    max-width: 230px;
    min-width: 180px;
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.contact-icon i { font-size: 2.1rem; }
.contact-icon.whatsapp { 
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
}
.contact-icon.email { 
    background: linear-gradient(135deg, #ff006e, #3b0036) !important;
}
.contact-icon.phone { 
    background: linear-gradient(135deg, #3b0036, #ff006e) !important;
}

.contact-form-section {
    background: rgba(255,255,255,0.95);
    padding: 45px 35px;
    border-radius: 25px;
    margin: 0 auto 40px;
    max-width: 800px;
   
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.contact-form-section h3 {
    font-size: 1.8rem;
    color: #3b0036;
    margin-bottom: 30px;
}
.contact-form-section h3 i {
    color: #ff006e;
    margin-right: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}
.auth-group.full { grid-column: 1/-1; }
.contact-form .auth-group label {
    color: #3b0036;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e8e8f0;
    border-radius: 15px;
    transition: all 0.3s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: #ff006e;
    box-shadow: 0 0 0 3px rgba(255,0,110,0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    
    .contact-grid {
        flex-direction: row;
        gap: 10px;
        padding: 0 10px;
    }
    .contact-card {
        min-width: 50px;
        max-width: 150px;
        padding: 18px 12px;
    }
    .contact-icon {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.6rem !important;
    }
    .contact-icon i {
        font-size: 1.9rem;
    }
    .contact-form-section {
        margin: 0 15px 40px; /* ← MARGEN LATERALES MÓVIL */
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .contact-grid {
        gap: 8px;
        padding: 0 8px;
    }
    .contact-card {
        min-width: 10px;
        max-width: 140px;
        padding: 16px 10px;
    }
    .contact-form-section h3 {
     font-size: 1.2rem; 
    color: #3b0036;
    margin-bottom: 20px;
}
}
/* shaller*/
/* MODAL EXTRA ANCHO */
/* ===== SELLER SECTION - 3 FIXES ===== */

.seller-section {
    background: rgba(255,255,255,0.95);
    padding: 45px 35px;
    border-radius: 25px;
    margin: 0 auto 40px;
    max-width: 800px;
   
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.seller-section > .seller-container {
    /*max-width: 1400px;
    width: 100%;*/
   /* background: rgba(255,255,255,0.95);
    backdrop-filter: blur(25px);
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);*/
    margin-bottom: 40px; /* ← ESPACIO CUADRADO */
}

/* TODO TU CSS ORIGINAL... */
.seller-header {
    text-align: center;
    margin-bottom: 35px;
}
.seller-header i {
    font-size: 4rem;
    color: #ff006e;
    margin-bottom: 20px;
    display: block;
}
.seller-header h3 {
    color: #3b0036;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* PLANS 4 COLUMNA */
.plans-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ← 4 PLANES */
    gap: 20px;
    justify-content: center;
}

/* TODO TU CSS RESTO IGUAL... */

.plan-card {
    background: rgba(255,255,255,0.9);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #e8e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 320px;
    min-height: 220px;
}
.plan-card.active {
    border-color: #ff006e;
    
}
.plan-price {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ff006e;
    margin-bottom: 12px;
}
.plan-card h5 {
    color: #3b0036;
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.plan-card li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
}
.plan-card li i.fa-check { 
    color: #27ae60; 
    font-size: 1.1rem;
    width: 20px;
}

/* FORMULARIO 3 COLUMNAS */
.form-row-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.form-info-alert {
    background: linear-gradient(135deg, #e3f2fd, #f5f7ff);
    border: 1px solid #2196f3;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    margin: 8px;
 
}

.form-info-alert i {
    color: #2196f3;
    font-size: 1.2rem;
    margin-top: 2px;
}

.form-info-alert span {
    color: #1565c0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.auth-btn.secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.auth-btn.secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}


/* ===== RESPONSIVE CORREGIDO ===== */
@media (max-width: 1400px) {
    .plans-row {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas tablet */
        gap: 18px;
    }
    .plan-card {
        padding: 25px 18px;
        max-width: none;
    }
}

@media (max-width: 900px) {
    .plans-row {
        grid-template-columns: repeat(2, 1fr); /* ← 2 COLUMNAS MÓVIL */
        gap: 15px;
    }
    .plan-card {
        padding: 22px 15px;
        min-height: 200px;
    }
    .seller-section {
        padding: 60px 15px 30px;
    }
    .seller-container {
        padding: 30px 20px;
        border-radius: 12px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .plans-row {
        grid-template-columns: repeat(2, 1fr); /* ← SIEMPRE 2 COLUMNAS */
        gap: 12px;
    }
    .plan-card {
        padding: 20px 12px;
        min-height: 180px;
    }
    .plan-price {
        font-size: 1rem;
    }
    .plan-card h5 {
        font-size: 0.9rem;
    }
    .seller-header h3 {
        font-size: 1.1rem;
    }
    .form-row-three {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 360px) {
    .plans-row {
        grid-template-columns: 1fr; 
        gap: 12px;
    }
}

.libro-reclamos {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ff6b6b;
    color: white !important;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}
.libro-reclamos:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,107,0.4);
}
/*perfil user*/
/* ===== USER MENU (AISLADO) ===== */
/* ===== CONTENEDOR ===== */
.user-menu {
    position: relative;
}

/* ===== BOTÓN ===== */
.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}

.user-menu-toggle i:first-child {
    font-size: 18px;
}

/* ===== DROPDOWN ===== */
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: all .25s ease;
    z-index: 10050;
}

.user-menu-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

/* ===== ITEMS (a y button) ===== */
.user-menu-dropdown a,
.user-menu-dropdown button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    margin: 0;
    border: none;
    background: none;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all .2s ease;
}

.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
    background: #f8f9fa;
    color: #ff006e;
    transform: translateX(4px);
}

/* ===== ICONOS ===== */
.user-menu-dropdown i {
    width: 18px;
    font-size: 14px;
    color: #ff006e;
}

/* ===== DIVISOR ===== */
.user-menu-divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

/* ===== LOGOUT (ROJO) ===== */
.user-menu-dropdown a:last-child,
.user-menu-dropdown a:last-child i {
    color: #dc3545;
}

.user-menu-dropdown a:last-child:hover {
    background: #fee2e2;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .user-menu-dropdown {
        right: 1px;
        width: 200px;
    }
}


/* ✅ CHECKOUT FÍSICO - TUS COLORES */
.checkout-physical {
    background: #f6f6f6;
    padding: 40px 60px;
    min-height: 100vh;
}

.checkout-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.checkout-left {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.checkout-step {
    display: none;
    padding: 40px;
}

.checkout-step.active {
    display: block;
}

.checkout-step h3 {
    color: #3b0036;
    font-size: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-row select {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-row select:focus {
    outline: none;
    border-color: #ff006e;
    box-shadow: 0 0 0 3px rgba(255,0,110,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.delivery-option:hover {
    border-color: #ff006e;
    background: #fdf2f8;
}

.delivery-option input:checked + div {
    border-color: #ff006e;
}

.delivery-option h4 {
    color: #3b0036;
    margin: 0 0 5px 0;
}

.delivery-option strong {
    color: #e60073;
    font-size: 18px;
}

.step-buttons {
    display: flex;
    gap: 15px;
}

.step-buttons .buy {
    flex: 1;
}

.checkout-right {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.cart-summary-fixed {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.cart-summary-fixed h4 {
    color: #3b0036;
    margin-bottom: 25px;
    font-size: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.summary-total {
    padding: 20px 0 15px;
    border-top: 3px solid #ff006e;
    margin-top: 15px;
}

.summary-total strong {
    color: #3b0036;
    font-size: 24px;
}

.delivery-estimate {
    padding: 15px;
    background: #fdf2f8;
    border-radius: 8px;
    margin-top: 20px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* MOBILE */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkout-right {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
.back-btn {
    background: #ddd !important;
    color: #666 !important;
}

.back-btn:hover {
    background: #ccc !important;
    color: #333 !important;
}

.success-step {
    text-align: center;
}
.payments-section {
   max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}
.orders-badge {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    padding: 2px 6px;
    min-width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-weight: bold;
}
/*
.orders-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.order-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}
*/
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}


.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.rejected { background: #f8d7da; color: #721c24; }

.order-items-preview {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.preview-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.more-items {
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
}

.orders-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #3b0036;
    border-bottom-color: #3b0036;
    font-weight: 600;
}


/*

.payment-buttons-large {
    display: grid;
    grid-template-columns: 1fr 1fr;  
    gap: 15px;
}
.mp-btn, .pay-pal-btn {
    border: none;           
    border-radius: 5px;     
    cursor: pointer;
}

.mp-btn {
      background-color: #ffe600 !important;
    border: 1px solid #ab9300;

}


.pay-pal-btn {
   background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}


@media (max-width: 768px) {
    .payment-buttons-large {
        grid-template-columns: 1fr; 
        gap: 12px;
    }
}
*/
/*
.payment-total-display {
    background: #fdf2f8;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    border: 2px solid #ff006e;
}

.payment-total-display strong {
    color: #3b0036;
    font-size: 22px;
}*/
/*
.paypal-section {
    margin: 25px 0;
}

.payment-btn {
    position: relative;

}*/
/* FIX Mercado Pago scroll */
body.modal-open,
body[style*="overflow: hidden"],
body[style*="position: fixed"] {
    overflow: auto !important;
    position: static !important;
    height: auto !important;
}

/* Limpieza agresiva después de MP */
#card-payments ~ * {
    overflow: visible !important;
}

.cart-footer {
    overflow: visible !important;
}









/*list procts*/

/* ===== MODAL SIMPLE ===== */
.simple-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.simple-modal.show { display: flex; }

.simple-modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    height: 75vh;
    background: white;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.simple-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 10;
}

.simple-close:hover { color: #ff006e; }

.simple-image {
    position: relative;
    background: #f8faff;
}

.simple-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.simple-heart {
    position: absolute;
    top: 20px; right: 20px;
    width: 45px; height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.simple-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.simple-seller {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.simple-info h1 {
    margin: 0;
    font-size: 26px;
    color: #1a1a2e;
    line-height: 1.3;
}

.simple-price {
    font-size: 32px;
    font-weight: 800;
    color: #ff006e;
}

.simple-stats {
    color: #666;
    font-size: 14px;
}

.simple-buttons {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.simple-buy {
    flex: 2;
    background: linear-gradient(135deg, #ff006e, #ff4d88);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.simple-cart {
    flex: 1;
    background: white;
    color: #ff006e;
    border: 2px solid #ff006e;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* MOBILE - IMAGEN ARRIBA */
@media (max-width: 768px) {
    .simple-modal-content {
        grid-template-columns: 1fr;
        grid-template-rows: 35vh 1fr;  /* IMAGEN ARRIBA, INFO ABAJO */
        height: 90vh;
        width: 95%;
    }
    
    .simple-image { 
        height: 35vh;
        grid-row: 1;  /* POSICIÓN 1 = ARRIBA */
    }
    
    .simple-info { 
        padding: 25px;
        grid-row: 2;  /* POSICIÓN 2 = ABAJO */
    }
    
    .simple-buttons {
        flex-direction: column;
    }
}
