/* Reset and Base Styles */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu;
  background: #fafafa;
  color: #222;
  overflow-x: hidden;
}

/* Make images responsive by default */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal scroll */
html {
  overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
  background: rgb(255, 255, 255);
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Mobile Navigation Elements - Hidden by default on desktop */
.mobile-top-bar,
.mobile-nav-bar,
.mobile-only {
  display: none !important;
}

/* Desktop Elements - Show by default */
.desktop-only {
  display: block;
}

/* Mobile Top Bar (solo móvil) */
.mobile-top-bar {
  background: rgb(255, 255, 255);
  padding: 8px 15px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.mobile-top-bar .social-links {
  justify-content: center;
  gap: 20px;
}

/* Mobile Nav Bar (solo móvil) */
.mobile-nav-bar {
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: white;
}

.mobile-logo {
  flex: 1;
  text-align: center;
}

.mobile-cart {
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

/* Hamburger Menu (solo móvil) */
.hamburger-menu {
  background: none;
  border: none;
  width: 35px;
  height: 30px;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: rgb(0, 38, 83);
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay (solo móvil) */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.subnav.mobile-open ~ .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  min-height: 72px;
}

.logo {
  color: #eb6f06;
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.3px;
  display: inline-block;
}

.logo img {
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: color 0.3s ease;
  display: block;
}

.nav-link:hover { 
  color: #ffd700; 
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.nav-item:hover .dropdown { 
  opacity: 1; 
  visibility: visible; 
  transform: translateY(0); 
}

.dropdown-item {
  display: block;
  padding: 14px 20px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease;
  font-size: 15px;
}

.dropdown-item:last-child { 
  border-bottom: none; 
}

.dropdown-item:hover { 
  background-color: #f8f9fa; 
  color: #667eea; 
}

.social-links { 
  display: flex; 
  gap: 16px; 
  align-items: center; 
}

.social-link {
  color: white; 
  font-size: 22px; 
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover { 
  transform: scale(1.15); 
  color: #ffd700; 
}

.subnav {
  background: #ffffff;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.subnav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 36px 5px 36px;
}

.subnav-menu {
  display: flex;
  gap: 22px;
  list-style: none;
}

.subnav-link {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  opacity: .9;
}

.subnav-container li{
  padding: 10px 5px;
}

.subnav-container .subnav-link{
  padding: 10px 5px;
}

.subnav-container .subnav-link:hover{
  background-color: #eb7106ce;
  border-radius: 10%;
}

.slider-container {
  width: 100%;
  height: 50vh;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.slider {
  display: flex;
  width: 600%;
  height: 100%;
  animation: slide 18s infinite;
}

.slide {
  width: 16.666%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
}

.slide-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.slide-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.slide-1 { background-image: url('../images/slider/logo.png'); }
.slide-2 { background-image: url('../images/slider/slider1.webp'); }
.slide-3 { background-image: url('../images/slider/slider2.jpg'); }
.slide-4 { background-image: url('../images/slider/slider3.webp'); }
.slide-5 { background-image: url('../images/slider/slider4.webp'); }
.slide-6 { background-image: url('../images/slider/logo.png');}

@keyframes slide {
  0% { transform: translateX(0); }
  15% { transform: translateX(0); }
  20% { transform: translateX(-16.666%); }
  35% { transform: translateX(-16.666%); }
  40% { transform: translateX(-33.333%); }
  55% { transform: translateX(-33.333%); }
  60% { transform: translateX(-50%); }
  75% { transform: translateX(-50%); }
  80% { transform: translateX(-66.666%); }
  95% { transform: translateX(-66.666%); }
  100% { transform: translateX(-83.333%); }
}

/* Main Content */
.main-content { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 30px 20px; 
}

.page-header { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 30px; 
}

.page-title { 
  font-size: 34px; 
  font-weight: 800; 
  color: #333; 
}

.muted { 
  color: #777; 
  font-size: 14px; 
}

.grid { 
  display: grid; 
  grid-template-columns: repeat(5, 1fr); 
  gap: 20px; 
}

.card { 
  background: #fff; 
  border: 1px solid #e6e6e6; 
  border-radius: 12px; 
  padding: 20px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 4px 16px rgba(0,0,0,0.12); 
}

.title { 
  font-size: 18px; 
  font-weight: 600; 
  margin: 0 0 10px; 
  color: #333; 
}

.meta { 
  font-size: 14px; 
  color: #666; 
  margin-bottom: 12px; 
}

.desc { 
  font-size: 14px; 
  line-height: 1.5; 
  color: #555; 
  margin-bottom: 15px; 
  min-height: 3em; 
}

/* Promotion Banner */
.promotion-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin: 40px 0;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.promotion-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  animation: colorChange 3s infinite;
}

.promotion-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  opacity: 0.9;
}

@keyframes colorChange {
  0% { color: #ffd700; }
  25% { color: #ff6b6b; }
  50% { color: #4ecdc4; }
  75% { color: #45b7d1; }
  100% { color: #ffd700; }
}

.price { 
  font-weight: 700; 
  color: #667eea; 
  font-size: 16px; 
}

/* Product Sections */
.products-section {
  position: relative;
}

.grid-desktop {
  display: grid;
}

.mobile-rows-container {
  display: none;
}

/* Mobile Product Rows */
.mobile-product-row {
  margin-bottom: 40px;
}

.row-navigation {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-products-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  overflow: hidden;
  width: 100%;
}

.row-arrow {
  background: rgba(0, 38, 83, 0.9);
  color: white;
  border: none;
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.row-arrow:hover:not(:disabled) {
  background: rgb(235, 111, 6);
  transform: scale(1.1);
}

.row-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.3;
  background: rgba(0, 38, 83, 0.5);
}

/* Proceso de Compra */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  margin: 0 auto;
}

.step-card {
  border: none;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.step-card.orange {
  background: rgb(235, 111, 6);
}

.step-card.blue {
  background: rgb(0, 38, 83);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.step-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.step-icon-img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}
  
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: white;
  font-size: 32px;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.step-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, rgb(0, 38, 83) 0%, rgb(235, 111, 6) 100%);
  color: white;
  margin-top: 60px;
  padding: 50px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  text-align: center;
  margin-bottom: 40px;
}

.footer-logo-img {
  max-width: 200px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-column {
  text-align: left;
}

.footer-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  color: white;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: white;
  transform: translateX(5px);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Large Desktop */
@media (max-width: 1400px) {
  .nav-container,
  .subnav-container,
  .main-content,
  .footer-container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .nav-container,
  .subnav-container {
    padding: 15px 20px;
  }
  
  .logo img {
    width: 25%;
  }
  
  .subnav-menu {
    gap: 15px;
  }
  
  .subnav-link {
    font-size: 13px;
  }
  
  .slider-container {
    height: 40vh;
  }
  
  .slide-title {
    font-size: 2.5rem;
  }
  
  .slide-subtitle {
    font-size: 1.1rem;
  }
  
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .page-title {
    font-size: 28px;
  }
  
  .promotion-title {
    font-size: 2rem;
  }
  
  .promotion-subtitle {
    font-size: 1rem;
  }
  
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  /* Hide desktop nav, show mobile nav */
  .nav-container,
  .desktop-only {
    display: none !important;
  }
  
  .mobile-top-bar,
  .mobile-nav-bar {
    display: flex !important;
  }
  
  .mobile-cart,
  .hamburger-menu {
    display: flex !important;
  }
  
  .mobile-only {
    display: block !important;
  }
  
  /* Subnav mobile behavior */
  .subnav {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    width: 280px;
    background: white;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
    overflow-y: auto;
  }
  
  .subnav.mobile-open {
    left: 0;
  }
  
  .subnav-container { 
    flex-direction: column;
    align-items: stretch;
    padding: 60px 0 20px;
    gap: 0;
  }
  
  .subnav-menu { 
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .subnav-menu li {
    width: 100%;
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  
  .subnav-link {
    display: block;
    width: 100%;
    font-size: 15px;
    padding: 15px 20px;
    text-align: left;
  }
  
  .subnav-link:hover {
    background-color: #f5f5f5;
    border-radius: 0;
  }
  
  .mobile-logo img {
    width: 60%;
  }
  
  /* Mobile rows display */
  .grid-desktop {
    display: none !important;
  }
  
  .mobile-rows-container {
    display: block !important;
  }
  
  .row-products-grid .card {
    padding: 15px;
    width: 100%;
  }
  
  .row-products-grid .product-image {
    height: 180px;
    width: 100%;
  }
  
  /* Ocultar descripción en móvil */
  .row-products-grid .desc {
    display: none;
  }
  
  .row-products-grid .title {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .row-products-grid .meta {
    font-size: 12px;
    margin-bottom: 10px;
  }
  
  .row-products-grid .price {
    font-size: 16px;
    font-weight: 700;
  }
  
  .slider-container {
    height: 35vh;
    margin-bottom: 30px;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .slide-subtitle {
    font-size: 0.95rem;
  }
  
  .promotion-banner {
    padding: 25px 15px;
    margin: 30px 10px;
  }
  
  .promotion-title {
    font-size: 1.6rem;
  }
  
  .promotion-subtitle {
    font-size: 0.9rem;
  }
  
  .main-content {
    padding: 20px 15px;
  }
  
  .page-header { 
    margin-bottom: 20px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .card {
    padding: 15px;
  }
  
  .product-image {
    height: 150px;
  }
  
  .title {
    font-size: 16px;
  }
  
  .meta {
    font-size: 12px;
  }
  
  .desc {
    font-size: 13px;
    min-height: 2.5em;
  }
  
  .price {
    font-size: 15px;
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .step-card {
    padding: 25px 15px;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
  }
  
  .step-number {
    font-size: 28px;
  }
  
  .step-title {
    font-size: 16px;
  }
  
  .step-description {
    font-size: 13px;
  }
  
  .footer {
    padding: 35px 0 20px;
    margin-top: 40px;
  }
  
  .footer-logo {
    margin-bottom: 30px;
  }
  
  .footer-logo-img {
    max-width: 150px;
  }
  
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
  }
  
  .footer-title {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .footer-link {
    font-size: 13px;
  }
  
  .footer-links li {
    margin-bottom: 10px;
  }
  
  .footer-bottom {
    font-size: 12px;
  }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
  .mobile-logo img {
    width: 70%;
  }
  
  .mobile-cart img {
    width: 28px;
    height: 28px;
  }
  
  .hamburger-menu {
    width: 30px;
    height: 25px;
  }
  
  .hamburger-menu span {
    height: 2.5px;
  }
  
  .row-arrow {
    width: 35px;
    height: 35px;
    font-size: 20px;
    min-width: 35px;
  }
  
  .row-navigation {
    gap: 8px;
  }
  
  .row-products-grid {
    gap: 12px;
  }
  
  .row-products-grid .card {
    padding: 12px;
  }
  
  .row-products-grid .product-image {
    height: 160px;
  }
  
  .row-products-grid .title {
    font-size: 14px;
  }
  
  .row-products-grid .meta {
    font-size: 11px;
  }
  
  .row-products-grid .price {
    font-size: 15px;
  }
  
  .mobile-product-row {
    margin-bottom: 30px;
  }
  
  .slider-container {
    height: 30vh;
  }
  
  .slide-title {
    font-size: 1.5rem;
  }
  
  .slide-subtitle {
    font-size: 0.85rem;
  }
  
  .promotion-title {
    font-size: 1.3rem;
  }
  
  .promotion-subtitle {
    font-size: 0.8rem;
  }
  
  .page-title {
    font-size: 20px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card {
    padding: 18px;
  }
  
  .product-image {
    height: 180px;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .step-card {
    padding: 30px 20px;
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-logo-img {
    max-width: 130px;
  }
}

/* Extra Small Mobile (400px and below) */
@media (max-width: 400px) {
  .main-content {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .mobile-logo img {
    width: 80%;
  }
  
  .mobile-top-bar .social-links {
    gap: 15px;
  }
  
  .mobile-cart img {
    width: 25px;
    height: 25px;
  }
  
  .subnav {
    width: 250px;
  }
  
  .row-arrow {
    width: 32px;
    height: 32px;
    font-size: 18px;
    min-width: 32px;
  }
  
  .row-navigation {
    gap: 5px;
  }
  
  .row-products-grid {
    gap: 10px;
  }
  
  .mobile-product-row {
    margin-bottom: 25px;
  }
  
  .row-products-grid .card {
    padding: 10px;
  }
  
  .row-products-grid .product-image {
    height: 140px;
  }
  
  .row-products-grid .title {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .row-products-grid .meta {
    font-size: 10px;
    margin-bottom: 8px;
  }
  
  .row-products-grid .price {
    font-size: 14px;
  }
  
  .slider-container {
    height: 25vh;
  }
  
  .slide-title {
    font-size: 1.2rem;
  }
  
  .slide-subtitle {
    font-size: 0.75rem;
  }
  
  .promotion-banner {
    padding: 20px 10px;
    margin: 20px 5px;
  }
  
  .promotion-title {
    font-size: 1.1rem;
  }
  
  .promotion-subtitle {
    font-size: 0.7rem;
  }
  
  .page-title {
    font-size: 18px;
  }
  
  .card {
    padding: 15px;
  }
  
  .title {
    font-size: 15px;
  }
  
  .step-card {
    padding: 25px 15px;
  }
  
  .step-icon {
    width: 55px;
    height: 55px;
  }
  
  .step-number {
    font-size: 24px;
  }
  
  .step-title {
    font-size: 15px;
  }
  
  .step-description {
    font-size: 12px;
  }
  
  .footer {
    padding: 30px 0 15px;
  }
  
  .footer-logo-img {
    max-width: 110px;
  }
  
  .footer-title {
    font-size: 13px;
  }
  
  .footer-link {
    font-size: 12px;
  }
}

/* --- Product slider --- */
.p-slider { position: relative; overflow: hidden; margin: 48px auto; max-width: 1200px; }
.p-slider-track { display: flex; transition: transform 0.6s ease; will-change: transform; }
.p-slide { flex: 0 0 100%; padding: 8px; box-sizing: border-box; }

.p-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.p-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.p-card--empty { visibility: hidden; }

.p-thumb {
  display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; margin-bottom: 10px;
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.p-name { font-size: 0.95rem; font-weight: 600; margin: 6px 0 2px; line-height: 1.2; }
.p-meta { font-size: .8rem; color: #666; margin: 0 0 6px; }
.p-price { font-weight: 700; margin: 4px 0 10px; }
.p-btn {
  margin-top: auto; text-align: center; padding: 8px 10px; border: 1px solid #ddd;
  border-radius: 10px; text-decoration: none; color: inherit;
}
.p-btn:hover { background: #f7f7f7; }

/* Controles */
.p-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9); border: 1px solid #ddd; border-radius: 999px;
  width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.p-prev { left: 8px; }
.p-next { right: 8px; }
.p-nav:hover { background: #fff; }

/* Dots */
.p-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.p-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; background: #d0d0d0; cursor: pointer;
}
.p-dot.active { background: #333; }

/* Responsive */
@media (max-width: 1024px) {
  .p-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .p-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .p-grid { grid-template-columns: 1fr; }
}

/* --- Breadcrumb Styles --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  padding-bottom: 10px;
}

.breadcrumb-link {
  color: rgb(0, 38, 83);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: rgb(255, 105, 0);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #999;
  font-size: 16px;
}

.breadcrumb-current {
  color: #333;
  font-weight: 500;
}

/* --- Active Nav Link --- */
.subnav-link.active {
  color: rgb(255, 105, 0);
  font-weight: 600;
  border-bottom: 2px solid rgb(255, 105, 0);
}

/* --- Page Subtitle --- */
.page-subtitle {
  text-align: center;
  color: #666;
  font-size: 16px;
  margin-top: -10px;
  margin-bottom: 20px;
}

/* --- Empty Category Styles --- */
.empty-category {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 40px auto;
  max-width: 600px;
}

.empty-message {
  font-size: 18px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn-back-home {
  display: inline-block;
  padding: 12px 30px;
  background: rgb(0, 38, 83);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 38, 83, 0.2);
}

.btn-back-home:hover {
  background: rgb(255, 105, 0);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
}

/* --- Responsive Adjustments for Breadcrumb --- */
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 12px;
    gap: 6px;
  }
  
  .breadcrumb-separator {
    font-size: 14px;
  }
  
  .page-subtitle {
    font-size: 14px;
  }
  
  .empty-message {
    font-size: 16px;
  }
}

/* --- Product Card Wrapper Styles --- */
.product-card-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-link .title {
  color: #333;
}

.product-card-wrapper:hover .title {
  color: rgb(255, 105, 0);
}

/* --- Add to Cart Small Button --- */
.btn-add-to-cart-small {
  width: 100%;
  padding: 10px 12px;
  background: rgb(255, 105, 0);
  color: white;
  border: none;
  border-radius: 0 0 12px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}

.btn-add-to-cart-small:hover:not(:disabled) {
  background: rgb(255, 85, 0);
  transform: scale(1.02);
}

.btn-add-to-cart-small:disabled {
  background: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-add-to-cart-small .cart-icon {
  font-size: 14px;
}

.btn-add-to-cart-small:active:not(:disabled) {
  transform: scale(0.98);
}

/* --- Product Detail Styles --- */
.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.product-detail-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
}

.product-detail-image img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.product-detail-category {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.category-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgb(0, 38, 83);
  color: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.product-date {
  color: #666;
  font-size: 14px;
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.price-label {
  font-size: 16px;
  color: #666;
}

.price-amount {
  font-size: 36px;
  font-weight: 700;
  color: rgb(255, 105, 0);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.product-detail-description p,
.product-detail-specs p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.btn-add-cart,
.btn-buy-now {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-cart {
  background: rgb(0, 38, 83);
  color: white;
}

.btn-add-cart:hover {
  background: rgb(0, 50, 110);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 38, 83, 0.3);
}

.btn-buy-now {
  background: rgb(255, 105, 0);
  color: white;
}

.btn-buy-now:hover {
  background: rgb(255, 85, 0);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-top: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
}

.feature-icon {
  color: rgb(0, 185, 0);
  font-weight: 700;
  font-size: 18px;
}

.feature-text {
  line-height: 1.4;
}

/* --- Related Products Grid --- */
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* --- Responsive Product Detail --- */
@media (max-width: 1024px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }
  
  .product-detail-title {
    font-size: 24px;
  }
  
  .price-amount {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .product-detail-container {
    padding: 20px;
    gap: 20px;
  }
  
  .product-detail-image {
    padding: 20px;
  }
  
  .product-detail-image img {
    max-height: 300px;
  }
  
  .product-detail-title {
    font-size: 20px;
  }
  
  .price-amount {
    font-size: 26px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .btn-add-cart,
  .btn-buy-now {
    width: 100%;
  }
  
  .related-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .product-detail-title {
    font-size: 18px;
  }
  
  .price-amount {
    font-size: 22px;
  }
  
  .section-title {
    font-size: 16px;
  }
  
  .related-products-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Enhanced Product Detail Styles --- */
.image-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgb(0, 38, 83), rgb(0, 60, 120));
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 38, 83, 0.3);
}

.badge-text {
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-detail-image {
  position: relative;
}

.price-section {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-savings {
  margin-top: 8px;
}

.savings-text {
  color: rgb(0, 180, 0);
  font-size: 14px;
  font-weight: 600;
}

.product-quick-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid rgb(255, 105, 0);
}

.product-quick-info .section-title {
  font-size: 15px;
  font-weight: 500;
  color: #555;
  margin: 0;
}

/* --- Tabs Styles --- */
.product-tabs-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 40px;
}

.tabs-header {
  display: flex;
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.tab-button {
  flex: 1;
  padding: 18px 20px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

.tab-button:hover {
  background: white;
  color: rgb(255, 105, 0);
}

.tab-button.active {
  background: white;
  color: rgb(0, 38, 83);
  border-bottom-color: rgb(255, 105, 0);
}

.tabs-content {
  padding: 40px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease-in;
}

.tab-panel.active {
  display: block;
}

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

.tab-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.tab-title {
  font-size: 26px;
  font-weight: 700;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.description-content {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.description-content h3 {
  font-size: 20px;
  color: #333;
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.description-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.benefits-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
}

.benefits-list li:last-child {
  border-bottom: none;
}

/* --- Specifications Grid --- */
.specs-content {
  margin-top: 20px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid rgb(0, 38, 83);
  transition: all 0.3s ease;
}

.spec-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.spec-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.spec-text {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.specs-note {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 20px;
}

.specs-note p {
  margin: 0;
  font-size: 13px;
  color: #856404;
  line-height: 1.6;
}

/* --- Warranty Content --- */
.warranty-content {
  margin-top: 20px;
}

.warranty-section {
  margin-bottom: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e9ecef;
}

.warranty-section:last-child {
  border-bottom: none;
}

.warranty-section h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.warranty-section p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

.warranty-list {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.warranty-list li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.warranty-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: rgb(0, 185, 0);
  font-weight: 700;
  font-size: 18px;
}

/* --- Responsive Tabs --- */
@media (max-width: 768px) {
  .tabs-header {
    flex-direction: column;
  }
  
  .tab-button {
    padding: 15px;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    border-left: 3px solid transparent;
  }
  
  .tab-button.active {
    border-bottom-color: #e9ecef;
    border-left-color: rgb(255, 105, 0);
  }
  
  .tabs-content {
    padding: 25px 20px;
  }
  
  .tab-title {
    font-size: 22px;
  }
  
  .description-content h3 {
    font-size: 18px;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .warranty-section h3 {
    font-size: 18px;
  }
  
  .image-badge {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
  }
  
  .badge-text {
    font-size: 10px;
  }
  
  .price-savings {
    margin-top: 5px;
  }
  
  .savings-text {
    font-size: 12px;
  }
}

/* --- Stock Info Styles --- */
.stock-info {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  background: #f8f9fa;
}

.stock-available {
  color: rgb(0, 150, 0);
  font-weight: 600;
  font-size: 14px;
}

.stock-unavailable {
  color: rgb(200, 0, 0);
  font-weight: 600;
  font-size: 14px;
}

/* --- Cart Styles --- */
.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.cart-items-section {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  background: #f9f9f9;
  padding: 10px;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.cart-item-price {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
}

.qty-btn:hover {
  background: rgb(0, 38, 83);
  color: white;
  border-color: rgb(0, 38, 83);
}

.qty-value {
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.cart-item-stock {
  font-size: 12px;
  color: #999;
  margin: 5px 0 0 0;
}

.cart-item-actions {
  text-align: right;
}

.cart-item-subtotal {
  font-size: 18px;
  font-weight: 700;
  color: rgb(255, 105, 0);
  margin-bottom: 10px;
}

.btn-remove {
  background: transparent;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  color: #666;
  font-size: 13px;
  transition: all 0.3s;
}

.btn-remove:hover {
  background: rgb(220, 53, 69);
  color: white;
  border-color: rgb(220, 53, 69);
}

.cart-summary {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.summary-line.total {
  border-bottom: none;
  border-top: 2px solid #333;
  font-size: 20px;
  font-weight: 700;
  color: rgb(255, 105, 0);
  margin-top: 10px;
  padding-top: 15px;
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: rgb(255, 105, 0);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s;
}

.btn-checkout:hover {
  background: rgb(255, 85, 0);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
}

.btn-clear-cart {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
}

.btn-clear-cart:hover {
  background: #f8f9fa;
  border-color: #999;
}

.empty-cart-message {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart-message p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.btn-continue-shopping {
  display: inline-block;
  padding: 12px 30px;
  background: rgb(0, 38, 83);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-continue-shopping:hover {
  background: rgb(255, 105, 0);
  transform: translateY(-2px);
}

/* --- Checkout Styles --- */
.checkout-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.checkout-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.option-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.option-card h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.option-card p {
  color: #666;
  margin-bottom: 15px;
}

.btn-option {
  display: inline-block;
  padding: 10px 20px;
  background: rgb(0, 38, 83);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-option:hover {
  background: rgb(255, 105, 0);
  transform: scale(1.05);
}

.checkout-summary {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.checkout-summary h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.summary-totals {
  margin-top: 20px;
}

/* --- Auth Styles --- */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #f8f9fa;
}

.auth-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 450px;
}

.register-card {
  max-width: 600px;
}

.auth-card h1 {
  text-align: center;
  color: rgb(0, 38, 83);
  margin-bottom: 30px;
  font-size: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-heading {
  color: rgb(0, 38, 83);
  font-size: 18px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.section-heading:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-group input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: rgb(0, 38, 83);
  box-shadow: 0 0 0 3px rgba(0, 38, 83, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.btn-auth {
  padding: 14px;
  background: rgb(255, 105, 0);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
}

.btn-auth:hover {
  background: rgb(255, 85, 0);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
}

.auth-link {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-top: 10px;
}

.auth-link a {
  color: rgb(0, 38, 83);
  text-decoration: none;
  font-weight: 600;
}

.auth-link a:hover {
  color: rgb(255, 105, 0);
  text-decoration: underline;
}

/* --- Responsive Cart & Checkout --- */
@media (max-width: 1024px) {
  .cart-container,
  .checkout-container {
    grid-template-columns: 1fr;
  }
  
  .cart-summary,
  .checkout-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }
  
  .cart-item-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .auth-card {
    padding: 30px 20px;
  }
}

/* --- Profile Page Styles --- */
.profile-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin-top: 30px;
}

.profile-sidebar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.profile-menu-item:hover {
  background: #f8f9fa;
  color: rgb(0, 38, 83);
}

.profile-menu-item.active {
  background: rgb(0, 38, 83);
  color: white;
}

.profile-menu-item span {
  font-size: 18px;
}

.profile-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 40px;
}

.profile-section {
  display: none;
}

.profile-section.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

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

.profile-section h2 {
  font-size: 24px;
  color: rgb(0, 38, 83);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.profile-form {
  max-width: 600px;
}

.profile-form .form-group {
  margin-bottom: 20px;
}

.profile-form .form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-bottom: 8px;
}

.profile-form .form-group input,
.profile-form .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s;
}

.profile-form .form-group input:focus,
.profile-form .form-group textarea:focus {
  outline: none;
  border-color: rgb(0, 38, 83);
  box-shadow: 0 0 0 3px rgba(0, 38, 83, 0.1);
}

.profile-form .form-group input:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.profile-form .form-group small {
  display: block;
  color: #999;
  font-size: 12px;
  margin-top: 5px;
}

.profile-form .form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.btn-save {
  padding: 14px 30px;
  background: rgb(255, 105, 0);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s;
}

.btn-save:hover {
  background: rgb(255, 85, 0);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
}

/* --- Responsive Profile --- */
@media (max-width: 1024px) {
  .profile-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .profile-sidebar {
    position: static;
  }
  
  .profile-menu {
    flex-direction: row;
    overflow-x: auto;
  }
  
  .profile-menu-item {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .profile-content {
    padding: 25px 20px;
  }
  
  .profile-section h2 {
    font-size: 20px;
  }
  
  .profile-form {
    max-width: 100%;
  }
  
  .profile-menu {
    gap: 5px;
  }
  
  .profile-menu-item {
    font-size: 13px;
    padding: 10px 12px;
  }
  
  .profile-menu-item span {
    font-size: 16px;
  }
}

/* ============ PAYMENT CARDS STYLES ============ */
.cards-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.btn-add-card {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add-card:hover {
  background: #0056b3;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: all 0.3s;
}

.card-item:hover {
  border-color: #007bff;
  box-shadow: 0 4px 15px rgba(0,123,255,0.1);
}

.card-item.default-card {
  border-color: #28a745;
  background: #f8fff9;
}

.card-icon {
  font-size: 3rem;
}

.card-details {
  flex: 1;
}

.card-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.card-number {
  font-size: 1rem;
  color: #666;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.card-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.card-type {
  padding: 0.25rem 0.75rem;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 500;
}

.card-expiry {
  font-size: 0.875rem;
  color: #666;
}

.default-badge {
  padding: 0.25rem 0.75rem;
  background: #28a745;
  color: white;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-card-action {
  background: #f0f0f0;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-card-action:hover {
  background: #e0e0e0;
  transform: scale(1.1);
}

.btn-card-action.btn-delete:hover {
  background: #ffebee;
}

.empty-cards-message {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.empty-cards-message p:first-child {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-form-container {
  margin-top: 2rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid #007bff;
}

.card-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-form-header h3 {
  margin: 0;
  color: #333;
}

.btn-close-form {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-close-form:hover {
  background: #c82333;
}

.form-group-checkbox {
  margin: 1.5rem 0;
}

.form-group-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.form-group-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn-cancel {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-cancel:hover {
  background: #5a6268;
}

/* Responsive for cards */
@media (max-width: 768px) {
  .cards-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .btn-add-card {
    width: 100%;
  }
  
  .card-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .card-actions {
    width: 100%;
    justify-content: space-around;
  }
  
  .card-form-container {
    padding: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-cancel, .btn-save {
    width: 100%;
  }
}

/* ============ IMPROVED FORM ELEMENTS STYLING ============ */

/* Modern Select Dropdown */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

select:hover {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Modern Input Fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
textarea:hover {
  border-color: #007bff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="tel"]:disabled,
textarea:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Modern Button Styles */
.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-save,
.btn-cancel,
.btn-checkout,
.btn-clear-cart,
.btn-option,
button[type="submit"],
button[type="button"] {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary,
.btn-checkout {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
}

.btn-primary:hover,
.btn-checkout:hover {
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-secondary,
.btn-cancel {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: white;
}

.btn-secondary:hover,
.btn-cancel:hover {
  background: linear-gradient(135deg, #5a6268 0%, #454d55 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-success,
.btn-save {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: white;
}

.btn-success:hover,
.btn-save:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-danger,
.btn-clear-cart {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.btn-danger:hover,
.btn-clear-cart:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-option {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  text-align: center;
  padding: 1rem 2rem;
}

.btn-option:hover {
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

button:active:not(:disabled) {
  transform: translateY(0) !important;
}

/* Checkbox and Radio Styles */
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #007bff;
}

/* Form Group Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: #6c757d;
  font-size: 0.875rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

/* ============ RESPONSIVE IMPROVEMENTS ============ */

/* Tablet Styles */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 20px;
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .profile-container {
    flex-direction: column;
  }
  
  .profile-sidebar {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .profile-menu {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
  }
  
  .profile-menu-item {
    white-space: nowrap;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Show mobile elements */
  .mobile-top-bar,
  .mobile-nav-bar,
  .mobile-only {
    display: flex !important;
  }
  
  /* Hide desktop elements */
  .desktop-only,
  .nav-links,
  .nav-right {
    display: none !important;
  }
  
  /* Typography */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .product-card {
    padding: 0.75rem;
  }
  
  .product-name {
    font-size: 0.875rem;
  }
  
  .product-price {
    font-size: 1rem;
  }
  
  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Buttons */
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-success,
  .btn-danger,
  button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  /* Cart */
  .cart-container {
    flex-direction: column;
  }
  
  .cart-items-section,
  .cart-summary {
    width: 100%;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cart-item-image {
    width: 100%;
    max-width: 200px;
  }
  
  .cart-item-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 1rem;
  }
  
  .cart-item-actions .cart-item-subtotal {
    font-weight: 700;
    font-size: 1.1rem;
  }
  
  .cart-item-actions .btn-remove {
    width: 100%;
  }
  
  /* Checkout */
  .checkout-container {
    flex-direction: column;
  }
  
  .checkout-options,
  .checkout-summary {
    width: 100%;
  }
  
  .checkout-steps {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .step {
    width: 100%;
    justify-content: center;
  }
  
  .option-card {
    padding: 1.5rem;
  }
  
  /* Profile */
  .profile-container {
    padding: 1rem;
  }
  
  .profile-content {
    padding: 1rem;
  }
  
  .profile-menu {
    flex-direction: column;
  }
  
  .profile-menu-item {
    width: 100%;
    justify-content: flex-start;
  }
  
  /* Cards (Payment) */
  .card-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-actions {
    width: 100%;
    justify-content: space-around;
  }
  
  .cards-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-add-card {
    width: 100%;
  }
  
  /* Tables */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  /* Footer */
  .footer-container {
    padding: 2rem 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-section {
    width: 100%;
  }
}

/* Small Mobile (iPhone SE, etc) */
@media (max-width: 375px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-card {
    max-width: 100%;
  }
  
  .nav-container {
    padding: 0 10px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .checkout-steps {
    font-size: 0.875rem;
  }
  
  .step span:not(.step-number) {
    display: none;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

/* Large Screens */
@media (min-width: 1440px) {
  .nav-container,
  .main-content,
  .footer-container {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ============ IMPROVED CATEGORY/FILTER DROPDOWNS ============ */
.category-link,
.subnav-link {
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 0.5rem 1rem;
}

.category-link:hover,
.subnav-link:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  transform: translateX(5px);
}

/* ============ LOADING STATES ============ */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============ SMOOTH SCROLLING ============ */
html {
  scroll-behavior: smooth;
}

/* ============ IMPROVED FOCUS STATES FOR ACCESSIBILITY ============ */
*:focus-visible {
  outline: 3px solid #007bff;
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #007bff;
  outline-offset: 2px;
}

/* ============ PRINT STYLES ============ */
@media print {
  .navbar,
  .footer,
  .btn,
  button {
    display: none !important;
  }
  
  .main-content {
    padding: 0;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}

/* ============ IMPROVED ANIMATIONS ============ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

/* ============ IMPROVED TOOLTIPS ============ */
[title] {
  position: relative;
  cursor: help;
}

/* ============ BADGE STYLES ============ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: #007bff;
  color: white;
}

.badge-success {
  background: #28a745;
  color: white;
}

.badge-danger {
  background: #dc3545;
  color: white;
}

.badge-warning {
  background: #ffc107;
  color: #333;
}

.badge-info {
  background: #17a2b8;
  color: white;
}

/* ============ ALERT STYLES ============ */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-success {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.alert-warning {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.alert-info {
  background: #d1ecf1;
  border-color: #17a2b8;
  color: #0c5460;
}

/* ============ IMPROVED PRODUCT CARDS ============ */
.product-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
  transition: transform 0.3s ease;
}

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

/* ============ IMPROVED CART STYLES ============ */
.cart-summary {
  position: sticky;
  top: 100px;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid #007bff;
  background: white;
  color: #007bff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qty-btn:hover {
  background: #007bff;
  color: white;
  transform: scale(1.1);
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-value {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.btn-remove {
  background: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-remove:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
}

/* ============ IMPROVED CHECKOUT STYLES ============ */
.option-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.option-card:hover {
  border-color: #007bff;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
}

.option-card h3 {
  color: #007bff;
  margin-bottom: 0.75rem;
}

.option-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

/* ============ IMPROVED PROFILE STYLES ============ */
.profile-menu-item {
  background: white;
  border: 2px solid #e0e0e0;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.profile-menu-item:hover {
  border-color: #007bff;
  background: #f8f9fa;
  transform: translateX(5px);
}

.profile-menu-item.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
  transform: translateX(10px);
}

.profile-menu-item span {
  font-size: 1.5rem;
}

.profile-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.3s ease;
}

/* ============ IMPROVED ORDER SUMMARY ============ */
.order-summary {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  border: 2px solid #e0e0e0;
}

.order-summary h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.25rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #dee2e6;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-total {
  font-weight: bold;
  font-size: 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #333;
  color: #007bff;
}

/* ============ IMPROVED CONFIRMATION STYLES ============ */
.confirmation-message {
  text-align: center;
  padding: 2rem;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 1rem;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.confirmation-details {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  text-align: left;
  border: 2px solid #e0e0e0;
}

.confirmation-details h3 {
  color: #007bff;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
}

.detail-row {
  display: flex;
  padding: 0.75rem 0;
  border-bottom: 1px solid #dee2e6;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  width: 180px;
  color: #495057;
}

/* ============ IMPROVED NAVBAR MOBILE ============ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease;
  z-index: 1002;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

/* ============ IMPROVED EMPTY STATES ============ */
.empty-cart-message,
.empty-cards-message {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 2rem 0;
}

.empty-cart-message p:first-child,
.empty-cards-message p:first-child {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.empty-cart-message p:last-child,
.empty-cards-message p:last-child {
  font-size: 1rem;
  color: #6c757d;
}

.btn-continue-shopping {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* ============ IMPROVED PAGINATION ============ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.page-link {
  padding: 0.5rem 1rem;
  border: 2px solid #007bff;
  border-radius: 8px;
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 44px;
  text-align: center;
}

.page-link:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
}

.page-link.active {
  background: #007bff;
  color: white;
}

.page-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============ IMPROVED SEARCH BAR ============ */
.search-bar {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #007bff;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: #0056b3;
  transform: translateY(-50%) scale(1.1);
}

/* ============ RESPONSIVE UTILITIES ============ */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
  
  .show-mobile {
    display: block;
  }
}

/* Text alignment utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ============ IMPROVED TRANSITIONS ============ */
* {
  -webkit-tap-highlight-color: transparent;
}

a, button, input, select, textarea {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* ============ DARK MODE SUPPORT (Optional) ============ */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode support
  body {
    background: #1a1a1a;
    color: #e0e0e0;
  }
  
  .product-card,
  .cart-item,
  .option-card,
  .profile-section {
    background: #2a2a2a;
    color: #e0e0e0;
  }
  */
}

/* ============ PRODUCT IMAGE GALLERY STYLES ============ */
.product-image-gallery {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.product-image-gallery h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.gallery-thumbnail {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  background: white;
  padding: 2px;
}

.gallery-thumbnail:hover {
  border-color: #007bff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.gallery-thumbnail.active,
.gallery-thumbnail[style*="border: 2px solid rgb(0, 123, 255)"] {
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive gallery */
@media (max-width: 768px) {
  .gallery-thumbnails {
    gap: 0.5rem;
  }
  
  .gallery-thumbnail {
    width: 80px;
    height: 80px;
  }
  
  .product-image-gallery h3 {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .gallery-thumbnail {
    width: 70px;
    height: 70px;
  }
  
  .gallery-thumbnails {
    gap: 0.5rem;
  }
}

/* ============ SALE POPUP MODAL STYLES ============ */
.sale-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.sale-popup-container {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 50%, #dc3545 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(220, 53, 69, 0.4);
  position: relative;
  animation: slideUp 0.4s ease;
  overflow: hidden;
}

.sale-popup-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: shimmer 3s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 30px);
  }
}

.sale-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 28px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  line-height: 1;
  padding: 0;
}

.sale-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.sale-popup-content {
  padding: 40px 30px;
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.sale-popup-icon {
  font-size: 60px;
  margin-bottom: 15px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.sale-popup-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.sale-popup-message {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.sale-popup-submessage {
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.5;
  opacity: 0.95;
}

.sale-popup-button {
  background: white;
  color: #dc3545;
  border: none;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sale-popup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

.sale-popup-button:active {
  transform: translateY(0);
}

/* Responsive styles for popup */
@media (max-width: 768px) {
  .sale-popup-overlay {
    padding: 15px;
  }
  
  .sale-popup-container {
    max-width: 100%;
    border-radius: 15px;
  }
  
  .sale-popup-content {
    padding: 35px 25px;
  }
  
  .sale-popup-icon {
    font-size: 50px;
    margin-bottom: 12px;
  }
  
  .sale-popup-title {
    font-size: 26px;
    margin-bottom: 12px;
  }
  
  .sale-popup-message {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .sale-popup-submessage {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .sale-popup-button {
    padding: 12px 35px;
    font-size: 16px;
  }
  
  .sale-popup-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .sale-popup-overlay {
    padding: 10px;
  }
  
  .sale-popup-container {
    border-radius: 12px;
  }
  
  .sale-popup-content {
    padding: 30px 20px;
  }
  
  .sale-popup-icon {
    font-size: 45px;
    margin-bottom: 10px;
  }
  
  .sale-popup-title {
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .sale-popup-message {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .sale-popup-submessage {
    font-size: 13px;
    margin-bottom: 18px;
  }
  
  .sale-popup-button {
    padding: 11px 30px;
    font-size: 15px;
    width: 100%;
    max-width: 280px;
  }
  
  .sale-popup-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 22px;
  }
}

/* ============ MONTHLY PAYMENT DISPLAY RESPONSIVE ============ */
@media (max-width: 768px) {
  .monthly-payment-display {
    padding: 0.875rem !important;
  }
  
  .monthly-payment-display > div {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem;
  }
  
  .monthly-payment-display strong {
    font-size: 1rem !important;
  }
  
  #monthly-payment-amount {
    font-size: 1.3rem !important;
    width: 100%;
    text-align: right;
  }
  
  #monthly-payment-label {
    font-size: 0.85rem !important;
  }
  
  #payment-months {
    font-size: 0.95rem;
    padding: 0.65rem;
  }
}

@media (max-width: 480px) {
  .monthly-payment-display {
    padding: 0.75rem !important;
  }
  
  #monthly-payment-amount {
    font-size: 1.2rem !important;
  }
  
  #payment-months {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
  
  .monthly-payment-display strong {
    font-size: 0.95rem !important;
  }
  
  #monthly-payment-label {
    font-size: 0.8rem !important;
  }
}

/* ============ ORDER DETAILS POPUP & ORDERS LIST ============ */
.order-details-popup {
  border-radius: 15px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

.order-details-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin-bottom: 1rem !important;
}

.order-details-content {
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.order-details-button {
  padding: 0.75rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.order-details-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

/* Estilos para las tarjetas de pedidos */
.order-card {
  transition: all 0.3s ease;
  cursor: default;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.btn-view-order {
  transition: all 0.3s ease;
}

.btn-view-order:hover {
  background: #0056b3 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.orders-list {
  padding: 0;
}

/* Responsive para popup de detalles */
@media (max-width: 768px) {
  .order-details-popup {
    width: 95% !important;
    padding: 1rem !important;
    margin: 1rem !important;
  }
  
  .order-details-title {
    font-size: 1.3rem !important;
  }
  
  .order-details-content {
    font-size: 0.95rem !important;
  }
  
  .order-details-button {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.95rem !important;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .order-details-popup {
    width: 100% !important;
    padding: 0.875rem !important;
    margin: 0.5rem !important;
    border-radius: 12px !important;
  }
  
  .order-details-title {
    font-size: 1.2rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .order-details-content {
    font-size: 0.9rem !important;
    padding: 0 !important;
  }
  
  .order-details-button {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Ajustes para tarjetas de pedidos en móvil */
  .order-card {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .order-card h3 {
    font-size: 1.1rem !important;
  }
  
  .order-status {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
  }
  
  .btn-view-order {
    width: 100%;
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
  }
}
