/* Custom CSS for RAS Store - Equipamiento y terminaciones para tu obra */
/* estilos para la seccion de feature-item  card Delivery, Quality, Personalized*/
@import url("feature-item.css");

/* estilos para la seccion de products card */
@import url("products.css");

/* Global Styles */
:root{
    /* === PALETA PASTEL ECOMMERCE === */
  
    /* Marca / Acciones principales */
    --primary-color: #5b8cff;        /* azul pastel moderno */
    --primary-dark: #3f6fe0;
    --secondary-color: #8fb7ff;      /* celeste suave */
  
    /* Estados */
    --success-color: #4fd1c5;        /* verde menta */
    --warning-color: #f6d365;        /* amarillo pastel */
    --danger-color: #ff7a7a;         /* rojo coral suave */
  
    /* Texto */
    --dark-color: #1c1c1e;
    --light-color: #f5f5f7;
  
    /* Fondos */
    --bg-page: #ffffff;
    --bg-soft: #f7f9fc;
    --bg-card: #ffffff;
  
    /* Bordes y sombras */
    --gc-border: rgba(0,0,0,.06);
    --shadow-lg: 0 20px 40px rgba(0,0,0,.08);
  
    /* RAS Store tokens */
    --gc-primary: var(--primary-color);
    --gc-bg-soft: #eef3ff;
    --gc-shadow-lg-soft: 0 24px 48px rgba(0,0,0,.10);
    --gc-shadow-sm: 0 6px 18px rgba(0,0,0,.06);
    --gc-radius-lg: 20px;
    --gc-radius-xl: 26px;
    --gc-success-color: var(--success-color);
  }
  

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Importar tipografías desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Fuente base (para todo el cuerpo del sitio) */
body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #fff;
}

/* Encabezados: más limpios, elegantes y consistentes */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 600;
    color: #1c1c1e; /* tono oscuro tipo Apple */
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

/* Subtítulos o párrafos destacados */
.subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #6e6e73; /* gris neutro */
    font-size: 1rem;
    line-height: 1.5;
}

/* Botones y etiquetas */
button, .btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
   
}


/* Navbar Styles - RAS Store */

    /* === NAVBAR APPLE STYLE === */
.apple-navbar {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease-in-out;
  }
  
  /* === LOGO === */
  .apple-brand {
    color: #0a84ff !important;
    letter-spacing: -0.5px;
    transition: color 0.2s ease;
  }
  .apple-brand:hover {
    color: #007aff !important;
  }
  
  /* === BUSCADOR: siempre centrado en el navbar (desktop) === */
  @media (min-width: 992px) {
    .navbar-collapse {
      display: flex !important;
      flex: 1 1 auto;
      align-items: center;
    }
    .navbar-search-wrap {
      flex: 1 1 auto;
      min-width: 0;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .navbar-search-wrap .apple-search {
      width: 100%;
      max-width: 420px;
      justify-content: center;
    }
  }

  /* === BUSCADOR === */
  .apple-search .input-group,
  .apple-search-input-group {
    display: flex;
    align-items: center;
    max-width: 420px;
    border-radius: 12px;
    background-color: rgba(240, 240, 240, 0.6);
    border: 1px solid transparent;
    overflow: visible; /* permite que el dropdown de sugerencias se vea */
  }
  
  .apple-search .apple-input {
    height: 40px;
    border-radius: 12px 0 0 12px;
    background-color: transparent !important;
    border: none !important;
    padding-left: 14px;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
    flex: 1;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
  }
  
  .apple-search .apple-input:focus {
    box-shadow: none !important;
    outline: none !important;
    background-color: transparent !important;
  }
  
  .apple-search .input-group:focus-within,
  .apple-search-input-group:focus-within {
    background-color: #fff;
    border-color: rgba(10, 132, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.12);
  }
  
  .apple-search .apple-btn {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 12px 12px 0;
    background-color: transparent !important;
    border: none !important;
    padding: 0 14px;
    transition: background-color 0.2s ease-in-out;
  }
  
  .apple-search .apple-btn i {
    font-size: 1.1rem;
    line-height: 1;
  }
  
  /* Evitar borde negro del navegador o Bootstrap en el buscador */
  .apple-search .form-control:focus,
  .apple-search .apple-input:focus {
    border-color: transparent !important;
    outline: none !important;
  }
  
  /* === ICONOS DERECHA === */
  .apple-icon-link {
    color: #333 !important;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 10px;
  }
  .apple-icon-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #007aff !important;
  }
  
  /* === BADGE (cantidad en carrito): más chico en celular para que se vea todo) === */
  .apple-badge {
    font-size: 0.65rem;
    padding: 0.2em 0.45em;
    min-width: 1.1em;
    line-height: 1.1;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.4);
  }
  @media (max-width: 575.98px) {
    .apple-badge {
      font-size: 0.55rem;
      padding: 0.15em 0.35em;
      min-width: 1em;
    }
  }
  @media (min-width: 992px) {
    .apple-badge {
      font-size: 0.7rem;
      padding: 0.25em 0.5em;
    }
  }
  
  /* === BOTÓN TOGGLER === */
  .apple-toggler:focus {
    outline: none;
    box-shadow: none;
  }
  



.dropdown-menu {
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: none;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Hero Section */
.hero-section {
    background: #f8f9fa;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.min-vh-50 {
    min-height: 50vh;
}

/* Category y Product: bordes y sombras más “airy” */
.category-item, .product-card .card, .card{
    border-radius: var(--gc-radius-lg) !important;
    border: 1px solid var(--gc-border) !important;
    box-shadow: var(--gc-shadow-sm);
  }
  .category-hover:hover, .product-hover:hover, .card:hover{
    box-shadow: var(--gc-shadow-lg-soft);
    transform: translateY(-3px);
  }
  
  /* Dropdown más pulido */
  .dropdown-menu{
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius-lg);
    box-shadow: var(--gc-shadow-lg-soft);
  }
  
  /* Chips/categorías (si querés badges premium) */
  .chip{
    display:inline-flex; align-items:center; gap:.45rem;
    background:#fff; border:1px solid var(--gc-border);
    border-radius: 999px; padding:.45rem .8rem;
    box-shadow: var(--gc-shadow-sm);
  }
  






/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--dark-color);
}

/* Buttons */
.btn {
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    padding: 0.75rem 1.5rem;
 
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #00a085;
    border-color: #00a085;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Cards */
.card {
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
}

/* Navbar logo */
.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}
footer .footer-social-icon {
    font-size: 1.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
footer .footer-social-icon:hover {
    transform: scale(1.1);
}

footer h5, footer h6 {
    color: #ffffff;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer .footer-payment-icons {
    gap: 0.75rem;
}
footer .footer-card-icon {
    opacity: 0.95;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}
footer .footer-card-icon:hover {
    opacity: 1;
    transform: scale(1.08);
}
footer .footer-card-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.2s ease;
}
footer .footer-card-text:hover {
    background: rgba(255,255,255,0.18);
    transform: scale(1.05);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
   
}

.whatsapp-float .btn {

    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    background-color: var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 184, 148, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0);
    }
}

/* Pagination */
.pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Product Detail Page */
.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.product-image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding-left: 2rem;
}

/* Breadcrumbs */
.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Section Spacing */
section {
    padding: 3rem 0;
}

section.bg-light {
    background-color: #f8f9fa !important;
}

section.bg-white {
    background-color: #ffffff !important;
}

/* Container Improvements */
.container {
    max-width: 1200px;
}

/* Hero Content Improvements */
.hero-content {
    padding-right: 2rem;
}

.hero-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

/* Hero Pinturas - interfaz principal */
.hero-pinturas {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 50%, #fef9f3 100%);
    border-radius: 0 0 2rem 2rem;
}
.hero-pinturas .hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(91, 140, 255, 0.12);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.hero-image-pinturas img {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.06);
}
@media (max-width: 768px) {
    .hero-pinturas .d-flex.gap-4 { flex-direction: column; align-items: flex-start; }
}

/* Product Grid Improvements */
.product-image {
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .hero-section .display-5 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .product-info {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-float .btn {
        width: 50px;
        height: 50px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .navbar .input-group {
        max-width: 100% !important;
        width: 100%;
    }
    
    /* Buscador optimizado móvil: sin borde negro, diseño limpio */
    .navbar-search-wrap {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .apple-search-input-group {
        max-width: 100% !important;
        width: 100% !important;
        height: 44px;
        border-radius: 12px;
        background-color: rgba(240, 240, 240, 0.8) !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }
    
    .apple-search .apple-input {
        height: 44px !important;
        font-size: 16px !important; /* evita zoom en iOS */
        padding-left: 1rem;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .apple-search .apple-input::placeholder {
        color: #8e8e93;
    }
    
    .apple-search .apple-input:focus {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    .apple-search .input-group:focus-within,
    .apple-search-input-group:focus-within {
        border-color: rgba(91, 140, 255, 0.4) !important;
        box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15) !important;
    }
    
    .apple-search .apple-btn {
        height: 44px !important;
        padding: 0 1rem;
        color: #5b8cff;
    }
    
    .search-suggest {
        left: 0;
        right: 0;
        max-height: 55vh;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,.08);
    }
    
    .navbar-nav.mx-auto {
        margin: 1rem 0 !important;
        width: 100%;
    }
    
    .category-item {
        margin-bottom: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4,
    .hero-section .display-5 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    .hero-image-pinturas img,
    .hero-image img {
        max-height: 260px;
    }
    
    .hero-content .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .hero-content .d-flex.gap-2 .btn {
        width: 100%;
    }
    
    .category-card .card-body {
        padding: 1.5rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .category-item {
        padding: 0.75rem !important;
    }
    
    .category-item .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-item h6 {
        font-size: 0.9rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.875rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.rounded-custom {
    border-radius: 1rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* buscador*/

/* === Estilos para el buscador flotante === */
.search-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 56px; /* deja espacio al botón */
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    margin-top: .4rem;
    padding: .4rem 0;
    z-index: 1050;
    max-height: 60vh;
    overflow-y: auto;
  }
  
  .search-suggest .head {
    font: 500 0.85rem/1.2 'Inter','Poppins',sans-serif;
    color: #6e6e73;
    padding: .5rem .9rem;
    border-bottom: 1px solid rgba(0,0,0,.05);
  }
  
  .s-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: .75rem;
    align-items: center;
    padding: .6rem .9rem;
    cursor: pointer;
    transition: background .15s ease;
  }
  .s-item:hover, .s-item.active { background: #f5f5f7; }
  
  .s-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #f2f2f2;
  }
  
  .s-name {
    font-weight: 600;
    color: #1c1c1e;
    font-size: .95rem;
    line-height: 1.2;
  }
  
  .s-price {
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    font-size: .95rem;
  }
  
  .s-empty {
    padding: .8rem .9rem;
    color: #6e6e73;
  }
  
  .s-footer {
    display:flex;
    justify-content:flex-end;
    gap:.5rem;
    padding:.5rem .9rem;
    border-top:1px solid rgba(0,0,0,.05);
  }
  .s-footer a {
    font-size:.9rem;
    color:#0a84ff;
    text-decoration:none;
  }
  .s-footer a:hover {
    text-decoration: underline;
  }

/* === Product Card Styles (Optimizados desde index.html) === */
/* Card container */
.product-card {
  transition: transform 0.3s ease;
}

.product-hover {
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.15) !important;
}

/* Imagen y link */
.product-image-link {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #f8f9fa;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-image-link:hover .product-image {
  transform: scale(1.1);
}

/* Overlay al hover */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.product-image-link:hover .product-overlay {
  opacity: 1;
}

.overlay-content {
  color: white;
  text-align: center;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.product-image-link:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content i {
  font-size: 2rem;
}

/* Badges */
.product-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 3;
  pointer-events: none;
}

.product-badges .badge {
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Título */
.product-title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  transition: color 0.2s ease;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title:hover {
  color: #0d6efd;
}

/* Footer personalizado */
.card-footer-custom {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #e9ecef;
}

/* Precio */
.price-section {
  text-align: left;
}

.price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.price-value {
  font-size: 1.25rem;
  line-height: 1.2;
}

/* Responsive para product cards */
@media (max-width: 767.98px) {
  .product-image-link {
    aspect-ratio: 4 / 3;
  }

  .product-title {
    font-size: 0.95rem;
  }

  .price-value {
    font-size: 1.1rem;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-hover,
  .product-image,
  .product-overlay,
  .overlay-content {
    transition: none !important;
  }
}

/* === Product Detail Page Styles === */
.product-image-wrapper {
  position: relative;
}

.product-features {
  margin-top: 1rem;
}

.form-select:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
  opacity: 0.6;
}

.form-select,
.form-control {
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
}

@media (max-width: 991.98px) {
  .product-image-wrapper {
    position: relative !important;
    top: 0 !important;
  }

  .product-features {
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .product-details .price-box,
  .product-details .subtotal-box {
    padding: 0.75rem 1rem !important;
  }
  
  .product-details .action-buttons .btn {
    width: 100%;
  }
  
  .product-details .input-group[id*="qty"],
  .product-details .input-group.max-width-180 {
    max-width: 100%;
  }
  
  .product-details h1.h2 {
    font-size: 1.35rem;
  }
}

@media (max-width: 576px) {
  .product-features .col-4 {
    padding: 0.5rem;
  }
  
  .product-features .feature-item small {
    font-size: 0.65rem !important;
  }
  
  .product-details .alert-info {
    font-size: 0.8rem;
  }
}

/* === Checkout: container estrecho === */
.container--narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 576px) {
  .container--narrow {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .container--narrow .card-body {
    padding: 1rem !important;
  }
  
  .container--narrow .card-footer .btn,
  .checkout-section .card-footer .btn {
    width: 100%;
  }
  
  .checkout-section .card-footer {
    flex-direction: column;
  }
  
  .checkout-section .card-footer .btn-lg {
    order: -1;
  }
}

/* === Cart Page Styles === */
.cart-section .card-body.p-0 {
  padding: 0 !important;
}

.cart-summary-card .card-body {
  padding: 1rem 1.25rem;
}

.cart-empty-state {
  padding: 3rem 1rem;
  text-align: center;
}

.cart-empty-state i {
  font-size: 4rem;
  opacity: 0.5;
}

/* Carrito responsive: tabla como tarjetas en móvil */
@media (max-width: 767.98px) {
  .cart-table thead {
    display: none;
  }
  
  .cart-table tbody tr {
    display: block;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  
  .cart-table tbody tr:not([data-key]) td {
    display: block;
    width: 100%;
    border: none;
    padding: 1.5rem 1rem;
    text-align: center;
  }
  
  .cart-table tbody tr[data-key] td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border: none;
    padding: 0.5rem 0;
    gap: 0.5rem;
  }
  
  .cart-table tbody tr[data-key] td:first-child {
    width: 100%;
    order: 1;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .cart-table tbody tr[data-key] td:first-child .d-flex {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .cart-table tbody tr[data-key] td:first-child img {
    width: 56px !important;
    height: 56px !important;
  }
  
  .cart-table tbody tr[data-key] td:nth-child(2)::before {
    content: "Precio:";
    font-weight: 600;
    color: #6c757d;
    font-size: 0.8rem;
  }
  
  .cart-table tbody tr[data-key] td:nth-child(3) {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  
  .cart-table tbody tr[data-key] td:nth-child(3)::before {
    content: "Cantidad:";
    font-weight: 600;
    color: #6c757d;
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }
  
  .cart-table tbody tr[data-key] td:nth-child(4) {
    order: 2;
  }
  
  .cart-table tbody tr[data-key] td:nth-child(4)::before {
    content: "Subtotal:";
    font-weight: 600;
    color: #6c757d;
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }
  
  .cart-table tbody tr .input-group {
    width: 120px !important;
  }
  
  .cart-section .d-flex.flex-column.flex-sm-row .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .cart-summary-card .fw-bold.fs-5,
  .cart-summary-card .text-primary.fs-5 {
    font-size: 1.1rem !important;
  }
}

/* === Category Item Styles === */
.category-item {
  transition: all 0.3s ease;
  border-radius: var(--gc-radius-lg);
  border: 1px solid var(--gc-border);
  box-shadow: var(--gc-shadow-sm);
}

.category-item:hover {
  box-shadow: var(--gc-shadow-lg-soft);
  transform: translateY(-3px);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 140, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.category-item:hover .category-icon {
  background: rgba(91, 140, 255, 0.2);
  transform: scale(1.1);
}

/* === Breadcrumb Styles === */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* === Form Improvements === */
.form-label {
  font-weight: 500;
  color: #1c1c1e;
  margin-bottom: 0.5rem;
}

.form-text {
  font-size: 0.875rem;
  color: #6c757d;
}

/* === Alert Improvements === */
.alert {
  border-radius: 0.75rem;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.alert-info {
  background-color: rgba(91, 140, 255, 0.1);
  color: var(--primary-dark);
}

/* === Table Improvements === */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  color: #6c757d;
  border-bottom: 2px solid #e9ecef;
}

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

.table tbody tr:hover {
  background-color: #f8f9fa;
}

/* === Input Group Improvements === */
.input-group .btn {
  border-radius: 0;
}

.input-group .btn:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.input-group .btn:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.input-group .form-control:not(:first-child):not(:last-child) {
  border-radius: 0;
}

/* === Checkout Form Styles === */
.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.card-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

/* === Loading States === */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

/* === Smooth Transitions === */
* {
  transition-property: color, background-color, border-color, transform, box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

/* === Focus States === */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* === Print Styles === */
@media print {
  .navbar,
  .whatsapp-float,
  footer,
  .btn {
    display: none !important;
  }
}