@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: #ecfdf5;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --light: #f8fafc;
  --white: #ffffff;
  --gray: #64748b;
  --border: #e2e8f0;
  --accent: #6366f1;
  --accent-light: #e0e7ff;
  --warning: #fbbf24;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px 0 rgba(16, 185, 129, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  margin-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark);
}

/* Glassmorphism Navbar */
.navbar {
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.8) !important;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--dark) !important;
}

.navbar-brand span {
  color: var(--primary);
}

.nav-link {
  font-weight: 600;
  color: var(--dark-light) !important;
  transition: var(--transition);
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--primary) !important;
  background-color: var(--primary-light);
}

.navbar-nav .active > .nav-link {
  color: var(--primary) !important;
  background-color: var(--primary-light);
}

/* Cart Badge Navigation Link */
.cart-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--white) !important;
  border-radius: 30px;
  padding: 0.5rem 1.25rem !important;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.cart-nav-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.cart-badge {
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-nav-btn:hover .cart-badge {
  background: var(--white);
  color: var(--primary);
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
  color: var(--white);
  padding: 8rem 0 6rem 0;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(90deg, #10b981 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn-primary-custom {
  background-color: var(--primary);
  border: none;
  color: var(--white);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary-custom {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-secondary-custom:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
}

.hero-image {
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
  height: auto;
  transition: var(--transition);
}

.hero-image:hover {
  transform: scale(1.02) rotate(1deg);
}

/* Category Pills */
.category-pills-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: -20px;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
}

.category-pill {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--dark-light);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-pill:hover, .category-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Product Section */
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.75px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  color: var(--gray);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Clickable Product Cards */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none !important;
  color: inherit !important;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(16, 185, 129, 0.3);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background-color: #f1f5f9;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.badge-sale {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ef4444;
  color: var(--white);
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.badge-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  font-size: 0.75rem;
  z-index: 2;
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 50px;
}

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

.stars {
  color: var(--warning);
  font-size: 0.875rem;
}

.rating-text {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 600;
}

.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-price-wrapper {
  display: flex;
  flex-direction: column;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.product-old-price {
  font-size: 0.875rem;
  text-decoration: line-through;
  color: var(--gray);
}

.btn-card-cart {
  background: var(--primary-light);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
}

.product-card:hover .btn-card-cart {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

/* Product Detail Page */
.detail-container {
  padding: 4rem 0;
}

.gallery-main-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.gallery-main-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.detail-info-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.detail-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.detail-price-box {
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.detail-old-price {
  font-size: 1.25rem;
  text-decoration: line-through;
  color: var(--gray);
}

.detail-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 2rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  height: 54px;
}

.qty-btn {
  background: none;
  border: none;
  width: 50px;
  height: 100%;
  font-size: 1.25rem;
  font-weight: 600;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--light);
  color: var(--primary);
}

.qty-input {
  width: 60px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  outline: none;
}

.btn-add-to-cart-lg {
  flex-grow: 1;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
}

/* Reviews List & Form */
.reviews-section {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.review-summary-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.review-avg-num {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.review-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.review-item:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.review-author {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}

.review-date {
  font-size: 0.85rem;
  color: var(--gray);
}

.review-comment {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark-light);
}

/* Review Form Interactive Stars */
.review-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.rating-star-selector {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.rating-star-selector input {
  display: none;
}

.rating-star-selector label {
  font-size: 2rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: var(--transition);
}

.rating-star-selector label:hover,
.rating-star-selector label:hover ~ label,
.rating-star-selector input:checked ~ label {
  color: var(--warning);
}

/* Shopping Cart Page */
.cart-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cart-table {
  width: 100%;
  margin-bottom: 0;
}

.cart-table th {
  background: var(--light);
  color: var(--dark-light);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.cart-table td {
  padding: 1.5rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-product-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.cart-product-name {
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
  text-decoration: none !important;
}

.cart-product-name:hover {
  color: var(--primary);
}

.cart-qty-control {
  max-width: 130px;
}

.btn-remove-item {
  background: #fef2f2;
  color: #ef4444;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-remove-item:hover {
  background: #ef4444;
  color: var(--white);
}

.summary-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.validation-summary-valid {
  display: none !important;
}

.validation-summary-errors {
  display: block !important;
  color: #ffffff !important;
}

.field-validation-error {
  color: #ffffff !important;
}

.alert-danger {
  color: #ffffff !important;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--dark-light);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
}

/* Glassmorphism Contact Form & Details Section */
.contact-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  margin: 4rem 0;
  box-shadow: var(--shadow-lg);
}

.contact-section h2 {
  color: var(--white);
}

.contact-glass-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 24px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-info-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-text p {
  color: #94a3b8;
  margin-bottom: 0;
}

/* Custom inputs */
.form-control-custom {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--white) !important;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control-custom:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
  outline: none;
}

.form-control-custom::placeholder {
  color: #64748b;
}

/* Footer & Social Icons */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 5rem 0 3rem 0;
  border-top: 1px solid var(--dark-light);
  margin-top: auto;
}

footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* Social Icons Hover Transitions */
.social-icons-wrapper {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark-light);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none !important;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Brand specific colors on hover */
.social-icon.facebook:hover {
  background: #1877f2;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

.social-icon.youtube:hover {
  background: #ff0000;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.social-icon.twitter:hover {
  background: #1da1f2;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-light);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-banner {
    padding: 6rem 0 4rem 0;
    text-align: center;
    border-radius: 0;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image {
    margin-top: 3rem;
  }
  .contact-section {
    border-radius: 0;
    margin: 2rem 0;
  }
  .detail-info-card {
    margin-top: 2rem;
    padding: 1.5rem;
  }
}

/* Admin Dashboard Specific Styles */
.admin-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.admin-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.stat-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-info h6 {
  font-size: 0.875rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat-card-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-icon-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.stat-icon-accent {
  background: var(--accent-light);
  color: var(--accent);
}

.stat-icon-warning {
  background: #fef3c7;
  color: #d97706;
}

.stat-icon-danger {
  background: #fee2e2;
  color: #dc2626;
}

.admin-table th {
  background-color: var(--light);
  color: var(--dark-light);
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}

.admin-table td {
  padding: 1rem;
}

.admin-badge-read {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 30px;
}

.admin-badge-unread {
  background: #fee2e2;
  color: #ef4444;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 30px;
}