/* KaosMetalStore Styles - Sobrio, Image-focused, Mobile-first */

/* Reset & Base */
* {
  box-sizing: border-box;
}

body {
  background: #111;
  color: #76ff03; /* dark green variant */
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Green Headings */
h1 {
  color: #39ff14; /* verde neón moderno */
  font-weight: 800;
  font-size: 2.8em;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

h2 { 
  color: #76ff03;
  font-weight: 700;
}

h3 { 
  color: #76ff03;
  font-weight: 600;
}

h4, h5, h6 {
  color: #80c080;
}


/* Catalog Grid - Hero images */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.size-card {
  height: 480px; /* Fixed total height for uniform cards */
  justify-content: space-between;
}

.size-image-container {
  width: 100%;
  height: 300px; /* Fixed image area */
  background: #333;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop to fill uniformly */
  transition: transform 0.3s;
}

/* Size images full overlay - updated */
.product-grid .product-card {
  position: relative;
  height: 400px;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-grid .product-card .product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-8px);
  outline: 3px solid #76ff03;
  box-shadow: 0 20px 40px rgba(118,255,3,0.4), 0 0 20px rgba(118,255,3,0.3);
}

/* Legacy contain styles preserved for other pages like index.php */
.product-image:not(.product-grid .product-card .product-image) {
  width: auto;
  max-width: 220px;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s;
}

.product-grid .product-card:hover {
  transform: translateY(-5px);
}

.product-grid .product-card:hover .product-info {
  background: linear-gradient(to top, rgba(255, 3, 3, 0.744), rgba(0,0,0,0.8));
}

.product-grid .product-card .product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(40,40,40,0.95), rgba(40,40,40,0.7));
  padding: 1rem 1rem 1rem;
  z-index: 1;
  backdrop-filter: blur(6px);
}

.product-info:not(.product-grid .product-card .product-info) {
  padding: 1rem;
}

.product-grid .product-card .product-band {
  font-size: 1.3em;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 0 0 10px rgba(118,255,3,0.5);
  margin: 0 0 0.25rem;
}

.product-card.selected {
  outline: 4px solid #76ff03;
  box-shadow: 0 0 25px rgba(118,255,3,0.6);
}

.product-card.selected:hover {
  outline: 4px solid #39ff14;
  box-shadow: 0 20px 40px rgba(57,255,20,0.5), 0 0 30px rgba(57,255,20,0.7);
}

.product-band:not(.product-grid .product-card .product-band) {
  font-size: 1.1em;
  font-weight: 700;
  color: #76ff03;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.4);
  margin: 0 0 0.5rem;
}

.product-grid .product-card .product-details {
  font-size: 1em;
  color: #f0f0f0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.product-details:not(.product-grid .product-card .product-details) {
  font-size: 0.9em;
  color: #80c080; /* mute green */
}

/* Size cards - preserve style as cards/links */
a.size-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.size-card .product-info * {
  color: inherit;
}

/* Size Card Title */
.size-card .size-title {
  margin: 0 0 0.25rem;
  font-size: 1.2em;
  font-weight: 700;
  color: #76ff03; /* verde lima */
  text-shadow: 0 0 5px rgba(118, 255, 3, 0.4);
}

.size-card .size-example {
  font-size: 0.85em;
  color: #80c080; /* mute green */
  font-style: italic;
}

.size-card {
  position: relative; /* for stretched-link */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Modal/Lightbox */
.modal-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
}

.modal-content {
  background: #000;
  padding: 2rem;
}

/* Admin */
.navbar-brand {
  color: #76ff03 !important;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  vertical-align: middle;
}

.nav-link {
  color: #76ff03 !important;
}

.nav-link:hover {
  color: #66b366 !important;
}

.admin-nav {
  background: #000;
  padding: 1rem;
}

.card .card-body .row {
  display: flex;
  align-items: center;
}

.card .border-bottom {
  border-bottom: 1px solid #444 !important;
}

.btn-rock {
  background: #ff0000;
  border: none;
  color: #fff;
}

.btn-rock:hover {
  background: #cc0000;
}

/* Invoice */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: small;
}

.invoice-table th, .invoice-table td {
  border: 1px solid #444;
  padding: 1.5rem;
}


.total {
  font-size: 1.5em;
  font-weight: bold;
  color: #ff0000;
}

/* Responsive Mobile */
@media (max-width: 768px) {
.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }
  
  .product-grid .product-card {
    min-height: 350px;
  }
  
  .product-grid .product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  
  .product-image {
    max-width: 480px;
  }
  
  .modal-img {
    max-width: 95vw;
  }
}

/* Carousel */
.carousel-item {
  position: relative;
}

.carousel-product-img {
  height: 500px;
  object-fit: cover;
  width: 100%;
}

.carousel-band {
  color: #76ff03; /* primary green */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Carousel Price */
.carousel-price {
  font-size: 1.5rem;
  
  color: #76ff03; /* verde aqua */
  text-shadow: 0 0 6px rgba(100, 255, 218, 0.3);
}

@media (max-width: 768px) {
  .carousel-product-img {
    height: 300px;
  }
  
  .carousel-caption {
    bottom: 1rem;
  }
}



/* PWA Splash/Install */
@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
  }
}

/* Loading */
.loading {
  text-align: center;
  padding: 2rem;
}

.spinner {
  border: 4px solid #333;
  border-top: 4px solid #ff0000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navbar Dropdown Theme - KaosMetalStore */
.dropdown-menu {
  background-color: #2222227e !important;
  border: 1px solid #444;
}
.dropdown-item {
  color: #ffffff !important;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #333 !important;
  color: #76ff03 !important;
}
.dropdown-divider {
  border-top: 1px solid #444;
}
.dropdown-toggle::after {
  border-top-color: #76ff03;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

/* Mobile navbar dropdown overlay - no navbar expansion */
@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    z-index: 1070 !important;
    width: 280px !important;
    min-width: 250px !important;
    max-width: 90vw !important;
    max-height: 70vh;
    overflow-y: auto;
    background-color: rgba(34, 34, 34, 0.98) !important;
    backdrop-filter: blur(10px);
    border: 1px solid #444 !important;
    border-radius: 8px;
    margin-top: 0.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transform: translateX(0) !important;
  }
  .navbar-nav .dropdown-menu.show {
    animation: dropdownSlide 0.25s ease-out;
  }
  @keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-8px) translateX(8px); }
    to { opacity: 1; transform: translateY(0) translateX(0); }
  }
}

/* Hamburger Icon & Dropdown Overlay Fix */
.navbar .dropdown-toggle .bi {
  font-size: 1.2rem;
  color: #76ff03 !important;
}
.navbar .dropdown-menu {
  z-index: 1060 !important;
  margin-top: 0.5rem;
}

/* Professional Footer - Kaos Metal Store */
.footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #111 60%, #000 100%);
  color: #ddd;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 2px solid #333;
  box-shadow: inset 0 1px 0 rgba(118,255,3,0.1);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #76ff03, #39ff14, #76ff03, transparent);
  box-shadow: 0 0 15px rgba(118,255,3,0.6);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-bottom: 2.5rem;
}

.footer-section h4, .footer-section h5 {
  color: #76ff03;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 12px rgba(118,255,3,0.5);
  letter-spacing: 0.5px;
}

.footer-section p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  opacity: 0.9;
}

.contact-info {
  margin-top: 1rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95em;
}

.contact-info i {
  color: #39ff14;
  font-size: 1.1rem;
  width: 24px;
  text-shadow: 0 0 5px rgba(57,255,20,0.4);
}

.social-icons {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.6rem;
  text-decoration: none;
  color: #fff;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.35s ease;
  z-index: -1;
}

.social-icon:hover::before {
  left: 0;
}

.social-icon:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 20px 40px rgba(118,255,3,0.6);
  filter: drop-shadow(0 0 20px rgba(118,255,3,0.5));
}

.whatsapp { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.facebook { background: linear-gradient(135deg, #4267B2 0%, #365899 100%); }
.instagram { 
  background: linear-gradient(135deg, #F77737 0%, #E4405F 50%, #833Ab4 100%); 
}
.tiktok { 
  background: linear-gradient(135deg, #FF0050 0%, #000 50%, #FF0000 100%); 
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  margin-top: auto;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.92em;
  opacity: 0.85;
  font-style: italic;
}

/* Animations */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(118,255,3,0.6); }
  50% { box-shadow: 0 0 30px rgba(118,255,3,0.8); }
}

/* Responsive */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Admin products.php mobile responsive */
  
  /* Form: Stack fields vertically, full width */
  .admin-form-row > div {
    width: 100% !important;
    margin-bottom: 1rem;
  }
  
  /* Table: Convert rows to stacked cards (no h-scroll) */
  .product-row {
    flex-direction: column !important;
    padding: 1rem !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
    margin-bottom: 0.5rem !important;
    background: #1a1a1a !important;
  }
  
  .product-row > div {
    flex: none !important;
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 0.75rem !important;
    padding: 0.25rem 0 !important;
  }
  
  .product-row img {
    max-width: 120px !important;
    height: auto !important;
    border-radius: 4px;
  }
  
  /* Touch-friendly inputs/buttons */
  .product-row input[type="number"],
  .product-row input[type="text"] {
    font-size: 16px !important;
    padding: 0.75rem !important;
    min-height: 48px !important;
  }
  
  .product-row button {
    width: 100% !important;
    padding: 0.75rem !important;
    font-size: 16px !important;
    min-height: 48px !important;
  }
  
  /* Headers: Compact */
  .headers-row .col-md-* {
    font-size: 0.85rem !important;
    padding: 0.5rem !important;
  }
  
  /* Cards */
  .card-header {
    font-size: 1.1rem !important;
  }
  
  .footer {
    padding: 2rem 0 1.5rem;
  }
  
  .footer-section h4 {
    font-size: 1.3em;
  }
  
  .social-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  
  .contact-info p {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
}

  .store-slogan {
    text-align: center;
    font-family: 'Montserrat', 'Poppins', sans-serif; /* tipografía moderna */
    font-size: 0.9rem; /* tamaño legible */
    font-weight: 600; /* semi-negrita para impacto */
    color: #e0e0e0; /* tono claro que contraste con fondo oscuro */
    margin-top: 10px; /* espacio respecto al logo */
    letter-spacing: 1px; /* separación elegante */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* efecto metálico/rock */
  }