/* ==================== MODERN SPORTIVA DESIGN ==================== */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-3d: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* ==================== FULL-WIDTH CAROUSEL SLIDER ==================== */
.carousel {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  border-radius: 0 !important;
}

.hero-slide {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  position: relative;
}

.min-vh-70 {
  min-height: 70vh;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-indicators {
  margin-bottom: 2rem;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  opacity: 0.5;
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.3);
}

/* ==================== CATEGORY HERO SECTION ==================== */
.category-hero {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* ==================== NAVBAR MODERN ==================== */
.navbar {
  background: var(--dark-gradient) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.8rem !important;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem !important;
  color: rgba(255,255,255,0.9) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:hover {
  color: #fff !important;
  transform: translateY(-2px);
}

/* ==================== HERO SECTION 3D ==================== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: #fff;
  padding: 6rem 2rem;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-3d);
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideInLeft 0.8s ease;
  position: relative;
  z-index: 2;
}

.hero .lead {
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 0.95;
  animation: slideInLeft 1s ease;
  position: relative;
  z-index: 2;
}

.hero .btn {
  position: relative;
  z-index: 2;
  animation: slideInUp 1.2s ease;
}

/* ==================== MODERN BUTTONS ==================== */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ==================== 3D CARDS ==================== */
.card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.card:hover {
  transform: translateY(-15px) rotateX(2deg);
  box-shadow: var(--shadow-hover);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card-img-top {
  transition: transform 0.5s ease;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

/* ==================== AMAZON-STYLE PRODUCT CARDS ==================== */
.product-card-amazon {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
}

.product-card-amazon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-color: #667eea;
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.product-image-wrapper img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.5s ease;
}

.product-card-amazon:hover .product-image-wrapper img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.product-card-amazon:hover .product-overlay {
  opacity: 1;
}

.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}

.product-rating {
  font-size: 0.9rem;
}

.product-btn {
  border-radius: 8px;
  transition: all 0.3s ease;
}

.product-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ==================== PREMIUM CATEGORY CARDS (MAGAZINE STYLE) ==================== */
.category-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
}

/* Category Image Container with Overlay Effect */
.category-card .category-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 320px; /* PERFECT HEIGHT for 6-7 categories */
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.category-card .card-img-top { 
  width: 100%;
  height: 100%;
  object-fit: cover; /* COVER for full, appealing images */
  object-position: center;
  transition: transform 0.6s ease;
}

.category-card:hover .card-img-top {
  transform: scale(1.08); /* Zoom effect on hover */
}

/* Gradient Overlay for Better Text Readability */
.category-card .category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
}

/* Category Badge (New/Popular/Featured) */
.category-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  z-index: 2;
}

/* Category Content */
.category-card .card-body {
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: #fff;
}

.category-card .card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  font-family: 'Poppins', sans-serif;
}

.category-card .card-text {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* View Button */
.category-card .btn-primary {
  border-radius: 12px;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.category-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

/* Product Cards (old style) */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card .card-img-top { 
  height: 500px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card .card-body {
  background: linear-gradient(to top, #fff 0%, rgba(255,255,255,0.95) 100%);
}

/* ==================== GLASSMORPHISM EFFECTS ==================== */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ==================== FOOTER MODERN ==================== */
footer {
  background: var(--dark-gradient);
  color: #fff;
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

footer h5, footer h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #a78bfa;
  padding-left: 5px;
}

footer .social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  background: var(--primary-gradient);
  transform: translateY(-5px);
  padding-left: 0;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease;
}

/* ==================== FORM STYLES ==================== */
.form-control, .form-select {
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  transform: translateY(-2px);
}

/* ==================== PRODUCT DETAIL PAGE ==================== */
.product-detail-img {
  border-radius: 20px;
  box-shadow: var(--shadow-3d);
  transition: transform 0.3s ease;
}

.product-detail-img:hover {
  transform: scale(1.02);
}

/* Product Gallery Styles */
.product-gallery-main {
  position: relative;
}

.product-main-image {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-main-image:hover {
  transform: scale(1.02);
}

.product-thumbnails {
  margin-top: 1rem;
}

.product-thumbnail {
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.product-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.product-thumbnail.active {
  border-color: #667eea !important;
  transform: scale(1.05);
}

/* Product Details Section */
.product-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.product-rating {
  font-size: 1.1rem;
}

.product-description {
  background: linear-gradient(135deg, #f8fafc, #fff);
  padding: 1.5rem;
  border-radius: 15px;
  border-left: 4px solid #667eea;
}

.product-spec {
  transition: all 0.3s ease;
}

.product-spec:hover {
  transform: translateX(5px);
}

.size-btn {
  transition: all 0.3s ease;
  min-width: 60px;
  font-weight: 600;
}

.size-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.size-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  border-color: #667eea !important;
  color: #fff !important;
}

.product-features ul li {
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.product-features ul li:hover {
  padding-left: 10px;
  color: #667eea;
}

/* Image Zoom Modal */
#imageZoomModal .modal-content {
  background: rgba(0,0,0,0.95) !important;
}

#imageZoomModal img {
  max-height: 90vh;
  object-fit: contain;
  cursor: zoom-out;
}

/* Breadcrumb */
.breadcrumb {
  background: linear-gradient(135deg, #f8fafc, #fff);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.breadcrumb-item a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #764ba2;
  padding-left: 5px;
}

.breadcrumb-item.active {
  color: #64748b;
  font-weight: 600;
}

.img-thumbnail {
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.img-thumbnail:hover {
  border-color: #667eea;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .card {
    margin-bottom: 2rem;
  }

  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  /* Category cards optimized for mobile */
  .category-card .category-image-wrapper {
    height: 240px;
  }
  
  .category-card .card-title {
    font-size: 1.15rem;
  }
  
  .category-card .card-text {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
  
  .category-badge {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  
  /* Product Details Page - Mobile */
  .product-title {
    font-size: 1.75rem;
  }
  
  .product-main-image {
    max-height: 400px;
  }
  
  .product-thumbnail {
    height: 80px !important;
  }
  
  .product-rating {
    font-size: 0.9rem;
  }
  
  .product-description {
    font-size: 0.9rem;
    padding: 1rem;
  }
  
  .size-btn {
    min-width: 50px;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .product-actions .btn {
    width: 100%;
  }
  
  .hero-slide {
    min-height: 60vh;
  }
  
  .min-vh-70 {
    min-height: 60vh;
  }
  
  .category-hero {
    padding: 4rem 1rem !important;
  }
  
  .product-image-wrapper img {
    height: 220px;
  }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
  .category-card .category-image-wrapper {
    height: 280px;
  }
  
  .product-title {
    font-size: 2rem;
  }
  
  .product-main-image {
    max-height: 500px;
  }
}

.table {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.table thead th {
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background: rgba(102, 126, 234, 0.05);
  transform: scale(1.005);
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

/* ==================== LOADING ANIMATION ==================== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==================== BADGES & ALERTS ==================== */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 10px;
}

.alert {
  border-radius: 15px;
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

/* ==================== ADMIN AREA SPECIFIC STYLES ==================== */

/* Admin main content area - add extra top padding */
body.admin-area main {
  padding-top: 90px !important; /* 80px base + 10px extra */
}

/* Alternative: You can also add bottom padding if needed */
body.admin-area main .container {
  padding-top: 10px;
}