/* Bnett.online Premium Style System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0F3A5F;      /* Deep Trust Blue */
  --primary-light: #164D7C;
  --secondary: #139A8C;    /* Natural Mint Green */
  --secondary-light: #18B8A6;
  --accent: #E2C044;       /* Premium Gold */
  --dark: #0A1C2A;
  --light: #F7F9FB;
  --text-dark: #1E2D3D;
  --text-muted: #677A8C;
  --white: #FFFFFF;
  --gray-100: #F1F4F7;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E0;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 15px -3px rgba(15,58,95,0.08), 0 4px 6px -2px rgba(15,58,95,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15,58,95,0.15), 0 10px 10px -5px rgba(15,58,95,0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Header & Navigation */
header {
  background-color: rgba(15, 58, 95, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  color: var(--white);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 0 15px rgba(19, 154, 140, 0.4);
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(to right, var(--white), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-icon-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.cart-icon-btn:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-link-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.admin-link-btn:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--white);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}

.btn-outline {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Storefront Home Layout */
.hero {
  background: linear-gradient(135deg, rgba(15, 58, 95, 0.05), rgba(19, 154, 140, 0.05)), var(--white);
  padding: 80px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
}

.hero-title {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-img-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(19, 154, 140, 0.2) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
}

.hero-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  transform: rotate(-3deg);
  transition: var(--transition);
}

.hero-img:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Features Section */
.features {
  padding: 60px 20px;
  background-color: var(--white);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  border-radius: var(--border-radius-md);
  background-color: var(--light);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-light);
}

.feature-icon {
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 15px;
  display: inline-block;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Catalog / Category section */
.section-header {
  max-width: 1200px;
  margin: 0 auto 35px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title {
  font-size: 32px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.categories-grid {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.category-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid var(--gray-100);
  transition: var(--transition);
}

.category-card:hover .category-img {
  border-color: var(--secondary);
  transform: scale(1.05);
}

.category-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Product Cards Grid */
.products-section {
  padding: 60px 0;
}

.products-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-light);
}

.sale-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--secondary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(19, 154, 140, 0.4);
}

.product-img-wrapper {
  background-color: var(--gray-100);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  overflow: hidden;
}

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

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

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 15px;
}

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

.product-old-price {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

/* Footer UI */
footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 20px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-logo {
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
}

.footer-column p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

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

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Page Wrappers */
.main-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Grid & Catalog View */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}

.sidebar-filters {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  height: fit-content;
}

.filter-group {
  margin-bottom: 30px;
}

.filter-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.filter-list {
  list-style: none;
}

.filter-list li {
  margin-bottom: 10px;
}

.filter-link {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-link.active, .filter-link:hover {
  color: var(--secondary);
  font-weight: 600;
}

/* Forms UI */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  background-color: var(--white);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(19, 154, 140, 0.15);
}

/* Tables UI */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius-sm);
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background-color: var(--gray-100);
  color: var(--primary);
  font-weight: 700;
  padding: 15px;
  font-size: 14px;
}

.custom-table td {
  padding: 15px;
  border-top: 1px solid var(--gray-200);
  font-size: 14px;
}

.custom-table tr:hover {
  background-color: rgba(15, 58, 95, 0.02);
}

/* Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.status-success {
  background-color: rgba(19, 154, 140, 0.1);
  color: var(--secondary);
}

.status-failed {
  background-color: rgba(220, 38, 38, 0.1);
  color: #DC2626;
}

.status-pending {
  background-color: rgba(226, 192, 68, 0.1);
  color: #B28B00;
}

/* Admin Dashboard UI Specifics */
.admin-login-card {
  max-width: 420px;
  margin: 100px auto;
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(19, 154, 140, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-info h4 {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.stat-info p {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

/* Product Detail Page UI */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

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

.main-image-wrapper {
  background-color: var(--gray-100);
  border-radius: var(--border-radius-md);
  padding: 30px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
}

.main-image {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-info-column {
  display: flex;
  flex-direction: column;
}

.product-detail-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin: 15px 0 25px;
}

.product-detail-desc {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 30px;
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
}

/* Cart Page Layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 30px;
}

.cart-summary-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  height: fit-content;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
}

.summary-total {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  border-bottom: none;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.cart-item-img-wrapper {
  width: 70px;
  height: 70px;
  background-color: var(--gray-100);
  border-radius: var(--border-radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

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

.qty-input {
  width: 60px;
  padding: 8px;
  text-align: center;
}
