/* ==================================================
   SHOPX - PREMIUM E-COMMERCE STYLESHEET (LIGHT THEME)
   ================================================== */

/* Google Fonts & Icons Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

:root {
  /* Premium Colors */
  --bg-color: #f8f9fa;       /* Very light grey for background */
  --bg-panel: #ffffff;       /* Pure white for cards/panels */
  --text-main: #111827;      /* Dark text */
  --text-muted: #6b7280;     /* Grey text for descriptions */
  --brand: #000000;          /* Main brand color (Black/Amazon style) */
  --brand-hover: #333333;
  --accent: #ef4444;         /* Red for Sales/Offers */
  --success: #10b981;        /* Green for Delivered/In-stock */
  --border-line: #e5e7eb;    /* Light borders */
  
  /* Layout & Shadows */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* Material Icons Helper Class */
.icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
}

/* ==================================================
   LAYOUT & CONTAINERS
   ================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 40px 0; }

/* Desktop vs Mobile Grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==================================================
   NAVIGATION BAR (WHITE, CLEAN, STICKY)
   ================================================== */
.nav {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--brand);
}

.nav-search {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
}

.nav-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  background: var(--bg-color);
}

.nav-search button {
  padding: 12px 24px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 500;
}

/* ==================================================
   PANELS & CARDS (Replaces Glassmorphism)
   ================================================== */
.panel, .glass {
  background: var(--bg-panel);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-line);
}

/* Product Card */
.product-card {
  background: var(--bg-panel);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-line);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-line);
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

/* ==================================================
   CIRCULAR CATEGORIES (New Style)
   ================================================== */
.circular-categories {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none; /* Hide scrollbar */
}
.circular-categories::-webkit-scrollbar { display: none; }

.cat-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 100px;
  cursor: pointer;
  transition: transform 0.2s;
}
.cat-circle:hover { transform: translateY(-3px); }

.cat-circle img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-color);
  padding: 4px;
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-sm);
}

.cat-circle span {
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

/* ==================================================
   BUTTONS & FORMS
   ================================================== */
.btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover { background: var(--brand-hover); }

.btn.secondary {
  background: var(--bg-color);
  color: var(--text-main);
  border: 1px solid var(--border-line);
}
.btn.secondary:hover { background: #e5e7eb; }

.field {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  margin-top: 6px;
}
.field:focus { border-color: var(--brand); }
.label { font-weight: 500; font-size: 0.95rem; color: var(--text-main); }

/* ==================================================
   TABLES (For Admin / Cart)
   ================================================== */
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table th, .table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-line);
}
.table th {
  background: var(--bg-color);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ==================================================
   BADGES, PILLS & UTILITIES
   ================================================== */
.badge {
  background: var(--accent);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pill {
  background: #f3f4f6;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.price {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.4rem;
}

/* Trust Badges (Footer section) */
.trust-badges {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 0;
  border-top: 1px solid var(--border-line);
  background: var(--bg-panel);
  margin-top: 40px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.trust-item .icon { font-size: 40px; color: var(--brand); }
.trust-item h4 { font-size: 1rem; margin: 0; }
.trust-item p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ==================================================
   RESPONSIVE DESIGN (MOBILE)
   ================================================== */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .nav-search { order: 3; margin-top: 8px; }
  .nav-links { order: 2; justify-content: space-between; width: 100%; }
  
  .form-grid { grid-template-columns: 1fr; }
  
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  
  .cat-circle img { width: 70px; height: 70px; }
  
  .section { padding: 24px 0; }
}
