:root {
  --primary-dark: #0a192f;
  --primary-blue: #112240;
  --accent-blue: #64ffda;
  --accent-purple: #8a2be2;
  --text-light: #ccd6f6;
  --text-white: #e6f1ff;
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Snow effect */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1001;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: var(--accent-blue);
  font-size: 1em;
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Header */
header {
  background-color: rgba(17, 34, 64, 0.95);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: rotate(15deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(100, 255, 218, 0.5);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav ul li a:hover {
  color: var(--accent-blue);
  background-color: rgba(100, 255, 218, 0.1);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-login {
  background-color: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.btn-login:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

.btn-admin {
  background-color: var(--accent-blue);
  color: var(--primary-dark);
}

.btn-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
}

.admin-indicator {
  color: var(--accent-blue);
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 4px;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.admin-indicator.active {
  display: flex;
}

/* Login Modal */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.95);
  z-index: 2000;
  overflow-y: auto;
  backdrop-filter: blur(5px);
}

.login-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-content {
  background: linear-gradient(145deg, #112240, #0d1a33);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalFadeIn 0.4s ease;
  border: 1px solid rgba(100, 255, 218, 0.2);
  padding: 2.5rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  color: var(--text-white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--text-light);
}

.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-white);
  font-weight: 500;
}

.login-form input {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #2d4a6e;
  background: rgba(10, 25, 47, 0.7);
  color: var(--text-light);
  transition: var(--transition);
  font-size: 1rem;
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

.btn-login-submit {
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  color: var(--primary-dark);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  width: 100%;
  margin-top: 1rem;
  font-size: 1.1rem;
  box-shadow: 0 5px 20px rgba(100, 255, 218, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.5);
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-blue) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(100, 255, 218, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(138, 43, 226, 0.15) 0%,
      transparent 50%
    );
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, -10px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text-white);
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.8),
      0 0 30px rgba(138, 43, 226, 0.6);
  }
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.btn-explore {
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  color: var(--primary-dark);
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.btn-explore:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.5);
}

/* Featured Images */
.featured-images {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.featured-img {
  width: 200px;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  padding: 3px;
}

.featured-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  z-index: -1;
  border-radius: 15px;
  opacity: 0;
  transition: var(--transition);
}

.featured-img:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(100, 255, 218, 0.4);
}

.featured-img:hover::before {
  opacity: 1;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Base64 encoded placeholder images */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1d3b5c, #2a4a7a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 2rem;
  border-radius: 12px;
}

/* Categories Section */
.categories {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-white);
  font-size: 2.5rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  margin: 0.5rem auto;
  border-radius: 2px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.category-card {
  background: linear-gradient(145deg, #112240, #0d1a33);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(100, 255, 218, 0.2);
  border-color: rgba(100, 255, 218, 0.3);
}

.category-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.category-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.category-card:hover .category-img::before {
  left: 100%;
}

.category-img .placeholder-img {
  transition: var(--transition);
}

.category-card:hover .category-img .placeholder-img {
  transform: scale(1.1);
}

.category-info {
  padding: 1.8rem;
  text-align: center;
}

.category-info h3 {
  color: var(--text-white);
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.category-info p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Products Section */
.products {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.products-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--accent-blue);
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  color: var(--primary-dark);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: linear-gradient(145deg, #112240, #0d1a33);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(100, 255, 218, 0.2);
  border-color: rgba(100, 255, 218, 0.3);
}

.product-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  color: var(--primary-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.product-info {
  padding: 1.8rem;
}

.product-info h3 {
  color: var(--text-white);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.product-price {
  color: var(--accent-blue);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.btn-buy {
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  color: var(--primary-dark);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  flex-grow: 1;
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 255, 218, 0.5);
}

.btn-details {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-details:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Product Detail Modal (for quick view) */
.product-detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.98);
  z-index: 3000;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

.product-detail-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.product-detail-content {
  background: linear-gradient(145deg, #112240, #0d1a33);
  border-radius: 20px;
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalFadeIn 0.4s ease;
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.product-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #2d4a6e;
}

.product-detail-header h2 {
  color: var(--text-white);
  font-size: 1.8rem;
}

.close-detail {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-detail:hover {
  color: var(--accent-blue);
  background: rgba(100, 255, 218, 0.1);
}

.product-detail-body {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}

.product-detail-images {
  flex: 1;
  min-width: 300px;
  padding: 2rem;
  background: rgba(10, 25, 47, 0.5);
}

.product-main-image {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #1d3b5c, #2a4a7a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1d3b5c;
}

.image-size-info {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  display: none;
}

.product-main-image:hover .image-size-info {
  display: block;
}

.product-thumbnails {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  border: 2px solid transparent;
  position: relative;
}

.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-size {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.6rem;
  padding: 0.2rem;
  text-align: center;
  display: none;
}

.product-thumbnail:hover .thumbnail-size {
  display: block;
}

.product-detail-info {
  flex: 1;
  min-width: 300px;
  padding: 2rem;
}

.product-detail-category {
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.product-detail-title {
  color: var(--text-white);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.product-detail-price {
  color: var(--accent-blue);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.product-detail-description {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.product-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(10, 25, 47, 0.3);
  border-radius: 10px;
}

.meta-item h4 {
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meta-item p {
  color: var(--text-white);
  font-weight: 500;
}

.product-detail-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-add-to-cart {
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  color: var(--primary-dark);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  flex-grow: 1;
  font-size: 1.1rem;
  box-shadow: 0 5px 20px rgba(100, 255, 218, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.5);
}

/* Full Image Modal */
.full-image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.98);
  z-index: 4000;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

.full-image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.full-image-content {
  background: linear-gradient(145deg, #112240, #0d1a33);
  border-radius: 20px;
  width: 90%;
  max-width: 1200px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalFadeIn 0.4s ease;
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.full-image-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #2d4a6e;
}

.full-image-header h2 {
  color: var(--text-white);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.full-image-header h2 span {
  color: var(--accent-blue);
  font-size: 1rem;
  font-weight: normal;
}

.close-full-image {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-full-image:hover {
  color: var(--accent-blue);
  background: rgba(100, 255, 218, 0.1);
}

.full-image-body {
  padding: 2rem;
  text-align: center;
}

.full-image-container {
  max-height: 70vh;
  overflow: auto;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  background: #1d3b5c;
  padding: 1rem;
}

.full-image-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 5px;
}

.image-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: rgba(10, 25, 47, 0.3);
  border-radius: 10px;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  color: var(--accent-blue);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Admin Panel */
.admin-panel {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: none;
}

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

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.upload-form {
  background: linear-gradient(145deg, #112240, #0d1a33);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 3rem;
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.upload-form h3 {
  color: var(--text-white);
  margin-bottom: 1.8rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text-white);
  font-weight: 500;
  font-size: 1.1rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #2d4a6e;
  background: rgba(10, 25, 47, 0.7);
  color: var(--text-light);
  transition: var(--transition);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

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

.upload-area {
  border: 2px dashed #2d4a6e;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.5rem;
  position: relative;
  background: rgba(10, 25, 47, 0.5);
}

.upload-area:hover {
  border-color: var(--accent-blue);
  background: rgba(10, 25, 47, 0.7);
}

.upload-area i {
  font-size: 3.5rem;
  color: var(--accent-blue);
  margin-bottom: 1.2rem;
}

.upload-area p {
  margin-bottom: 0.5rem;
}

.upload-area .small {
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.8;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.file-item {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.file-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-item .remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  z-index: 1;
}

.file-item .remove:hover {
  background: rgba(255, 0, 0, 0.8);
  transform: scale(1.1);
}

.file-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.7rem;
  padding: 0.3rem;
  text-align: center;
}

.btn-upload {
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  color: var(--primary-dark);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  width: 100%;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  box-shadow: 0 5px 20px rgba(100, 255, 218, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.5);
}

.admin-products {
  background: linear-gradient(145deg, #112240, #0d1a33);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.admin-products h3 {
  color: var(--text-white);
  margin-bottom: 1.8rem;
  font-size: 1.5rem;
}

.table-container {
  overflow-x: auto;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.products-table th,
.products-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid #2d4a6e;
}

.products-table th {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 1.1rem;
  background: rgba(10, 25, 47, 0.3);
}

.products-table td {
  color: var(--text-light);
  vertical-align: middle;
}

.product-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-size {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.6rem;
  padding: 0.2rem;
  text-align: center;
}

.action-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  margin-right: 0.8rem;
  transition: var(--transition);
  font-size: 1.1rem;
  padding: 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  color: var(--accent-blue);
  background: rgba(100, 255, 218, 0.1);
  transform: scale(1.1);
}

/* Edit Product Modal */
.edit-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.98);
  z-index: 5000;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

.edit-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.edit-content {
  background: linear-gradient(145deg, #112240, #0d1a33);
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalFadeIn 0.4s ease;
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #2d4a6e;
}

.edit-header h2 {
  color: var(--text-white);
  font-size: 1.8rem;
}

.close-edit {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-edit:hover {
  color: var(--accent-blue);
  background: rgba(100, 255, 218, 0.1);
}

.edit-body {
  padding: 2rem;
}

.date-picker {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.date-picker select {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #2d4a6e;
  background: rgba(10, 25, 47, 0.7);
  color: var(--text-light);
  font-size: 1rem;
  flex: 1;
  cursor: pointer;
}

.date-picker select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

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

/* View Full Image Button */
.btn-view-full {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-view-full:hover {
  background: rgba(100, 255, 218, 0.1);
}

/* Footer */
footer {
  background: linear-gradient(145deg, #112240, #0d1a33);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-col h3 {
  color: var(--text-white);
  margin-bottom: 1.8rem;
  font-size: 1.3rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col ul li a:hover {
  color: var(--accent-blue);
  transform: translateX(5px);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-dark);
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-main {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo-tagline {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

.copyright {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #2d4a6e;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Product Detail Page */
.product-detail-page {
  padding: 2rem;
  min-height: 70vh;
}

.product-detail-full {
  max-width: 1400px;
  margin: 0 auto;
}

.loading {
  text-align: center;
  padding: 100px;
  color: var(--accent-blue);
  font-size: 1.2rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.product-features ul {
  color: var(--text-light);
  line-height: 2;
  padding-left: 1.5rem;
}

/* Animations */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

::-webkit-scrollbar-track {
  background: rgba(10, 25, 47, 0.5);
  border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .featured-img {
    width: 160px;
    height: 160px;
  }

  .product-detail-body {
    flex-direction: column;
  }

  .full-image-content {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1.2rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  nav ul li {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .featured-img {
    width: 140px;
    height: 140px;
  }

  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .admin-header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .product-detail-actions {
    flex-direction: column;
  }

  .date-picker {
    flex-direction: column;
  }

  .image-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .logo-text {
    display: none;
  }

  .footer-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .featured-img {
    width: 120px;
    height: 120px;
  }

  .hero {
    height: 80vh;
  }

  .auth-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .product-detail-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .products-table {
    display: block;
    overflow-x: auto;
  }

  .full-image-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .upload-form,
  .admin-products {
    padding: 1.5rem;
  }

  .edit-body,
  .product-detail-images,
  .product-detail-info {
    padding: 1rem;
  }

  .product-main-image {
    height: 300px;
  }
}
