html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

/* --- Premium UI Enhancements --- */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
}

body {
  background-color: #f7f9fc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.premium-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(231, 231, 231, 0.5);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}

.premium-header {
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.btn-premium {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(118, 75, 162, 0.4);
  color: white;
}

.table-premium thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
  color: #495057;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 16px;
}

.table-premium tbody td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f3f5;
}

.table-premium tbody tr:last-child td {
  border-bottom: none;
}

.table-premium tbody tr {
  transition: background-color 0.2s ease;
}

.table-premium tbody tr:hover {
  background-color: #fdfdfd;
}

.search-input {
  border-radius: 12px;
  padding: 12px 20px;
  border: 1px solid #e9ecef;
  background-color: white;
  transition: all 0.3s ease;
}

.search-input:focus {
  box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1);
  border-color: #764ba2;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Admin Layout Structure --- */
.app-sidebar {
  width: 280px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #1e1e2d;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
}

.app-main {
  margin-left: 280px;
  padding: 2rem;
  min-height: 100vh;
  transition: all 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.nav-link-premium {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-link-premium:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link-premium.active {
  color: white;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0) 100%);
  border-left-color: #667eea;
}

.nav-link-premium i {
  width: 24px;
  margin-right: 10px;
  text-align: center;
  font-size: 1.1rem;
}

.glass-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-main {
    margin-left: 0;
  }

  .app-sidebar.show {
    transform: translateX(0);
  }
}
/* --- Storefront Specifics --- */
.store-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.store-content {
    margin-top: 80px; /* Navbar height compensation */
    min-height: calc(100vh - 80px - 200px); /* Height - Navbar - Footer */
}

.nav-link-store {
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link-store:hover,
.nav-link-store.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.hero-section {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    padding: 80px 0;
    border-radius: 24px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.product-card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.btn-add-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.btn-add-cart:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.category-pill {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: white;
    border: 1px solid #e9ecef;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.25);
}

